Unify subrecipe and subagent execution through shared recipe pipeline (#5082)

This commit is contained in:
tlongwell-block
2025-11-06 19:02:03 -05:00
committed by GitHub
parent 3bf769edfe
commit 20ba2fdb7e
22 changed files with 261 additions and 616 deletions
@@ -166,7 +166,6 @@ mod tests {
available_tools: Vec::new(),
},
]),
context: None,
settings: None,
activities: None,
author: None,
@@ -210,7 +209,6 @@ mod tests {
instructions: Some("Test instructions".to_string()),
prompt: None,
extensions: None,
context: None,
settings: None,
activities: None,
author: None,
@@ -255,7 +253,6 @@ mod tests {
available_tools: Vec::new(),
},
]),
context: None,
settings: None,
activities: None,
author: None,
@@ -309,7 +306,6 @@ mod tests {
sequential_when_repeated: false,
description: None,
}]),
context: None,
settings: None,
activities: None,
author: None,
+7 -7
View File
@@ -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,