schedule_task改名schedule:工具名即资源,动词已在op;definitions/HANDLERS与scheduler/db/routes/前端注释/ARCHITECTURE同步(表名scheduled_tasks与路由/id/schedule不动)
This commit is contained in:
@@ -102,7 +102,7 @@
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "schedule_task",
|
||||
"name": "schedule",
|
||||
"description": "Manage the recurring scheduled task bound to the CURRENT session. At most one task per session; it is deleted together with the session. At each trigger, the prompt is sent to this session as a new user message. Schedule times are interpreted in Asia/Shanghai (UTC+8). Call this ONLY when the user explicitly asks for something to run periodically or at a specific time.\n\nop=get No arguments.\nop=create Requires cron_expr and prompt.\nop=update Requires at least one of cron_expr, prompt; only the given fields change.\nop=delete No arguments.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
|
||||
@@ -756,7 +756,7 @@ async function toolMintPublicLink(ctx, args) {
|
||||
return pl.base_url + '/p/' + id;
|
||||
}
|
||||
|
||||
// schedule_task:当前会话定时任务的完整生命周期(op 分派,规范见 docs/tool-design.md)。
|
||||
// schedule:当前会话定时任务的完整生命周期(op 分派,规范见 docs/tool-design.md)。
|
||||
// sessionId 取自 ctx(AI 无法指定别的会话);表主键 session_id → 每会话至多一条,
|
||||
// 资源即「本会话的任务」,无 id 参数。条件必填在代码里校验(schema 只 required op),
|
||||
// 错误回显 op 与缺失字段;delete 不落 scheduler_note(返回文本本身已进会话记录)。
|
||||
@@ -831,7 +831,7 @@ const HANDLERS = {
|
||||
mint_public_link: toolMintPublicLink,
|
||||
terminal: toolTerminal,
|
||||
fetch: toolFetch,
|
||||
schedule_task: toolScheduleTask,
|
||||
schedule: toolScheduleTask,
|
||||
skill: toolSkill,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user