abdibrahem commited on
Commit
46987b4
·
1 Parent(s): d7c596c
Files changed (1) hide show
  1. main.py +14 -1
main.py CHANGED
@@ -280,7 +280,20 @@ class HealthcareChatbot:
280
  - Numbers to integers
281
  - Set appropriate defaults for optional parameters if beneficial
282
 
283
- STEP 4: VALIDATION
 
 
 
 
 
 
 
 
 
 
 
 
 
284
  - Ensure ALL required parameters are provided or identified as missing
285
  - Verify parameter formats match documentation requirements
286
  - Check that the selected endpoint actually solves the user's problem
 
280
  - Numbers to integers
281
  - Set appropriate defaults for optional parameters if beneficial
282
 
283
+ STEP 4: DATE/TIME PROCESSING
284
+ - Identify any temporal expressions in the user query
285
+ - Convert relative dates/times using the current context:
286
+ * "اليوم" (today) = current date
287
+ * "غدا" (tomorrow) = current date + 1 day
288
+ * "أمس" (yesterday) = current date - 1 day
289
+ * "الأسبوع القادم" (next week) = current date + 7 days
290
+ * "بعد ساعتين" (in 2 hours) = current time + 2 hours
291
+ * "صباحًا" (morning/AM), "مساءً" (evening/PM)
292
+ - Handle different date formats and languages
293
+ - Account for timezone differences
294
+ - Convert to ISO 8601 format: YYYY-MM-DDTHH:MM:SS
295
+
296
+ STEP 5: VALIDATION
297
  - Ensure ALL required parameters are provided or identified as missing
298
  - Verify parameter formats match documentation requirements
299
  - Check that the selected endpoint actually solves the user's problem