You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/server/main/tasks/prompts.py
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,10 @@
12
12
- `0`: High priority (urgent, important, deadlines).
13
13
- `1`: Medium priority (standard tasks, default).
14
14
- `2`: Low priority (can be done anytime, not urgent).
15
-
3. **Schedule:** Analyze the prompt for any scheduling information (dates, times, recurrence).
16
-
- If no specific time is mentioned, set the schedule to `null`.
17
-
- If a specific date and time is mentioned for a one-time task, use the `once` type. The `run_at` value MUST be in `YYYY-MM-DDTHH:MM` format for local datetime inputs.
18
-
- If the task is recurring, use the `recurring` type.
15
+
3. **Schedule:** Analyze the prompt for any scheduling information (dates, times, recurrence). Decipher whether the task is a one-time event or recurring, and format the schedule accordingly:
16
+
- If no specific time is mentioned, the task has to be performed right now.
17
+
- If a specific date and time is mentioned and its a one-time task, use the `once` type. The `run_at` value MUST be in `YYYY-MM-DDTHH:MM` format for local datetime inputs.
18
+
- If the task is found to be recurring, use the `recurring` type.
19
19
- `frequency` can be "daily" or "weekly".
20
20
- `time` MUST be in "HH:MM" 24-hour format.
21
21
- For "weekly" frequency, `days` MUST be a list of full day names (e.g., ["Monday", "Wednesday"]).
0 commit comments