mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
update
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user