()
| 459 | |
| 460 | impl AgentRegistry { |
| 461 | pub fn new() -> Self { |
| 462 | let mut agents = HashMap::new(); |
| 463 | for builtin in BuiltinAgent::all() { |
| 464 | let agent = AgentInfo::from_builtin(builtin); |
| 465 | agents.insert(builtin.as_str().to_string(), agent); |
| 466 | } |
| 467 | // Legacy hidden agent kept for backward compatibility with older task flows. |
| 468 | agents.insert("summary".to_string(), AgentInfo::summary()); |
| 469 | Self { agents } |
| 470 | } |
| 471 | |
| 472 | pub fn from_config(config: &LoadedConfig) -> Self { |
| 473 | let mut registry = Self::new(); |