MCPcopy Index your code
hub / github.com/InfinitiBit/graphbit / get_tool_info

Method get_tool_info

python/src/tools/decorator.rs:143–152  ·  view source on GitHub ↗

Get tool metadata

(&self, name: &str)

Source from the content-addressed store, hash-verified

141
142 /// Get tool metadata
143 pub fn get_tool_info(&self, name: &str) -> PyResult<Option<String>> {
144 let registry_guard = self.registry.lock().map_err(|e| {
145 PyErr::new::<pyo3::exceptions::PyRuntimeError, _>(format!(
146 "Failed to acquire registry lock: {}",
147 e
148 ))
149 })?;
150
151 registry_guard.get_tool_metadata(name)
152 }
153
154 /// String representation
155 pub fn __repr__(&self) -> String {

Callers

nothing calls this directly

Calls 1

get_tool_metadataMethod · 0.80

Tested by

no test coverage detected