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

Method list

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

328 /// assert!(!names.is_empty());
329 /// ```
330 pub fn list(&self) -> Vec<&str> {
331 let mut names: Vec<&str> = self.agents.iter().map(|a| a.name()).collect();
332 names.sort_unstable();
333 names
334 }
335
336 /// Returns the number of registered agents.
337 pub fn count(&self) -> usize {

Callers 4

requireMethod · 0.45
fmtMethod · 0.45

Calls 2

iterMethod · 0.45
nameMethod · 0.45