fix: apply subrecipes when using slash commands (#6460)
This commit is contained in:
@@ -358,6 +358,9 @@ impl Agent {
|
|||||||
Err(e) => return Err(anyhow!("Failed to build recipe: {}", e)),
|
Err(e) => return Err(anyhow!("Failed to build recipe: {}", e)),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
self.apply_recipe_components(recipe.sub_recipes.clone(), recipe.response.clone(), true)
|
||||||
|
.await;
|
||||||
|
|
||||||
let prompt = [recipe.instructions.as_deref(), recipe.prompt.as_deref()]
|
let prompt = [recipe.instructions.as_deref(), recipe.prompt.as_deref()]
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.flatten()
|
.flatten()
|
||||||
|
|||||||
Reference in New Issue
Block a user