MCPcopy Create free account
hub / github.com/InfinitiBit/graphbit / clear_tools

Function clear_tools

python/src/tools/decorator.rs:263–274  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261/// Clear all registered tools
262#[pyfunction]
263pub(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}

Calls 1

get_global_registryFunction · 0.85