Skip to content

Commit 494ea9e

Browse files
committed
fix(schedule): improve tool description to guide LLM toward agent mode
- schedule.add message description now explains dual usage (reminder vs agent) - mode description says IMPORTANT: use 'agent' for tasks requiring action - Provides concrete example in message description
1 parent d05649e commit 494ea9e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tools/registry.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ pub fn tool_parameters(name: &str) -> serde_json::Value {
327327
"properties": {
328328
"message": {
329329
"type": "string",
330-
"description": "The reminder message or agent prompt to execute when the schedule fires"
330+
"description": "For 'reminder' mode: the text to deliver. For 'agent' mode: the prompt/task that the AI agent will execute (e.g. 'Fetch top 20 HackerNews posts and summarize them in Chinese')."
331331
},
332332
"after_seconds": {
333333
"type": "integer",
@@ -340,7 +340,7 @@ pub fn tool_parameters(name: &str) -> serde_json::Value {
340340
"mode": {
341341
"type": "string",
342342
"enum": ["reminder", "agent"],
343-
"description": "Job mode. 'reminder' (default) sends the message as-is. 'agent' runs the full AI agent with the message as prompt, enabling tool use (web.fetch, etc.) and intelligent responses."
343+
"description": "IMPORTANT: Use 'agent' when the task requires action (web fetching, analysis, summarization, etc.). Use 'reminder' only for simple text notifications like 'drink water'. Default is 'reminder'."
344344
}
345345
},
346346
"required": ["message"]

0 commit comments

Comments
 (0)