diff --git a/en/resources/responses/streaming-events.md b/en/resources/responses/streaming-events.md index b97eae29..cc48d4d5 100644 --- a/en/resources/responses/streaming-events.md +++ b/en/resources/responses/streaming-events.md @@ -10847,7 +10847,7 @@ Schema name: `ResponseCreatedEvent` "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content", "deprecated": false, "key": "encrypted_content", - "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n", + "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n\nWhen streaming, use the completed reasoning item and its\n`encrypted_content` from the `response.output_item.done` event in\nsubsequent requests. The `encrypted_content` in\n`response.output_item.added` may be incomplete. This is especially\nimportant when `store` is `false` or when using Zero Data Retention.\n", "type": { "kind": "HttpTypeString" }, @@ -13503,12 +13503,63 @@ Schema name: `ResponseCreatedEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolCall/properties/error", + "types": [ + { "kind": "HttpTypeString" }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + } + ] + }, "optional": true, "nullable": true, - "schemaType": "string", - "children": [] + "schemaType": "union", + "childrenParentSchema": "union", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 0", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3" + ] }, "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": { "kind": "HttpDeclProperty", @@ -19395,7 +19446,7 @@ Schema name: `ResponseCreatedEvent` "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content", "deprecated": false, "key": "encrypted_content", - "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n", + "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n\nWhen streaming, use the completed reasoning item and its\n`encrypted_content` from the `response.output_item.done` event in\nsubsequent requests. The `encrypted_content` in\n`response.output_item.added` may be incomplete. This is especially\nimportant when `store` is `false` or when using Zero Data Retention.\n", "type": { "kind": "HttpTypeString" }, @@ -21036,12 +21087,63 @@ Schema name: `ResponseCreatedEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolCall/properties/error", + "types": [ + { "kind": "HttpTypeString" }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + } + ] + }, "optional": true, "nullable": true, - "schemaType": "string", - "children": [] + "schemaType": "union", + "childrenParentSchema": "union", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 0", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3" + ] }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) output": { "kind": "HttpDeclProperty", @@ -25110,6 +25212,87 @@ Schema name: `ResponseCreatedEvent` "literal": "mcp_call" } }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) code", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) message", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) content", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) code", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) message", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -30629,6 +30812,87 @@ Schema name: `ResponseCreatedEvent` "literal": "mcp_call" } }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) code", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) message", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) content", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) code", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) message", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -36661,6 +36925,143 @@ Schema name: `ResponseCreatedEvent` "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + ] + }, + "default": "mcp_tool_execution_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type", @@ -43475,6 +43876,143 @@ Schema name: `ResponseCreatedEvent` "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + ] + }, + "default": "mcp_tool_execution_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 26 > (property) output > (variant) 1 > (items) > (variant) 0": { "kind": "HttpDeclReference", "type": { @@ -46510,6 +47048,27 @@ Schema name: `ResponseCreatedEvent` "literal": "program" } }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -49813,6 +50372,27 @@ Schema name: `ResponseCreatedEvent` "literal": "program" } }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -64661,7 +65241,7 @@ Schema name: `ResponseInProgressEvent` "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content", "deprecated": false, "key": "encrypted_content", - "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n", + "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n\nWhen streaming, use the completed reasoning item and its\n`encrypted_content` from the `response.output_item.done` event in\nsubsequent requests. The `encrypted_content` in\n`response.output_item.added` may be incomplete. This is especially\nimportant when `store` is `false` or when using Zero Data Retention.\n", "type": { "kind": "HttpTypeString" }, @@ -67317,12 +67897,63 @@ Schema name: `ResponseInProgressEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolCall/properties/error", + "types": [ + { "kind": "HttpTypeString" }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + } + ] + }, "optional": true, "nullable": true, - "schemaType": "string", - "children": [] + "schemaType": "union", + "childrenParentSchema": "union", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 0", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3" + ] }, "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": { "kind": "HttpDeclProperty", @@ -73209,7 +73840,7 @@ Schema name: `ResponseInProgressEvent` "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content", "deprecated": false, "key": "encrypted_content", - "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n", + "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n\nWhen streaming, use the completed reasoning item and its\n`encrypted_content` from the `response.output_item.done` event in\nsubsequent requests. The `encrypted_content` in\n`response.output_item.added` may be incomplete. This is especially\nimportant when `store` is `false` or when using Zero Data Retention.\n", "type": { "kind": "HttpTypeString" }, @@ -74850,12 +75481,63 @@ Schema name: `ResponseInProgressEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolCall/properties/error", + "types": [ + { "kind": "HttpTypeString" }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + } + ] + }, "optional": true, "nullable": true, - "schemaType": "string", - "children": [] + "schemaType": "union", + "childrenParentSchema": "union", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 0", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3" + ] }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) output": { "kind": "HttpDeclProperty", @@ -78924,6 +79606,87 @@ Schema name: `ResponseInProgressEvent` "literal": "mcp_call" } }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) code", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) message", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) content", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) code", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) message", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -84443,6 +85206,87 @@ Schema name: `ResponseInProgressEvent` "literal": "mcp_call" } }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) code", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) message", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) content", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) code", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) message", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -90475,6 +91319,143 @@ Schema name: `ResponseInProgressEvent` "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + ] + }, + "default": "mcp_tool_execution_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type", @@ -97289,6 +98270,143 @@ Schema name: `ResponseInProgressEvent` "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + ] + }, + "default": "mcp_tool_execution_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 26 > (property) output > (variant) 1 > (items) > (variant) 0": { "kind": "HttpDeclReference", "type": { @@ -100324,6 +101442,27 @@ Schema name: `ResponseInProgressEvent` "literal": "program" } }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -103627,6 +104766,27 @@ Schema name: `ResponseInProgressEvent` "literal": "program" } }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -118475,7 +119635,7 @@ Schema name: `ResponseCompletedEvent` "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content", "deprecated": false, "key": "encrypted_content", - "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n", + "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n\nWhen streaming, use the completed reasoning item and its\n`encrypted_content` from the `response.output_item.done` event in\nsubsequent requests. The `encrypted_content` in\n`response.output_item.added` may be incomplete. This is especially\nimportant when `store` is `false` or when using Zero Data Retention.\n", "type": { "kind": "HttpTypeString" }, @@ -121131,12 +122291,63 @@ Schema name: `ResponseCompletedEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolCall/properties/error", + "types": [ + { "kind": "HttpTypeString" }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + } + ] + }, "optional": true, "nullable": true, - "schemaType": "string", - "children": [] + "schemaType": "union", + "childrenParentSchema": "union", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 0", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3" + ] }, "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": { "kind": "HttpDeclProperty", @@ -127023,7 +128234,7 @@ Schema name: `ResponseCompletedEvent` "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content", "deprecated": false, "key": "encrypted_content", - "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n", + "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n\nWhen streaming, use the completed reasoning item and its\n`encrypted_content` from the `response.output_item.done` event in\nsubsequent requests. The `encrypted_content` in\n`response.output_item.added` may be incomplete. This is especially\nimportant when `store` is `false` or when using Zero Data Retention.\n", "type": { "kind": "HttpTypeString" }, @@ -128664,12 +129875,63 @@ Schema name: `ResponseCompletedEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolCall/properties/error", + "types": [ + { "kind": "HttpTypeString" }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + } + ] + }, "optional": true, "nullable": true, - "schemaType": "string", - "children": [] + "schemaType": "union", + "childrenParentSchema": "union", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 0", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3" + ] }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) output": { "kind": "HttpDeclProperty", @@ -132738,6 +134000,87 @@ Schema name: `ResponseCompletedEvent` "literal": "mcp_call" } }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) code", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) message", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) content", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) code", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) message", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -138257,6 +139600,87 @@ Schema name: `ResponseCompletedEvent` "literal": "mcp_call" } }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) code", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) message", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) content", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) code", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) message", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -144289,6 +145713,143 @@ Schema name: `ResponseCompletedEvent` "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + ] + }, + "default": "mcp_tool_execution_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type", @@ -151103,6 +152664,143 @@ Schema name: `ResponseCompletedEvent` "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + ] + }, + "default": "mcp_tool_execution_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 26 > (property) output > (variant) 1 > (items) > (variant) 0": { "kind": "HttpDeclReference", "type": { @@ -154138,6 +155836,27 @@ Schema name: `ResponseCompletedEvent` "literal": "program" } }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -157441,6 +159160,27 @@ Schema name: `ResponseCompletedEvent` "literal": "program" } }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -172306,7 +174046,7 @@ Schema name: `ResponseFailedEvent` "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content", "deprecated": false, "key": "encrypted_content", - "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n", + "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n\nWhen streaming, use the completed reasoning item and its\n`encrypted_content` from the `response.output_item.done` event in\nsubsequent requests. The `encrypted_content` in\n`response.output_item.added` may be incomplete. This is especially\nimportant when `store` is `false` or when using Zero Data Retention.\n", "type": { "kind": "HttpTypeString" }, @@ -174962,12 +176702,63 @@ Schema name: `ResponseFailedEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolCall/properties/error", + "types": [ + { "kind": "HttpTypeString" }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + } + ] + }, "optional": true, "nullable": true, - "schemaType": "string", - "children": [] + "schemaType": "union", + "childrenParentSchema": "union", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 0", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3" + ] }, "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": { "kind": "HttpDeclProperty", @@ -180854,7 +182645,7 @@ Schema name: `ResponseFailedEvent` "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content", "deprecated": false, "key": "encrypted_content", - "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n", + "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n\nWhen streaming, use the completed reasoning item and its\n`encrypted_content` from the `response.output_item.done` event in\nsubsequent requests. The `encrypted_content` in\n`response.output_item.added` may be incomplete. This is especially\nimportant when `store` is `false` or when using Zero Data Retention.\n", "type": { "kind": "HttpTypeString" }, @@ -182495,12 +184286,63 @@ Schema name: `ResponseFailedEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolCall/properties/error", + "types": [ + { "kind": "HttpTypeString" }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + } + ] + }, "optional": true, "nullable": true, - "schemaType": "string", - "children": [] + "schemaType": "union", + "childrenParentSchema": "union", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 0", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3" + ] }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) output": { "kind": "HttpDeclProperty", @@ -186569,6 +188411,87 @@ Schema name: `ResponseFailedEvent` "literal": "mcp_call" } }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) code", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) message", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) content", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) code", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) message", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -192088,6 +194011,87 @@ Schema name: `ResponseFailedEvent` "literal": "mcp_call" } }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) code", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) message", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) content", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) code", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) message", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -198120,6 +200124,143 @@ Schema name: `ResponseFailedEvent` "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + ] + }, + "default": "mcp_tool_execution_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type", @@ -204934,6 +207075,143 @@ Schema name: `ResponseFailedEvent` "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + ] + }, + "default": "mcp_tool_execution_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 26 > (property) output > (variant) 1 > (items) > (variant) 0": { "kind": "HttpDeclReference", "type": { @@ -207969,6 +210247,27 @@ Schema name: `ResponseFailedEvent` "literal": "program" } }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -211272,6 +213571,27 @@ Schema name: `ResponseFailedEvent` "literal": "program" } }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -226118,7 +228438,7 @@ Schema name: `ResponseIncompleteEvent` "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content", "deprecated": false, "key": "encrypted_content", - "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n", + "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n\nWhen streaming, use the completed reasoning item and its\n`encrypted_content` from the `response.output_item.done` event in\nsubsequent requests. The `encrypted_content` in\n`response.output_item.added` may be incomplete. This is especially\nimportant when `store` is `false` or when using Zero Data Retention.\n", "type": { "kind": "HttpTypeString" }, @@ -228774,12 +231094,63 @@ Schema name: `ResponseIncompleteEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolCall/properties/error", + "types": [ + { "kind": "HttpTypeString" }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + } + ] + }, "optional": true, "nullable": true, - "schemaType": "string", - "children": [] + "schemaType": "union", + "childrenParentSchema": "union", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 0", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3" + ] }, "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": { "kind": "HttpDeclProperty", @@ -234666,7 +237037,7 @@ Schema name: `ResponseIncompleteEvent` "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content", "deprecated": false, "key": "encrypted_content", - "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n", + "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n\nWhen streaming, use the completed reasoning item and its\n`encrypted_content` from the `response.output_item.done` event in\nsubsequent requests. The `encrypted_content` in\n`response.output_item.added` may be incomplete. This is especially\nimportant when `store` is `false` or when using Zero Data Retention.\n", "type": { "kind": "HttpTypeString" }, @@ -236307,12 +238678,63 @@ Schema name: `ResponseIncompleteEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolCall/properties/error", + "types": [ + { "kind": "HttpTypeString" }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + } + ] + }, "optional": true, "nullable": true, - "schemaType": "string", - "children": [] + "schemaType": "union", + "childrenParentSchema": "union", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 0", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3" + ] }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) output": { "kind": "HttpDeclProperty", @@ -240381,6 +242803,87 @@ Schema name: `ResponseIncompleteEvent` "literal": "mcp_call" } }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) code", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) message", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) content", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) code", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) message", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -245900,6 +248403,87 @@ Schema name: `ResponseIncompleteEvent` "literal": "mcp_call" } }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) code", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) message", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) content", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) code", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) message", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -251932,6 +254516,143 @@ Schema name: `ResponseIncompleteEvent` "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + ] + }, + "default": "mcp_tool_execution_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type", @@ -258746,6 +261467,143 @@ Schema name: `ResponseIncompleteEvent` "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + ] + }, + "default": "mcp_tool_execution_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 26 > (property) output > (variant) 1 > (items) > (variant) 0": { "kind": "HttpDeclReference", "type": { @@ -261781,6 +264639,27 @@ Schema name: `ResponseIncompleteEvent` "literal": "program" } }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -265084,6 +267963,27 @@ Schema name: `ResponseIncompleteEvent` "literal": "program" } }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -269137,7 +272037,7 @@ Schema name: `ResponseOutputItemAddedEvent` "oasRef": "#/components/schemas/ResponseOutputItemAddedEvent/properties/item", "deprecated": false, "key": "item", - "docstring": "The output item that was added.\n", + "docstring": "The output item that was added. For reasoning items, `encrypted_content`\nmay be incomplete while the item is in progress. Use the reasoning item\nfrom the corresponding `response.output_item.done` event when passing it\nas input to a subsequent request.\n", "type": { "kind": "HttpTypeReference", "ident": "ResponseOutputItem", @@ -272270,7 +275170,7 @@ Schema name: `ResponseOutputItemAddedEvent` "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content", "deprecated": false, "key": "encrypted_content", - "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n", + "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n\nWhen streaming, use the completed reasoning item and its\n`encrypted_content` from the `response.output_item.done` event in\nsubsequent requests. The `encrypted_content` in\n`response.output_item.added` may be incomplete. This is especially\nimportant when `store` is `false` or when using Zero Data Retention.\n", "type": { "kind": "HttpTypeString" }, @@ -274926,12 +277826,63 @@ Schema name: `ResponseOutputItemAddedEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolCall/properties/error", + "types": [ + { "kind": "HttpTypeString" }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + } + ] + }, "optional": true, "nullable": true, - "schemaType": "string", - "children": [] + "schemaType": "union", + "childrenParentSchema": "union", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 0", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3" + ] }, "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": { "kind": "HttpDeclProperty", @@ -279056,6 +282007,87 @@ Schema name: `ResponseOutputItemAddedEvent` "literal": "mcp_call" } }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) code", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) message", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) content", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) code", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) message", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -285432,6 +288464,143 @@ Schema name: `ResponseOutputItemAddedEvent` "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + ] + }, + "default": "mcp_tool_execution_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type", @@ -288818,6 +291987,27 @@ Schema name: `ResponseOutputItemAddedEvent` "literal": "program" } }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -295394,7 +298584,7 @@ Schema name: `ResponseOutputItemDoneEvent` "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content", "deprecated": false, "key": "encrypted_content", - "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n", + "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n\nWhen streaming, use the completed reasoning item and its\n`encrypted_content` from the `response.output_item.done` event in\nsubsequent requests. The `encrypted_content` in\n`response.output_item.added` may be incomplete. This is especially\nimportant when `store` is `false` or when using Zero Data Retention.\n", "type": { "kind": "HttpTypeString" }, @@ -298050,12 +301240,63 @@ Schema name: `ResponseOutputItemDoneEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolCall/properties/error", + "types": [ + { "kind": "HttpTypeString" }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + } + ] + }, "optional": true, "nullable": true, - "schemaType": "string", - "children": [] + "schemaType": "union", + "childrenParentSchema": "union", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 0", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3" + ] }, "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": { "kind": "HttpDeclProperty", @@ -302180,6 +305421,87 @@ Schema name: `ResponseOutputItemDoneEvent` "literal": "mcp_call" } }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) code", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) message", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) content", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) code", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) message", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -308556,6 +311878,143 @@ Schema name: `ResponseOutputItemDoneEvent` "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + ] + }, + "default": "mcp_tool_execution_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type", @@ -311942,6 +315401,27 @@ Schema name: `ResponseOutputItemDoneEvent` "literal": "program" } }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -323099,14 +326579,97 @@ Schema name: `ResponseOutputTextAnnotationAddedEvent` "oasRef": "#/components/schemas/ResponseOutputTextAnnotationAddedEvent/properties/annotation", "deprecated": false, "key": "annotation", - "docstring": "The annotation object being added. (See annotation schema for details.)", + "docstring": "An annotation that applies to a span of output text.", "type": { - "kind": "HttpTypeUnknown" + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/ResponseOutputTextAnnotationAddedEvent/properties/annotation", + "types": [ + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "file_id" + }, + { + "ident": "filename" + }, + { + "ident": "index" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "end_index" + }, + { + "ident": "start_index" + }, + { + "ident": "title" + }, + { + "ident": "type" + }, + { + "ident": "url" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "container_id" + }, + { + "ident": "end_index" + }, + { + "ident": "file_id" + }, + { + "ident": "filename" + }, + { + "ident": "start_index" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "file_id" + }, + { + "ident": "index" + }, + { + "ident": "type" + } + ] + } + ] }, "optional": false, - "nullable": false, - "schemaType": "unknown", - "children": [] + "nullable": true, + "schemaType": "union", + "childrenParentSchema": "union", + "children": [ + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0", + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1", + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2", + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3" + ] }, "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation_index": { "kind": "HttpDeclProperty", @@ -323202,12 +326765,466 @@ Schema name: `ResponseOutputTextAnnotationAddedEvent` "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) type > (member) 0" ] }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/Annotation/oneOf/0", + "docstring": "A citation to a file.", + "ident": "FileCitation", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "file_id" + }, + { + "ident": "filename" + }, + { + "ident": "index" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) file_id", + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) filename", + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) index", + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) type" + ] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/Annotation/oneOf/1", + "docstring": "A citation for a web resource used to generate a model response.", + "ident": "URLCitation", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "end_index" + }, + { + "ident": "start_index" + }, + { + "ident": "title" + }, + { + "ident": "type" + }, + { + "ident": "url" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) end_index", + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) start_index", + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) title", + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) type", + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) url" + ] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/Annotation/oneOf/2", + "docstring": "A citation for a container file used to generate a model response.", + "ident": "ContainerFileCitation", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "container_id" + }, + { + "ident": "end_index" + }, + { + "ident": "file_id" + }, + { + "ident": "filename" + }, + { + "ident": "start_index" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) container_id", + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) end_index", + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) file_id", + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) filename", + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) start_index", + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) type" + ] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/Annotation/oneOf/3", + "docstring": "A path to a file.\n", + "ident": "FilePath", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "file_id" + }, + { + "ident": "index" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) file_id", + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) index", + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) type" + ] + }, "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { "kind": "HttpTypeLiteral", "literal": "response.output_text.annotation.added" } + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) file_id": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/FileCitationBody/properties/file_id", + "deprecated": false, + "key": "file_id", + "docstring": "The ID of the file.", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) filename": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/FileCitationBody/properties/filename", + "deprecated": false, + "key": "filename", + "docstring": "The filename of the file cited.", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) index": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/FileCitationBody/properties/index", + "deprecated": false, + "key": "index", + "docstring": "The index of the file in the list of files.", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/FileCitationBody/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The type of the file citation. Always `file_citation`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/FileCitationBody/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "file_citation" + } + ] + }, + "default": "file_citation", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) end_index": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/UrlCitationBody/properties/end_index", + "deprecated": false, + "key": "end_index", + "docstring": "The index of the last character of the URL citation in the message.", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) start_index": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/UrlCitationBody/properties/start_index", + "deprecated": false, + "key": "start_index", + "docstring": "The index of the first character of the URL citation in the message.", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) title": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/UrlCitationBody/properties/title", + "deprecated": false, + "key": "title", + "docstring": "The title of the web resource.", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/UrlCitationBody/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The type of the URL citation. Always `url_citation`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/UrlCitationBody/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "url_citation" + } + ] + }, + "default": "url_citation", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) url": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/UrlCitationBody/properties/url", + "deprecated": false, + "key": "url", + "docstring": "The URL of the web resource.", + "type": { + "kind": "HttpTypeString" + }, + "constraints": { + "format": "uri" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) container_id": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/ContainerFileCitationBody/properties/container_id", + "deprecated": false, + "key": "container_id", + "docstring": "The ID of the container file.", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) end_index": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/ContainerFileCitationBody/properties/end_index", + "deprecated": false, + "key": "end_index", + "docstring": "The index of the last character of the container file citation in the message.", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) file_id": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/ContainerFileCitationBody/properties/file_id", + "deprecated": false, + "key": "file_id", + "docstring": "The ID of the file.", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) filename": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/ContainerFileCitationBody/properties/filename", + "deprecated": false, + "key": "filename", + "docstring": "The filename of the container file cited.", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) start_index": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/ContainerFileCitationBody/properties/start_index", + "deprecated": false, + "key": "start_index", + "docstring": "The index of the first character of the container file citation in the message.", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/ContainerFileCitationBody/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The type of the container file citation. Always `container_file_citation`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/ContainerFileCitationBody/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "container_file_citation" + } + ] + }, + "default": "container_file_citation", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) file_id": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/FilePath/properties/file_id", + "deprecated": false, + "key": "file_id", + "docstring": "The ID of the file.\n", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) index": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/FilePath/properties/index", + "deprecated": false, + "key": "index", + "docstring": "The index of the file in the list of files.\n", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/FilePath/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The type of the file path. Always `file_path`.\n", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/FilePath/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "file_path" + } + ] + }, + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "file_citation" + } + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "url_citation" + } + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "container_file_citation" + } + }, + "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "file_path" + } } } ``` @@ -323222,10 +327239,10 @@ Schema name: `ResponseOutputTextAnnotationAddedEvent` "content_index": 0, "annotation_index": 0, "annotation": { - "type": "text_annotation", - "text": "This is a test annotation", - "start": 0, - "end": 10 + "type": "file_citation", + "file_id": "file-abc", + "index": 0, + "filename": "example.txt" }, "sequence_number": 1 } @@ -334069,7 +338086,7 @@ Schema name: `ResponseQueuedEvent` "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content", "deprecated": false, "key": "encrypted_content", - "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n", + "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n\nWhen streaming, use the completed reasoning item and its\n`encrypted_content` from the `response.output_item.done` event in\nsubsequent requests. The `encrypted_content` in\n`response.output_item.added` may be incomplete. This is especially\nimportant when `store` is `false` or when using Zero Data Retention.\n", "type": { "kind": "HttpTypeString" }, @@ -336725,12 +340742,63 @@ Schema name: `ResponseQueuedEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolCall/properties/error", + "types": [ + { "kind": "HttpTypeString" }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + } + ] + }, "optional": true, "nullable": true, - "schemaType": "string", - "children": [] + "schemaType": "union", + "childrenParentSchema": "union", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 0", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3" + ] }, "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": { "kind": "HttpDeclProperty", @@ -342617,7 +346685,7 @@ Schema name: `ResponseQueuedEvent` "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content", "deprecated": false, "key": "encrypted_content", - "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n", + "docstring": "The encrypted content of the reasoning item. This is populated by default\nfor reasoning items returned by `POST /v1/responses` and WebSocket\n`response.create` requests.\n\nWhen streaming, use the completed reasoning item and its\n`encrypted_content` from the `response.output_item.done` event in\nsubsequent requests. The `encrypted_content` in\n`response.output_item.added` may be incomplete. This is especially\nimportant when `store` is `false` or when using Zero Data Retention.\n", "type": { "kind": "HttpTypeString" }, @@ -344258,12 +348326,63 @@ Schema name: `ResponseQueuedEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolCall/properties/error", + "types": [ + { "kind": "HttpTypeString" }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + } + ] + }, "optional": true, "nullable": true, - "schemaType": "string", - "children": [] + "schemaType": "union", + "childrenParentSchema": "union", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 0", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3" + ] }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) output": { "kind": "HttpDeclProperty", @@ -348332,6 +352451,87 @@ Schema name: `ResponseQueuedEvent` "literal": "mcp_call" } }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) code", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) message", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) content", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) code", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) message", + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -353851,6 +358051,87 @@ Schema name: `ResponseQueuedEvent` "literal": "mcp_call" } }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) code", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) message", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) content", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) code", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) message", + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -359883,6 +364164,143 @@ Schema name: `ResponseQueuedEvent` "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + ] + }, + "default": "mcp_tool_execution_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/HTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type", @@ -366247,10 +370665,346 @@ Schema name: `ResponseQueuedEvent` "schemaType": "enum", "childrenParentSchema": "enum", "children": [ - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 18 > (property) caller > (variant) 0 > (property) type > (member) 0" + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 18 > (property) caller > (variant) 0 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 18 > (property) caller > (variant) 1 > (property) caller_id": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/ProgramToolCallCallerParam/properties/caller_id", + "deprecated": false, + "key": "caller_id", + "docstring": "The call ID of the program item that produced this tool call.", + "type": { + "kind": "HttpTypeString" + }, + "constraints": { + "minLength": 1, + "maxLength": 64 + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 18 > (property) caller > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/ProgramToolCallCallerParam/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The caller type. Always `program`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/ProgramToolCallCallerParam/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "program" + } + ] + }, + "default": "program", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 18 > (property) caller > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response_function_shell_call_output_content > (schema) > (property) outcome > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/FunctionShellCallOutputOutcomeParam/oneOf/0", + "docstring": "Indicates that the shell call exceeded its configured time limit.", + "ident": "Timeout", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_function_shell_call_output_content > (schema) > (property) outcome > (variant) 0 > (property) type" + ] + }, + "(resource) responses > (model) response_function_shell_call_output_content > (schema) > (property) outcome > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/FunctionShellCallOutputOutcomeParam/oneOf/1", + "docstring": "Indicates that the shell commands finished and returned an exit code.", + "ident": "Exit", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "exit_code" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) responses > (model) response_function_shell_call_output_content > (schema) > (property) outcome > (variant) 1 > (property) exit_code", + "(resource) responses > (model) response_function_shell_call_output_content > (schema) > (property) outcome > (variant) 1 > (property) type" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 19 > (property) caller > (variant) 0 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/DirectToolCallCallerParam/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The caller type. Always `direct`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/DirectToolCallCallerParam/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "direct" + } + ] + }, + "default": "direct", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 19 > (property) caller > (variant) 0 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 19 > (property) caller > (variant) 1 > (property) caller_id": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/ProgramToolCallCallerParam/properties/caller_id", + "deprecated": false, + "key": "caller_id", + "docstring": "The call ID of the program item that produced this tool call.", + "type": { + "kind": "HttpTypeString" + }, + "constraints": { + "minLength": 1, + "maxLength": 64 + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 19 > (property) caller > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/ProgramToolCallCallerParam/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The caller type. Always `program`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/ProgramToolCallCallerParam/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "program" + } + ] + }, + "default": "program", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 19 > (property) caller > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 0 > (property) diff": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/ApplyPatchCreateFileOperationParam/properties/diff", + "deprecated": false, + "key": "diff", + "docstring": "Unified diff content to apply when creating the file.", + "type": { + "kind": "HttpTypeString" + }, + "constraints": { + "maxLength": 10485760 + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 0 > (property) path": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/ApplyPatchCreateFileOperationParam/properties/path", + "deprecated": false, + "key": "path", + "docstring": "Path of the file to create relative to the workspace root.", + "type": { + "kind": "HttpTypeString" + }, + "constraints": { + "minLength": 1 + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 0 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/ApplyPatchCreateFileOperationParam/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The operation type. Always `create_file`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/ApplyPatchCreateFileOperationParam/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "create_file" + } + ] + }, + "default": "create_file", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 0 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 1 > (property) path": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/ApplyPatchDeleteFileOperationParam/properties/path", + "deprecated": false, + "key": "path", + "docstring": "Path of the file to delete relative to the workspace root.", + "type": { + "kind": "HttpTypeString" + }, + "constraints": { + "minLength": 1 + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/ApplyPatchDeleteFileOperationParam/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The operation type. Always `delete_file`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/ApplyPatchDeleteFileOperationParam/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "delete_file" + } + ] + }, + "default": "delete_file", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 2 > (property) diff": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/ApplyPatchUpdateFileOperationParam/properties/diff", + "deprecated": false, + "key": "diff", + "docstring": "Unified diff content to apply to the existing file.", + "type": { + "kind": "HttpTypeString" + }, + "constraints": { + "maxLength": 10485760 + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 2 > (property) path": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/ApplyPatchUpdateFileOperationParam/properties/path", + "deprecated": false, + "key": "path", + "docstring": "Path of the file to update relative to the workspace root.", + "type": { + "kind": "HttpTypeString" + }, + "constraints": { + "minLength": 1 + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/ApplyPatchUpdateFileOperationParam/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The operation type. Always `update_file`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/ApplyPatchUpdateFileOperationParam/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "update_file" + } + ] + }, + "default": "update_file", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) caller > (variant) 0 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/DirectToolCallCallerParam/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The caller type. Always `direct`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/DirectToolCallCallerParam/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "direct" + } + ] + }, + "default": "direct", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) caller > (variant) 0 > (property) type > (member) 0" ] }, - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 18 > (property) caller > (variant) 1 > (property) caller_id": { + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) caller > (variant) 1 > (property) caller_id": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/ProgramToolCallCallerParam/properties/caller_id", "deprecated": false, @@ -366268,7 +371022,7 @@ Schema name: `ResponseQueuedEvent` "schemaType": "string", "children": [] }, - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 18 > (property) caller > (variant) 1 > (property) type": { + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) caller > (variant) 1 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/ProgramToolCallCallerParam/properties/type", "deprecated": false, @@ -366290,50 +371044,10 @@ Schema name: `ResponseQueuedEvent` "schemaType": "enum", "childrenParentSchema": "enum", "children": [ - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 18 > (property) caller > (variant) 1 > (property) type > (member) 0" - ] - }, - "(resource) responses > (model) response_function_shell_call_output_content > (schema) > (property) outcome > (variant) 0": { - "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/FunctionShellCallOutputOutcomeParam/oneOf/0", - "docstring": "Indicates that the shell call exceeded its configured time limit.", - "ident": "Timeout", - "type": { - "kind": "HttpTypeObject", - "members": [ - { - "ident": "type" - } - ] - }, - "childrenParentSchema": "object", - "children": [ - "(resource) responses > (model) response_function_shell_call_output_content > (schema) > (property) outcome > (variant) 0 > (property) type" - ] - }, - "(resource) responses > (model) response_function_shell_call_output_content > (schema) > (property) outcome > (variant) 1": { - "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/FunctionShellCallOutputOutcomeParam/oneOf/1", - "docstring": "Indicates that the shell commands finished and returned an exit code.", - "ident": "Exit", - "type": { - "kind": "HttpTypeObject", - "members": [ - { - "ident": "exit_code" - }, - { - "ident": "type" - } - ] - }, - "childrenParentSchema": "object", - "children": [ - "(resource) responses > (model) response_function_shell_call_output_content > (schema) > (property) outcome > (variant) 1 > (property) exit_code", - "(resource) responses > (model) response_function_shell_call_output_content > (schema) > (property) outcome > (variant) 1 > (property) type" + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 19 > (property) caller > (variant) 0 > (property) type": { + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 0 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/DirectToolCallCallerParam/properties/type", "deprecated": false, @@ -366355,10 +371069,10 @@ Schema name: `ResponseQueuedEvent` "schemaType": "enum", "childrenParentSchema": "enum", "children": [ - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 19 > (property) caller > (variant) 0 > (property) type > (member) 0" + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 0 > (property) type > (member) 0" ] }, - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 19 > (property) caller > (variant) 1 > (property) caller_id": { + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 1 > (property) caller_id": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/ProgramToolCallCallerParam/properties/caller_id", "deprecated": false, @@ -366376,7 +371090,7 @@ Schema name: `ResponseQueuedEvent` "schemaType": "string", "children": [] }, - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 19 > (property) caller > (variant) 1 > (property) type": { + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 1 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/ProgramToolCallCallerParam/properties/type", "deprecated": false, @@ -366398,303 +371112,144 @@ Schema name: `ResponseQueuedEvent` "schemaType": "enum", "childrenParentSchema": "enum", "children": [ - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 19 > (property) caller > (variant) 1 > (property) type > (member) 0" + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 0 > (property) diff": { + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) code": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/ApplyPatchCreateFileOperationParam/properties/diff", + "oasRef": "#/components/schemas/MCPProtocolError/properties/code", "deprecated": false, - "key": "diff", - "docstring": "Unified diff content to apply when creating the file.", - "type": { - "kind": "HttpTypeString" - }, - "constraints": { - "maxLength": 10485760 - }, - "optional": false, - "nullable": false, - "schemaType": "string", - "children": [] - }, - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 0 > (property) path": { - "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/ApplyPatchCreateFileOperationParam/properties/path", - "deprecated": false, - "key": "path", - "docstring": "Path of the file to create relative to the workspace root.", + "key": "code", "type": { - "kind": "HttpTypeString" - }, - "constraints": { - "minLength": 1 + "kind": "HttpTypeNumber" }, "optional": false, "nullable": false, - "schemaType": "string", + "schemaType": "integer", "children": [] }, - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 0 > (property) type": { - "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/ApplyPatchCreateFileOperationParam/properties/type", - "deprecated": false, - "key": "type", - "docstring": "The operation type. Always `create_file`.", - "type": { - "kind": "HttpTypeUnion", - "oasRef": "#/components/schemas/ApplyPatchCreateFileOperationParam/properties/type", - "types": [ - { - "kind": "HttpTypeLiteral", - "literal": "create_file" - } - ] - }, - "default": "create_file", - "optional": false, - "nullable": false, - "schemaType": "enum", - "childrenParentSchema": "enum", - "children": [ - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 0 > (property) type > (member) 0" - ] - }, - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 1 > (property) path": { + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) message": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/ApplyPatchDeleteFileOperationParam/properties/path", + "oasRef": "#/components/schemas/MCPProtocolError/properties/message", "deprecated": false, - "key": "path", - "docstring": "Path of the file to delete relative to the workspace root.", + "key": "message", "type": { "kind": "HttpTypeString" }, - "constraints": { - "minLength": 1 - }, "optional": false, "nullable": false, "schemaType": "string", "children": [] }, - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 1 > (property) type": { + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/ApplyPatchDeleteFileOperationParam/properties/type", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", "deprecated": false, "key": "type", - "docstring": "The operation type. Always `delete_file`.", "type": { "kind": "HttpTypeUnion", - "oasRef": "#/components/schemas/ApplyPatchDeleteFileOperationParam/properties/type", + "oasRef": "#/components/schemas/MCPProtocolError/properties/type", "types": [ { "kind": "HttpTypeLiteral", - "literal": "delete_file" + "literal": "mcp_protocol_error" } ] }, - "default": "delete_file", + "default": "mcp_protocol_error", "optional": false, "nullable": false, "schemaType": "enum", "childrenParentSchema": "enum", "children": [ - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 1 > (property) type > (member) 0" + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0" ] }, - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 2 > (property) diff": { + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) content": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/ApplyPatchUpdateFileOperationParam/properties/diff", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content", "deprecated": false, - "key": "diff", - "docstring": "Unified diff content to apply to the existing file.", - "type": { - "kind": "HttpTypeString" - }, - "constraints": { - "maxLength": 10485760 - }, - "optional": false, - "nullable": false, - "schemaType": "string", - "children": [] - }, - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 2 > (property) path": { - "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/ApplyPatchUpdateFileOperationParam/properties/path", - "deprecated": false, - "key": "path", - "docstring": "Path of the file to update relative to the workspace root.", + "key": "content", "type": { - "kind": "HttpTypeString" - }, - "constraints": { - "minLength": 1 + "kind": "HttpTypeUnknown" }, "optional": false, "nullable": false, - "schemaType": "string", + "schemaType": "unknown", "children": [] }, - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 2 > (property) type": { + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/ApplyPatchUpdateFileOperationParam/properties/type", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", "deprecated": false, "key": "type", - "docstring": "The operation type. Always `update_file`.", "type": { "kind": "HttpTypeUnion", - "oasRef": "#/components/schemas/ApplyPatchUpdateFileOperationParam/properties/type", + "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type", "types": [ { "kind": "HttpTypeLiteral", - "literal": "update_file" - } - ] - }, - "default": "update_file", - "optional": false, - "nullable": false, - "schemaType": "enum", - "childrenParentSchema": "enum", - "children": [ - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) operation > (variant) 2 > (property) type > (member) 0" - ] - }, - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) caller > (variant) 0 > (property) type": { - "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/DirectToolCallCallerParam/properties/type", - "deprecated": false, - "key": "type", - "docstring": "The caller type. Always `direct`.", - "type": { - "kind": "HttpTypeUnion", - "oasRef": "#/components/schemas/DirectToolCallCallerParam/properties/type", - "types": [ - { - "kind": "HttpTypeLiteral", - "literal": "direct" + "literal": "mcp_tool_execution_error" } ] }, - "default": "direct", + "default": "mcp_tool_execution_error", "optional": false, "nullable": false, "schemaType": "enum", "childrenParentSchema": "enum", "children": [ - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) caller > (variant) 0 > (property) type > (member) 0" + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0" ] }, - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) caller > (variant) 1 > (property) caller_id": { + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) code": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/ProgramToolCallCallerParam/properties/caller_id", + "oasRef": "#/components/schemas/HTTPError/properties/code", "deprecated": false, - "key": "caller_id", - "docstring": "The call ID of the program item that produced this tool call.", + "key": "code", "type": { - "kind": "HttpTypeString" - }, - "constraints": { - "minLength": 1, - "maxLength": 64 + "kind": "HttpTypeNumber" }, "optional": false, "nullable": false, - "schemaType": "string", + "schemaType": "integer", "children": [] }, - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) caller > (variant) 1 > (property) type": { - "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/ProgramToolCallCallerParam/properties/type", - "deprecated": false, - "key": "type", - "docstring": "The caller type. Always `program`.", - "type": { - "kind": "HttpTypeUnion", - "oasRef": "#/components/schemas/ProgramToolCallCallerParam/properties/type", - "types": [ - { - "kind": "HttpTypeLiteral", - "literal": "program" - } - ] - }, - "default": "program", - "optional": false, - "nullable": false, - "schemaType": "enum", - "childrenParentSchema": "enum", - "children": [ - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 20 > (property) caller > (variant) 1 > (property) type > (member) 0" - ] - }, - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 0 > (property) type": { + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) message": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/DirectToolCallCallerParam/properties/type", + "oasRef": "#/components/schemas/HTTPError/properties/message", "deprecated": false, - "key": "type", - "docstring": "The caller type. Always `direct`.", - "type": { - "kind": "HttpTypeUnion", - "oasRef": "#/components/schemas/DirectToolCallCallerParam/properties/type", - "types": [ - { - "kind": "HttpTypeLiteral", - "literal": "direct" - } - ] - }, - "default": "direct", - "optional": false, - "nullable": false, - "schemaType": "enum", - "childrenParentSchema": "enum", - "children": [ - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 0 > (property) type > (member) 0" - ] - }, - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 1 > (property) caller_id": { - "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/ProgramToolCallCallerParam/properties/caller_id", - "deprecated": false, - "key": "caller_id", - "docstring": "The call ID of the program item that produced this tool call.", + "key": "message", "type": { "kind": "HttpTypeString" }, - "constraints": { - "minLength": 1, - "maxLength": 64 - }, "optional": false, "nullable": false, "schemaType": "string", "children": [] }, - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 1 > (property) type": { + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/ProgramToolCallCallerParam/properties/type", + "oasRef": "#/components/schemas/HTTPError/properties/type", "deprecated": false, "key": "type", - "docstring": "The caller type. Always `program`.", "type": { "kind": "HttpTypeUnion", - "oasRef": "#/components/schemas/ProgramToolCallCallerParam/properties/type", + "oasRef": "#/components/schemas/HTTPError/properties/type", "types": [ { "kind": "HttpTypeLiteral", - "literal": "program" + "literal": "http_error" } ] }, - "default": "program", + "default": "http_error", "optional": false, "nullable": false, "schemaType": "enum", "childrenParentSchema": "enum", "children": [ - "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0" + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0" ] }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 26 > (property) output > (variant) 1 > (items) > (variant) 0": { @@ -369732,6 +374287,27 @@ Schema name: `ResponseQueuedEvent` "literal": "program" } }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -373035,6 +377611,27 @@ Schema name: `ResponseQueuedEvent` "literal": "program" } }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": {