MCPcopy Create free account
hub / github.com/AI45Lab/Code / unregister

Method unregister

core/src/subagent.rs:635–638  ·  view source on GitHub ↗

Unregister an agent by name Returns true if the agent was removed, false if not found.

(&self, name: &str)

Source from the content-addressed store, hash-verified

633 ///
634 /// Returns true if the agent was removed, false if not found.
635 pub fn unregister(&self, name: &str) -> bool {
636 let mut agents = write_or_recover(&self.agents);
637 agents.remove(name).is_some()
638 }
639
640 /// Get an agent definition by name
641 pub fn get(&self, name: &str) -> Option<AgentDefinition> {

Callers

nothing calls this directly

Calls 2

write_or_recoverFunction · 0.85
removeMethod · 0.80

Tested by

no test coverage detected