mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +00:00
refactor(core): rename TaskTool to AgentTool
Rename the Task tool to Agent tool for clearer semantics and better alignment with industry terminology. This change includes: - Rename TaskTool -> AgentTool, TaskParams -> AgentParams - Rename TaskResultDisplay -> AgentResultDisplay - Add 'Explore' built-in agent for read-only codebase exploration - Add backward compatibility mappings for legacy tool names - Improve Agent tool description with clearer usage guidelines - Add case-insensitive agent name matching - Fallback to built-in agents when subagent loading fails Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
27356c1bac
commit
8891f4219d
37 changed files with 433 additions and 323 deletions
|
|
@ -56,7 +56,7 @@ import { canUseRipgrep } from '../utils/ripgrepUtils.js';
|
|||
import { RipGrepTool } from '../tools/ripGrep.js';
|
||||
import { ShellTool } from '../tools/shell.js';
|
||||
import { SkillTool } from '../tools/skill.js';
|
||||
import { TaskTool } from '../tools/task.js';
|
||||
import { AgentTool } from '../tools/agent.js';
|
||||
import { TodoWriteTool } from '../tools/todoWrite.js';
|
||||
import { ToolRegistry } from '../tools/tool-registry.js';
|
||||
import { WebFetchTool } from '../tools/web-fetch.js';
|
||||
|
|
@ -1925,7 +1925,7 @@ export class Config {
|
|||
}
|
||||
};
|
||||
|
||||
registerCoreTool(TaskTool, this);
|
||||
registerCoreTool(AgentTool, this);
|
||||
registerCoreTool(SkillTool, this);
|
||||
registerCoreTool(LSTool, this);
|
||||
registerCoreTool(ReadFileTool, this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue