(name string, isRootChat bool)
| 6533 | } |
| 6534 | |
| 6535 | func builtinPlanToolAllowed(name string, isRootChat bool) bool { |
| 6536 | switch name { |
| 6537 | case "read_file", "execute", "process_output", "read_skill", "read_skill_file": |
| 6538 | return true |
| 6539 | case "write_file", "edit_files", "list_templates", "read_template", |
| 6540 | "create_workspace", "start_workspace", "stop_workspace", "propose_plan", "spawn_agent", |
| 6541 | "spawn_explore_agent", "wait_agent", "ask_user_question", "attach_file": |
| 6542 | return isRootChat |
| 6543 | case "process_list", "process_signal", "message_agent", "close_agent", |
| 6544 | "spawn_computer_use_agent": |
| 6545 | return false |
| 6546 | default: |
| 6547 | return false |
| 6548 | } |
| 6549 | } |
| 6550 | |
| 6551 | func toolAllowedForTurn( |
| 6552 | tool fantasy.AgentTool, |
no outgoing calls
no test coverage detected