mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
Reuse McpToolOutput in McpHandler (#14229)
We already have a type to represent the MCP tool output, reuse it instead of the custom McpHandlerOutput
This commit is contained in:
committed by
Michael Bolin
parent
52a7f4b68b
commit
c4d35084f5
@@ -124,7 +124,9 @@ impl ToolCallRuntime {
|
||||
},
|
||||
ToolPayload::Mcp { .. } => ResponseInputItem::McpToolCallOutput {
|
||||
call_id: call.call_id.clone(),
|
||||
result: Err(Self::abort_message(call, secs)),
|
||||
output: codex_protocol::models::McpToolOutput::from_error_text(
|
||||
Self::abort_message(call, secs),
|
||||
),
|
||||
},
|
||||
_ => ResponseInputItem::FunctionCallOutput {
|
||||
call_id: call.call_id.clone(),
|
||||
|
||||
Reference in New Issue
Block a user