MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / list

Method list

atomic-agent/src/hooks/mod.rs:359–363  ·  view source on GitHub ↗

Returns a list of all registered agent names, sorted alphabetically. # Example ```rust use atomic_agent::hooks::AgentRegistry; let registry = AgentRegistry::with_defaults(); let names = registry.list(); assert!(!names.is_empty()); ```

(&self)

Source from the content-addressed store, hash-verified

357 /// assert!(!names.is_empty());
358 /// ```
359 pub fn list(&self) -> Vec<&str> {
360 let mut names: Vec<&str> = self.agents.iter().map(|a| a.name()).collect();
361 names.sort_unstable();
362 names
363 }
364
365 /// Returns the number of registered agents.
366 pub fn count(&self) -> usize {

Callers 4

requireMethod · 0.45
fmtMethod · 0.45

Calls 2

iterMethod · 0.45
nameMethod · 0.45