Get all tool definitions for LLM
(&self)
| 117 | |
| 118 | /// Get all tool definitions for LLM |
| 119 | pub fn definitions(&self) -> Vec<ToolDefinition> { |
| 120 | let tools = self.tools.read().unwrap(); |
| 121 | tools |
| 122 | .values() |
| 123 | .map(|tool| ToolDefinition { |
| 124 | name: tool.name().to_string(), |
| 125 | description: tool.description().to_string(), |
| 126 | parameters: tool.parameters(), |
| 127 | }) |
| 128 | .collect() |
| 129 | } |
| 130 | |
| 131 | /// List all registered tool names |
| 132 | pub fn list(&self) -> Vec<String> { |