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