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)
| 415 | /// assert!(!names.is_empty()); |
| 416 | /// ``` |
| 417 | pub fn list(&self) -> Vec<&str> { |
| 418 | let mut names: Vec<&str> = self.agents.iter().map(|a| a.name()).collect(); |
| 419 | names.sort_unstable(); |
| 420 | names |
| 421 | } |
| 422 | |
| 423 | /// Returns the number of registered agents. |
| 424 | pub fn count(&self) -> usize { |