(name: &str)
| 2202 | } |
| 2203 | |
| 2204 | fn map_tool_name(name: &str) -> Option<ToolName> { |
| 2205 | match name { |
| 2206 | "read_file" => Some(ToolName::ReadFile), |
| 2207 | "write_file" => Some(ToolName::WriteFile), |
| 2208 | "patch_file" => Some(ToolName::PatchFile), |
| 2209 | "list_dir" => Some(ToolName::ListDir), |
| 2210 | "search_files" => Some(ToolName::SearchFiles), |
| 2211 | "run_command" => Some(ToolName::RunCommand), |
| 2212 | "web_search" => Some(ToolName::WebSearch), |
| 2213 | _ => None, |
| 2214 | } |
| 2215 | } |
| 2216 | |
| 2217 | #[derive(Debug, Clone)] |
| 2218 | struct SubagentTask { |