feat: GUI can use structured output present in recipes (#3218)
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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.";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user