feat: Implemented initial scaffolding for built-in sub-agent spawning tool call operations

This commit is contained in:
2026-02-17 11:48:31 -07:00
parent af933bbb29
commit 44c03ccf4f
5 changed files with 598 additions and 0 deletions
+16
View File
@@ -208,6 +208,10 @@ impl Agent {
functions.append_todo_functions();
}
if agent_config.can_spawn_agents {
functions.append_supervisor_functions();
}
Ok(Self {
name: name.to_string(),
config: agent_config,
@@ -412,6 +416,18 @@ impl Agent {
self.config.max_auto_continues
}
pub fn can_spawn_agents(&self) -> bool {
self.config.can_spawn_agents
}
pub fn max_concurrent_agents(&self) -> usize {
self.config.max_concurrent_agents
}
pub fn max_agent_depth(&self) -> usize {
self.config.max_agent_depth
}
pub fn continuation_count(&self) -> usize {
self.continuation_count
}