pub fn agents_from_config(
config: &AgentConfig,
) -> Result<Vec<(String, Arc<dyn Agent>)>, ConfigError>Expand description
Construct multiple agents from a config with agent instances.
If config.agent.instances is empty, returns a single agent from
agent_from_config with the name "default".
Otherwise, builds one agent per instance, resolving agent_profile refs
against config.agent.profile.instances. Each instance can override:
agent_profile— reference to a named profile instancesystem_prompt— override the system promptprofile— inline profile overrides