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)
| 392 | /// assert!(!names.is_empty()); |
| 393 | /// ``` |
| 394 | pub fn list(&self) -> Vec<&str> { |
| 395 | let mut names: Vec<&str> = self.agents.iter().map(|a| a.name()).collect(); |
| 396 | names.sort_unstable(); |
| 397 | names |
| 398 | } |
| 399 | |
| 400 | /// Returns the number of registered agents. |
| 401 | pub fn count(&self) -> usize { |