This function assumes the relevant transformation to the tool names have been done: - model tool name -> host tool name - custom tool namespacing
(&mut self, tool_names: &[String])
| 462 | /// - model tool name -> host tool name |
| 463 | /// - custom tool namespacing |
| 464 | pub fn untrust_tools(&mut self, tool_names: &[String]) { |
| 465 | if let Some(agent) = self.get_active_mut() { |
| 466 | agent.allowed_tools.retain(|t| !tool_names.contains(t)); |
| 467 | } |
| 468 | } |
| 469 | |
| 470 | pub fn get_active(&self) -> Option<&Agent> { |
| 471 | self.agents.get(&self.active_idx) |