feat: GUI can use structured output present in recipes (#3218)

This commit is contained in:
Jarrod Sibbison
2025-07-03 10:40:29 +10:00
committed by GitHub
parent 49d98e061c
commit cf818ada89
5 changed files with 73 additions and 2 deletions
+3 -1
View File
@@ -1321,7 +1321,9 @@ mod tests {
agent.add_final_output_tool(response).await;
let tools = agent.list_tools(None).await;
let final_output_tool = tools.iter().find(|tool| tool.name == "final_output");
let final_output_tool = tools
.iter()
.find(|tool| tool.name == FINAL_OUTPUT_TOOL_NAME);
assert!(
final_output_tool.is_some(),
+1 -1
View File
@@ -7,7 +7,7 @@ use mcp_core::{
};
use serde_json::Value;
pub const FINAL_OUTPUT_TOOL_NAME: &str = "final_output";
pub const FINAL_OUTPUT_TOOL_NAME: &str = "recipe__final_output";
pub const FINAL_OUTPUT_CONTINUATION_MESSAGE: &str =
"You MUST call the `final_output` tool with your final output for the user.";