diff --git a/en/resources/beta/subresources/responses/websocket-events.md b/en/resources/beta/subresources/responses/websocket-events.md index 0cdbf621..f5d8e8f9 100644 --- a/en/resources/beta/subresources/responses/websocket-events.md +++ b/en/resources/beta/subresources/responses/websocket-events.md @@ -13812,7 +13812,7 @@ Schema name: `BetaResponsesClientEventResponseCreate` "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" }, @@ -15739,12 +15739,63 @@ Schema name: `BetaResponsesClientEventResponseCreate` "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_responses_client_event > (schema) > (variant) 0 > (property) input > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 0", + "(resource) beta.responses > (model) beta_responses_client_event > (schema) > (variant) 0 > (property) input > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1", + "(resource) beta.responses > (model) beta_responses_client_event > (schema) > (variant) 0 > (property) input > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2", + "(resource) beta.responses > (model) beta_responses_client_event > (schema) > (variant) 0 > (property) input > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3" + ] }, "(resource) beta.responses > (model) beta_responses_client_event > (schema) > (variant) 0 > (property) input > (variant) 1 > (items) > (variant) 28 > (property) output": { "kind": "HttpDeclProperty", @@ -22723,6 +22774,87 @@ Schema name: `BetaResponsesClientEventResponseCreate` "schemaType": "string", "children": [] }, + "(resource) beta.responses > (model) beta_responses_client_event > (schema) > (variant) 0 > (property) input > (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_responses_client_event > (schema) > (variant) 0 > (property) input > (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_responses_client_event > (schema) > (variant) 0 > (property) input > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) code", + "(resource) beta.responses > (model) beta_responses_client_event > (schema) > (variant) 0 > (property) input > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) message", + "(resource) beta.responses > (model) beta_responses_client_event > (schema) > (variant) 0 > (property) input > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_responses_client_event > (schema) > (variant) 0 > (property) input > (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_responses_client_event > (schema) > (variant) 0 > (property) input > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) content", + "(resource) beta.responses > (model) beta_responses_client_event > (schema) > (variant) 0 > (property) input > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_responses_client_event > (schema) > (variant) 0 > (property) input > (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_responses_client_event > (schema) > (variant) 0 > (property) input > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) code", + "(resource) beta.responses > (model) beta_responses_client_event > (schema) > (variant) 0 > (property) input > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) message", + "(resource) beta.responses > (model) beta_responses_client_event > (schema) > (variant) 0 > (property) input > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) beta.responses > (model) beta_responses_client_event > (schema) > (variant) 0 > (property) input > (variant) 1 > (items) > (variant) 28 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -30703,6 +30835,143 @@ Schema name: `BetaResponsesClientEventResponseCreate` "(resource) beta.responses > (model) beta_responses_client_event > (schema) > (variant) 0 > (property) input > (variant) 1 > (items) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) beta.responses > (model) beta_responses_client_event > (schema) > (variant) 0 > (property) input > (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_responses_client_event > (schema) > (variant) 0 > (property) input > (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_responses_client_event > (schema) > (variant) 0 > (property) input > (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_responses_client_event > (schema) > (variant) 0 > (property) input > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_responses_client_event > (schema) > (variant) 0 > (property) input > (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_responses_client_event > (schema) > (variant) 0 > (property) input > (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_responses_client_event > (schema) > (variant) 0 > (property) input > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_responses_client_event > (schema) > (variant) 0 > (property) input > (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_responses_client_event > (schema) > (variant) 0 > (property) input > (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_responses_client_event > (schema) > (variant) 0 > (property) input > (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_responses_client_event > (schema) > (variant) 0 > (property) input > (variant) 1 > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) beta.responses > (model) beta_responses_client_event > (schema) > (variant) 0 > (property) input > (variant) 1 > (items) > (variant) 29 > (property) output > (variant) 1 > (items) > (variant) 0": { "kind": "HttpDeclReference", "type": { @@ -34963,6 +35232,27 @@ Schema name: `BetaResponsesClientEventResponseCreate` "literal": "program" } }, + "(resource) beta.responses > (model) beta_responses_client_event > (schema) > (variant) 0 > (property) input > (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_responses_client_event > (schema) > (variant) 0 > (property) input > (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_responses_client_event > (schema) > (variant) 0 > (property) input > (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_responses_client_event > (schema) > (variant) 0 > (property) input > (variant) 1 > (items) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -45206,7 +45496,7 @@ Schema name: `BetaResponseInjectEvent` "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" }, @@ -47133,12 +47423,63 @@ Schema name: `BetaResponseInjectEvent` "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_inject_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 0", + "(resource) beta.responses > (model) beta_response_inject_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 1", + "(resource) beta.responses > (model) beta_response_inject_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 2", + "(resource) beta.responses > (model) beta_response_inject_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 3" + ] }, "(resource) beta.responses > (model) beta_response_inject_event > (schema) > (property) input > (items) > (variant) 28 > (property) output": { "kind": "HttpDeclProperty", @@ -52208,6 +52549,87 @@ Schema name: `BetaResponseInjectEvent` "schemaType": "string", "children": [] }, + "(resource) beta.responses > (model) beta_response_inject_event > (schema) > (property) input > (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_inject_event > (schema) > (property) input > (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_inject_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 1 > (property) code", + "(resource) beta.responses > (model) beta_response_inject_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 1 > (property) message", + "(resource) beta.responses > (model) beta_response_inject_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_inject_event > (schema) > (property) input > (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_inject_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 2 > (property) content", + "(resource) beta.responses > (model) beta_response_inject_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_inject_event > (schema) > (property) input > (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_inject_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 3 > (property) code", + "(resource) beta.responses > (model) beta_response_inject_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 3 > (property) message", + "(resource) beta.responses > (model) beta_response_inject_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) beta.responses > (model) beta_response_inject_event > (schema) > (property) input > (items) > (variant) 28 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -59369,6 +59791,143 @@ Schema name: `BetaResponseInjectEvent` "(resource) beta.responses > (model) beta_response_inject_event > (schema) > (property) input > (items) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) beta.responses > (model) beta_response_inject_event > (schema) > (property) input > (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_inject_event > (schema) > (property) input > (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_inject_event > (schema) > (property) input > (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_inject_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_inject_event > (schema) > (property) input > (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_inject_event > (schema) > (property) input > (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_inject_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_inject_event > (schema) > (property) input > (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_inject_event > (schema) > (property) input > (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_inject_event > (schema) > (property) input > (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_inject_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) beta.responses > (model) beta_response_inject_event > (schema) > (property) input > (items) > (variant) 29 > (property) output > (variant) 1 > (items) > (variant) 0": { "kind": "HttpDeclReference", "type": { @@ -63201,6 +63760,27 @@ Schema name: `BetaResponseInjectEvent` "literal": "program" } }, + "(resource) beta.responses > (model) beta_response_inject_event > (schema) > (property) input > (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_inject_event > (schema) > (property) input > (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_inject_event > (schema) > (property) input > (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_inject_event > (schema) > (property) input > (items) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -67852,6 +68432,291 @@ Schema name: `BetaResponseInjectEvent` Events emitted only over a Responses API WebSocket connection. +### error + +Emitted when an error occurs while processing a Responses WebSocket request. + +#### Schema + +Schema name: `(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52` + +```json +{ + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52": { + "kind": "HttpDeclTypeAlias", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/52", + "docstring": "Emitted when an error occurs while processing a Responses WebSocket request.", + "ident": "BetaResponseWsError", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "error" + }, + { + "ident": "type" + }, + { + "ident": "agent" + }, + { + "ident": "sequence_number" + }, + { + "ident": "status" + }, + { + "ident": "stream_id" + } + ] + }, + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) error", + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) type", + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) agent", + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) sequence_number", + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) status", + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) stream_id" + ] + }, + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) error": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaResponseWsError/properties/error", + "deprecated": false, + "key": "error", + "docstring": "Details about the error.", + "title": "Error payload", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "code" + }, + { + "ident": "message" + }, + { + "ident": "param" + }, + { + "ident": "type" + }, + { + "ident": "headers" + } + ] + }, + "optional": false, + "nullable": false, + "schemaType": "object", + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) error > (property) code", + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) error > (property) message", + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) error > (property) param", + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) error > (property) type", + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) error > (property) headers" + ] + }, + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaResponseWsError/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The type of the event. Always `error`.", + "type": { + "kind": "HttpTypeUnion", + "oasRef": "#/components/schemas/BetaResponseWsError/properties/type", + "types": [ + { + "kind": "HttpTypeLiteral", + "literal": "error" + } + ] + }, + "optional": false, + "nullable": false, + "schemaType": "enum", + "childrenParentSchema": "enum", + "children": [ + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) agent": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaResponseWsError/properties/agent", + "deprecated": false, + "key": "agent", + "docstring": "The agent that owns this multi-agent streaming event.", + "type": { + "kind": "HttpTypeObject", + "members": [ + { + "ident": "agent_name" + } + ] + }, + "optional": true, + "nullable": true, + "schemaType": "object", + "childrenParentSchema": "object", + "children": [ + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) agent > (property) agent_name" + ] + }, + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) sequence_number": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaResponseWsError/properties/sequence_number", + "deprecated": false, + "key": "sequence_number", + "docstring": "The sequence number of an error emitted by the response stream.", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": true, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) status": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaResponseWsError/properties/status", + "deprecated": false, + "key": "status", + "docstring": "The HTTP status code associated with a WebSocket protocol error.", + "type": { + "kind": "HttpTypeNumber" + }, + "optional": true, + "nullable": false, + "schemaType": "integer", + "children": [] + }, + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) stream_id": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaResponseWsError/properties/stream_id", + "deprecated": false, + "key": "stream_id", + "docstring": "The WebSocket lane that emitted this event. This field is present when the\noriginating `response.create` event supplied a `stream_id`.\n", + "type": { + "kind": "HttpTypeString" + }, + "optional": true, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) error > (property) code": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaErrorPayload/properties/code", + "deprecated": false, + "key": "code", + "docstring": "The error code that was emitted, if any.", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": true, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) error > (property) message": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaErrorPayload/properties/message", + "deprecated": false, + "key": "message", + "docstring": "The human-readable error message that was emitted.", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) error > (property) param": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaErrorPayload/properties/param", + "deprecated": false, + "key": "param", + "docstring": "The parameter name that was associated with the error, if any.", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": true, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) error > (property) type": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaErrorPayload/properties/type", + "deprecated": false, + "key": "type", + "docstring": "The error type that was emitted.", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + }, + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) error > (property) headers": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaErrorPayload/properties/headers", + "deprecated": false, + "key": "headers", + "docstring": "The response headers that were emitted with the error, if any.", + "type": { + "kind": "HttpTypeReference", + "oasRef": "#/components/schemas/BetaErrorPayload/properties/headers", + "ident": "Record", + "typeParameters": [ + { + "kind": "HttpTypeString" + }, + { + "kind": "HttpTypeString" + } + ] + }, + "optional": true, + "nullable": false, + "schemaType": "map", + "children": [] + }, + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) type > (member) 0": { + "kind": "HttpDeclReference", + "type": { + "kind": "HttpTypeLiteral", + "literal": "error" + } + }, + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (property) agent > (property) agent_name": { + "kind": "HttpDeclProperty", + "oasRef": "#/components/schemas/BetaAgentTag/properties/agent_name", + "deprecated": false, + "key": "agent_name", + "docstring": "The canonical name of the agent that produced this item.", + "type": { + "kind": "HttpTypeString" + }, + "optional": false, + "nullable": false, + "schemaType": "string", + "children": [] + } +} +``` + +#### Example + +```json +{} +``` + ### response.inject.created Emitted when all injected input items were validated and committed to the @@ -73670,7 +74535,7 @@ Schema name: `BetaResponseInjectFailedEvent` "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" }, @@ -75597,12 +76462,63 @@ Schema name: `BetaResponseInjectFailedEvent` "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_inject_failed_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 0", + "(resource) beta.responses > (model) beta_response_inject_failed_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 1", + "(resource) beta.responses > (model) beta_response_inject_failed_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 2", + "(resource) beta.responses > (model) beta_response_inject_failed_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 3" + ] }, "(resource) beta.responses > (model) beta_response_inject_failed_event > (schema) > (property) input > (items) > (variant) 28 > (property) output": { "kind": "HttpDeclProperty", @@ -80672,6 +81588,87 @@ Schema name: `BetaResponseInjectFailedEvent` "schemaType": "string", "children": [] }, + "(resource) beta.responses > (model) beta_response_inject_failed_event > (schema) > (property) input > (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_inject_failed_event > (schema) > (property) input > (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_inject_failed_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 1 > (property) code", + "(resource) beta.responses > (model) beta_response_inject_failed_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 1 > (property) message", + "(resource) beta.responses > (model) beta_response_inject_failed_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_inject_failed_event > (schema) > (property) input > (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_inject_failed_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 2 > (property) content", + "(resource) beta.responses > (model) beta_response_inject_failed_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type" + ] + }, + "(resource) beta.responses > (model) beta_response_inject_failed_event > (schema) > (property) input > (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_inject_failed_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 3 > (property) code", + "(resource) beta.responses > (model) beta_response_inject_failed_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 3 > (property) message", + "(resource) beta.responses > (model) beta_response_inject_failed_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type" + ] + }, "(resource) beta.responses > (model) beta_response_inject_failed_event > (schema) > (property) input > (items) > (variant) 28 > (property) status > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -87833,6 +88830,143 @@ Schema name: `BetaResponseInjectFailedEvent` "(resource) beta.responses > (model) beta_response_inject_failed_event > (schema) > (property) input > (items) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0" ] }, + "(resource) beta.responses > (model) beta_response_inject_failed_event > (schema) > (property) input > (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_inject_failed_event > (schema) > (property) input > (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_inject_failed_event > (schema) > (property) input > (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_inject_failed_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 1 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_inject_failed_event > (schema) > (property) input > (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_inject_failed_event > (schema) > (property) input > (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_inject_failed_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 2 > (property) type > (member) 0" + ] + }, + "(resource) beta.responses > (model) beta_response_inject_failed_event > (schema) > (property) input > (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_inject_failed_event > (schema) > (property) input > (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_inject_failed_event > (schema) > (property) input > (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_inject_failed_event > (schema) > (property) input > (items) > (variant) 28 > (property) error > (variant) 3 > (property) type > (member) 0" + ] + }, "(resource) beta.responses > (model) beta_response_inject_failed_event > (schema) > (property) input > (items) > (variant) 29 > (property) output > (variant) 1 > (items) > (variant) 0": { "kind": "HttpDeclReference", "type": { @@ -91665,6 +92799,27 @@ Schema name: `BetaResponseInjectFailedEvent` "literal": "program" } }, + "(resource) beta.responses > (model) beta_response_inject_failed_event > (schema) > (property) input > (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_inject_failed_event > (schema) > (property) input > (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_inject_failed_event > (schema) > (property) input > (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_inject_failed_event > (schema) > (property) input > (items) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": { "kind": "HttpDeclReference", "type": { @@ -108801,7 +109956,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" }, @@ -111787,12 +112942,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", @@ -118490,7 +119696,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" }, @@ -120417,12 +121623,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", @@ -125445,6 +126702,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": { @@ -131634,6 +132972,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": { @@ -138128,6 +139547,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", @@ -145199,6 +146755,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": { @@ -148582,6 +150275,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": { @@ -152348,6 +154062,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": { @@ -160125,14 +161860,14 @@ Schema name: `BetaResponseInProgressEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 19": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 18": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/19", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/18", "docstring": "Emitted when the response is in progress.", "ident": "BetaResponseInWsProgress", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/19", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/18", "types": [ { "kind": "HttpTypeReference", @@ -160143,12 +161878,12 @@ Schema name: `BetaResponseInProgressEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 19 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 18 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 19 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 18 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/19/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/18/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -172594,7 +174329,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" }, @@ -175580,12 +177315,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", @@ -182283,7 +184069,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" }, @@ -184210,12 +185996,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", @@ -189238,6 +191075,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": { @@ -195427,6 +197345,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": { @@ -201921,6 +203920,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", @@ -208992,6 +211128,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": { @@ -212375,6 +214648,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": { @@ -216141,6 +218435,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": { @@ -236387,7 +238702,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" }, @@ -239373,12 +241688,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", @@ -246076,7 +248442,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" }, @@ -248003,12 +250369,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", @@ -253031,6 +255448,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": { @@ -259220,6 +261718,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": { @@ -265714,6 +268293,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", @@ -272785,6 +275501,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": { @@ -276168,6 +279021,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": { @@ -279934,6 +282808,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": { @@ -287728,14 +290623,14 @@ Schema name: `BetaResponseFailedEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 20": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 19": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/20", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/19", "docstring": "An event that is emitted when a response fails.\n", "ident": "BetaResponseWsFailed", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/20", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/19", "types": [ { "kind": "HttpTypeReference", @@ -287746,12 +290641,12 @@ Schema name: `BetaResponseFailedEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 20 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 19 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 20 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 19 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/20/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/19/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -300197,7 +303092,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" }, @@ -303183,12 +306078,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", @@ -309886,7 +312832,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" }, @@ -311813,12 +314759,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", @@ -316841,6 +319838,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": { @@ -323030,6 +326108,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": { @@ -329524,6 +332683,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", @@ -336595,6 +339891,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": { @@ -339978,6 +343411,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": { @@ -343744,6 +347198,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": { @@ -351519,14 +354994,14 @@ Schema name: `BetaResponseIncompleteEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 21": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 20": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/21", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/20", "docstring": "An event that is emitted when a response finishes as incomplete.\n", "ident": "BetaResponseWsIncomplete", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/21", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/20", "types": [ { "kind": "HttpTypeReference", @@ -351537,12 +355012,12 @@ Schema name: `BetaResponseIncompleteEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 21 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 20 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 21 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 20 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/21/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/20/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -363988,7 +367463,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" }, @@ -366974,12 +370449,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", @@ -373677,7 +377203,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" }, @@ -375604,12 +379130,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", @@ -380632,6 +384209,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": { @@ -386821,6 +390479,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": { @@ -393315,6 +397054,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", @@ -400386,6 +404262,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": { @@ -403769,6 +407782,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": { @@ -407535,6 +411569,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": { @@ -415310,14 +419365,14 @@ Schema name: `BetaResponseOutputItemAddedEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 22": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 21": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/22", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/21", "docstring": "Emitted when a new output item is added.", "ident": "BetaResponseOutputItemWsAdded", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/22", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/21", "types": [ { "kind": "HttpTypeReference", @@ -415328,12 +419383,12 @@ Schema name: `BetaResponseOutputItemAddedEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 22 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 21 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 22 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 21 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/22/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/21/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -415384,7 +419439,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", @@ -419614,7 +423669,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" }, @@ -422600,12 +426655,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", @@ -427662,6 +431768,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": { @@ -434486,6 +438673,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", @@ -438089,6 +442413,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": { @@ -442544,14 +446889,14 @@ Schema name: `BetaResponseOutputItemDoneEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 23": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 22": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/23", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/22", "docstring": "Emitted when an output item is marked done.", "ident": "BetaResponseOutputItemWsDone", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/23", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/22", "types": [ { "kind": "HttpTypeReference", @@ -442562,12 +446907,12 @@ Schema name: `BetaResponseOutputItemDoneEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 23 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 22 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 23 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 22 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/23/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/22/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -446848,7 +451193,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" }, @@ -449834,12 +454179,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", @@ -454896,6 +459292,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": { @@ -461720,6 +466197,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", @@ -465323,6 +469937,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": { @@ -472232,14 +476867,14 @@ Schema name: `BetaResponseTextDeltaEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 32": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 31": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/32", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/31", "docstring": "Emitted when there is an additional text delta.", "ident": "BetaResponseTextWsDelta", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/32", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/31", "types": [ { "kind": "HttpTypeReference", @@ -472250,12 +476885,12 @@ Schema name: `BetaResponseTextDeltaEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 32 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 31 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 32 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 31 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/32/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/31/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -472596,14 +477231,14 @@ Schema name: `BetaResponseTextDoneEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 33": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 32": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/33", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/32", "docstring": "Emitted when text content is finalized.", "ident": "BetaResponseTextWsDone", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/33", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/32", "types": [ { "kind": "HttpTypeReference", @@ -472614,12 +477249,12 @@ Schema name: `BetaResponseTextDoneEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 33 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 32 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 33 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 32 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/33/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/32/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -472960,14 +477595,14 @@ Schema name: `BetaResponseRefusalDeltaEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 30": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 29": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/30", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/29", "docstring": "Emitted when there is a partial refusal text.", "ident": "BetaResponseRefusalWsDelta", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/30", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/29", "types": [ { "kind": "HttpTypeReference", @@ -472978,12 +477613,12 @@ Schema name: `BetaResponseRefusalDeltaEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 30 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 29 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 30 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 29 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/30/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/29/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -473200,14 +477835,14 @@ Schema name: `BetaResponseRefusalDoneEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 31": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 30": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/31", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/30", "docstring": "Emitted when refusal text is finalized.", "ident": "BetaResponseRefusalWsDone", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/31", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/30", "types": [ { "kind": "HttpTypeReference", @@ -473218,12 +477853,12 @@ Schema name: `BetaResponseRefusalDoneEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 31 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 30 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 31 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 30 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/31/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/30/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -473440,14 +478075,14 @@ Schema name: `BetaResponseFunctionCallArgumentsDeltaEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 17": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 16": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/17", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/16", "docstring": "Emitted when there is a partial function-call arguments delta.", "ident": "BetaResponseFunctionCallArgumentsWsDelta", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/17", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/16", "types": [ { "kind": "HttpTypeReference", @@ -473458,12 +478093,12 @@ Schema name: `BetaResponseFunctionCallArgumentsDeltaEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 17 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 16 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 17 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 16 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/17/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/16/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -473661,14 +478296,14 @@ Schema name: `BetaResponseFunctionCallArgumentsDoneEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 18": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 17": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/18", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/17", "docstring": "Emitted when function-call arguments are finalized.", "ident": "BetaResponseFunctionCallArgumentsWsDone", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/18", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/17", "types": [ { "kind": "HttpTypeReference", @@ -473679,12 +478314,12 @@ Schema name: `BetaResponseFunctionCallArgumentsDoneEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 18 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 17 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 18 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 17 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/18/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/17/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -473900,14 +478535,14 @@ Schema name: `BetaResponseFileSearchCallInProgressEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 15": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 14": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/15", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/14", "docstring": "Emitted when a file search call is initiated.", "ident": "BetaResponseFileSearchCallInWsProgress", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/15", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/14", "types": [ { "kind": "HttpTypeReference", @@ -473918,12 +478553,12 @@ Schema name: `BetaResponseFileSearchCallInProgressEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 15 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 14 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 15 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 14 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/15/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/14/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -474102,14 +478737,14 @@ Schema name: `BetaResponseFileSearchCallSearchingEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 16": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 15": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/16", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/15", "docstring": "Emitted when a file search is currently searching.", "ident": "BetaResponseFileSearchCallWsSearching", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/16", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/15", "types": [ { "kind": "HttpTypeReference", @@ -474120,12 +478755,12 @@ Schema name: `BetaResponseFileSearchCallSearchingEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 16 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 15 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 16 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 15 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/16/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/15/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -474304,14 +478939,14 @@ Schema name: `BetaResponseFileSearchCallCompletedEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 14": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 13": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/14", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/13", "docstring": "Emitted when a file search call is completed (results found).", "ident": "BetaResponseFileSearchCallWsCompleted", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/14", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/13", "types": [ { "kind": "HttpTypeReference", @@ -474322,12 +478957,12 @@ Schema name: `BetaResponseFileSearchCallCompletedEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 14 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 13 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 14 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 13 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/14/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/13/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -474506,14 +479141,14 @@ Schema name: `BetaResponseWebSearchCallInProgressEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 35": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 34": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/35", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/34", "docstring": "Emitted when a web search call is initiated.", "ident": "BetaResponseWebSearchCallInWsProgress", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/35", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/34", "types": [ { "kind": "HttpTypeReference", @@ -474524,12 +479159,12 @@ Schema name: `BetaResponseWebSearchCallInProgressEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 35 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 34 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 35 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 34 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/35/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/34/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -474708,14 +479343,14 @@ Schema name: `BetaResponseWebSearchCallSearchingEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 36": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 35": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/36", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/35", "docstring": "Emitted when a web search call is executing.", "ident": "BetaResponseWebSearchCallWsSearching", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/36", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/35", "types": [ { "kind": "HttpTypeReference", @@ -474726,12 +479361,12 @@ Schema name: `BetaResponseWebSearchCallSearchingEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 36 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 35 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 36 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 35 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/36/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/35/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -474910,14 +479545,14 @@ Schema name: `BetaResponseWebSearchCallCompletedEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 34": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 33": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/34", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/33", "docstring": "Emitted when a web search call is completed.", "ident": "BetaResponseWebSearchCallWsCompleted", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/34", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/33", "types": [ { "kind": "HttpTypeReference", @@ -474928,12 +479563,12 @@ Schema name: `BetaResponseWebSearchCallCompletedEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 34 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 33 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 34 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 33 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/34/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/33/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -475112,14 +479747,14 @@ Schema name: `BetaResponseReasoningSummaryPartAddedEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 24": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 23": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/24", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/23", "docstring": "Emitted when a new reasoning summary part is added.", "ident": "BetaResponseReasoningSummaryPartWsAdded", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/24", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/23", "types": [ { "kind": "HttpTypeReference", @@ -475130,12 +479765,12 @@ Schema name: `BetaResponseReasoningSummaryPartAddedEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 24 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 23 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 24 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 23 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/24/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/23/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -475412,14 +480047,14 @@ Schema name: `BetaResponseReasoningSummaryPartDoneEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 25": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 24": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/25", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/24", "docstring": "Emitted when a reasoning summary part is completed.", "ident": "BetaResponseReasoningSummaryPartWsDone", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/25", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/24", "types": [ { "kind": "HttpTypeReference", @@ -475430,12 +480065,12 @@ Schema name: `BetaResponseReasoningSummaryPartDoneEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 25 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 24 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 25 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 24 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/25/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/24/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -475747,14 +480382,14 @@ Schema name: `BetaResponseReasoningSummaryTextDeltaEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 26": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 25": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/26", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/25", "docstring": "Emitted when a delta is added to a reasoning summary text.", "ident": "BetaResponseReasoningSummaryTextWsDelta", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/26", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/25", "types": [ { "kind": "HttpTypeReference", @@ -475765,12 +480400,12 @@ Schema name: `BetaResponseReasoningSummaryTextDeltaEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 26 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 25 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 26 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 25 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/26/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/25/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -475987,14 +480622,14 @@ Schema name: `BetaResponseReasoningSummaryTextDoneEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 27": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 26": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/27", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/26", "docstring": "Emitted when a reasoning summary text is completed.", "ident": "BetaResponseReasoningSummaryTextWsDone", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/27", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/26", "types": [ { "kind": "HttpTypeReference", @@ -476005,12 +480640,12 @@ Schema name: `BetaResponseReasoningSummaryTextDoneEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 27 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 26 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 27 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 26 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/27/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/26/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -476227,14 +480862,14 @@ Schema name: `BetaResponseReasoningTextDeltaEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 28": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 27": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/28", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/27", "docstring": "Emitted when a delta is added to a reasoning text.", "ident": "BetaResponseReasoningTextWsDelta", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/28", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/27", "types": [ { "kind": "HttpTypeReference", @@ -476245,12 +480880,12 @@ Schema name: `BetaResponseReasoningTextDeltaEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 28 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 27 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 28 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 27 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/28/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/27/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -476467,14 +481102,14 @@ Schema name: `BetaResponseReasoningTextDoneEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 29": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 28": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/29", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/28", "docstring": "Emitted when a reasoning text is completed.", "ident": "BetaResponseReasoningTextWsDone", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/29", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/28", "types": [ { "kind": "HttpTypeReference", @@ -476485,12 +481120,12 @@ Schema name: `BetaResponseReasoningTextDoneEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 29 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 28 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 29 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 28 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/29/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/28/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -476707,14 +481342,14 @@ Schema name: `BetaResponseImageGenCallCompletedEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 37": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 36": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/37", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/36", "docstring": "Emitted when an image generation tool call has completed and the final image is available.\n", "ident": "BetaResponseImageGenCallWsCompleted", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/37", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/36", "types": [ { "kind": "HttpTypeReference", @@ -476725,12 +481360,12 @@ Schema name: `BetaResponseImageGenCallCompletedEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 37 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 36 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 37 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 36 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/37/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/36/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -476909,14 +481544,14 @@ Schema name: `BetaResponseImageGenCallGeneratingEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 38": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 37": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/38", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/37", "docstring": "Emitted when an image generation tool call is actively generating an image (intermediate state).\n", "ident": "BetaResponseImageGenCallWsGenerating", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/38", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/37", "types": [ { "kind": "HttpTypeReference", @@ -476927,12 +481562,12 @@ Schema name: `BetaResponseImageGenCallGeneratingEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 38 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 37 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 38 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 37 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/38/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/37/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -477111,14 +481746,14 @@ Schema name: `BetaResponseImageGenCallInProgressEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 39": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 38": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/39", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/38", "docstring": "Emitted when an image generation tool call is in progress.\n", "ident": "BetaResponseImageGenCallInWsProgress", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/39", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/38", "types": [ { "kind": "HttpTypeReference", @@ -477129,12 +481764,12 @@ Schema name: `BetaResponseImageGenCallInProgressEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 39 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 38 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 39 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 38 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/39/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/38/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -477313,14 +481948,14 @@ Schema name: `BetaResponseImageGenCallPartialImageEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 40": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 39": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/40", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/39", "docstring": "Emitted when a partial image is available during image generation streaming.\n", "ident": "BetaResponseImageGenCallPartialWsImage", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/40", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/39", "types": [ { "kind": "HttpTypeReference", @@ -477331,12 +481966,12 @@ Schema name: `BetaResponseImageGenCallPartialImageEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 40 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 39 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 40 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 39 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/40/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/39/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -477553,14 +482188,14 @@ Schema name: `BetaResponseMCPCallArgumentsDeltaEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 41": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 40": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/41", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/40", "docstring": "Emitted when there is a delta (partial update) to the arguments of an MCP tool call.\n", "ident": "BetaResponseMcpCallArgumentsWsDelta", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/41", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/40", "types": [ { "kind": "HttpTypeReference", @@ -477571,12 +482206,12 @@ Schema name: `BetaResponseMCPCallArgumentsDeltaEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 41 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 40 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 41 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 40 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/41/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/40/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -477774,14 +482409,14 @@ Schema name: `BetaResponseMCPCallArgumentsDoneEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 42": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 41": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/42", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/41", "docstring": "Emitted when the arguments for an MCP tool call are finalized.\n", "ident": "BetaResponseMcpCallArgumentsWsDone", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/42", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/41", "types": [ { "kind": "HttpTypeReference", @@ -477792,12 +482427,12 @@ Schema name: `BetaResponseMCPCallArgumentsDoneEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 42 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 41 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 42 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 41 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/42/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/41/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -477995,14 +482630,14 @@ Schema name: `BetaResponseMCPCallCompletedEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 43": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 42": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/43", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/42", "docstring": "Emitted when an MCP tool call has completed successfully.\n", "ident": "BetaResponseMcpCallWsCompleted", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/43", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/42", "types": [ { "kind": "HttpTypeReference", @@ -478013,12 +482648,12 @@ Schema name: `BetaResponseMCPCallCompletedEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 43 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 42 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 43 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 42 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/43/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/42/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -478197,14 +482832,14 @@ Schema name: `BetaResponseMCPCallFailedEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 44": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 43": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/44", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/43", "docstring": "Emitted when an MCP tool call has failed.\n", "ident": "BetaResponseMcpCallWsFailed", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/44", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/43", "types": [ { "kind": "HttpTypeReference", @@ -478215,12 +482850,12 @@ Schema name: `BetaResponseMCPCallFailedEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 44 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 43 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 44 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 43 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/44/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/43/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -478399,14 +483034,14 @@ Schema name: `BetaResponseMCPCallInProgressEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 45": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 44": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/45", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/44", "docstring": "Emitted when an MCP tool call is in progress.\n", "ident": "BetaResponseMcpCallInWsProgress", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/45", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/44", "types": [ { "kind": "HttpTypeReference", @@ -478417,12 +483052,12 @@ Schema name: `BetaResponseMCPCallInProgressEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 45 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 44 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 45 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 44 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/45/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/44/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -478601,14 +483236,14 @@ Schema name: `BetaResponseMCPListToolsCompletedEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 46": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 45": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/46", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/45", "docstring": "Emitted when the list of available MCP tools has been successfully retrieved.\n", "ident": "BetaResponseMcpListToolsWsCompleted", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/46", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/45", "types": [ { "kind": "HttpTypeReference", @@ -478619,12 +483254,12 @@ Schema name: `BetaResponseMCPListToolsCompletedEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 46 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 45 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 46 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 45 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/46/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/45/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -478803,14 +483438,14 @@ Schema name: `BetaResponseMCPListToolsFailedEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 47": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 46": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/47", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/46", "docstring": "Emitted when the attempt to list available MCP tools has failed.\n", "ident": "BetaResponseMcpListToolsWsFailed", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/47", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/46", "types": [ { "kind": "HttpTypeReference", @@ -478821,12 +483456,12 @@ Schema name: `BetaResponseMCPListToolsFailedEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 47 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 46 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 47 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 46 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/47/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/46/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -479005,14 +483640,14 @@ Schema name: `BetaResponseMCPListToolsInProgressEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 48": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 47": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/48", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/47", "docstring": "Emitted when the system is in the process of retrieving the list of available MCP tools.\n", "ident": "BetaResponseMcpListToolsInWsProgress", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/48", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/47", "types": [ { "kind": "HttpTypeReference", @@ -479023,12 +483658,12 @@ Schema name: `BetaResponseMCPListToolsInProgressEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 48 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 47 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 48 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 47 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/48/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/47/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -480255,14 +484890,14 @@ Schema name: `BetaResponseOutputTextAnnotationAddedEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 49": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 48": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/49", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/48", "docstring": "Emitted when an annotation is added to output text content.\n", "ident": "BetaResponseOutputTextAnnotationWsAdded", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/49", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/48", "types": [ { "kind": "HttpTypeReference", @@ -480273,12 +484908,12 @@ Schema name: `BetaResponseOutputTextAnnotationAddedEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 49 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 48 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 49 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 48 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/49/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/48/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -480341,14 +484976,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", @@ -480466,6 +485184,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": { @@ -480486,6 +485332,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" + } } } ``` @@ -480500,10 +485672,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 } @@ -480519,14 +485691,14 @@ Schema name: `BetaResponseQueuedEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 50": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 49": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/50", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/49", "docstring": "Emitted when a response is queued and waiting to be processed.\n", "ident": "BetaResponseWsQueued", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/50", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/49", "types": [ { "kind": "HttpTypeReference", @@ -480537,12 +485709,12 @@ Schema name: `BetaResponseQueuedEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 50 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 49 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 50 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 49 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/50/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/49/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -492988,7 +498160,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" }, @@ -495974,12 +501146,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", @@ -502677,7 +507900,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" }, @@ -504604,12 +509827,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", @@ -509632,6 +514906,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": { @@ -515821,6 +521176,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": { @@ -522315,6 +527751,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", @@ -529272,10 +534845,78 @@ Schema name: `BetaResponseQueuedEvent` "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) 23 > (property) caller > (variant) 0 > (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": { + "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) 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": { + "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) 24 > (property) caller > (variant) 0 > (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) 24 > (property) caller > (variant) 1 > (property) caller_id": { "kind": "HttpDeclProperty", "oasRef": "#/components/schemas/BetaProgramToolCallCallerParam/properties/caller_id", "deprecated": false, @@ -529293,7 +534934,7 @@ Schema name: `BetaResponseQueuedEvent` "schemaType": "string", "children": [] }, - "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 23 > (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, @@ -529315,75 +534956,144 @@ Schema name: `BetaResponseQueuedEvent` "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) 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) 1 > (property) code": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaDirectToolCallCallerParam/properties/type", + "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", - "docstring": "The caller type. Always `direct`.", "type": { "kind": "HttpTypeUnion", - "oasRef": "#/components/schemas/BetaDirectToolCallCallerParam/properties/type", + "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type", "types": [ { "kind": "HttpTypeLiteral", - "literal": "direct" + "literal": "mcp_protocol_error" } ] }, - "default": "direct", + "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) 24 > (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) 1 > (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": { + "(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/BetaProgramToolCallCallerParam/properties/caller_id", + "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content", "deprecated": false, - "key": "caller_id", - "docstring": "The call ID of the program item that produced this tool call.", + "key": "content", "type": { - "kind": "HttpTypeString" + "kind": "HttpTypeUnknown" }, - "constraints": { - "minLength": 1, - "maxLength": 64 + "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) 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": { @@ -532769,6 +538479,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": { @@ -536535,6 +542266,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": { @@ -544285,14 +550037,14 @@ Schema name: `BetaResponseCustomToolCallInputDeltaEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 51": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 50": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/51", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/50", "docstring": "Event representing a delta (partial update) to the input of a custom tool call.\n", "ident": "BetaResponseCustomToolCallInputWsDelta", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/51", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/50", "types": [ { "kind": "HttpTypeReference", @@ -544303,12 +550055,12 @@ Schema name: `BetaResponseCustomToolCallInputDeltaEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 51 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 50 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 51 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 50 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/51/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/50/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -544505,14 +550257,14 @@ Schema name: `BetaResponseCustomToolCallInputDoneEvent` ```json { - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 51": { "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/52", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/51", "docstring": "Event indicating that input for a custom tool call is complete.\n", "ident": "BetaResponseCustomToolCallInputWsDone", "type": { "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/52", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/51", "types": [ { "kind": "HttpTypeReference", @@ -544523,12 +550275,12 @@ Schema name: `BetaResponseCustomToolCallInputDoneEvent` }, "childrenParentSchema": "intersection", "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (entry) 1 > (property) stream_id" + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 51 > (entry) 1 > (property) stream_id" ] }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 52 > (entry) 1 > (property) stream_id": { + "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 51 > (entry) 1 > (property) stream_id": { "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/52/allOf/1/properties/stream_id", + "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/51/allOf/1/properties/stream_id", "deprecated": false, "key": "stream_id", "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", @@ -544715,227 +550467,6 @@ Schema name: `BetaResponseCustomToolCallInputDoneEvent` } ``` -### error - -Emitted when an error occurs. - -#### Schema - -Schema name: `BetaResponseErrorEvent` - -```json -{ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 13": { - "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/13", - "docstring": "Emitted when an error occurs.", - "ident": "BetaResponseWsError", - "type": { - "kind": "HttpTypeIntersection", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/13", - "types": [ - { - "kind": "HttpTypeReference", - "ident": "BetaResponseErrorEvent", - "$ref": "(resource) beta.responses > (model) beta_response_error_event > (schema)" - } - ] - }, - "childrenParentSchema": "intersection", - "children": [ - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 13 > (entry) 1 > (property) stream_id" - ] - }, - "(resource) beta.responses > (model) beta_responses_server_event > (schema) > (variant) 13 > (entry) 1 > (property) stream_id": { - "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponsesServerEvent/anyOf/13/allOf/1/properties/stream_id", - "deprecated": false, - "key": "stream_id", - "docstring": "The WebSocket lane that emitted this event. This field is present\nwhen the originating `response.create` event supplied a\n`stream_id`.\n", - "type": { - "kind": "HttpTypeString" - }, - "optional": true, - "nullable": false, - "schemaType": "string", - "children": [] - }, - "(resource) beta.responses > (model) beta_response_error_event > (schema)": { - "kind": "HttpDeclTypeAlias", - "oasRef": "#/components/schemas/BetaResponseErrorEvent", - "docstring": "Emitted when an error occurs.", - "ident": "BetaResponseErrorEvent", - "type": { - "kind": "HttpTypeObject", - "members": [ - { - "ident": "code" - }, - { - "ident": "message" - }, - { - "ident": "param" - }, - { - "ident": "sequence_number" - }, - { - "ident": "type" - }, - { - "ident": "agent" - } - ] - }, - "childrenParentSchema": "object", - "children": [ - "(resource) beta.responses > (model) beta_response_error_event > (schema) > (property) code", - "(resource) beta.responses > (model) beta_response_error_event > (schema) > (property) message", - "(resource) beta.responses > (model) beta_response_error_event > (schema) > (property) param", - "(resource) beta.responses > (model) beta_response_error_event > (schema) > (property) sequence_number", - "(resource) beta.responses > (model) beta_response_error_event > (schema) > (property) type", - "(resource) beta.responses > (model) beta_response_error_event > (schema) > (property) agent" - ] - }, - "(resource) beta.responses > (model) beta_response_error_event > (schema) > (property) code": { - "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponseErrorEvent/properties/code", - "deprecated": false, - "key": "code", - "docstring": "The error code.\n", - "type": { - "kind": "HttpTypeString" - }, - "optional": false, - "nullable": true, - "schemaType": "string", - "children": [] - }, - "(resource) beta.responses > (model) beta_response_error_event > (schema) > (property) message": { - "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponseErrorEvent/properties/message", - "deprecated": false, - "key": "message", - "docstring": "The error message.\n", - "type": { - "kind": "HttpTypeString" - }, - "optional": false, - "nullable": false, - "schemaType": "string", - "children": [] - }, - "(resource) beta.responses > (model) beta_response_error_event > (schema) > (property) param": { - "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponseErrorEvent/properties/param", - "deprecated": false, - "key": "param", - "docstring": "The error parameter.\n", - "type": { - "kind": "HttpTypeString" - }, - "optional": false, - "nullable": true, - "schemaType": "string", - "children": [] - }, - "(resource) beta.responses > (model) beta_response_error_event > (schema) > (property) sequence_number": { - "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponseErrorEvent/properties/sequence_number", - "deprecated": false, - "key": "sequence_number", - "docstring": "The sequence number of this event.", - "type": { - "kind": "HttpTypeNumber" - }, - "optional": false, - "nullable": false, - "schemaType": "integer", - "children": [] - }, - "(resource) beta.responses > (model) beta_response_error_event > (schema) > (property) type": { - "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponseErrorEvent/properties/type", - "deprecated": false, - "key": "type", - "docstring": "The type of the event. Always `error`.\n", - "type": { - "kind": "HttpTypeUnion", - "oasRef": "#/components/schemas/BetaResponseErrorEvent/properties/type", - "types": [ - { - "kind": "HttpTypeLiteral", - "literal": "error" - } - ] - }, - "optional": false, - "nullable": false, - "schemaType": "enum", - "childrenParentSchema": "enum", - "children": [ - "(resource) beta.responses > (model) beta_response_error_event > (schema) > (property) type > (member) 0" - ] - }, - "(resource) beta.responses > (model) beta_response_error_event > (schema) > (property) agent": { - "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaResponseErrorEvent/properties/agent", - "deprecated": false, - "key": "agent", - "docstring": "The agent that owns this multi-agent streaming event.", - "type": { - "kind": "HttpTypeObject", - "members": [ - { - "ident": "agent_name" - } - ] - }, - "optional": true, - "nullable": true, - "schemaType": "object", - "childrenParentSchema": "object", - "children": [ - "(resource) beta.responses > (model) beta_response_error_event > (schema) > (property) agent > (property) agent_name" - ] - }, - "(resource) beta.responses > (model) beta_response_error_event > (schema) > (property) type > (member) 0": { - "kind": "HttpDeclReference", - "type": { - "kind": "HttpTypeLiteral", - "literal": "error" - } - }, - "(resource) beta.responses > (model) beta_response_error_event > (schema) > (property) agent > (property) agent_name": { - "kind": "HttpDeclProperty", - "oasRef": "#/components/schemas/BetaAgentTag/properties/agent_name", - "deprecated": false, - "key": "agent_name", - "docstring": "The canonical name of the agent that produced this item.", - "type": { - "kind": "HttpTypeString" - }, - "optional": false, - "nullable": false, - "schemaType": "string", - "children": [] - } -} -``` - -#### Example - -```json -{ - "type": "error", - "code": "ERR_SOMETHING", - "message": "Something went wrong", - "param": null, - "sequence_number": 1 -} -``` - ### response.audio.delta Emitted when there is a partial audio response.