MCPcopy Create free account
hub / github.com/AI45Lab/Code / base_agent_config

Function base_agent_config

core/src/agent_api/agent_bootstrap.rs:83–100  ·  view source on GitHub ↗
(config: &CodeConfig)

Source from the content-addressed store, hash-verified

81}
82
83fn 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
102fn install_global_skill_registry(agent_config: &mut AgentConfig, config: &CodeConfig) {
103 let registry = Arc::new(crate::skills::SkillRegistry::with_builtins());

Callers 1

build_agent_from_configFunction · 0.85

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected