(names: &[&str])
| 167 | use serde_json::json; |
| 168 | |
| 169 | fn defs(names: &[&str]) -> Vec<ToolDefinition> { |
| 170 | names |
| 171 | .iter() |
| 172 | .map(|name| ToolDefinition { |
| 173 | name: (*name).to_string(), |
| 174 | description: format!("{name} tool"), |
| 175 | parameters: json!({"type": "object"}), |
| 176 | }) |
| 177 | .collect() |
| 178 | } |
| 179 | |
| 180 | #[test] |
| 181 | fn default_turn_keeps_core_and_hides_special_tools() { |
no outgoing calls