(config: &CodeConfig)
| 81 | } |
| 82 | |
| 83 | fn base_agent_config(config: &CodeConfig) -> AgentConfig { |
| 84 | let mut auto_delegation = config.auto_delegation.clone(); |
| 85 | if let Some(auto_parallel) = config.auto_parallel { |
| 86 | auto_delegation.auto_parallel = auto_parallel; |
| 87 | } |
| 88 | |
| 89 | AgentConfig { |
| 90 | max_tool_rounds: config |
| 91 | .max_tool_rounds |
| 92 | .unwrap_or(AgentConfig::default().max_tool_rounds), |
| 93 | max_parallel_tasks: config |
| 94 | .max_parallel_tasks |
| 95 | .unwrap_or(AgentConfig::default().max_parallel_tasks) |
| 96 | .max(1), |
| 97 | auto_delegation, |
| 98 | ..AgentConfig::default() |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | fn install_global_skill_registry(agent_config: &mut AgentConfig, config: &CodeConfig) { |
| 103 | let registry = Arc::new(crate::skills::SkillRegistry::with_builtins()); |
no test coverage detected