Merge branch 'feature/moshui20260330-schedule-job' into dev
This commit is contained in:
commit
89a9d81892
@ -40,7 +40,7 @@ python {skill_dir}/scripts/schedule_manager.py add \
|
|||||||
--type cron \
|
--type cron \
|
||||||
--schedule "0 9 * * *" \
|
--schedule "0 9 * * *" \
|
||||||
--timezone "Asia/Tokyo" \
|
--timezone "Asia/Tokyo" \
|
||||||
--message "Please search and summarize today's important tech news, listing the Top 5 in a concise format. After completion, select an appropriate notification method based on the currently enabled skills to push the results to the user."
|
--message "[Scheduled Task Triggered] Please execute the following task immediately: Search and summarize today's important tech news, listing the Top 5 in a concise format. After completion, select an appropriate notification method based on the currently enabled skills to push the results to the user."
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Add One-Time Task
|
#### Add One-Time Task
|
||||||
@ -49,7 +49,7 @@ python {skill_dir}/scripts/schedule_manager.py add \
|
|||||||
--name "Meeting Reminder" \
|
--name "Meeting Reminder" \
|
||||||
--type once \
|
--type once \
|
||||||
--scheduled-at "2026-04-01T10:00:00+09:00" \
|
--scheduled-at "2026-04-01T10:00:00+09:00" \
|
||||||
--message "A scheduled reminder for the user has arrived. The schedule content is: 'Meeting at 10:00'. Please compose an appropriate reminder message based on the schedule content, then select an appropriate notification method based on the currently enabled skills to send the reminder to the user."
|
--message "[Scheduled Task Triggered] A scheduled reminder has arrived. The schedule content is: 'Meeting at 10:00'. Please compose an appropriate reminder message based on the schedule content, then select an appropriate notification method based on the currently enabled skills to send the reminder to the user."
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Edit Task
|
#### Edit Task
|
||||||
@ -108,21 +108,32 @@ Supports ISO 8601 format (timezone offset recommended):
|
|||||||
|
|
||||||
The message is an execution instruction sent to the AI agent when the scheduled task triggers. The agent has no conversation context at execution time, so the message must include:
|
The message is an execution instruction sent to the AI agent when the scheduled task triggers. The agent has no conversation context at execution time, so the message must include:
|
||||||
|
|
||||||
1. **Task Content**: What specifically needs to be done
|
1. **Task Trigger Indicator**: Start with "[Scheduled Task Triggered]" (or equivalent in the user's language) to clearly indicate this is a triggered scheduled task execution, NOT a request to create a task
|
||||||
2. **Notification Instruction**: Based on the notification method confirmed by the user, explicitly specify the notification channel in the message (e.g., "notify the user via email"). If the user has not specified, write "select an appropriate notification method based on the currently enabled skills to push the results to the user"
|
2. **Task Content**: What specifically needs to be done (use imperative verbs like "Please execute immediately", "Please do")
|
||||||
3. **Language**: The message language must match the language the user is currently using in the conversation (e.g., if the user speaks Japanese, write the message in Japanese)
|
3. **Notification Instruction**: Based on the notification method confirmed by the user, explicitly specify the notification channel in the message (e.g., "notify the user via email"). If the user has not specified, write "select an appropriate notification method based on the currently enabled skills to push the results to the user"
|
||||||
|
4. **Language**: The message language must match the language the user is currently using in the conversation (e.g., if the user speaks Japanese, write the message in Japanese)
|
||||||
|
|
||||||
|
### Important: Avoid Ambiguity
|
||||||
|
|
||||||
|
The message will be executed by an AI agent when the scheduled time arrives. The message must clearly indicate this is an **execution instruction**, not a request to **create a scheduled task**.
|
||||||
|
|
||||||
### Schedule Reminder Scenario (One-Time Task)
|
### Schedule Reminder Scenario (One-Time Task)
|
||||||
|
|
||||||
❌ Wrong: `"Reminder: You have a meeting to attend now, don't forget!"`
|
❌ Wrong: `"Reminder: You have a meeting to attend now, don't forget!"`
|
||||||
|
|
||||||
✅ Correct: `"A scheduled reminder for the user has arrived. The schedule content is: 'Product review meeting at 3:00 PM'. Please compose an appropriate reminder message based on the schedule content, then select an appropriate notification method based on the currently enabled skills to send the reminder to the user."`
|
❌ Wrong: `"It's tomorrow at 3 PM, please remind the user to attend the meeting"` (Agent will think this is a request to create a reminder)
|
||||||
|
|
||||||
|
✅ Correct: `"[Scheduled Task Triggered] A scheduled reminder has arrived. The schedule content is: 'Product review meeting at 3:00 PM'. Please compose an appropriate reminder message based on the schedule content, then select an appropriate notification method based on the currently enabled skills to send the reminder to the user."`
|
||||||
|
|
||||||
### Recurring Task Scenario (Cron Task)
|
### Recurring Task Scenario (Cron Task)
|
||||||
|
|
||||||
|
❌ Wrong: `"It's 8:40 PM every day, please remind the user to write a daily report. Please send message via Lark Webhook, Webhook URL: xxx"` (Agent will think this is a request to create a daily task)
|
||||||
|
|
||||||
❌ Wrong: `"Execute: Get latest news"`
|
❌ Wrong: `"Execute: Get latest news"`
|
||||||
|
|
||||||
✅ Correct: `"Please search and summarize today's important tech news, listing the Top 5 in a concise format. After completion, select an appropriate notification method based on the currently enabled skills to push the results to the user."`
|
✅ Correct: `"[Scheduled Task Triggered] Please execute the following task immediately: Search and summarize today's important tech news, listing the Top 5 in a concise format. After completion, select an appropriate notification method based on the currently enabled skills to push the results to the user."`
|
||||||
|
|
||||||
|
✅ Correct: `"[Scheduled Task Triggered] This is a daily reminder task. Please execute immediately: Remind the user to write a daily report. Please send the message via Lark Webhook, Webhook URL: xxx"`
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
@ -134,7 +145,7 @@ python {skill_dir}/scripts/schedule_manager.py add \
|
|||||||
--type cron \
|
--type cron \
|
||||||
--schedule "0 9 * * *" \
|
--schedule "0 9 * * *" \
|
||||||
--timezone "Asia/Tokyo" \
|
--timezone "Asia/Tokyo" \
|
||||||
--message "Please search and summarize today's important tech news, listing the Top 5 in a concise format. After completion, select an appropriate notification method based on the currently enabled skills to push the results to the user."
|
--message "[Scheduled Task Triggered] Please execute the following task immediately: Search and summarize today's important tech news, listing the Top 5 in a concise format. After completion, select an appropriate notification method based on the currently enabled skills to push the results to the user."
|
||||||
```
|
```
|
||||||
|
|
||||||
**User**: "Remind me about the meeting tomorrow at 3 PM"
|
**User**: "Remind me about the meeting tomorrow at 3 PM"
|
||||||
@ -143,8 +154,8 @@ python {skill_dir}/scripts/schedule_manager.py add \
|
|||||||
python {skill_dir}/scripts/schedule_manager.py add \
|
python {skill_dir}/scripts/schedule_manager.py add \
|
||||||
--name "Meeting Reminder" \
|
--name "Meeting Reminder" \
|
||||||
--type once \
|
--type once \
|
||||||
--scheduled-at "2026-03-31T15:00:00+09:00" \
|
--scheduled-at "2026-04-01T15:00:00+09:00" \
|
||||||
--message "A scheduled reminder for the user has arrived. The schedule content is: 'Meeting tomorrow at 3:00 PM'. Please compose an appropriate reminder message based on the schedule content, then select an appropriate notification method based on the currently enabled skills to send the reminder to the user."
|
--message "[Scheduled Task Triggered] A scheduled reminder has arrived. The schedule content is: 'Meeting at 3:00 PM'. Please compose an appropriate reminder message based on the schedule content, then select an appropriate notification method based on the currently enabled skills to send the reminder to the user."
|
||||||
```
|
```
|
||||||
|
|
||||||
**User**: "Change the daily news task to 10 AM"
|
**User**: "Change the daily news task to 10 AM"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user