Unify subrecipe and subagent execution through shared recipe pipeline (#5082)
This commit is contained in:
@@ -283,13 +283,13 @@ pub async fn build_session(session_config: SessionBuilderConfig) -> CliSession {
|
||||
// Create the agent
|
||||
let agent: Agent = Agent::new();
|
||||
|
||||
if let Some(sub_recipes) = session_config.sub_recipes {
|
||||
agent.add_sub_recipes(sub_recipes).await;
|
||||
}
|
||||
|
||||
if let Some(final_output_response) = session_config.final_output_response {
|
||||
agent.add_final_output_tool(final_output_response).await;
|
||||
}
|
||||
agent
|
||||
.apply_recipe_components(
|
||||
session_config.sub_recipes,
|
||||
session_config.final_output_response,
|
||||
true,
|
||||
)
|
||||
.await;
|
||||
|
||||
let new_provider = match create(&provider_name, model_config).await {
|
||||
Ok(provider) => provider,
|
||||
|
||||
Reference in New Issue
Block a user