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
perf: merge 3 cron tools into 1 cron manage tool, and add edit capability for cron tool. (#7445)
* perf: replace cron tools with FutureTaskTool for improved task management
* feat: enhance FutureTaskTool with edit functionality and improve descriptions
* feat: add edit functionality for cron jobs and update related UI components
"Create a future task for your future. Supports recurring cron expressions or one-time run_at datetime. "
27
-
"Use this when you or the user want scheduled follow-up or proactive actions."
32
+
"Manage your future tasks. "
33
+
"Use action='create' to schedule a recurring cron task or one-time run_at task. "
34
+
"Use action='edit' to update an existing task. "
35
+
"Use action='list' to inspect existing tasks. "
36
+
"Use action='delete' to remove a task by job_id."
28
37
)
29
38
parameters: dict=Field(
30
39
default_factory=lambda: {
31
40
"type": "object",
32
41
"properties": {
33
-
"cron_expression": {
42
+
"action": {
34
43
"type": "string",
35
-
"description": "Cron expression defining recurring schedule (e.g., '0 8 * * *' or '0 23 * * mon-fri'). Prefer named weekdays like 'mon-fri' or 'sat,sun' instead of numeric day-of-week ranges such as '1-5' to avoid ambiguity across cron implementations.",
44
+
"enum": ["create", "edit", "delete", "list"],
45
+
"description": "Action to perform. 'list' takes no parameters. 'delete' requires only 'job_id'. 'edit' requires 'job_id' plus the fields to change.",
36
46
},
37
-
"run_at": {
47
+
"name": {
38
48
"type": "string",
39
-
"description": "ISO datetime for one-time execution, e.g., 2026-02-02T08:00:00+08:00. Use with run_once=true.",
49
+
"description": "Optional task label.",
40
50
},
41
-
"note": {
51
+
"cron_expression": {
42
52
"type": "string",
43
-
"description": "Detailed instructions for your future agent to execute when it wakes.",
53
+
"description": "Cron expression for a recurring schedule, e.g. '0 8 * * *' or '0 23 * * mon-fri'. Prefer named weekdays like 'mon-fri' or 'sat,sun' over numeric ranges like '1-5'.",
44
54
},
45
-
"name": {
55
+
"note": {
46
56
"type": "string",
47
-
"description": "Optional label to recognize this future task.",
57
+
"description": "Detailed instructions for your future agent to execute when it wakes.",
48
58
},
49
59
"run_once": {
50
60
"type": "boolean",
51
-
"description": "If true, the task will run only once and then be deleted. Use run_at to specify the time.",
61
+
"description": "Run only once and delete after execution. Use with run_at.",
62
+
},
63
+
"run_at": {
64
+
"type": "string",
65
+
"description": "ISO datetime for one-time execution, e.g. 2026-02-02T08:00:00+08:00.",
66
+
},
67
+
"job_id": {
68
+
"type": "string",
69
+
"description": "Task ID. Required for 'delete' and 'edit'.",
0 commit comments