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

Function get_global_registry

python/src/tools/decorator.rs:15–19  ·  view source on GitHub ↗

Get or create the global tool registry

()

Source from the content-addressed store, hash-verified

13
14/// Get or create the global tool registry
15pub(crate) fn get_global_registry() -> Arc<Mutex<ToolRegistry>> {
16 GLOBAL_REGISTRY
17 .get_or_init(|| Arc::new(Mutex::new(ToolRegistry::new())))
18 .clone()
19}
20
21/// Tool decorator for converting Python functions to executable tools
22#[pyclass]

Callers 6

newMethod · 0.85
clear_toolsFunction · 0.85
new_global_proxyMethod · 0.85
agentMethod · 0.85

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected