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: mxgo/prompts/template_prompts.py
+16-6Lines changed: 16 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1144,6 +1144,13 @@
1144
1144
- month (1-12)
1145
1145
- day of week (0-7, Sunday=0 or 7)
1146
1146
1147
+
**CRITICAL: ONE-TIME vs. RECURRING LOGIC**
1148
+
- **For Recurring Tasks** (e.g. "Every day"): Use wildcards for day/month.
1149
+
- Example: `0 14 * * *` (Daily at 2 PM UTC)
1150
+
- **For ONE-TIME Future Tasks** (e.g. "Tomorrow at 1pm"): You **MUST** calculate the specific Day and Month relative to the current date. **DO NOT** use wildcards `* *`, or it will run every day.
1151
+
- BAD: `0 13 * * *` (Runs every day)
1152
+
- GOOD: `0 13 16 12 *` (Runs ONLY on Dec 16th at 1pm UTC)
1153
+
1147
1154
**Common Patterns:**
1148
1155
- **Daily at specific time**: `0 9 * * *` (9 AM daily)
1149
1156
- **Weekly**: `0 9 * * 1` (9 AM every Monday)
@@ -1712,10 +1719,10 @@
1712
1719
1713
1720
# News Search Process
1714
1721
1715
-
## STEP 1: Intent Analysis - Recurring vs. One-Time
1716
-
- **Analyze the user's request**: Does the user ask for news "every day", "weekly", "every hour", or use other recurring language?
1717
-
- **If recurring**: Your goal is to use the `scheduled_tasks` tool. You must determine the correct cron expression and the `distilled_future_task_instructions`. Proceed to the execution step for recurring tasks.
1718
-
- **If one-time**: Your goal is to use the `news_search` tool to get the news immediately. Proceed with the query analysis and search strategy below.
1722
+
## STEP 1: Intent Analysis - Immediate vs. Future Execution
1723
+
- **Analyze the user's request**: Does the user want news *now* (e.g., "what's the latest," "give me news from the past day") or at a *future* time (e.g., "tomorrow morning," "every Friday at 5pm," "in 3 hours")?
1724
+
- **If for a future time (either one-time or recurring)**: Your goal is to use the `scheduled_tasks` tool. You must determine the correct cron expression.
1725
+
- **If for now**: Your goal is to use the `news_search` tool to get the news immediately.
1719
1726
1720
1727
## STEP 2: Query Analysis & Optimization
1721
1728
- **Understand the request**: Identify specific topics, companies, regions, or themes
@@ -1725,15 +1732,18 @@
1725
1732
1726
1733
## STEP 3: News Search Strategy
1727
1734
1728
-
### For One-Time News Requests:
1735
+
### For Immediate News Requests:
1729
1736
- **Topic-specific searches**: Use the news_search tool with targeted queries
0 commit comments