|
42 | 42 | TodoWriteTool, |
43 | 43 | TodoReadTool, |
44 | 44 | SkillTool, |
45 | | - TaskStatusTool, |
| 45 | + TaskGetTool, |
46 | 46 | TaskOutputTool, |
47 | 47 | TaskListTool, |
48 | | - TaskCancelTool, |
| 48 | + TaskStopTool, |
49 | 49 | TOOL_MAPPING, |
50 | 50 | ) |
51 | 51 |
|
@@ -264,8 +264,8 @@ class MinionCodeAgent(CodeAgent): |
264 | 264 | "- Use specialized tools instead of bash commands when possible. For file operations, use dedicated tools:\n" |
265 | 265 | " file_read for reading files instead of cat/head/tail, file_edit for editing instead of sed/awk,\n" |
266 | 266 | " and file_write for creating files instead of cat with heredoc or echo redirection.\n" |
267 | | - "- Long-running `bash` and `Task` calls may return a background `task_id` instead of a final result.\n" |
268 | | - " Use `TaskStatus`, `TaskOutput`, `TaskList`, and `TaskCancel` to manage these jobs.\n" |
| 267 | + "- Long-running `bash` and `TaskCreate` calls may return a background `task_id` instead of a final result.\n" |
| 268 | + " Use `TaskGet`, `TaskOutput`, `TaskList`, and `TaskStop` to manage these jobs.\n" |
269 | 269 | "- Reserve bash tools exclusively for actual system commands and terminal operations that require shell execution.\n" |
270 | 270 | "- NEVER use bash echo or other command-line tools to communicate thoughts, explanations, or instructions to the user.\n" |
271 | 271 | " Output all communication directly in your response text instead.\n" |
@@ -446,20 +446,20 @@ async def create( |
446 | 446 | TodoWriteTool(), |
447 | 447 | TodoReadTool(), |
448 | 448 | SkillTool(), |
449 | | - TaskStatusTool(workdir=workdir_str), |
| 449 | + TaskGetTool(workdir=workdir_str), |
450 | 450 | TaskOutputTool(workdir=workdir_str), |
451 | 451 | TaskListTool(workdir=workdir_str), |
452 | | - TaskCancelTool(workdir=workdir_str), |
| 452 | + TaskStopTool(workdir=workdir_str), |
453 | 453 | # Web tools from minion |
454 | 454 | WebFetchTool(), |
455 | 455 | WebSearchTool(), |
456 | 456 | ] |
457 | 457 |
|
458 | | - # Add TaskTool if available (avoid circular import) |
| 458 | + # Add TaskCreateTool if available (avoid circular import) |
459 | 459 | try: |
460 | | - from ..tools.task_tool import TaskTool |
| 460 | + from ..tools.task_tool import TaskCreateTool |
461 | 461 |
|
462 | | - minion_tools.append(TaskTool(workdir=str(workdir))) |
| 462 | + minion_tools.append(TaskCreateTool(workdir=str(workdir))) |
463 | 463 | except ImportError: |
464 | 464 | pass |
465 | 465 |
|
|
0 commit comments