diff --git a/en/resources/beta/subresources/responses/streaming-events.md b/en/resources/beta/subresources/responses/streaming-events.md index ff6191c8..db619d46 100644 --- a/en/resources/beta/subresources/responses/streaming-events.md +++ b/en/resources/beta/subresources/responses/streaming-events.md @@ -12453,7 +12453,7 @@ Schema name: `BetaResponseCreatedEvent` "oasRef": "#/components/schemas/BetaReasoningItem/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" }, @@ -15439,12 +15439,63 @@ Schema name: `BetaResponseCreatedEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolCall/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) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 0", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3" + ] }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": { "kind": "HttpDeclProperty", @@ -22142,7 +22193,7 @@ Schema name: `BetaResponseCreatedEvent` "oasRef": "#/components/schemas/BetaReasoningItem/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" }, @@ -24069,12 +24120,63 @@ Schema name: `BetaResponseCreatedEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolCall/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 0", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3" + ] }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) output": { "kind": "HttpDeclProperty", @@ -29097,6 +29199,87 @@ Schema name: `BetaResponseCreatedEvent` "schemaType": "string", "children": [] }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) code", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) message", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) content", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) code", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) message", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -35286,6 +35469,87 @@ Schema name: `BetaResponseCreatedEvent` "schemaType": "string", "children": [] }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) code", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) message", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) content", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) code", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) message", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -41780,6 +42044,143 @@ Schema name: `BetaResponseCreatedEvent` "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/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) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type", @@ -48851,6 +49252,143 @@ Schema name: `BetaResponseCreatedEvent` "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 29 > (property) output > (variant) 1 > (items) > (variant) 0": { "kind": "HttpDeclReference", "type": { @@ -52234,6 +52772,27 @@ Schema name: `BetaResponseCreatedEvent` "literal": "program" } }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -56000,6 +56559,27 @@ Schema name: `BetaResponseCreatedEvent` "literal": "program" } }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -76211,7 +76791,7 @@ Schema name: `BetaResponseInProgressEvent` "oasRef": "#/components/schemas/BetaReasoningItem/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" }, @@ -79197,12 +79777,63 @@ Schema name: `BetaResponseInProgressEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolCall/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) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 0", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3" + ] }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": { "kind": "HttpDeclProperty", @@ -85900,7 +86531,7 @@ Schema name: `BetaResponseInProgressEvent` "oasRef": "#/components/schemas/BetaReasoningItem/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" }, @@ -87827,12 +88458,63 @@ Schema name: `BetaResponseInProgressEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolCall/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 0", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3" + ] }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) output": { "kind": "HttpDeclProperty", @@ -92855,6 +93537,87 @@ Schema name: `BetaResponseInProgressEvent` "schemaType": "string", "children": [] }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) code", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) message", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) content", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) code", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) message", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -99044,6 +99807,87 @@ Schema name: `BetaResponseInProgressEvent` "schemaType": "string", "children": [] }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) code", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) message", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) content", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) code", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) message", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -105538,6 +106382,143 @@ Schema name: `BetaResponseInProgressEvent` "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/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) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type", @@ -112609,6 +113590,143 @@ Schema name: `BetaResponseInProgressEvent` "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 29 > (property) output > (variant) 1 > (items) > (variant) 0": { "kind": "HttpDeclReference", "type": { @@ -115992,6 +117110,27 @@ Schema name: `BetaResponseInProgressEvent` "literal": "program" } }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -119758,6 +120897,27 @@ Schema name: `BetaResponseInProgressEvent` "literal": "program" } }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -139969,7 +141129,7 @@ Schema name: `BetaResponseCompletedEvent` "oasRef": "#/components/schemas/BetaReasoningItem/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" }, @@ -142955,12 +144115,63 @@ Schema name: `BetaResponseCompletedEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolCall/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) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 0", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3" + ] }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": { "kind": "HttpDeclProperty", @@ -149658,7 +150869,7 @@ Schema name: `BetaResponseCompletedEvent` "oasRef": "#/components/schemas/BetaReasoningItem/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" }, @@ -151585,12 +152796,63 @@ Schema name: `BetaResponseCompletedEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolCall/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 0", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3" + ] }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) output": { "kind": "HttpDeclProperty", @@ -156613,6 +157875,87 @@ Schema name: `BetaResponseCompletedEvent` "schemaType": "string", "children": [] }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) code", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) message", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) content", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) code", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) message", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -162802,6 +164145,87 @@ Schema name: `BetaResponseCompletedEvent` "schemaType": "string", "children": [] }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) code", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) message", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) content", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) code", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) message", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -169296,6 +170720,143 @@ Schema name: `BetaResponseCompletedEvent` "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/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) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type", @@ -176367,6 +177928,143 @@ Schema name: `BetaResponseCompletedEvent` "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 29 > (property) output > (variant) 1 > (items) > (variant) 0": { "kind": "HttpDeclReference", "type": { @@ -179750,6 +181448,27 @@ Schema name: `BetaResponseCompletedEvent` "literal": "program" } }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -183516,6 +185235,27 @@ Schema name: `BetaResponseCompletedEvent` "literal": "program" } }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -203744,7 +205484,7 @@ Schema name: `BetaResponseFailedEvent` "oasRef": "#/components/schemas/BetaReasoningItem/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" }, @@ -206730,12 +208470,63 @@ Schema name: `BetaResponseFailedEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolCall/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) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 0", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3" + ] }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": { "kind": "HttpDeclProperty", @@ -213433,7 +215224,7 @@ Schema name: `BetaResponseFailedEvent` "oasRef": "#/components/schemas/BetaReasoningItem/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" }, @@ -215360,12 +217151,63 @@ Schema name: `BetaResponseFailedEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolCall/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 0", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3" + ] }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) output": { "kind": "HttpDeclProperty", @@ -220388,6 +222230,87 @@ Schema name: `BetaResponseFailedEvent` "schemaType": "string", "children": [] }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) code", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) message", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) content", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) code", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) message", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -226577,6 +228500,87 @@ Schema name: `BetaResponseFailedEvent` "schemaType": "string", "children": [] }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) code", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) message", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) content", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) code", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) message", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -233071,6 +235075,143 @@ Schema name: `BetaResponseFailedEvent` "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/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) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type", @@ -240142,6 +242283,143 @@ Schema name: `BetaResponseFailedEvent` "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 29 > (property) output > (variant) 1 > (items) > (variant) 0": { "kind": "HttpDeclReference", "type": { @@ -243525,6 +245803,27 @@ Schema name: `BetaResponseFailedEvent` "literal": "program" } }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -247291,6 +249590,27 @@ Schema name: `BetaResponseFailedEvent` "literal": "program" } }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -267500,7 +269820,7 @@ Schema name: `BetaResponseIncompleteEvent` "oasRef": "#/components/schemas/BetaReasoningItem/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" }, @@ -270486,12 +272806,63 @@ Schema name: `BetaResponseIncompleteEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolCall/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) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 0", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3" + ] }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": { "kind": "HttpDeclProperty", @@ -277189,7 +279560,7 @@ Schema name: `BetaResponseIncompleteEvent` "oasRef": "#/components/schemas/BetaReasoningItem/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" }, @@ -279116,12 +281487,63 @@ Schema name: `BetaResponseIncompleteEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolCall/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 0", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3" + ] }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) output": { "kind": "HttpDeclProperty", @@ -284144,6 +286566,87 @@ Schema name: `BetaResponseIncompleteEvent` "schemaType": "string", "children": [] }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) code", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) message", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) content", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) code", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) message", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -290333,6 +292836,87 @@ Schema name: `BetaResponseIncompleteEvent` "schemaType": "string", "children": [] }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) code", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) message", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) content", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) code", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) message", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -296827,6 +299411,143 @@ Schema name: `BetaResponseIncompleteEvent` "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/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) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type", @@ -303898,6 +306619,143 @@ Schema name: `BetaResponseIncompleteEvent` "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 29 > (property) output > (variant) 1 > (items) > (variant) 0": { "kind": "HttpDeclReference", "type": { @@ -307281,6 +310139,27 @@ Schema name: `BetaResponseIncompleteEvent` "literal": "program" } }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -311047,6 +313926,27 @@ Schema name: `BetaResponseIncompleteEvent` "literal": "program" } }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -318861,7 +321761,7 @@ Schema name: `BetaResponseOutputItemAddedEvent` "oasRef": "#/components/schemas/BetaResponseOutputItemAddedEvent/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": "BetaResponseOutputItem", @@ -323091,7 +325991,7 @@ Schema name: `BetaResponseOutputItemAddedEvent` "oasRef": "#/components/schemas/BetaReasoningItem/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" }, @@ -326077,12 +328977,63 @@ Schema name: `BetaResponseOutputItemAddedEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolCall/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) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 0", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3" + ] }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": { "kind": "HttpDeclProperty", @@ -331139,6 +334090,87 @@ Schema name: `BetaResponseOutputItemAddedEvent` "schemaType": "string", "children": [] }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) code", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) message", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) content", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) code", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) message", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -337963,6 +340995,143 @@ Schema name: `BetaResponseOutputItemAddedEvent` "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/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) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type", @@ -341566,6 +344735,27 @@ Schema name: `BetaResponseOutputItemAddedEvent` "literal": "program" } }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -350290,7 +353480,7 @@ Schema name: `BetaResponseOutputItemDoneEvent` "oasRef": "#/components/schemas/BetaReasoningItem/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" }, @@ -353276,12 +356466,63 @@ Schema name: `BetaResponseOutputItemDoneEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolCall/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) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 0", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3" + ] }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": { "kind": "HttpDeclProperty", @@ -358338,6 +361579,87 @@ Schema name: `BetaResponseOutputItemDoneEvent` "schemaType": "string", "children": [] }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) code", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) message", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) content", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) code", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) message", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -365162,6 +368484,143 @@ Schema name: `BetaResponseOutputItemDoneEvent` "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/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) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type", @@ -368765,6 +372224,27 @@ Schema name: `BetaResponseOutputItemDoneEvent` "literal": "program" } }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -382453,14 +385933,97 @@ Schema name: `BetaResponseOutputTextAnnotationAddedEvent` "oasRef": "#/components/schemas/BetaResponseOutputTextAnnotationAddedEvent/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/BetaResponseOutputTextAnnotationAddedEvent/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) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0", + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1", + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2", + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3" + ] }, "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation_index": { "kind": "HttpDeclProperty", @@ -382578,6 +386141,134 @@ Schema name: `BetaResponseOutputTextAnnotationAddedEvent` "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) agent > (property) agent_name" ] }, + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaAnnotation/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) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) file_id", + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) filename", + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) index", + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaAnnotation/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) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) end_index", + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) start_index", + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) title", + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) type", + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) url" + ] + }, + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaAnnotation/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) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) container_id", + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) end_index", + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) file_id", + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) filename", + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) start_index", + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaAnnotation/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) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) file_id", + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) index", + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) type" + ] + }, "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -382598,6 +386289,332 @@ Schema name: `BetaResponseOutputTextAnnotationAddedEvent` "nullable": false, "schemaType": "string", "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) file_id": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaFileCitationBody/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) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) filename": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaFileCitationBody/properties/filename", + "deprecated": false, + "key": "filename", + "docstring": "The filename of the file cited.", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) index": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaFileCitationBody/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) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaFileCitationBody/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The type of the file citation. Always `file_citation`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaFileCitationBody/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "file_citation" + } + ] + }, + "default": "file_citation", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) end_index": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaUrlCitationBody/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) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) start_index": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaUrlCitationBody/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) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) title": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaUrlCitationBody/properties/title", + "deprecated": false, + "key": "title", + "docstring": "The title of the web resource.", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaUrlCitationBody/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The type of the URL citation. Always `url_citation`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaUrlCitationBody/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "url_citation" + } + ] + }, + "default": "url_citation", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) url": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaUrlCitationBody/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) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) container_id": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaContainerFileCitationBody/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) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) end_index": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaContainerFileCitationBody/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) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) file_id": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaContainerFileCitationBody/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) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) filename": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaContainerFileCitationBody/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) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) start_index": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaContainerFileCitationBody/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) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaContainerFileCitationBody/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The type of the container file citation. Always `container_file_citation`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaContainerFileCitationBody/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "container_file_citation" + } + ] + }, + "default": "container_file_citation", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) file_id": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaFilePath/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) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) index": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaFilePath/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) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaFilePath/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The type of the file path. Always `file_path`.\n", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaFilePath/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "file_path" + } + ] + }, + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "file_citation" + } + }, + "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "url_citation" + } + }, + "(resource) beta.responses > (model) beta_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) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "file_path" + } } } ``` @@ -382612,10 +386629,10 @@ Schema name: `BetaResponseOutputTextAnnotationAddedEvent` "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 } @@ -395065,7 +399082,7 @@ Schema name: `BetaResponseQueuedEvent` "oasRef": "#/components/schemas/BetaReasoningItem/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" }, @@ -398051,12 +402068,63 @@ Schema name: `BetaResponseQueuedEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolCall/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) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 0", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3" + ] }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": { "kind": "HttpDeclProperty", @@ -404754,7 +408822,7 @@ Schema name: `BetaResponseQueuedEvent` "oasRef": "#/components/schemas/BetaReasoningItem/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" }, @@ -406681,12 +410749,63 @@ Schema name: `BetaResponseQueuedEvent` "key": "error", "docstring": "The error from the tool call, if any.\n", "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolCall/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 0", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3" + ] }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) output": { "kind": "HttpDeclProperty", @@ -411709,6 +415828,87 @@ Schema name: `BetaResponseQueuedEvent` "schemaType": "string", "children": [] }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) code", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) message", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) content", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) code", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) message", + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -417898,6 +422098,87 @@ Schema name: `BetaResponseQueuedEvent` "schemaType": "string", "children": [] }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error/anyOf/0", + "docstring": "The error from the tool call, if any.\n", + "ident": "UnionMember0", + "type": { + "kind": "HttpTypeString" + }, + "children": [] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0", + "ident": "McpProtocolError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) code", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) message", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1", + "ident": "McpToolExecutionError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "content" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) content", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2", + "ident": "HTTPError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "type" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) code", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) message", + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -424392,6 +428673,143 @@ Schema name: `BetaResponseQueuedEvent` "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + ] + }, + "default": "mcp_protocol_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) content": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content", + "deprecated": false, + "key": "content", + "type": { + "kind": "HttpTypeUnknown" + }, + "optional": false, + "nullable": false, + "schemaType": "unknown", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/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) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/code", + "deprecated": false, + "key": "code", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": false, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/message", + "deprecated": false, + "key": "message", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "deprecated": false, + "key": "type", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + ] + }, + "default": "http_error", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type", @@ -431013,10 +435431,346 @@ Schema name: `BetaResponseQueuedEvent` "schemaType": "enum", "childrenParentSchema": "enum", "children": [ - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 0 > (property) type > (member) 0" + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 0 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 1 > (property) caller_id": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaProgramToolCallCallerParam/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaProgramToolCallCallerParam/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The caller type. Always `program`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaProgramToolCallCallerParam/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "program" + } + ] + }, + "default": "program", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_function_shell_call_output_content > (schema) > (property) outcome > (variant) 0": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaFunctionShellCallOutputOutcomeParam/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) beta.responses > (model) beta_response_function_shell_call_output_content > (schema) > (property) outcome > (variant) 0 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_function_shell_call_output_content > (schema) > (property) outcome > (variant) 1": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaFunctionShellCallOutputOutcomeParam/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) beta.responses > (model) beta_response_function_shell_call_output_content > (schema) > (property) outcome > (variant) 1 > (property) exit_code", + "(resource) beta.responses > (model) beta_response_function_shell_call_output_content > (schema) > (property) outcome > (variant) 1 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 22 > (property) caller > (variant) 0 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaDirectToolCallCallerParam/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The caller type. Always `direct`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaDirectToolCallCallerParam/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "direct" + } + ] + }, + "default": "direct", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 22 > (property) caller > (variant) 0 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 22 > (property) caller > (variant) 1 > (property) caller_id": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaProgramToolCallCallerParam/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 22 > (property) caller > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaProgramToolCallCallerParam/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The caller type. Always `program`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaProgramToolCallCallerParam/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "program" + } + ] + }, + "default": "program", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 22 > (property) caller > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 0 > (property) diff": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaApplyPatchCreateFileOperationParam/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 0 > (property) path": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaApplyPatchCreateFileOperationParam/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 0 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaApplyPatchCreateFileOperationParam/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The operation type. Always `create_file`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaApplyPatchCreateFileOperationParam/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "create_file" + } + ] + }, + "default": "create_file", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 0 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 1 > (property) path": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaApplyPatchDeleteFileOperationParam/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 1 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaApplyPatchDeleteFileOperationParam/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The operation type. Always `delete_file`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaApplyPatchDeleteFileOperationParam/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "delete_file" + } + ] + }, + "default": "delete_file", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 2 > (property) diff": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaApplyPatchUpdateFileOperationParam/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 2 > (property) path": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaApplyPatchUpdateFileOperationParam/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 2 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaApplyPatchUpdateFileOperationParam/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The operation type. Always `update_file`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaApplyPatchUpdateFileOperationParam/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "update_file" + } + ] + }, + "default": "update_file", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) caller > (variant) 0 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaDirectToolCallCallerParam/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The caller type. Always `direct`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaDirectToolCallCallerParam/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "direct" + } + ] + }, + "default": "direct", + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) caller > (variant) 0 > (property) type > (member) 0" ] }, - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 1 > (property) caller_id": { + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) caller > (variant) 1 > (property) caller_id": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/BetaProgramToolCallCallerParam/properties/caller_id", "deprecated": false, @@ -431034,7 +435788,7 @@ Schema name: `BetaResponseQueuedEvent` "schemaType": "string", "children": [] }, - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 1 > (property) type": { + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) caller > (variant) 1 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/BetaProgramToolCallCallerParam/properties/type", "deprecated": false, @@ -431056,50 +435810,10 @@ Schema name: `BetaResponseQueuedEvent` "schemaType": "enum", "childrenParentSchema": "enum", "children": [ - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0" - ] - }, - "(resource) beta.responses > (model) beta_response_function_shell_call_output_content > (schema) > (property) outcome > (variant) 0": { - "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaFunctionShellCallOutputOutcomeParam/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) beta.responses > (model) beta_response_function_shell_call_output_content > (schema) > (property) outcome > (variant) 0 > (property) type" - ] - }, - "(resource) beta.responses > (model) beta_response_function_shell_call_output_content > (schema) > (property) outcome > (variant) 1": { - "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaFunctionShellCallOutputOutcomeParam/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) beta.responses > (model) beta_response_function_shell_call_output_content > (schema) > (property) outcome > (variant) 1 > (property) exit_code", - "(resource) beta.responses > (model) beta_response_function_shell_call_output_content > (schema) > (property) outcome > (variant) 1 > (property) type" + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 22 > (property) caller > (variant) 0 > (property) type": { + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 24 > (property) caller > (variant) 0 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/BetaDirectToolCallCallerParam/properties/type", "deprecated": false, @@ -431121,10 +435835,10 @@ Schema name: `BetaResponseQueuedEvent` "schemaType": "enum", "childrenParentSchema": "enum", "children": [ - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 22 > (property) caller > (variant) 0 > (property) type > (member) 0" + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 24 > (property) caller > (variant) 0 > (property) type > (member) 0" ] }, - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 22 > (property) caller > (variant) 1 > (property) caller_id": { + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 24 > (property) caller > (variant) 1 > (property) caller_id": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/BetaProgramToolCallCallerParam/properties/caller_id", "deprecated": false, @@ -431142,7 +435856,7 @@ Schema name: `BetaResponseQueuedEvent` "schemaType": "string", "children": [] }, - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 22 > (property) caller > (variant) 1 > (property) type": { + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 24 > (property) caller > (variant) 1 > (property) type": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/BetaProgramToolCallCallerParam/properties/type", "deprecated": false, @@ -431164,303 +435878,144 @@ Schema name: `BetaResponseQueuedEvent` "schemaType": "enum", "childrenParentSchema": "enum", "children": [ - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 22 > (property) caller > (variant) 1 > (property) type > (member) 0" + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 0 > (property) diff": { + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) code": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaApplyPatchCreateFileOperationParam/properties/diff", + "oasRef": "#/components/schemas/BetaMCPProtocolError/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 0 > (property) path": { - "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaApplyPatchCreateFileOperationParam/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 0 > (property) type": { - "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaApplyPatchCreateFileOperationParam/properties/type", - "deprecated": false, - "key": "type", - "docstring": "The operation type. Always `create_file`.", - "type": { - "kind": "HttpTypeUnion", - "oasRef": "#/components/schemas/BetaApplyPatchCreateFileOperationParam/properties/type", - "types": [ - { - "kind": "HttpTypeLiteral", - "literal": "create_file" - } - ] - }, - "default": "create_file", - "optional": false, - "nullable": false, - "schemaType": "enum", - "childrenParentSchema": "enum", - "children": [ - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 0 > (property) type > (member) 0" - ] - }, - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 1 > (property) path": { + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) message": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaApplyPatchDeleteFileOperationParam/properties/path", + "oasRef": "#/components/schemas/BetaMCPProtocolError/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 1 > (property) type": { + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaApplyPatchDeleteFileOperationParam/properties/type", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", "deprecated": false, "key": "type", - "docstring": "The operation type. Always `delete_file`.", "type": { "kind": "HttpTypeUnion", - "oasRef": "#/components/schemas/BetaApplyPatchDeleteFileOperationParam/properties/type", + "oasRef": "#/components/schemas/BetaMCPProtocolError/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 1 > (property) type > (member) 0" + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type > (member) 0" ] }, - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 2 > (property) diff": { + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) content": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaApplyPatchUpdateFileOperationParam/properties/diff", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 2 > (property) path": { - "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaApplyPatchUpdateFileOperationParam/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 2 > (property) type": { + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaApplyPatchUpdateFileOperationParam/properties/type", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type", "deprecated": false, "key": "type", - "docstring": "The operation type. Always `update_file`.", "type": { "kind": "HttpTypeUnion", - "oasRef": "#/components/schemas/BetaApplyPatchUpdateFileOperationParam/properties/type", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type", "types": [ { "kind": "HttpTypeLiteral", - "literal": "update_file" - } - ] - }, - "default": "update_file", - "optional": false, - "nullable": false, - "schemaType": "enum", - "childrenParentSchema": "enum", - "children": [ - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) operation > (variant) 2 > (property) type > (member) 0" - ] - }, - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) caller > (variant) 0 > (property) type": { - "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaDirectToolCallCallerParam/properties/type", - "deprecated": false, - "key": "type", - "docstring": "The caller type. Always `direct`.", - "type": { - "kind": "HttpTypeUnion", - "oasRef": "#/components/schemas/BetaDirectToolCallCallerParam/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) caller > (variant) 0 > (property) type > (member) 0" + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type > (member) 0" ] }, - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) caller > (variant) 1 > (property) caller_id": { + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) code": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaProgramToolCallCallerParam/properties/caller_id", + "oasRef": "#/components/schemas/BetaHTTPError/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) caller > (variant) 1 > (property) type": { - "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaProgramToolCallCallerParam/properties/type", - "deprecated": false, - "key": "type", - "docstring": "The caller type. Always `program`.", - "type": { - "kind": "HttpTypeUnion", - "oasRef": "#/components/schemas/BetaProgramToolCallCallerParam/properties/type", - "types": [ - { - "kind": "HttpTypeLiteral", - "literal": "program" - } - ] - }, - "default": "program", - "optional": false, - "nullable": false, - "schemaType": "enum", - "childrenParentSchema": "enum", - "children": [ - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (property) caller > (variant) 1 > (property) type > (member) 0" - ] - }, - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 24 > (property) caller > (variant) 0 > (property) type": { + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) message": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaDirectToolCallCallerParam/properties/type", + "oasRef": "#/components/schemas/BetaHTTPError/properties/message", "deprecated": false, - "key": "type", - "docstring": "The caller type. Always `direct`.", - "type": { - "kind": "HttpTypeUnion", - "oasRef": "#/components/schemas/BetaDirectToolCallCallerParam/properties/type", - "types": [ - { - "kind": "HttpTypeLiteral", - "literal": "direct" - } - ] - }, - "default": "direct", - "optional": false, - "nullable": false, - "schemaType": "enum", - "childrenParentSchema": "enum", - "children": [ - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 24 > (property) caller > (variant) 0 > (property) type > (member) 0" - ] - }, - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 24 > (property) caller > (variant) 1 > (property) caller_id": { - "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaProgramToolCallCallerParam/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 24 > (property) caller > (variant) 1 > (property) type": { + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaProgramToolCallCallerParam/properties/type", + "oasRef": "#/components/schemas/BetaHTTPError/properties/type", "deprecated": false, "key": "type", - "docstring": "The caller type. Always `program`.", "type": { "kind": "HttpTypeUnion", - "oasRef": "#/components/schemas/BetaProgramToolCallCallerParam/properties/type", + "oasRef": "#/components/schemas/BetaHTTPError/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) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0" + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type > (member) 0" ] }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 29 > (property) output > (variant) 1 > (items) > (variant) 0": { @@ -434846,6 +439401,27 @@ Schema name: `BetaResponseQueuedEvent` "literal": "program" } }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -438612,6 +443188,27 @@ Schema name: `BetaResponseQueuedEvent` "literal": "program" } }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_protocol_error" + } + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "mcp_tool_execution_error" + } + }, + "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "http_error" + } + }, "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": {