fix: Agent delegation tools were not being passed into the {{__tools__}} placeholder so agents weren't delegating to subagents
This commit is contained in:
+2
-1
@@ -140,7 +140,6 @@ impl Agent {
|
||||
}
|
||||
|
||||
config.write().mcp_registry = Some(new_mcp_registry);
|
||||
agent_config.replace_tools_placeholder(&functions);
|
||||
|
||||
agent_config.load_envs(&config.read());
|
||||
|
||||
@@ -212,6 +211,8 @@ impl Agent {
|
||||
functions.append_supervisor_functions();
|
||||
}
|
||||
|
||||
agent_config.replace_tools_placeholder(&functions);
|
||||
|
||||
Ok(Self {
|
||||
name: name.to_string(),
|
||||
config: agent_config,
|
||||
|
||||
Reference in New Issue
Block a user