mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +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
|
|
@ -16,7 +16,7 @@ import { MaxSizedBox } from '../shared/MaxSizedBox.js';
|
|||
import { TodoDisplay } from '../TodoDisplay.js';
|
||||
import type {
|
||||
TodoResultDisplay,
|
||||
TaskResultDisplay,
|
||||
AgentResultDisplay,
|
||||
PlanResultDisplay,
|
||||
AnsiOutput,
|
||||
Config,
|
||||
|
|
@ -50,7 +50,7 @@ type DisplayRendererResult =
|
|||
| { type: 'plan'; data: PlanResultDisplay }
|
||||
| { type: 'string'; data: string }
|
||||
| { type: 'diff'; data: { fileDiff: string; fileName: string } }
|
||||
| { type: 'task'; data: TaskResultDisplay }
|
||||
| { type: 'task'; data: AgentResultDisplay }
|
||||
| { type: 'ansi'; data: AnsiOutput };
|
||||
|
||||
/**
|
||||
|
|
@ -98,7 +98,7 @@ const useResultDisplayRenderer = (
|
|||
) {
|
||||
return {
|
||||
type: 'task',
|
||||
data: resultDisplay as TaskResultDisplay,
|
||||
data: resultDisplay as AgentResultDisplay,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -169,7 +169,7 @@ const PlanResultRenderer: React.FC<{
|
|||
* Component to render subagent execution results
|
||||
*/
|
||||
const SubagentExecutionRenderer: React.FC<{
|
||||
data: TaskResultDisplay;
|
||||
data: AgentResultDisplay;
|
||||
availableHeight?: number;
|
||||
childWidth: number;
|
||||
config: Config;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue