mirror of
https://github.com/openai/codex.git
synced 2026-11-18 23:02:23 +00:00
Update rmcp to 1.7.0 (#24763)
WIll make it easier to uprev when the new draft spec is supported. Also updates reqwest where needed for compatibility but doesn't update it everywhere since this is already a large diff. The new version of rmcp handles certain kinds of authentication failures differently, this patch includes support for identifying the failing scope in a WWW-Authenticate header.
This commit is contained in:
1 parent
c57dee98b7
commit
910578792f
50 files changed
+982
-649
No files matched your search
@@ -116,20 +116,13 @@ pub(crate) fn create_tool_for_codex_tool_call_param() -> Tool {
|
||||
|
||||
let input_schema = create_tool_input_schema(schema, "Codex tool schema should serialize");
|
||||
|
||||
Tool {
|
||||
name: "codex".into(),
|
||||
title: Some("Codex".to_string()),
|
||||
Tool::new(
|
||||
"codex",
|
||||
"Run a Codex session. Accepts configuration parameters matching the Codex Config struct.",
|
||||
input_schema,
|
||||
output_schema: Some(codex_tool_output_schema()),
|
||||
description: Some(
|
||||
"Run a Codex session. Accepts configuration parameters matching the Codex Config struct."
|
||||
.into(),
|
||||
),
|
||||
annotations: None,
|
||||
execution: None,
|
||||
icons: None,
|
||||
meta: None,
|
||||
}
|
||||
)
|
||||
.with_title("Codex")
|
||||
.with_raw_output_schema(codex_tool_output_schema())
|
||||
}
|
||||
|
||||
fn codex_tool_output_schema() -> Arc<JsonObject> {
|
||||
@@ -242,19 +235,13 @@ pub(crate) fn create_tool_for_codex_tool_call_reply_param() -> Tool {
|
||||
|
||||
let input_schema = create_tool_input_schema(schema, "Codex reply tool schema should serialize");
|
||||
|
||||
Tool {
|
||||
name: "codex-reply".into(),
|
||||
title: Some("Codex Reply".to_string()),
|
||||
Tool::new(
|
||||
"codex-reply",
|
||||
"Continue a Codex conversation by providing the thread id and prompt.",
|
||||
input_schema,
|
||||
output_schema: Some(codex_tool_output_schema()),
|
||||
description: Some(
|
||||
"Continue a Codex conversation by providing the thread id and prompt.".into(),
|
||||
),
|
||||
annotations: None,
|
||||
execution: None,
|
||||
icons: None,
|
||||
meta: None,
|
||||
}
|
||||
)
|
||||
.with_title("Codex Reply")
|
||||
.with_raw_output_schema(codex_tool_output_schema())
|
||||
}
|
||||
|
||||
fn create_tool_input_schema(
|
||||
|
||||
Reference in new issue
Block a user