()
| 261 | /// Clear all registered tools |
| 262 | #[pyfunction] |
| 263 | pub(crate) fn clear_tools() -> PyResult<()> { |
| 264 | let registry = get_global_registry(); |
| 265 | let _registry_guard = registry.lock().map_err(|e| { |
| 266 | PyErr::new::<pyo3::exceptions::PyRuntimeError, _>(format!( |
| 267 | "Failed to acquire registry lock: {}", |
| 268 | e |
| 269 | )) |
| 270 | })?; |
| 271 | |
| 272 | // Clear would need to be implemented in ToolRegistry |
| 273 | Ok(()) |
| 274 | } |