Get list of registered tool names
(&self)
| 187 | |
| 188 | /// Get list of registered tool names |
| 189 | pub fn list_tools(&self) -> PyResult<Vec<String>> { |
| 190 | let tools = self.tools.read().map_err(|e| { |
| 191 | PyErr::new::<pyo3::exceptions::PyRuntimeError, _>(format!( |
| 192 | "Failed to acquire tools lock: {}", |
| 193 | e |
| 194 | )) |
| 195 | })?; |
| 196 | Ok(tools.keys().cloned().collect()) |
| 197 | } |
| 198 | |
| 199 | /// Get tool metadata |
| 200 | pub fn get_tool_metadata(&self, name: &str) -> PyResult<Option<String>> { |
no outgoing calls