feat: 新增 task_query 工具(查询最近任务列表),为工作记忆链提供可视化入口

This commit is contained in:
root
2026-04-28 20:03:51 +08:00
parent bddb5498e9
commit 0ccd02b0af
5 changed files with 113 additions and 1 deletions

View File

@ -550,6 +550,26 @@ AI操作步骤:
"required": ["task_id", "info_node_names"]
}
}
},
{
"type": "function",
"function": {
"name": "task_query",
"description": "查询最近的任务列表。按更新时间倒序排列。新对话开始时优先使用此工具获取所有进展中的任务,避免重复创建。",
"parameters": {
"type": "object",
"properties": {
"limit": {
"type": "integer",
"description": "返回的任务数量默认10"
},
"state_filter": {
"type": "string",
"description": "按状态筛选进行中、已完成、已暂停、已取消、archived"
}
}
}
}
}
]