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)
| 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 { |