From 79f9e368719880d3e6f534d9d6f20ca0ec4e4c53 Mon Sep 17 00:00:00 2001 From: oudecheng <13802883547@139.com> Date: Wed, 13 May 2026 10:20:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0=EF=BC=8C=E6=B7=BB=E5=8A=A0=E9=87=8D=E8=A6=81?= =?UTF-8?q?=E7=9A=84=E7=9B=AE=E6=A0=87=E9=85=8D=E7=BD=AE=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=E4=BB=A5=E4=BC=98=E5=8C=96=E4=BB=BB=E5=8A=A1=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tools/scheduler_manage.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/tools/scheduler_manage.rs b/src/tools/scheduler_manage.rs index 50e2978..40c464c 100644 --- a/src/tools/scheduler_manage.rs +++ b/src/tools/scheduler_manage.rs @@ -31,7 +31,16 @@ impl Tool for SchedulerManageTool { } fn description(&self) -> &str { - "Manage repository-backed scheduled jobs. Supports actions: list, get, put, delete, pause, resume. Jobs are persisted by the configured scheduler job repository and executed by the scheduler runtime. When creating agent_task or silent_agent_task jobs, keep prompt/system_prompt focused on the work to perform; do not restate execution times unless the task logic truly depends on them, because the trigger already controls timing. For cron schedules, standard cron syntax is supported: use 1-5 for Monday-Friday, 0 or 7 for Sunday." + "Manage repository-backed scheduled jobs. Supports actions: list, get, put, delete, pause, resume. Jobs are persisted by the configured scheduler job repository and executed by the scheduler runtime. \ + \ + When creating agent_task or silent_agent_task jobs, keep prompt/system_prompt focused on the work to perform; do not restate execution times unless the task logic truly depends on them, because the trigger already controls timing. For cron schedules, standard cron syntax is supported: use 1-5 for Monday-Friday, 0 or 7 for Sunday. \ + \ + IMPORTANT - Target Configuration: \ + For agent_task and silent_agent_task, the target.channel and target.chat_id determine where notifications are sent. \ + - If target is omitted or fields are empty, they are automatically filled from the current conversation context. \ + - To send to the current conversation: omit target or set target fields to null/empty. \ + - To send to a specific target: explicitly provide channel (e.g., 'feishu', 'wechat', 'cli') and chat_id (e.g., 'oc_xxx'). \ + - Do NOT use placeholder values like 'current' or 'default' - these will be treated as literal values and cause message delivery failures." } fn parameters_schema(&self) -> serde_json::Value {