This commit is contained in:
Matthew Zeng
2026-03-16 23:20:14 -07:00
parent 1b7d84e6ca
commit 27217b4c91
2 changed files with 3 additions and 10 deletions

View File

@@ -186,14 +186,7 @@ fn build_tool_suggestion_elicitation_request(
) -> McpServerElicitationRequestParams {
let tool_name = tool.name().to_string();
let install_url = tool.install_url().map(ToString::to_string);
let message = match install_url.as_deref() {
Some(_) => format!(
"{tool_name} could help with this request.\n\n{suggest_reason}\n\nOpen ChatGPT to install it, then confirm here if you finish."
),
None => format!(
"{tool_name} could help with this request.\n\n{suggest_reason}\n\nInstall it here to continue."
),
};
let message = suggest_reason.to_string();
McpServerElicitationRequestParams {
thread_id,

View File

@@ -156,7 +156,7 @@ fn build_tool_suggestion_elicitation_request_uses_expected_shape() {
"https://chatgpt.com/apps/google-calendar/connector_2128aebfecb84f64a069897515042a44"
),
})),
message: "Google Calendar could help with this request.\n\nPlan and reference events from your calendar\n\nOpen ChatGPT to install it, then confirm here if you finish.".to_string(),
message: "Plan and reference events from your calendar".to_string(),
requested_schema: McpElicitationSchema {
schema_uri: None,
type_: McpElicitationObjectType::Object,
@@ -209,7 +209,7 @@ fn build_tool_suggestion_elicitation_request_for_plugin_omits_install_url() {
tool_name: "Sample Plugin",
install_url: None,
})),
message: "Sample Plugin could help with this request.\n\nUse the sample plugin's skills and MCP server\n\nInstall it here to continue.".to_string(),
message: "Use the sample plugin's skills and MCP server".to_string(),
requested_schema: McpElicitationSchema {
schema_uri: None,
type_: McpElicitationObjectType::Object,