feat(core): 使用模板系统重构 task 工具描述
- 创建 task.txt 模板文件,包含完整的工具描述 - 添加 AGENT_TYPE_REGISTRY_STRING 变量支持动态 Agent 列表 - 添加 agentOutput 工具名称映射 - 更新 task.ts 使用模板渲染,保留回退逻辑
This commit is contained in:
@@ -42,6 +42,9 @@ const TOOL_CATEGORY_MAP: Record<string, string> = {
|
||||
todo_write: 'todo',
|
||||
// plan
|
||||
ask_user_question: 'plan',
|
||||
// task
|
||||
task: 'task',
|
||||
agent_output: 'task',
|
||||
};
|
||||
|
||||
export function loadDescription(toolName: string): string {
|
||||
|
||||
Reference in New Issue
Block a user