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

Function unregister_python_instance

core/src/llm/providers.rs:46–52  ·  view source on GitHub ↗
(id: &str)

Source from the content-addressed store, hash-verified

44/// This should be called when the `LlmConfig` is no longer needed to free resources.
45#[cfg(feature = "python")]
46pub fn unregister_python_instance(id: &str) -> bool {
47 if let Ok(mut registry) = PYTHON_INSTANCE_REGISTRY.lock() {
48 registry.remove(id).is_some()
49 } else {
50 false
51 }
52}
53
54/// Configuration for different LLM providers
55#[derive(Debug, Clone, Serialize, Deserialize)]

Callers 1

cleanupMethod · 0.85

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected