Skip to main content

load_all_agents

Function load_all_agents 

Source
pub fn load_all_agents(dir: &Path) -> Vec<AgentConfig>
Expand description

Load all agent configs from the given directory, skipping parse errors.

Why: Startup needs a map of all available agents; individual parse errors should not crash the whole harness. What: Calls discover_agents, then AgentConfig::load on each; returns successfully parsed configs only. Failures are logged at WARN level. Test: load_all_agents_skips_invalid.