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

Method list

atomic-agent/src/hooks/mod.rs:362–366  ·  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

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

Callers 4

requireMethod · 0.45
fmtMethod · 0.45

Calls 2

iterMethod · 0.45
nameMethod · 0.45