SpyBara
Go Premium

Reference 2026-08-13 22:00 UTC to 2026-08-14 23:57 UTC

44 files changed +20,394 −1,529. View all changes and history on the product overview
2026
Sat 15 01:01 Fri 14 23:57 Thu 13 22:00 Wed 12 16:01 Tue 11 22:59 Mon 10 22:00 Sat 8 00:59 Fri 7 21:59 Thu 6 18:59 Wed 5 02:01 Tue 4 22:59 Mon 3 21:58 Sat 1 01:00

go/index.md +1 −1

Details

30<!-- x-release-please-start-version -->30<!-- x-release-please-start-version -->

31 31 

32```sh32```sh

33go get -u 'github.com/openai/openai-go/v3@v3.50.0'33go get -u 'github.com/openai/openai-go/v3@v3.51.0'

34```34```

35 35 

36<!-- x-release-please-end -->36<!-- x-release-please-end -->

java/index.md +3 −3

Details

15### Gradle15### Gradle

16 16 

17```kotlin17```kotlin

18implementation("com.openai:openai-java:4.50.0")18implementation("com.openai:openai-java:4.51.0")

19```19```

20 20 

21### Maven21### Maven


24<dependency>24<dependency>

25 <groupId>com.openai</groupId>25 <groupId>com.openai</groupId>

26 <artifactId>openai-java</artifactId>26 <artifactId>openai-java</artifactId>

27 <version>4.50.0</version>27 <version>4.51.0</version>

28</dependency>28</dependency>

29```29```

30 30 


87<!-- x-release-please-start-version -->87<!-- x-release-please-start-version -->

88 88 

89```kotlin89```kotlin

90implementation("com.openai:openai-java-bedrock:4.50.0")90implementation("com.openai:openai-java-bedrock:4.51.0")

91```91```

92 92 

93<!-- x-release-please-end -->93<!-- x-release-please-end -->

Details

12173 for reasoning items returned by `POST /v1/responses` and WebSocket12173 for reasoning items returned by `POST /v1/responses` and WebSocket

12174 `response.create` requests.12174 `response.create` requests.

12175 12175 

12176 When streaming, use the completed reasoning item and its

12177 `encrypted_content` from the `response.output_item.done` event in

12178 subsequent requests. The `encrypted_content` in

12179 `response.output_item.added` may be incomplete. This is especially

12180 important when `store` is `false` or when using Zero Data Retention.

12181 

12176 - `status: optional "in_progress" or "completed" or "incomplete"`12182 - `status: optional "in_progress" or "completed" or "incomplete"`

12177 12183 

12178 The status of the item. One of `in_progress`, `completed`, or12184 The status of the item. One of `in_progress`, `completed`, or


12946 Unique identifier for the MCP tool call approval request.12952 Unique identifier for the MCP tool call approval request.

12947 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.12953 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

12948 12954 

12949 - `error: optional string or null`12955 - `error: optional BetaMcpToolCallError or null`

12950 12956 

12951 The error from the tool call, if any.12957 The error from the tool call, if any.

12952 12958 

12959 - `McpProtocolError object { code, message, type }`

12960 

12961 - `code: number`

12962 

12963 - `message: string`

12964 

12965 - `type: "mcp_protocol_error"`

12966 

12967 - `"mcp_protocol_error"`

12968 

12969 - `McpToolExecutionError object { content, type }`

12970 

12971 - `content: unknown`

12972 

12973 - `type: "mcp_tool_execution_error"`

12974 

12975 - `"mcp_tool_execution_error"`

12976 

12977 - `HTTPError object { code, message, type }`

12978 

12979 - `code: number`

12980 

12981 - `message: string`

12982 

12983 - `type: "http_error"`

12984 

12985 - `"http_error"`

12986 

12953 - `output: optional string or null`12987 - `output: optional string or null`

12954 12988 

12955 The output from the tool call.12989 The output from the tool call.


14235 for reasoning items returned by `POST /v1/responses` and WebSocket14269 for reasoning items returned by `POST /v1/responses` and WebSocket

14236 `response.create` requests.14270 `response.create` requests.

14237 14271 

14272 When streaming, use the completed reasoning item and its

14273 `encrypted_content` from the `response.output_item.done` event in

14274 subsequent requests. The `encrypted_content` in

14275 `response.output_item.added` may be incomplete. This is especially

14276 important when `store` is `false` or when using Zero Data Retention.

14277 

14238 - `status: optional "in_progress" or "completed" or "incomplete"`14278 - `status: optional "in_progress" or "completed" or "incomplete"`

14239 14279 

14240 The status of the item. One of `in_progress`, `completed`, or14280 The status of the item. One of `in_progress`, `completed`, or


17112 Unique identifier for the MCP tool call approval request.17152 Unique identifier for the MCP tool call approval request.

17113 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.17153 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

17114 17154 

17115 - `error: optional string or null`17155 - `error: optional BetaMcpToolCallError or null`

17116 17156 

17117 The error from the tool call, if any.17157 The error from the tool call, if any.

17118 17158 


23366 for reasoning items returned by `POST /v1/responses` and WebSocket23406 for reasoning items returned by `POST /v1/responses` and WebSocket

23367 `response.create` requests.23407 `response.create` requests.

23368 23408 

23409 When streaming, use the completed reasoning item and its

23410 `encrypted_content` from the `response.output_item.done` event in

23411 subsequent requests. The `encrypted_content` in

23412 `response.output_item.added` may be incomplete. This is especially

23413 important when `store` is `false` or when using Zero Data Retention.

23414 

23369 - `status: optional "in_progress" or "completed" or "incomplete"`23415 - `status: optional "in_progress" or "completed" or "incomplete"`

23370 23416 

23371 The status of the item. One of `in_progress`, `completed`, or23417 The status of the item. One of `in_progress`, `completed`, or


24139 Unique identifier for the MCP tool call approval request.24185 Unique identifier for the MCP tool call approval request.

24140 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.24186 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

24141 24187 

24142 - `error: optional string or null`24188 - `error: optional BetaMcpToolCallError or null`

24143 24189 

24144 The error from the tool call, if any.24190 The error from the tool call, if any.

24145 24191 

24192 - `McpProtocolError object { code, message, type }`

24193 

24194 - `code: number`

24195 

24196 - `message: string`

24197 

24198 - `type: "mcp_protocol_error"`

24199 

24200 - `"mcp_protocol_error"`

24201 

24202 - `McpToolExecutionError object { content, type }`

24203 

24204 - `content: unknown`

24205 

24206 - `type: "mcp_tool_execution_error"`

24207 

24208 - `"mcp_tool_execution_error"`

24209 

24210 - `HTTPError object { code, message, type }`

24211 

24212 - `code: number`

24213 

24214 - `message: string`

24215 

24216 - `type: "http_error"`

24217 

24218 - `"http_error"`

24219 

24146 - `output: optional string or null`24220 - `output: optional string or null`

24147 24221 

24148 The output from the tool call.24222 The output from the tool call.


28291 for reasoning items returned by `POST /v1/responses` and WebSocket28365 for reasoning items returned by `POST /v1/responses` and WebSocket

28292 `response.create` requests.28366 `response.create` requests.

28293 28367 

28368 When streaming, use the completed reasoning item and its

28369 `encrypted_content` from the `response.output_item.done` event in

28370 subsequent requests. The `encrypted_content` in

28371 `response.output_item.added` may be incomplete. This is especially

28372 important when `store` is `false` or when using Zero Data Retention.

28373 

28294 - `status: optional "in_progress" or "completed" or "incomplete"`28374 - `status: optional "in_progress" or "completed" or "incomplete"`

28295 28375 

28296 The status of the item. One of `in_progress`, `completed`, or28376 The status of the item. One of `in_progress`, `completed`, or


29050 Unique identifier for the MCP tool call approval request.29130 Unique identifier for the MCP tool call approval request.

29051 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.29131 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

29052 29132 

29053 - `error: optional string or null`29133 - `error: optional BetaMcpToolCallError or null`

29054 29134 

29055 The error from the tool call, if any.29135 The error from the tool call, if any.

29056 29136 

29137 - `McpProtocolError object { code, message, type }`

29138 

29139 - `code: number`

29140 

29141 - `message: string`

29142 

29143 - `type: "mcp_protocol_error"`

29144 

29145 - `"mcp_protocol_error"`

29146 

29147 - `McpToolExecutionError object { content, type }`

29148 

29149 - `content: unknown`

29150 

29151 - `type: "mcp_tool_execution_error"`

29152 

29153 - `"mcp_tool_execution_error"`

29154 

29155 - `HTTPError object { code, message, type }`

29156 

29157 - `code: number`

29158 

29159 - `message: string`

29160 

29161 - `type: "http_error"`

29162 

29163 - `"http_error"`

29164 

29057 - `output: optional string or null`29165 - `output: optional string or null`

29058 29166 

29059 The output from the tool call.29167 The output from the tool call.


33225 for reasoning items returned by `POST /v1/responses` and WebSocket33333 for reasoning items returned by `POST /v1/responses` and WebSocket

33226 `response.create` requests.33334 `response.create` requests.

33227 33335 

33336 When streaming, use the completed reasoning item and its

33337 `encrypted_content` from the `response.output_item.done` event in

33338 subsequent requests. The `encrypted_content` in

33339 `response.output_item.added` may be incomplete. This is especially

33340 important when `store` is `false` or when using Zero Data Retention.

33341 

33228 - `status: optional "in_progress" or "completed" or "incomplete"`33342 - `status: optional "in_progress" or "completed" or "incomplete"`

33229 33343 

33230 The status of the item. One of `in_progress`, `completed`, or33344 The status of the item. One of `in_progress`, `completed`, or


33998 Unique identifier for the MCP tool call approval request.34112 Unique identifier for the MCP tool call approval request.

33999 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.34113 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

34000 34114 

34001 - `error: optional string or null`34115 - `error: optional BetaMcpToolCallError or null`

34002 34116 

34003 The error from the tool call, if any.34117 The error from the tool call, if any.

34004 34118 

34119 - `McpProtocolError object { code, message, type }`

34120 

34121 - `code: number`

34122 

34123 - `message: string`

34124 

34125 - `type: "mcp_protocol_error"`

34126 

34127 - `"mcp_protocol_error"`

34128 

34129 - `McpToolExecutionError object { content, type }`

34130 

34131 - `content: unknown`

34132 

34133 - `type: "mcp_tool_execution_error"`

34134 

34135 - `"mcp_tool_execution_error"`

34136 

34137 - `HTTPError object { code, message, type }`

34138 

34139 - `code: number`

34140 

34141 - `message: string`

34142 

34143 - `type: "http_error"`

34144 

34145 - `"http_error"`

34146 

34005 - `output: optional string or null`34147 - `output: optional string or null`

34006 34148 

34007 The output from the tool call.34149 The output from the tool call.


39950 for reasoning items returned by `POST /v1/responses` and WebSocket40092 for reasoning items returned by `POST /v1/responses` and WebSocket

39951 `response.create` requests.40093 `response.create` requests.

39952 40094 

40095 When streaming, use the completed reasoning item and its

40096 `encrypted_content` from the `response.output_item.done` event in

40097 subsequent requests. The `encrypted_content` in

40098 `response.output_item.added` may be incomplete. This is especially

40099 important when `store` is `false` or when using Zero Data Retention.

40100 

39953 - `status: optional "in_progress" or "completed" or "incomplete"`40101 - `status: optional "in_progress" or "completed" or "incomplete"`

39954 40102 

39955 The status of the item. One of `in_progress`, `completed`, or40103 The status of the item. One of `in_progress`, `completed`, or


40723 Unique identifier for the MCP tool call approval request.40871 Unique identifier for the MCP tool call approval request.

40724 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.40872 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

40725 40873 

40726 - `error: optional string or null`40874 - `error: optional BetaMcpToolCallError or null`

40727 40875 

40728 The error from the tool call, if any.40876 The error from the tool call, if any.

40729 40877 

40878 - `McpProtocolError object { code, message, type }`

40879 

40880 - `code: number`

40881 

40882 - `message: string`

40883 

40884 - `type: "mcp_protocol_error"`

40885 

40886 - `"mcp_protocol_error"`

40887 

40888 - `McpToolExecutionError object { content, type }`

40889 

40890 - `content: unknown`

40891 

40892 - `type: "mcp_tool_execution_error"`

40893 

40894 - `"mcp_tool_execution_error"`

40895 

40896 - `HTTPError object { code, message, type }`

40897 

40898 - `code: number`

40899 

40900 - `message: string`

40901 

40902 - `type: "http_error"`

40903 

40904 - `"http_error"`

40905 

40730 - `output: optional string or null`40906 - `output: optional string or null`

40731 40907 

40732 The output from the tool call.40908 The output from the tool call.


42012 for reasoning items returned by `POST /v1/responses` and WebSocket42188 for reasoning items returned by `POST /v1/responses` and WebSocket

42013 `response.create` requests.42189 `response.create` requests.

42014 42190 

42191 When streaming, use the completed reasoning item and its

42192 `encrypted_content` from the `response.output_item.done` event in

42193 subsequent requests. The `encrypted_content` in

42194 `response.output_item.added` may be incomplete. This is especially

42195 important when `store` is `false` or when using Zero Data Retention.

42196 

42015 - `status: optional "in_progress" or "completed" or "incomplete"`42197 - `status: optional "in_progress" or "completed" or "incomplete"`

42016 42198 

42017 The status of the item. One of `in_progress`, `completed`, or42199 The status of the item. One of `in_progress`, `completed`, or


44889 Unique identifier for the MCP tool call approval request.45071 Unique identifier for the MCP tool call approval request.

44890 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.45072 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

44891 45073 

44892 - `error: optional string or null`45074 - `error: optional BetaMcpToolCallError or null`

44893 45075 

44894 The error from the tool call, if any.45076 The error from the tool call, if any.

44895 45077 


51806 for reasoning items returned by `POST /v1/responses` and WebSocket51988 for reasoning items returned by `POST /v1/responses` and WebSocket

51807 `response.create` requests.51989 `response.create` requests.

51808 51990 

51991 When streaming, use the completed reasoning item and its

51992 `encrypted_content` from the `response.output_item.done` event in

51993 subsequent requests. The `encrypted_content` in

51994 `response.output_item.added` may be incomplete. This is especially

51995 important when `store` is `false` or when using Zero Data Retention.

51996 

51809 - `status: optional "in_progress" or "completed" or "incomplete"`51997 - `status: optional "in_progress" or "completed" or "incomplete"`

51810 51998 

51811 The status of the item. One of `in_progress`, `completed`, or51999 The status of the item. One of `in_progress`, `completed`, or


52579 Unique identifier for the MCP tool call approval request.52767 Unique identifier for the MCP tool call approval request.

52580 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.52768 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

52581 52769 

52582 - `error: optional string or null`52770 - `error: optional BetaMcpToolCallError or null`

52583 52771 

52584 The error from the tool call, if any.52772 The error from the tool call, if any.

52585 52773 

52774 - `McpProtocolError object { code, message, type }`

52775 

52776 - `code: number`

52777 

52778 - `message: string`

52779 

52780 - `type: "mcp_protocol_error"`

52781 

52782 - `"mcp_protocol_error"`

52783 

52784 - `McpToolExecutionError object { content, type }`

52785 

52786 - `content: unknown`

52787 

52788 - `type: "mcp_tool_execution_error"`

52789 

52790 - `"mcp_tool_execution_error"`

52791 

52792 - `HTTPError object { code, message, type }`

52793 

52794 - `code: number`

52795 

52796 - `message: string`

52797 

52798 - `type: "http_error"`

52799 

52800 - `"http_error"`

52801 

52586 - `output: optional string or null`52802 - `output: optional string or null`

52587 52803 

52588 The output from the tool call.52804 The output from the tool call.


53868 for reasoning items returned by `POST /v1/responses` and WebSocket54084 for reasoning items returned by `POST /v1/responses` and WebSocket

53869 `response.create` requests.54085 `response.create` requests.

53870 54086 

54087 When streaming, use the completed reasoning item and its

54088 `encrypted_content` from the `response.output_item.done` event in

54089 subsequent requests. The `encrypted_content` in

54090 `response.output_item.added` may be incomplete. This is especially

54091 important when `store` is `false` or when using Zero Data Retention.

54092 

53871 - `status: optional "in_progress" or "completed" or "incomplete"`54093 - `status: optional "in_progress" or "completed" or "incomplete"`

53872 54094 

53873 The status of the item. One of `in_progress`, `completed`, or54095 The status of the item. One of `in_progress`, `completed`, or


56745 Unique identifier for the MCP tool call approval request.56967 Unique identifier for the MCP tool call approval request.

56746 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.56968 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

56747 56969 

56748 - `error: optional string or null`56970 - `error: optional BetaMcpToolCallError or null`

56749 56971 

56750 The error from the tool call, if any.56972 The error from the tool call, if any.

56751 56973 


62851 for reasoning items returned by `POST /v1/responses` and WebSocket63073 for reasoning items returned by `POST /v1/responses` and WebSocket

62852 `response.create` requests.63074 `response.create` requests.

62853 63075 

63076 When streaming, use the completed reasoning item and its

63077 `encrypted_content` from the `response.output_item.done` event in

63078 subsequent requests. The `encrypted_content` in

63079 `response.output_item.added` may be incomplete. This is especially

63080 important when `store` is `false` or when using Zero Data Retention.

63081 

62854 - `status: optional "in_progress" or "completed" or "incomplete"`63082 - `status: optional "in_progress" or "completed" or "incomplete"`

62855 63083 

62856 The status of the item. One of `in_progress`, `completed`, or63084 The status of the item. One of `in_progress`, `completed`, or


63610 Unique identifier for the MCP tool call approval request.63838 Unique identifier for the MCP tool call approval request.

63611 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.63839 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

63612 63840 

63613 - `error: optional string or null`63841 - `error: optional BetaMcpToolCallError or null`

63614 63842 

63615 The error from the tool call, if any.63843 The error from the tool call, if any.

63616 63844 

63845 - `McpProtocolError object { code, message, type }`

63846 

63847 - `code: number`

63848 

63849 - `message: string`

63850 

63851 - `type: "mcp_protocol_error"`

63852 

63853 - `"mcp_protocol_error"`

63854 

63855 - `McpToolExecutionError object { content, type }`

63856 

63857 - `content: unknown`

63858 

63859 - `type: "mcp_tool_execution_error"`

63860 

63861 - `"mcp_tool_execution_error"`

63862 

63863 - `HTTPError object { code, message, type }`

63864 

63865 - `code: number`

63866 

63867 - `message: string`

63868 

63869 - `type: "http_error"`

63870 

63871 - `"http_error"`

63872 

63617 - `output: optional string or null`63873 - `output: optional string or null`

63618 63874 

63619 The output from the tool call.63875 The output from the tool call.


64654 64910 

64655 The path to the directory containing the skill.64911 The path to the directory containing the skill.

64656 64912 

64913### Beta Mcp Tool Call Error

64914 

64915- `BetaMcpToolCallError = object { code, message, type } or object { content, type } or object { code, message, type }`

64916 

64917 - `McpProtocolError object { code, message, type }`

64918 

64919 - `code: number`

64920 

64921 - `message: string`

64922 

64923 - `type: "mcp_protocol_error"`

64924 

64925 - `"mcp_protocol_error"`

64926 

64927 - `McpToolExecutionError object { content, type }`

64928 

64929 - `content: unknown`

64930 

64931 - `type: "mcp_tool_execution_error"`

64932 

64933 - `"mcp_tool_execution_error"`

64934 

64935 - `HTTPError object { code, message, type }`

64936 

64937 - `code: number`

64938 

64939 - `message: string`

64940 

64941 - `type: "http_error"`

64942 

64943 - `"http_error"`

64944 

64657### Beta Response64945### Beta Response

64658 64946 

64659- `BetaResponse object { id, created_at, error, 32 more }`64947- `BetaResponse object { id, created_at, error, 32 more }`


68500 for reasoning items returned by `POST /v1/responses` and WebSocket68788 for reasoning items returned by `POST /v1/responses` and WebSocket

68501 `response.create` requests.68789 `response.create` requests.

68502 68790 

68791 When streaming, use the completed reasoning item and its

68792 `encrypted_content` from the `response.output_item.done` event in

68793 subsequent requests. The `encrypted_content` in

68794 `response.output_item.added` may be incomplete. This is especially

68795 important when `store` is `false` or when using Zero Data Retention.

68796 

68503 - `status: optional "in_progress" or "completed" or "incomplete"`68797 - `status: optional "in_progress" or "completed" or "incomplete"`

68504 68798 

68505 The status of the item. One of `in_progress`, `completed`, or68799 The status of the item. One of `in_progress`, `completed`, or


69273 Unique identifier for the MCP tool call approval request.69567 Unique identifier for the MCP tool call approval request.

69274 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.69568 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

69275 69569 

69276 - `error: optional string or null`69570 - `error: optional BetaMcpToolCallError or null`

69277 69571 

69278 The error from the tool call, if any.69572 The error from the tool call, if any.

69279 69573 

69574 - `McpProtocolError object { code, message, type }`

69575 

69576 - `code: number`

69577 

69578 - `message: string`

69579 

69580 - `type: "mcp_protocol_error"`

69581 

69582 - `"mcp_protocol_error"`

69583 

69584 - `McpToolExecutionError object { content, type }`

69585 

69586 - `content: unknown`

69587 

69588 - `type: "mcp_tool_execution_error"`

69589 

69590 - `"mcp_tool_execution_error"`

69591 

69592 - `HTTPError object { code, message, type }`

69593 

69594 - `code: number`

69595 

69596 - `message: string`

69597 

69598 - `type: "http_error"`

69599 

69600 - `"http_error"`

69601 

69280 - `output: optional string or null`69602 - `output: optional string or null`

69281 69603 

69282 The output from the tool call.69604 The output from the tool call.


70562 for reasoning items returned by `POST /v1/responses` and WebSocket70884 for reasoning items returned by `POST /v1/responses` and WebSocket

70563 `response.create` requests.70885 `response.create` requests.

70564 70886 

70887 When streaming, use the completed reasoning item and its

70888 `encrypted_content` from the `response.output_item.done` event in

70889 subsequent requests. The `encrypted_content` in

70890 `response.output_item.added` may be incomplete. This is especially

70891 important when `store` is `false` or when using Zero Data Retention.

70892 

70565 - `status: optional "in_progress" or "completed" or "incomplete"`70893 - `status: optional "in_progress" or "completed" or "incomplete"`

70566 70894 

70567 The status of the item. One of `in_progress`, `completed`, or70895 The status of the item. One of `in_progress`, `completed`, or


73439 Unique identifier for the MCP tool call approval request.73767 Unique identifier for the MCP tool call approval request.

73440 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.73768 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

73441 73769 

73442 - `error: optional string or null`73770 - `error: optional BetaMcpToolCallError or null`

73443 73771 

73444 The error from the tool call, if any.73772 The error from the tool call, if any.

73445 73773 


79579 for reasoning items returned by `POST /v1/responses` and WebSocket79907 for reasoning items returned by `POST /v1/responses` and WebSocket

79580 `response.create` requests.79908 `response.create` requests.

79581 79909 

79910 When streaming, use the completed reasoning item and its

79911 `encrypted_content` from the `response.output_item.done` event in

79912 subsequent requests. The `encrypted_content` in

79913 `response.output_item.added` may be incomplete. This is especially

79914 important when `store` is `false` or when using Zero Data Retention.

79915 

79582 - `status: optional "in_progress" or "completed" or "incomplete"`79916 - `status: optional "in_progress" or "completed" or "incomplete"`

79583 79917 

79584 The status of the item. One of `in_progress`, `completed`, or79918 The status of the item. One of `in_progress`, `completed`, or


80352 Unique identifier for the MCP tool call approval request.80686 Unique identifier for the MCP tool call approval request.

80353 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.80687 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

80354 80688 

80355 - `error: optional string or null`80689 - `error: optional BetaMcpToolCallError or null`

80356 80690 

80357 The error from the tool call, if any.80691 The error from the tool call, if any.

80358 80692 

80693 - `McpProtocolError object { code, message, type }`

80694 

80695 - `code: number`

80696 

80697 - `message: string`

80698 

80699 - `type: "mcp_protocol_error"`

80700 

80701 - `"mcp_protocol_error"`

80702 

80703 - `McpToolExecutionError object { content, type }`

80704 

80705 - `content: unknown`

80706 

80707 - `type: "mcp_tool_execution_error"`

80708 

80709 - `"mcp_tool_execution_error"`

80710 

80711 - `HTTPError object { code, message, type }`

80712 

80713 - `code: number`

80714 

80715 - `message: string`

80716 

80717 - `type: "http_error"`

80718 

80719 - `"http_error"`

80720 

80359 - `output: optional string or null`80721 - `output: optional string or null`

80360 80722 

80361 The output from the tool call.80723 The output from the tool call.


81641 for reasoning items returned by `POST /v1/responses` and WebSocket82003 for reasoning items returned by `POST /v1/responses` and WebSocket

81642 `response.create` requests.82004 `response.create` requests.

81643 82005 

82006 When streaming, use the completed reasoning item and its

82007 `encrypted_content` from the `response.output_item.done` event in

82008 subsequent requests. The `encrypted_content` in

82009 `response.output_item.added` may be incomplete. This is especially

82010 important when `store` is `false` or when using Zero Data Retention.

82011 

81644 - `status: optional "in_progress" or "completed" or "incomplete"`82012 - `status: optional "in_progress" or "completed" or "incomplete"`

81645 82013 

81646 The status of the item. One of `in_progress`, `completed`, or82014 The status of the item. One of `in_progress`, `completed`, or


84518 Unique identifier for the MCP tool call approval request.84886 Unique identifier for the MCP tool call approval request.

84519 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.84887 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

84520 84888 

84521 - `error: optional string or null`84889 - `error: optional BetaMcpToolCallError or null`

84522 84890 

84523 The error from the tool call, if any.84891 The error from the tool call, if any.

84524 84892 


91119 for reasoning items returned by `POST /v1/responses` and WebSocket91487 for reasoning items returned by `POST /v1/responses` and WebSocket

91120 `response.create` requests.91488 `response.create` requests.

91121 91489 

91490 When streaming, use the completed reasoning item and its

91491 `encrypted_content` from the `response.output_item.done` event in

91492 subsequent requests. The `encrypted_content` in

91493 `response.output_item.added` may be incomplete. This is especially

91494 important when `store` is `false` or when using Zero Data Retention.

91495 

91122 - `status: optional "in_progress" or "completed" or "incomplete"`91496 - `status: optional "in_progress" or "completed" or "incomplete"`

91123 91497 

91124 The status of the item. One of `in_progress`, `completed`, or91498 The status of the item. One of `in_progress`, `completed`, or


91892 Unique identifier for the MCP tool call approval request.92266 Unique identifier for the MCP tool call approval request.

91893 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.92267 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

91894 92268 

91895 - `error: optional string or null`92269 - `error: optional BetaMcpToolCallError or null`

91896 92270 

91897 The error from the tool call, if any.92271 The error from the tool call, if any.

91898 92272 

92273 - `McpProtocolError object { code, message, type }`

92274 

92275 - `code: number`

92276 

92277 - `message: string`

92278 

92279 - `type: "mcp_protocol_error"`

92280 

92281 - `"mcp_protocol_error"`

92282 

92283 - `McpToolExecutionError object { content, type }`

92284 

92285 - `content: unknown`

92286 

92287 - `type: "mcp_tool_execution_error"`

92288 

92289 - `"mcp_tool_execution_error"`

92290 

92291 - `HTTPError object { code, message, type }`

92292 

92293 - `code: number`

92294 

92295 - `message: string`

92296 

92297 - `type: "http_error"`

92298 

92299 - `"http_error"`

92300 

91899 - `output: optional string or null`92301 - `output: optional string or null`

91900 92302 

91901 The output from the tool call.92303 The output from the tool call.


93181 for reasoning items returned by `POST /v1/responses` and WebSocket93583 for reasoning items returned by `POST /v1/responses` and WebSocket

93182 `response.create` requests.93584 `response.create` requests.

93183 93585 

93586 When streaming, use the completed reasoning item and its

93587 `encrypted_content` from the `response.output_item.done` event in

93588 subsequent requests. The `encrypted_content` in

93589 `response.output_item.added` may be incomplete. This is especially

93590 important when `store` is `false` or when using Zero Data Retention.

93591 

93184 - `status: optional "in_progress" or "completed" or "incomplete"`93592 - `status: optional "in_progress" or "completed" or "incomplete"`

93185 93593 

93186 The status of the item. One of `in_progress`, `completed`, or93594 The status of the item. One of `in_progress`, `completed`, or


96058 Unique identifier for the MCP tool call approval request.96466 Unique identifier for the MCP tool call approval request.

96059 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.96467 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

96060 96468 

96061 - `error: optional string or null`96469 - `error: optional BetaMcpToolCallError or null`

96062 96470 

96063 The error from the tool call, if any.96471 The error from the tool call, if any.

96064 96472 


102106 for reasoning items returned by `POST /v1/responses` and WebSocket102514 for reasoning items returned by `POST /v1/responses` and WebSocket

102107 `response.create` requests.102515 `response.create` requests.

102108 102516 

102517 When streaming, use the completed reasoning item and its

102518 `encrypted_content` from the `response.output_item.done` event in

102519 subsequent requests. The `encrypted_content` in

102520 `response.output_item.added` may be incomplete. This is especially

102521 important when `store` is `false` or when using Zero Data Retention.

102522 

102109 - `status: optional "in_progress" or "completed" or "incomplete"`102523 - `status: optional "in_progress" or "completed" or "incomplete"`

102110 102524 

102111 The status of the item. One of `in_progress`, `completed`, or102525 The status of the item. One of `in_progress`, `completed`, or


102879 Unique identifier for the MCP tool call approval request.103293 Unique identifier for the MCP tool call approval request.

102880 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.103294 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

102881 103295 

102882 - `error: optional string or null`103296 - `error: optional BetaMcpToolCallError or null`

102883 103297 

102884 The error from the tool call, if any.103298 The error from the tool call, if any.

102885 103299 

103300 - `McpProtocolError object { code, message, type }`

103301 

103302 - `code: number`

103303 

103304 - `message: string`

103305 

103306 - `type: "mcp_protocol_error"`

103307 

103308 - `"mcp_protocol_error"`

103309 

103310 - `McpToolExecutionError object { content, type }`

103311 

103312 - `content: unknown`

103313 

103314 - `type: "mcp_tool_execution_error"`

103315 

103316 - `"mcp_tool_execution_error"`

103317 

103318 - `HTTPError object { code, message, type }`

103319 

103320 - `code: number`

103321 

103322 - `message: string`

103323 

103324 - `type: "http_error"`

103325 

103326 - `"http_error"`

103327 

102886 - `output: optional string or null`103328 - `output: optional string or null`

102887 103329 

102888 The output from the tool call.103330 The output from the tool call.


104168 for reasoning items returned by `POST /v1/responses` and WebSocket104610 for reasoning items returned by `POST /v1/responses` and WebSocket

104169 `response.create` requests.104611 `response.create` requests.

104170 104612 

104613 When streaming, use the completed reasoning item and its

104614 `encrypted_content` from the `response.output_item.done` event in

104615 subsequent requests. The `encrypted_content` in

104616 `response.output_item.added` may be incomplete. This is especially

104617 important when `store` is `false` or when using Zero Data Retention.

104618 

104171 - `status: optional "in_progress" or "completed" or "incomplete"`104619 - `status: optional "in_progress" or "completed" or "incomplete"`

104172 104620 

104173 The status of the item. One of `in_progress`, `completed`, or104621 The status of the item. One of `in_progress`, `completed`, or


107045 Unique identifier for the MCP tool call approval request.107493 Unique identifier for the MCP tool call approval request.

107046 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.107494 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

107047 107495 

107048 - `error: optional string or null`107496 - `error: optional BetaMcpToolCallError or null`

107049 107497 

107050 The error from the tool call, if any.107498 The error from the tool call, if any.

107051 107499 


109500 109948 

109501### Beta Response Image Gen Call Partial Image Event109949### Beta Response Image Gen Call Partial Image Event

109502 109950 

109503- `BetaResponseImageGenCallPartialImageEvent object { item_id, output_index, partial_image_b64, 4 more }`109951- `BetaResponseImageGenCallPartialImageEvent object { item_id, output_index, partial_image_b64, 8 more }`

109504 109952 

109505 Emitted when a partial image is available during image generation streaming.109953 Emitted when a partial image is available during image generation streaming.

109506 109954 


109538 109986 

109539 The canonical name of the agent that produced this item.109987 The canonical name of the agent that produced this item.

109540 109988 

109989 - `background: optional string`

109990 

109991 The background setting that was used.

109992 

109993 - `output_format: optional string`

109994 

109995 The output format that was used.

109996 

109997 - `quality: optional string`

109998 

109999 The image quality that was used.

110000 

110001 - `size: optional string`

110002 

110003 The image size that was used.

110004 

109541### Beta Response In Progress Event110005### Beta Response In Progress Event

109542 110006 

109543- `BetaResponseInProgressEvent object { response, sequence_number, type, agent }`110007- `BetaResponseInProgressEvent object { response, sequence_number, type, agent }`


113390 for reasoning items returned by `POST /v1/responses` and WebSocket113854 for reasoning items returned by `POST /v1/responses` and WebSocket

113391 `response.create` requests.113855 `response.create` requests.

113392 113856 

113857 When streaming, use the completed reasoning item and its

113858 `encrypted_content` from the `response.output_item.done` event in

113859 subsequent requests. The `encrypted_content` in

113860 `response.output_item.added` may be incomplete. This is especially

113861 important when `store` is `false` or when using Zero Data Retention.

113862 

113393 - `status: optional "in_progress" or "completed" or "incomplete"`113863 - `status: optional "in_progress" or "completed" or "incomplete"`

113394 113864 

113395 The status of the item. One of `in_progress`, `completed`, or113865 The status of the item. One of `in_progress`, `completed`, or


114163 Unique identifier for the MCP tool call approval request.114633 Unique identifier for the MCP tool call approval request.

114164 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.114634 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

114165 114635 

114166 - `error: optional string or null`114636 - `error: optional BetaMcpToolCallError or null`

114167 114637 

114168 The error from the tool call, if any.114638 The error from the tool call, if any.

114169 114639 

114640 - `McpProtocolError object { code, message, type }`

114641 

114642 - `code: number`

114643 

114644 - `message: string`

114645 

114646 - `type: "mcp_protocol_error"`

114647 

114648 - `"mcp_protocol_error"`

114649 

114650 - `McpToolExecutionError object { content, type }`

114651 

114652 - `content: unknown`

114653 

114654 - `type: "mcp_tool_execution_error"`

114655 

114656 - `"mcp_tool_execution_error"`

114657 

114658 - `HTTPError object { code, message, type }`

114659 

114660 - `code: number`

114661 

114662 - `message: string`

114663 

114664 - `type: "http_error"`

114665 

114666 - `"http_error"`

114667 

114170 - `output: optional string or null`114668 - `output: optional string or null`

114171 114669 

114172 The output from the tool call.114670 The output from the tool call.


115452 for reasoning items returned by `POST /v1/responses` and WebSocket115950 for reasoning items returned by `POST /v1/responses` and WebSocket

115453 `response.create` requests.115951 `response.create` requests.

115454 115952 

115953 When streaming, use the completed reasoning item and its

115954 `encrypted_content` from the `response.output_item.done` event in

115955 subsequent requests. The `encrypted_content` in

115956 `response.output_item.added` may be incomplete. This is especially

115957 important when `store` is `false` or when using Zero Data Retention.

115958 

115455 - `status: optional "in_progress" or "completed" or "incomplete"`115959 - `status: optional "in_progress" or "completed" or "incomplete"`

115456 115960 

115457 The status of the item. One of `in_progress`, `completed`, or115961 The status of the item. One of `in_progress`, `completed`, or


118329 Unique identifier for the MCP tool call approval request.118833 Unique identifier for the MCP tool call approval request.

118330 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.118834 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

118331 118835 

118332 - `error: optional string or null`118836 - `error: optional BetaMcpToolCallError or null`

118333 118837 

118334 The error from the tool call, if any.118838 The error from the tool call, if any.

118335 118839 


124246 for reasoning items returned by `POST /v1/responses` and WebSocket124750 for reasoning items returned by `POST /v1/responses` and WebSocket

124247 `response.create` requests.124751 `response.create` requests.

124248 124752 

124753 When streaming, use the completed reasoning item and its

124754 `encrypted_content` from the `response.output_item.done` event in

124755 subsequent requests. The `encrypted_content` in

124756 `response.output_item.added` may be incomplete. This is especially

124757 important when `store` is `false` or when using Zero Data Retention.

124758 

124249 - `status: optional "in_progress" or "completed" or "incomplete"`124759 - `status: optional "in_progress" or "completed" or "incomplete"`

124250 124760 

124251 The status of the item. One of `in_progress`, `completed`, or124761 The status of the item. One of `in_progress`, `completed`, or


125019 Unique identifier for the MCP tool call approval request.125529 Unique identifier for the MCP tool call approval request.

125020 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.125530 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

125021 125531 

125022 - `error: optional string or null`125532 - `error: optional BetaMcpToolCallError or null`

125023 125533 

125024 The error from the tool call, if any.125534 The error from the tool call, if any.

125025 125535 

125536 - `McpProtocolError object { code, message, type }`

125537 

125538 - `code: number`

125539 

125540 - `message: string`

125541 

125542 - `type: "mcp_protocol_error"`

125543 

125544 - `"mcp_protocol_error"`

125545 

125546 - `McpToolExecutionError object { content, type }`

125547 

125548 - `content: unknown`

125549 

125550 - `type: "mcp_tool_execution_error"`

125551 

125552 - `"mcp_tool_execution_error"`

125553 

125554 - `HTTPError object { code, message, type }`

125555 

125556 - `code: number`

125557 

125558 - `message: string`

125559 

125560 - `type: "http_error"`

125561 

125562 - `"http_error"`

125563 

125026 - `output: optional string or null`125564 - `output: optional string or null`

125027 125565 

125028 The output from the tool call.125566 The output from the tool call.


126308 for reasoning items returned by `POST /v1/responses` and WebSocket126846 for reasoning items returned by `POST /v1/responses` and WebSocket

126309 `response.create` requests.126847 `response.create` requests.

126310 126848 

126849 When streaming, use the completed reasoning item and its

126850 `encrypted_content` from the `response.output_item.done` event in

126851 subsequent requests. The `encrypted_content` in

126852 `response.output_item.added` may be incomplete. This is especially

126853 important when `store` is `false` or when using Zero Data Retention.

126854 

126311 - `status: optional "in_progress" or "completed" or "incomplete"`126855 - `status: optional "in_progress" or "completed" or "incomplete"`

126312 126856 

126313 The status of the item. One of `in_progress`, `completed`, or126857 The status of the item. One of `in_progress`, `completed`, or


129185 Unique identifier for the MCP tool call approval request.129729 Unique identifier for the MCP tool call approval request.

129186 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.129730 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

129187 129731 

129188 - `error: optional string or null`129732 - `error: optional BetaMcpToolCallError or null`

129189 129733 

129190 The error from the tool call, if any.129734 The error from the tool call, if any.

129191 129735 


135009 for reasoning items returned by `POST /v1/responses` and WebSocket135553 for reasoning items returned by `POST /v1/responses` and WebSocket

135010 `response.create` requests.135554 `response.create` requests.

135011 135555 

135556 When streaming, use the completed reasoning item and its

135557 `encrypted_content` from the `response.output_item.done` event in

135558 subsequent requests. The `encrypted_content` in

135559 `response.output_item.added` may be incomplete. This is especially

135560 important when `store` is `false` or when using Zero Data Retention.

135561 

135012 - `status: optional "in_progress" or "completed" or "incomplete"`135562 - `status: optional "in_progress" or "completed" or "incomplete"`

135013 135563 

135014 The status of the item. One of `in_progress`, `completed`, or135564 The status of the item. One of `in_progress`, `completed`, or


135782 Unique identifier for the MCP tool call approval request.136332 Unique identifier for the MCP tool call approval request.

135783 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.136333 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

135784 136334 

135785 - `error: optional string or null`136335 - `error: optional BetaMcpToolCallError or null`

135786 136336 

135787 The error from the tool call, if any.136337 The error from the tool call, if any.

135788 136338 

136339 - `McpProtocolError object { code, message, type }`

136340 

136341 - `code: number`

136342 

136343 - `message: string`

136344 

136345 - `type: "mcp_protocol_error"`

136346 

136347 - `"mcp_protocol_error"`

136348 

136349 - `McpToolExecutionError object { content, type }`

136350 

136351 - `content: unknown`

136352 

136353 - `type: "mcp_tool_execution_error"`

136354 

136355 - `"mcp_tool_execution_error"`

136356 

136357 - `HTTPError object { code, message, type }`

136358 

136359 - `code: number`

136360 

136361 - `message: string`

136362 

136363 - `type: "http_error"`

136364 

136365 - `"http_error"`

136366 

135789 - `output: optional string or null`136367 - `output: optional string or null`

135790 136368 

135791 The output from the tool call.136369 The output from the tool call.


139835 for reasoning items returned by `POST /v1/responses` and WebSocket140413 for reasoning items returned by `POST /v1/responses` and WebSocket

139836 `response.create` requests.140414 `response.create` requests.

139837 140415 

140416 When streaming, use the completed reasoning item and its

140417 `encrypted_content` from the `response.output_item.done` event in

140418 subsequent requests. The `encrypted_content` in

140419 `response.output_item.added` may be incomplete. This is especially

140420 important when `store` is `false` or when using Zero Data Retention.

140421 

139838 - `status: optional "in_progress" or "completed" or "incomplete"`140422 - `status: optional "in_progress" or "completed" or "incomplete"`

139839 140423 

139840 The status of the item. One of `in_progress`, `completed`, or140424 The status of the item. One of `in_progress`, `completed`, or


140608 Unique identifier for the MCP tool call approval request.141192 Unique identifier for the MCP tool call approval request.

140609 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.141193 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

140610 141194 

140611 - `error: optional string or null`141195 - `error: optional BetaMcpToolCallError or null`

140612 141196 

140613 The error from the tool call, if any.141197 The error from the tool call, if any.

140614 141198 

141199 - `McpProtocolError object { code, message, type }`

141200 

141201 - `code: number`

141202 

141203 - `message: string`

141204 

141205 - `type: "mcp_protocol_error"`

141206 

141207 - `"mcp_protocol_error"`

141208 

141209 - `McpToolExecutionError object { content, type }`

141210 

141211 - `content: unknown`

141212 

141213 - `type: "mcp_tool_execution_error"`

141214 

141215 - `"mcp_tool_execution_error"`

141216 

141217 - `HTTPError object { code, message, type }`

141218 

141219 - `code: number`

141220 

141221 - `message: string`

141222 

141223 - `type: "http_error"`

141224 

141225 - `"http_error"`

141226 

140615 - `output: optional string or null`141227 - `output: optional string or null`

140616 141228 

140617 The output from the tool call.141229 The output from the tool call.


143155 for reasoning items returned by `POST /v1/responses` and WebSocket143767 for reasoning items returned by `POST /v1/responses` and WebSocket

143156 `response.create` requests.143768 `response.create` requests.

143157 143769 

143770 When streaming, use the completed reasoning item and its

143771 `encrypted_content` from the `response.output_item.done` event in

143772 subsequent requests. The `encrypted_content` in

143773 `response.output_item.added` may be incomplete. This is especially

143774 important when `store` is `false` or when using Zero Data Retention.

143775 

143158 - `status: optional "in_progress" or "completed" or "incomplete"`143776 - `status: optional "in_progress" or "completed" or "incomplete"`

143159 143777 

143160 The status of the item. One of `in_progress`, `completed`, or143778 The status of the item. One of `in_progress`, `completed`, or


146182 Unique identifier for the MCP tool call approval request.146800 Unique identifier for the MCP tool call approval request.

146183 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.146801 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

146184 146802 

146185 - `error: optional string or null`146803 - `error: optional BetaMcpToolCallError or null`

146186 146804 

146187 The error from the tool call, if any.146805 The error from the tool call, if any.

146188 146806 

146807 - `McpProtocolError object { code, message, type }`

146808 

146809 - `code: number`

146810 

146811 - `message: string`

146812 

146813 - `type: "mcp_protocol_error"`

146814 

146815 - `"mcp_protocol_error"`

146816 

146817 - `McpToolExecutionError object { content, type }`

146818 

146819 - `content: unknown`

146820 

146821 - `type: "mcp_tool_execution_error"`

146822 

146823 - `"mcp_tool_execution_error"`

146824 

146825 - `HTTPError object { code, message, type }`

146826 

146827 - `code: number`

146828 

146829 - `message: string`

146830 

146831 - `type: "http_error"`

146832 

146833 - `"http_error"`

146834 

146189 - `output: optional string or null`146835 - `output: optional string or null`

146190 146836 

146191 The output from the tool call.146837 The output from the tool call.


146476 147122 

146477 - `item: BetaResponseOutputItem`147123 - `item: BetaResponseOutputItem`

146478 147124 

146479 The output item that was added.147125 The output item that was added. For reasoning items, `encrypted_content`

147126 may be incomplete while the item is in progress. Use the reasoning item

147127 from the corresponding `response.output_item.done` event when passing it

147128 as input to a subsequent request.

146480 147129 

146481 - `BetaResponseOutputMessage object { id, content, role, 4 more }`147130 - `BetaResponseOutputMessage object { id, content, role, 4 more }`

146482 147131 


147791 for reasoning items returned by `POST /v1/responses` and WebSocket148440 for reasoning items returned by `POST /v1/responses` and WebSocket

147792 `response.create` requests.148441 `response.create` requests.

147793 148442 

148443 When streaming, use the completed reasoning item and its

148444 `encrypted_content` from the `response.output_item.done` event in

148445 subsequent requests. The `encrypted_content` in

148446 `response.output_item.added` may be incomplete. This is especially

148447 important when `store` is `false` or when using Zero Data Retention.

148448 

147794 - `status: optional "in_progress" or "completed" or "incomplete"`148449 - `status: optional "in_progress" or "completed" or "incomplete"`

147795 148450 

147796 The status of the item. One of `in_progress`, `completed`, or148451 The status of the item. One of `in_progress`, `completed`, or


150818 Unique identifier for the MCP tool call approval request.151473 Unique identifier for the MCP tool call approval request.

150819 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.151474 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

150820 151475 

150821 - `error: optional string or null`151476 - `error: optional BetaMcpToolCallError or null`

150822 151477 

150823 The error from the tool call, if any.151478 The error from the tool call, if any.

150824 151479 

151480 - `McpProtocolError object { code, message, type }`

151481 

151482 - `code: number`

151483 

151484 - `message: string`

151485 

151486 - `type: "mcp_protocol_error"`

151487 

151488 - `"mcp_protocol_error"`

151489 

151490 - `McpToolExecutionError object { content, type }`

151491 

151492 - `content: unknown`

151493 

151494 - `type: "mcp_tool_execution_error"`

151495 

151496 - `"mcp_tool_execution_error"`

151497 

151498 - `HTTPError object { code, message, type }`

151499 

151500 - `code: number`

151501 

151502 - `message: string`

151503 

151504 - `type: "http_error"`

151505 

151506 - `"http_error"`

151507 

150825 - `output: optional string or null`151508 - `output: optional string or null`

150826 151509 

150827 The output from the tool call.151510 The output from the tool call.


152449 for reasoning items returned by `POST /v1/responses` and WebSocket153132 for reasoning items returned by `POST /v1/responses` and WebSocket

152450 `response.create` requests.153133 `response.create` requests.

152451 153134 

153135 When streaming, use the completed reasoning item and its

153136 `encrypted_content` from the `response.output_item.done` event in

153137 subsequent requests. The `encrypted_content` in

153138 `response.output_item.added` may be incomplete. This is especially

153139 important when `store` is `false` or when using Zero Data Retention.

153140 

152452 - `status: optional "in_progress" or "completed" or "incomplete"`153141 - `status: optional "in_progress" or "completed" or "incomplete"`

152453 153142 

152454 The status of the item. One of `in_progress`, `completed`, or153143 The status of the item. One of `in_progress`, `completed`, or


155476 Unique identifier for the MCP tool call approval request.156165 Unique identifier for the MCP tool call approval request.

155477 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.156166 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

155478 156167 

155479 - `error: optional string or null`156168 - `error: optional BetaMcpToolCallError or null`

155480 156169 

155481 The error from the tool call, if any.156170 The error from the tool call, if any.

155482 156171 

156172 - `McpProtocolError object { code, message, type }`

156173 

156174 - `code: number`

156175 

156176 - `message: string`

156177 

156178 - `type: "mcp_protocol_error"`

156179 

156180 - `"mcp_protocol_error"`

156181 

156182 - `McpToolExecutionError object { content, type }`

156183 

156184 - `content: unknown`

156185 

156186 - `type: "mcp_tool_execution_error"`

156187 

156188 - `"mcp_tool_execution_error"`

156189 

156190 - `HTTPError object { code, message, type }`

156191 

156192 - `code: number`

156193 

156194 - `message: string`

156195 

156196 - `type: "http_error"`

156197 

156198 - `"http_error"`

156199 

155483 - `output: optional string or null`156200 - `output: optional string or null`

155484 156201 

155485 The output from the tool call.156202 The output from the tool call.


156137 156854 

156138 Emitted when an annotation is added to output text content.156855 Emitted when an annotation is added to output text content.

156139 156856 

156140 - `annotation: unknown`156857 - `annotation: object { file_id, filename, index, type } or object { end_index, start_index, title, 2 more } or object { container_id, end_index, file_id, 3 more } or object { file_id, index, type } or null`

156858 

156859 An annotation that applies to a span of output text.

156860 

156861 - `FileCitation object { file_id, filename, index, type }`

156862 

156863 A citation to a file.

156864 

156865 - `file_id: string`

156866 

156867 The ID of the file.

156868 

156869 - `filename: string`

156870 

156871 The filename of the file cited.

156872 

156873 - `index: number`

156874 

156875 The index of the file in the list of files.

156876 

156877 - `type: "file_citation"`

156878 

156879 The type of the file citation. Always `file_citation`.

156880 

156881 - `"file_citation"`

156882 

156883 - `URLCitation object { end_index, start_index, title, 2 more }`

156884 

156885 A citation for a web resource used to generate a model response.

156886 

156887 - `end_index: number`

156888 

156889 The index of the last character of the URL citation in the message.

156890 

156891 - `start_index: number`

156892 

156893 The index of the first character of the URL citation in the message.

156894 

156895 - `title: string`

156896 

156897 The title of the web resource.

156898 

156899 - `type: "url_citation"`

156900 

156901 The type of the URL citation. Always `url_citation`.

156141 156902 

156142 The annotation object being added. (See annotation schema for details.)156903 - `"url_citation"`

156904 

156905 - `url: string`

156906 

156907 The URL of the web resource.

156908 

156909 - `ContainerFileCitation object { container_id, end_index, file_id, 3 more }`

156910 

156911 A citation for a container file used to generate a model response.

156912 

156913 - `container_id: string`

156914 

156915 The ID of the container file.

156916 

156917 - `end_index: number`

156918 

156919 The index of the last character of the container file citation in the message.

156920 

156921 - `file_id: string`

156922 

156923 The ID of the file.

156924 

156925 - `filename: string`

156926 

156927 The filename of the container file cited.

156928 

156929 - `start_index: number`

156930 

156931 The index of the first character of the container file citation in the message.

156932 

156933 - `type: "container_file_citation"`

156934 

156935 The type of the container file citation. Always `container_file_citation`.

156936 

156937 - `"container_file_citation"`

156938 

156939 - `FilePath object { file_id, index, type }`

156940 

156941 A path to a file.

156942 

156943 - `file_id: string`

156944 

156945 The ID of the file.

156946 

156947 - `index: number`

156948 

156949 The index of the file in the list of files.

156950 

156951 - `type: "file_path"`

156952 

156953 The type of the file path. Always `file_path`.

156954 

156955 - `"file_path"`

156143 156956 

156144 - `annotation_index: number`156957 - `annotation_index: number`

156145 156958 


160160 for reasoning items returned by `POST /v1/responses` and WebSocket160973 for reasoning items returned by `POST /v1/responses` and WebSocket

160161 `response.create` requests.160974 `response.create` requests.

160162 160975 

160976 When streaming, use the completed reasoning item and its

160977 `encrypted_content` from the `response.output_item.done` event in

160978 subsequent requests. The `encrypted_content` in

160979 `response.output_item.added` may be incomplete. This is especially

160980 important when `store` is `false` or when using Zero Data Retention.

160981 

160163 - `status: optional "in_progress" or "completed" or "incomplete"`160982 - `status: optional "in_progress" or "completed" or "incomplete"`

160164 160983 

160165 The status of the item. One of `in_progress`, `completed`, or160984 The status of the item. One of `in_progress`, `completed`, or


160933 Unique identifier for the MCP tool call approval request.161752 Unique identifier for the MCP tool call approval request.

160934 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.161753 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

160935 161754 

160936 - `error: optional string or null`161755 - `error: optional BetaMcpToolCallError or null`

160937 161756 

160938 The error from the tool call, if any.161757 The error from the tool call, if any.

160939 161758 

161759 - `McpProtocolError object { code, message, type }`

161760 

161761 - `code: number`

161762 

161763 - `message: string`

161764 

161765 - `type: "mcp_protocol_error"`

161766 

161767 - `"mcp_protocol_error"`

161768 

161769 - `McpToolExecutionError object { content, type }`

161770 

161771 - `content: unknown`

161772 

161773 - `type: "mcp_tool_execution_error"`

161774 

161775 - `"mcp_tool_execution_error"`

161776 

161777 - `HTTPError object { code, message, type }`

161778 

161779 - `code: number`

161780 

161781 - `message: string`

161782 

161783 - `type: "http_error"`

161784 

161785 - `"http_error"`

161786 

160940 - `output: optional string or null`161787 - `output: optional string or null`

160941 161788 

160942 The output from the tool call.161789 The output from the tool call.


162222 for reasoning items returned by `POST /v1/responses` and WebSocket163069 for reasoning items returned by `POST /v1/responses` and WebSocket

162223 `response.create` requests.163070 `response.create` requests.

162224 163071 

163072 When streaming, use the completed reasoning item and its

163073 `encrypted_content` from the `response.output_item.done` event in

163074 subsequent requests. The `encrypted_content` in

163075 `response.output_item.added` may be incomplete. This is especially

163076 important when `store` is `false` or when using Zero Data Retention.

163077 

162225 - `status: optional "in_progress" or "completed" or "incomplete"`163078 - `status: optional "in_progress" or "completed" or "incomplete"`

162226 163079 

162227 The status of the item. One of `in_progress`, `completed`, or163080 The status of the item. One of `in_progress`, `completed`, or


165099 Unique identifier for the MCP tool call approval request.165952 Unique identifier for the MCP tool call approval request.

165100 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.165953 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

165101 165954 

165102 - `error: optional string or null`165955 - `error: optional BetaMcpToolCallError or null`

165103 165956 

165104 The error from the tool call, if any.165957 The error from the tool call, if any.

165105 165958 


171609 for reasoning items returned by `POST /v1/responses` and WebSocket172462 for reasoning items returned by `POST /v1/responses` and WebSocket

171610 `response.create` requests.172463 `response.create` requests.

171611 172464 

172465 When streaming, use the completed reasoning item and its

172466 `encrypted_content` from the `response.output_item.done` event in

172467 subsequent requests. The `encrypted_content` in

172468 `response.output_item.added` may be incomplete. This is especially

172469 important when `store` is `false` or when using Zero Data Retention.

172470 

171612 - `status: optional "in_progress" or "completed" or "incomplete"`172471 - `status: optional "in_progress" or "completed" or "incomplete"`

171613 172472 

171614 The status of the item. One of `in_progress`, `completed`, or172473 The status of the item. One of `in_progress`, `completed`, or


172382 Unique identifier for the MCP tool call approval request.173241 Unique identifier for the MCP tool call approval request.

172383 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.173242 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

172384 173243 

172385 - `error: optional string or null`173244 - `error: optional BetaMcpToolCallError or null`

172386 173245 

172387 The error from the tool call, if any.173246 The error from the tool call, if any.

172388 173247 

173248 - `McpProtocolError object { code, message, type }`

173249 

173250 - `code: number`

173251 

173252 - `message: string`

173253 

173254 - `type: "mcp_protocol_error"`

173255 

173256 - `"mcp_protocol_error"`

173257 

173258 - `McpToolExecutionError object { content, type }`

173259 

173260 - `content: unknown`

173261 

173262 - `type: "mcp_tool_execution_error"`

173263 

173264 - `"mcp_tool_execution_error"`

173265 

173266 - `HTTPError object { code, message, type }`

173267 

173268 - `code: number`

173269 

173270 - `message: string`

173271 

173272 - `type: "http_error"`

173273 

173274 - `"http_error"`

173275 

172389 - `output: optional string or null`173276 - `output: optional string or null`

172390 173277 

172391 The output from the tool call.173278 The output from the tool call.


173671 for reasoning items returned by `POST /v1/responses` and WebSocket174558 for reasoning items returned by `POST /v1/responses` and WebSocket

173672 `response.create` requests.174559 `response.create` requests.

173673 174560 

174561 When streaming, use the completed reasoning item and its

174562 `encrypted_content` from the `response.output_item.done` event in

174563 subsequent requests. The `encrypted_content` in

174564 `response.output_item.added` may be incomplete. This is especially

174565 important when `store` is `false` or when using Zero Data Retention.

174566 

173674 - `status: optional "in_progress" or "completed" or "incomplete"`174567 - `status: optional "in_progress" or "completed" or "incomplete"`

173675 174568 

173676 The status of the item. One of `in_progress`, `completed`, or174569 The status of the item. One of `in_progress`, `completed`, or


176548 Unique identifier for the MCP tool call approval request.177441 Unique identifier for the MCP tool call approval request.

176549 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.177442 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

176550 177443 

176551 - `error: optional string or null`177444 - `error: optional BetaMcpToolCallError or null`

176552 177445 

176553 The error from the tool call, if any.177446 The error from the tool call, if any.

176554 177447 


179006 179899 

179007 - `item: BetaResponseOutputItem`179900 - `item: BetaResponseOutputItem`

179008 179901 

179009 The output item that was added.179902 The output item that was added. For reasoning items, `encrypted_content`

179903 may be incomplete while the item is in progress. Use the reasoning item

179904 from the corresponding `response.output_item.done` event when passing it

179905 as input to a subsequent request.

179010 179906 

179011 - `BetaResponseOutputMessage object { id, content, role, 4 more }`179907 - `BetaResponseOutputMessage object { id, content, role, 4 more }`

179012 179908 


179804 180700 

179805 The canonical name of the agent that produced this item.180701 The canonical name of the agent that produced this item.

179806 180702 

179807 - `BetaResponseImageGenCallPartialImageEvent object { item_id, output_index, partial_image_b64, 4 more }`180703 - `BetaResponseImageGenCallPartialImageEvent object { item_id, output_index, partial_image_b64, 8 more }`

179808 180704 

179809 Emitted when a partial image is available during image generation streaming.180705 Emitted when a partial image is available during image generation streaming.

179810 180706 


179842 180738 

179843 The canonical name of the agent that produced this item.180739 The canonical name of the agent that produced this item.

179844 180740 

180741 - `background: optional string`

180742 

180743 The background setting that was used.

180744 

180745 - `output_format: optional string`

180746 

180747 The output format that was used.

180748 

180749 - `quality: optional string`

180750 

180751 The image quality that was used.

180752 

180753 - `size: optional string`

180754 

180755 The image size that was used.

180756 

179845 - `BetaResponseMcpCallArgumentsDeltaEvent object { delta, item_id, output_index, 3 more }`180757 - `BetaResponseMcpCallArgumentsDeltaEvent object { delta, item_id, output_index, 3 more }`

179846 180758 

179847 Emitted when there is a delta (partial update) to the arguments of an MCP tool call.180759 Emitted when there is a delta (partial update) to the arguments of an MCP tool call.


180094 181006 

180095 Emitted when an annotation is added to output text content.181007 Emitted when an annotation is added to output text content.

180096 181008 

180097 - `annotation: unknown`181009 - `annotation: object { file_id, filename, index, type } or object { end_index, start_index, title, 2 more } or object { container_id, end_index, file_id, 3 more } or object { file_id, index, type } or null`

181010 

181011 An annotation that applies to a span of output text.

181012 

181013 - `FileCitation object { file_id, filename, index, type }`

181014 

181015 A citation to a file.

181016 

181017 - `file_id: string`

181018 

181019 The ID of the file.

181020 

181021 - `filename: string`

181022 

181023 The filename of the file cited.

181024 

181025 - `index: number`

181026 

181027 The index of the file in the list of files.

181028 

181029 - `type: "file_citation"`

181030 

181031 The type of the file citation. Always `file_citation`.

181032 

181033 - `"file_citation"`

181034 

181035 - `URLCitation object { end_index, start_index, title, 2 more }`

181036 

181037 A citation for a web resource used to generate a model response.

181038 

181039 - `end_index: number`

181040 

181041 The index of the last character of the URL citation in the message.

181042 

181043 - `start_index: number`

181044 

181045 The index of the first character of the URL citation in the message.

181046 

181047 - `title: string`

180098 181048 

180099 The annotation object being added. (See annotation schema for details.)181049 The title of the web resource.

181050 

181051 - `type: "url_citation"`

181052 

181053 The type of the URL citation. Always `url_citation`.

181054 

181055 - `"url_citation"`

181056 

181057 - `url: string`

181058 

181059 The URL of the web resource.

181060 

181061 - `ContainerFileCitation object { container_id, end_index, file_id, 3 more }`

181062 

181063 A citation for a container file used to generate a model response.

181064 

181065 - `container_id: string`

181066 

181067 The ID of the container file.

181068 

181069 - `end_index: number`

181070 

181071 The index of the last character of the container file citation in the message.

181072 

181073 - `file_id: string`

181074 

181075 The ID of the file.

181076 

181077 - `filename: string`

181078 

181079 The filename of the container file cited.

181080 

181081 - `start_index: number`

181082 

181083 The index of the first character of the container file citation in the message.

181084 

181085 - `type: "container_file_citation"`

181086 

181087 The type of the container file citation. Always `container_file_citation`.

181088 

181089 - `"container_file_citation"`

181090 

181091 - `FilePath object { file_id, index, type }`

181092 

181093 A path to a file.

181094 

181095 - `file_id: string`

181096 

181097 The ID of the file.

181098 

181099 - `index: number`

181100 

181101 The index of the file in the list of files.

181102 

181103 - `type: "file_path"`

181104 

181105 The type of the file path. Always `file_path`.

181106 

181107 - `"file_path"`

180100 181108 

180101 - `annotation_index: number`181109 - `annotation_index: number`

180102 181110 


184446 for reasoning items returned by `POST /v1/responses` and WebSocket185454 for reasoning items returned by `POST /v1/responses` and WebSocket

184447 `response.create` requests.185455 `response.create` requests.

184448 185456 

185457 When streaming, use the completed reasoning item and its

185458 `encrypted_content` from the `response.output_item.done` event in

185459 subsequent requests. The `encrypted_content` in

185460 `response.output_item.added` may be incomplete. This is especially

185461 important when `store` is `false` or when using Zero Data Retention.

185462 

184449 - `status: optional "in_progress" or "completed" or "incomplete"`185463 - `status: optional "in_progress" or "completed" or "incomplete"`

184450 185464 

184451 The status of the item. One of `in_progress`, `completed`, or185465 The status of the item. One of `in_progress`, `completed`, or


185219 Unique identifier for the MCP tool call approval request.186233 Unique identifier for the MCP tool call approval request.

185220 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.186234 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

185221 186235 

185222 - `error: optional string or null`186236 - `error: optional BetaMcpToolCallError or null`

185223 186237 

185224 The error from the tool call, if any.186238 The error from the tool call, if any.

185225 186239 

186240 - `McpProtocolError object { code, message, type }`

186241 

186242 - `code: number`

186243 

186244 - `message: string`

186245 

186246 - `type: "mcp_protocol_error"`

186247 

186248 - `"mcp_protocol_error"`

186249 

186250 - `McpToolExecutionError object { content, type }`

186251 

186252 - `content: unknown`

186253 

186254 - `type: "mcp_tool_execution_error"`

186255 

186256 - `"mcp_tool_execution_error"`

186257 

186258 - `HTTPError object { code, message, type }`

186259 

186260 - `code: number`

186261 

186262 - `message: string`

186263 

186264 - `type: "http_error"`

186265 

186266 - `"http_error"`

186267 

185226 - `output: optional string or null`186268 - `output: optional string or null`

185227 186269 

185228 The output from the tool call.186270 The output from the tool call.


190261 for reasoning items returned by `POST /v1/responses` and WebSocket191303 for reasoning items returned by `POST /v1/responses` and WebSocket

190262 `response.create` requests.191304 `response.create` requests.

190263 191305 

191306 When streaming, use the completed reasoning item and its

191307 `encrypted_content` from the `response.output_item.done` event in

191308 subsequent requests. The `encrypted_content` in

191309 `response.output_item.added` may be incomplete. This is especially

191310 important when `store` is `false` or when using Zero Data Retention.

191311 

190264 - `status: optional "in_progress" or "completed" or "incomplete"`191312 - `status: optional "in_progress" or "completed" or "incomplete"`

190265 191313 

190266 The status of the item. One of `in_progress`, `completed`, or191314 The status of the item. One of `in_progress`, `completed`, or


191010 Unique identifier for the MCP tool call approval request.192058 Unique identifier for the MCP tool call approval request.

191011 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.192059 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

191012 192060 

191013 - `error: optional string or null`192061 - `error: optional BetaMcpToolCallError or null`

191014 192062 

191015 The error from the tool call, if any.192063 The error from the tool call, if any.

191016 192064 


191419 when the originating `response.create` event supplied a192467 when the originating `response.create` event supplied a

191420 `stream_id`.192468 `stream_id`.

191421 192469 

191422 - `BetaResponseWsError = BetaResponseErrorEvent`

191423 

191424 Emitted when an error occurs.

191425 

191426 - `stream_id: optional string`

191427 

191428 The WebSocket lane that emitted this event. This field is present

191429 when the originating `response.create` event supplied a

191430 `stream_id`.

191431 

191432 - `BetaResponseFileSearchCallWsCompleted = BetaResponseFileSearchCallCompletedEvent`192470 - `BetaResponseFileSearchCallWsCompleted = BetaResponseFileSearchCallCompletedEvent`

191433 192471 

191434 Emitted when a file search call is completed (results found).192472 Emitted when a file search call is completed (results found).


191819 when the originating `response.create` event supplied a192857 when the originating `response.create` event supplied a

191820 `stream_id`.192858 `stream_id`.

191821 192859 

192860 - `BetaResponseWsError object { error, type, agent, 3 more }`

192861 

192862 Emitted when an error occurs while processing a Responses WebSocket request.

192863 

192864 - `error: object { code, message, param, 2 more }`

192865 

192866 Details about the error.

192867 

192868 - `code: string or null`

192869 

192870 The error code that was emitted, if any.

192871 

192872 - `message: string`

192873 

192874 The human-readable error message that was emitted.

192875 

192876 - `param: string or null`

192877 

192878 The parameter name that was associated with the error, if any.

192879 

192880 - `type: string`

192881 

192882 The error type that was emitted.

192883 

192884 - `headers: optional map[string]`

192885 

192886 The response headers that were emitted with the error, if any.

192887 

192888 - `type: "error"`

192889 

192890 The type of the event. Always `error`.

192891 

192892 - `"error"`

192893 

192894 - `agent: optional object { agent_name } or null`

192895 

192896 The agent that owns this multi-agent streaming event.

192897 

192898 - `agent_name: string`

192899 

192900 The canonical name of the agent that produced this item.

192901 

192902 - `sequence_number: optional number`

192903 

192904 The sequence number of an error emitted by the response stream.

192905 

192906 - `status: optional number`

192907 

192908 The HTTP status code associated with a WebSocket protocol error.

192909 

192910 - `stream_id: optional string`

192911 

192912 The WebSocket lane that emitted this event. This field is present when the

192913 originating `response.create` event supplied a `stream_id`.

192914 

191822 - `BetaResponseInjectCreatedEvent object { response_id, sequence_number, type, stream_id }`192915 - `BetaResponseInjectCreatedEvent object { response_id, sequence_number, type, stream_id }`

191823 192916 

191824 Emitted when all injected input items were validated and committed to the192917 Emitted when all injected input items were validated and committed to the


195621 for reasoning items returned by `POST /v1/responses` and WebSocket196714 for reasoning items returned by `POST /v1/responses` and WebSocket

195622 `response.create` requests.196715 `response.create` requests.

195623 196716 

196717 When streaming, use the completed reasoning item and its

196718 `encrypted_content` from the `response.output_item.done` event in

196719 subsequent requests. The `encrypted_content` in

196720 `response.output_item.added` may be incomplete. This is especially

196721 important when `store` is `false` or when using Zero Data Retention.

196722 

195624 - `status: optional "in_progress" or "completed" or "incomplete"`196723 - `status: optional "in_progress" or "completed" or "incomplete"`

195625 196724 

195626 The status of the item. One of `in_progress`, `completed`, or196725 The status of the item. One of `in_progress`, `completed`, or


196394 Unique identifier for the MCP tool call approval request.197493 Unique identifier for the MCP tool call approval request.

196395 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.197494 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

196396 197495 

196397 - `error: optional string or null`197496 - `error: optional BetaMcpToolCallError or null`

196398 197497 

196399 The error from the tool call, if any.197498 The error from the tool call, if any.

196400 197499 

197500 - `McpProtocolError object { code, message, type }`

197501 

197502 - `code: number`

197503 

197504 - `message: string`

197505 

197506 - `type: "mcp_protocol_error"`

197507 

197508 - `"mcp_protocol_error"`

197509 

197510 - `McpToolExecutionError object { content, type }`

197511 

197512 - `content: unknown`

197513 

197514 - `type: "mcp_tool_execution_error"`

197515 

197516 - `"mcp_tool_execution_error"`

197517 

197518 - `HTTPError object { code, message, type }`

197519 

197520 - `code: number`

197521 

197522 - `message: string`

197523 

197524 - `type: "http_error"`

197525 

197526 - `"http_error"`

197527 

196401 - `output: optional string or null`197528 - `output: optional string or null`

196402 197529 

196403 The output from the tool call.197530 The output from the tool call.


200589 for reasoning items returned by `POST /v1/responses` and WebSocket201716 for reasoning items returned by `POST /v1/responses` and WebSocket

200590 `response.create` requests.201717 `response.create` requests.

200591 201718 

201719 When streaming, use the completed reasoning item and its

201720 `encrypted_content` from the `response.output_item.done` event in

201721 subsequent requests. The `encrypted_content` in

201722 `response.output_item.added` may be incomplete. This is especially

201723 important when `store` is `false` or when using Zero Data Retention.

201724 

200592 - `status: optional "in_progress" or "completed" or "incomplete"`201725 - `status: optional "in_progress" or "completed" or "incomplete"`

200593 201726 

200594 The status of the item. One of `in_progress`, `completed`, or201727 The status of the item. One of `in_progress`, `completed`, or


201454 Unique identifier for the MCP tool call approval request.202587 Unique identifier for the MCP tool call approval request.

201455 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.202588 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

201456 202589 

201457 - `error: optional string or null`202590 - `error: optional BetaMcpToolCallError or null`

201458 202591 

201459 The error from the tool call, if any.202592 The error from the tool call, if any.

201460 202593 

202594 - `McpProtocolError object { code, message, type }`

202595 

202596 - `code: number`

202597 

202598 - `message: string`

202599 

202600 - `type: "mcp_protocol_error"`

202601 

202602 - `"mcp_protocol_error"`

202603 

202604 - `McpToolExecutionError object { content, type }`

202605 

202606 - `content: unknown`

202607 

202608 - `type: "mcp_tool_execution_error"`

202609 

202610 - `"mcp_tool_execution_error"`

202611 

202612 - `HTTPError object { code, message, type }`

202613 

202614 - `code: number`

202615 

202616 - `message: string`

202617 

202618 - `type: "http_error"`

202619 

202620 - `"http_error"`

202621 

201461 - `output: optional string or null`202622 - `output: optional string or null`

201462 202623 

201463 The output from the tool call.202624 The output from the tool call.


205387 for reasoning items returned by `POST /v1/responses` and WebSocket206548 for reasoning items returned by `POST /v1/responses` and WebSocket

205388 `response.create` requests.206549 `response.create` requests.

205389 206550 

206551 When streaming, use the completed reasoning item and its

206552 `encrypted_content` from the `response.output_item.done` event in

206553 subsequent requests. The `encrypted_content` in

206554 `response.output_item.added` may be incomplete. This is especially

206555 important when `store` is `false` or when using Zero Data Retention.

206556 

205390 - `status: optional "in_progress" or "completed" or "incomplete"`206557 - `status: optional "in_progress" or "completed" or "incomplete"`

205391 206558 

205392 The status of the item. One of `in_progress`, `completed`, or206559 The status of the item. One of `in_progress`, `completed`, or


206252 Unique identifier for the MCP tool call approval request.207419 Unique identifier for the MCP tool call approval request.

206253 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.207420 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

206254 207421 

206255 - `error: optional string or null`207422 - `error: optional BetaMcpToolCallError or null`

206256 207423 

206257 The error from the tool call, if any.207424 The error from the tool call, if any.

206258 207425 

207426 - `McpProtocolError object { code, message, type }`

207427 

207428 - `code: number`

207429 

207430 - `message: string`

207431 

207432 - `type: "mcp_protocol_error"`

207433 

207434 - `"mcp_protocol_error"`

207435 

207436 - `McpToolExecutionError object { content, type }`

207437 

207438 - `content: unknown`

207439 

207440 - `type: "mcp_tool_execution_error"`

207441 

207442 - `"mcp_tool_execution_error"`

207443 

207444 - `HTTPError object { code, message, type }`

207445 

207446 - `code: number`

207447 

207448 - `message: string`

207449 

207450 - `type: "http_error"`

207451 

207452 - `"http_error"`

207453 

206259 - `output: optional string or null`207454 - `output: optional string or null`

206260 207455 

206261 The output from the tool call.207456 The output from the tool call.


210250 for reasoning items returned by `POST /v1/responses` and WebSocket211445 for reasoning items returned by `POST /v1/responses` and WebSocket

210251 `response.create` requests.211446 `response.create` requests.

210252 211447 

211448 When streaming, use the completed reasoning item and its

211449 `encrypted_content` from the `response.output_item.done` event in

211450 subsequent requests. The `encrypted_content` in

211451 `response.output_item.added` may be incomplete. This is especially

211452 important when `store` is `false` or when using Zero Data Retention.

211453 

210253 - `status: optional "in_progress" or "completed" or "incomplete"`211454 - `status: optional "in_progress" or "completed" or "incomplete"`

210254 211455 

210255 The status of the item. One of `in_progress`, `completed`, or211456 The status of the item. One of `in_progress`, `completed`, or


211023 Unique identifier for the MCP tool call approval request.212224 Unique identifier for the MCP tool call approval request.

211024 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.212225 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

211025 212226 

211026 - `error: optional string or null`212227 - `error: optional BetaMcpToolCallError or null`

211027 212228 

211028 The error from the tool call, if any.212229 The error from the tool call, if any.

211029 212230 

212231 - `McpProtocolError object { code, message, type }`

212232 

212233 - `code: number`

212234 

212235 - `message: string`

212236 

212237 - `type: "mcp_protocol_error"`

212238 

212239 - `"mcp_protocol_error"`

212240 

212241 - `McpToolExecutionError object { content, type }`

212242 

212243 - `content: unknown`

212244 

212245 - `type: "mcp_tool_execution_error"`

212246 

212247 - `"mcp_tool_execution_error"`

212248 

212249 - `HTTPError object { code, message, type }`

212250 

212251 - `code: number`

212252 

212253 - `message: string`

212254 

212255 - `type: "http_error"`

212256 

212257 - `"http_error"`

212258 

211030 - `output: optional string or null`212259 - `output: optional string or null`

211031 212260 

211032 The output from the tool call.212261 The output from the tool call.

Details

3864 for reasoning items returned by `POST /v1/responses` and WebSocket3864 for reasoning items returned by `POST /v1/responses` and WebSocket

3865 `response.create` requests.3865 `response.create` requests.

3866 3866 

3867 When streaming, use the completed reasoning item and its

3868 `encrypted_content` from the `response.output_item.done` event in

3869 subsequent requests. The `encrypted_content` in

3870 `response.output_item.added` may be incomplete. This is especially

3871 important when `store` is `false` or when using Zero Data Retention.

3872 

3867 - `status: optional "in_progress" or "completed" or "incomplete"`3873 - `status: optional "in_progress" or "completed" or "incomplete"`

3868 3874 

3869 The status of the item. One of `in_progress`, `completed`, or3875 The status of the item. One of `in_progress`, `completed`, or


4637 Unique identifier for the MCP tool call approval request.4643 Unique identifier for the MCP tool call approval request.

4638 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.4644 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

4639 4645 

4640 - `error: optional string or null`4646 - `error: optional BetaMcpToolCallError or null`

4641 4647 

4642 The error from the tool call, if any.4648 The error from the tool call, if any.

4643 4649 

4650 - `McpProtocolError object { code, message, type }`

4651 

4652 - `code: number`

4653 

4654 - `message: string`

4655 

4656 - `type: "mcp_protocol_error"`

4657 

4658 - `"mcp_protocol_error"`

4659 

4660 - `McpToolExecutionError object { content, type }`

4661 

4662 - `content: unknown`

4663 

4664 - `type: "mcp_tool_execution_error"`

4665 

4666 - `"mcp_tool_execution_error"`

4667 

4668 - `HTTPError object { code, message, type }`

4669 

4670 - `code: number`

4671 

4672 - `message: string`

4673 

4674 - `type: "http_error"`

4675 

4676 - `"http_error"`

4677 

4644 - `output: optional string or null`4678 - `output: optional string or null`

4645 4679 

4646 The output from the tool call.4680 The output from the tool call.


5926 for reasoning items returned by `POST /v1/responses` and WebSocket5960 for reasoning items returned by `POST /v1/responses` and WebSocket

5927 `response.create` requests.5961 `response.create` requests.

5928 5962 

5963 When streaming, use the completed reasoning item and its

5964 `encrypted_content` from the `response.output_item.done` event in

5965 subsequent requests. The `encrypted_content` in

5966 `response.output_item.added` may be incomplete. This is especially

5967 important when `store` is `false` or when using Zero Data Retention.

5968 

5929 - `status: optional "in_progress" or "completed" or "incomplete"`5969 - `status: optional "in_progress" or "completed" or "incomplete"`

5930 5970 

5931 The status of the item. One of `in_progress`, `completed`, or5971 The status of the item. One of `in_progress`, `completed`, or


8803 Unique identifier for the MCP tool call approval request.8843 Unique identifier for the MCP tool call approval request.

8804 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.8844 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

8805 8845 

8806 - `error: optional string or null`8846 - `error: optional BetaMcpToolCallError or null`

8807 8847 

8808 The error from the tool call, if any.8848 The error from the tool call, if any.

8809 8849 


15057 for reasoning items returned by `POST /v1/responses` and WebSocket15097 for reasoning items returned by `POST /v1/responses` and WebSocket

15058 `response.create` requests.15098 `response.create` requests.

15059 15099 

15100 When streaming, use the completed reasoning item and its

15101 `encrypted_content` from the `response.output_item.done` event in

15102 subsequent requests. The `encrypted_content` in

15103 `response.output_item.added` may be incomplete. This is especially

15104 important when `store` is `false` or when using Zero Data Retention.

15105 

15060 - `status: optional "in_progress" or "completed" or "incomplete"`15106 - `status: optional "in_progress" or "completed" or "incomplete"`

15061 15107 

15062 The status of the item. One of `in_progress`, `completed`, or15108 The status of the item. One of `in_progress`, `completed`, or


15830 Unique identifier for the MCP tool call approval request.15876 Unique identifier for the MCP tool call approval request.

15831 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.15877 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

15832 15878 

15833 - `error: optional string or null`15879 - `error: optional BetaMcpToolCallError or null`

15834 15880 

15835 The error from the tool call, if any.15881 The error from the tool call, if any.

15836 15882 

15883 - `McpProtocolError object { code, message, type }`

15884 

15885 - `code: number`

15886 

15887 - `message: string`

15888 

15889 - `type: "mcp_protocol_error"`

15890 

15891 - `"mcp_protocol_error"`

15892 

15893 - `McpToolExecutionError object { content, type }`

15894 

15895 - `content: unknown`

15896 

15897 - `type: "mcp_tool_execution_error"`

15898 

15899 - `"mcp_tool_execution_error"`

15900 

15901 - `HTTPError object { code, message, type }`

15902 

15903 - `code: number`

15904 

15905 - `message: string`

15906 

15907 - `type: "http_error"`

15908 

15909 - `"http_error"`

15910 

15837 - `output: optional string or null`15911 - `output: optional string or null`

15838 15912 

15839 The output from the tool call.15913 The output from the tool call.


19982 for reasoning items returned by `POST /v1/responses` and WebSocket20056 for reasoning items returned by `POST /v1/responses` and WebSocket

19983 `response.create` requests.20057 `response.create` requests.

19984 20058 

20059 When streaming, use the completed reasoning item and its

20060 `encrypted_content` from the `response.output_item.done` event in

20061 subsequent requests. The `encrypted_content` in

20062 `response.output_item.added` may be incomplete. This is especially

20063 important when `store` is `false` or when using Zero Data Retention.

20064 

19985 - `status: optional "in_progress" or "completed" or "incomplete"`20065 - `status: optional "in_progress" or "completed" or "incomplete"`

19986 20066 

19987 The status of the item. One of `in_progress`, `completed`, or20067 The status of the item. One of `in_progress`, `completed`, or


20741 Unique identifier for the MCP tool call approval request.20821 Unique identifier for the MCP tool call approval request.

20742 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.20822 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

20743 20823 

20744 - `error: optional string or null`20824 - `error: optional BetaMcpToolCallError or null`

20745 20825 

20746 The error from the tool call, if any.20826 The error from the tool call, if any.

20747 20827 

20828 - `McpProtocolError object { code, message, type }`

20829 

20830 - `code: number`

20831 

20832 - `message: string`

20833 

20834 - `type: "mcp_protocol_error"`

20835 

20836 - `"mcp_protocol_error"`

20837 

20838 - `McpToolExecutionError object { content, type }`

20839 

20840 - `content: unknown`

20841 

20842 - `type: "mcp_tool_execution_error"`

20843 

20844 - `"mcp_tool_execution_error"`

20845 

20846 - `HTTPError object { code, message, type }`

20847 

20848 - `code: number`

20849 

20850 - `message: string`

20851 

20852 - `type: "http_error"`

20853 

20854 - `"http_error"`

20855 

20748 - `output: optional string or null`20856 - `output: optional string or null`

20749 20857 

20750 The output from the tool call.20858 The output from the tool call.


24916 for reasoning items returned by `POST /v1/responses` and WebSocket25024 for reasoning items returned by `POST /v1/responses` and WebSocket

24917 `response.create` requests.25025 `response.create` requests.

24918 25026 

25027 When streaming, use the completed reasoning item and its

25028 `encrypted_content` from the `response.output_item.done` event in

25029 subsequent requests. The `encrypted_content` in

25030 `response.output_item.added` may be incomplete. This is especially

25031 important when `store` is `false` or when using Zero Data Retention.

25032 

24919 - `status: optional "in_progress" or "completed" or "incomplete"`25033 - `status: optional "in_progress" or "completed" or "incomplete"`

24920 25034 

24921 The status of the item. One of `in_progress`, `completed`, or25035 The status of the item. One of `in_progress`, `completed`, or


25689 Unique identifier for the MCP tool call approval request.25803 Unique identifier for the MCP tool call approval request.

25690 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.25804 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

25691 25805 

25692 - `error: optional string or null`25806 - `error: optional BetaMcpToolCallError or null`

25693 25807 

25694 The error from the tool call, if any.25808 The error from the tool call, if any.

25695 25809 

25810 - `McpProtocolError object { code, message, type }`

25811 

25812 - `code: number`

25813 

25814 - `message: string`

25815 

25816 - `type: "mcp_protocol_error"`

25817 

25818 - `"mcp_protocol_error"`

25819 

25820 - `McpToolExecutionError object { content, type }`

25821 

25822 - `content: unknown`

25823 

25824 - `type: "mcp_tool_execution_error"`

25825 

25826 - `"mcp_tool_execution_error"`

25827 

25828 - `HTTPError object { code, message, type }`

25829 

25830 - `code: number`

25831 

25832 - `message: string`

25833 

25834 - `type: "http_error"`

25835 

25836 - `"http_error"`

25837 

25696 - `output: optional string or null`25838 - `output: optional string or null`

25697 25839 

25698 The output from the tool call.25840 The output from the tool call.


31641 for reasoning items returned by `POST /v1/responses` and WebSocket31783 for reasoning items returned by `POST /v1/responses` and WebSocket

31642 `response.create` requests.31784 `response.create` requests.

31643 31785 

31786 When streaming, use the completed reasoning item and its

31787 `encrypted_content` from the `response.output_item.done` event in

31788 subsequent requests. The `encrypted_content` in

31789 `response.output_item.added` may be incomplete. This is especially

31790 important when `store` is `false` or when using Zero Data Retention.

31791 

31644 - `status: optional "in_progress" or "completed" or "incomplete"`31792 - `status: optional "in_progress" or "completed" or "incomplete"`

31645 31793 

31646 The status of the item. One of `in_progress`, `completed`, or31794 The status of the item. One of `in_progress`, `completed`, or


32414 Unique identifier for the MCP tool call approval request.32562 Unique identifier for the MCP tool call approval request.

32415 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.32563 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

32416 32564 

32417 - `error: optional string or null`32565 - `error: optional BetaMcpToolCallError or null`

32418 32566 

32419 The error from the tool call, if any.32567 The error from the tool call, if any.

32420 32568 

32569 - `McpProtocolError object { code, message, type }`

32570 

32571 - `code: number`

32572 

32573 - `message: string`

32574 

32575 - `type: "mcp_protocol_error"`

32576 

32577 - `"mcp_protocol_error"`

32578 

32579 - `McpToolExecutionError object { content, type }`

32580 

32581 - `content: unknown`

32582 

32583 - `type: "mcp_tool_execution_error"`

32584 

32585 - `"mcp_tool_execution_error"`

32586 

32587 - `HTTPError object { code, message, type }`

32588 

32589 - `code: number`

32590 

32591 - `message: string`

32592 

32593 - `type: "http_error"`

32594 

32595 - `"http_error"`

32596 

32421 - `output: optional string or null`32597 - `output: optional string or null`

32422 32598 

32423 The output from the tool call.32599 The output from the tool call.


33703 for reasoning items returned by `POST /v1/responses` and WebSocket33879 for reasoning items returned by `POST /v1/responses` and WebSocket

33704 `response.create` requests.33880 `response.create` requests.

33705 33881 

33882 When streaming, use the completed reasoning item and its

33883 `encrypted_content` from the `response.output_item.done` event in

33884 subsequent requests. The `encrypted_content` in

33885 `response.output_item.added` may be incomplete. This is especially

33886 important when `store` is `false` or when using Zero Data Retention.

33887 

33706 - `status: optional "in_progress" or "completed" or "incomplete"`33888 - `status: optional "in_progress" or "completed" or "incomplete"`

33707 33889 

33708 The status of the item. One of `in_progress`, `completed`, or33890 The status of the item. One of `in_progress`, `completed`, or


36580 Unique identifier for the MCP tool call approval request.36762 Unique identifier for the MCP tool call approval request.

36581 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.36763 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

36582 36764 

36583 - `error: optional string or null`36765 - `error: optional BetaMcpToolCallError or null`

36584 36766 

36585 The error from the tool call, if any.36767 The error from the tool call, if any.

36586 36768 


43497 for reasoning items returned by `POST /v1/responses` and WebSocket43679 for reasoning items returned by `POST /v1/responses` and WebSocket

43498 `response.create` requests.43680 `response.create` requests.

43499 43681 

43682 When streaming, use the completed reasoning item and its

43683 `encrypted_content` from the `response.output_item.done` event in

43684 subsequent requests. The `encrypted_content` in

43685 `response.output_item.added` may be incomplete. This is especially

43686 important when `store` is `false` or when using Zero Data Retention.

43687 

43500 - `status: optional "in_progress" or "completed" or "incomplete"`43688 - `status: optional "in_progress" or "completed" or "incomplete"`

43501 43689 

43502 The status of the item. One of `in_progress`, `completed`, or43690 The status of the item. One of `in_progress`, `completed`, or


44270 Unique identifier for the MCP tool call approval request.44458 Unique identifier for the MCP tool call approval request.

44271 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.44459 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

44272 44460 

44273 - `error: optional string or null`44461 - `error: optional BetaMcpToolCallError or null`

44274 44462 

44275 The error from the tool call, if any.44463 The error from the tool call, if any.

44276 44464 

44465 - `McpProtocolError object { code, message, type }`

44466 

44467 - `code: number`

44468 

44469 - `message: string`

44470 

44471 - `type: "mcp_protocol_error"`

44472 

44473 - `"mcp_protocol_error"`

44474 

44475 - `McpToolExecutionError object { content, type }`

44476 

44477 - `content: unknown`

44478 

44479 - `type: "mcp_tool_execution_error"`

44480 

44481 - `"mcp_tool_execution_error"`

44482 

44483 - `HTTPError object { code, message, type }`

44484 

44485 - `code: number`

44486 

44487 - `message: string`

44488 

44489 - `type: "http_error"`

44490 

44491 - `"http_error"`

44492 

44277 - `output: optional string or null`44493 - `output: optional string or null`

44278 44494 

44279 The output from the tool call.44495 The output from the tool call.


45559 for reasoning items returned by `POST /v1/responses` and WebSocket45775 for reasoning items returned by `POST /v1/responses` and WebSocket

45560 `response.create` requests.45776 `response.create` requests.

45561 45777 

45778 When streaming, use the completed reasoning item and its

45779 `encrypted_content` from the `response.output_item.done` event in

45780 subsequent requests. The `encrypted_content` in

45781 `response.output_item.added` may be incomplete. This is especially

45782 important when `store` is `false` or when using Zero Data Retention.

45783 

45562 - `status: optional "in_progress" or "completed" or "incomplete"`45784 - `status: optional "in_progress" or "completed" or "incomplete"`

45563 45785 

45564 The status of the item. One of `in_progress`, `completed`, or45786 The status of the item. One of `in_progress`, `completed`, or


48436 Unique identifier for the MCP tool call approval request.48658 Unique identifier for the MCP tool call approval request.

48437 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.48659 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

48438 48660 

48439 - `error: optional string or null`48661 - `error: optional BetaMcpToolCallError or null`

48440 48662 

48441 The error from the tool call, if any.48663 The error from the tool call, if any.

48442 48664 


54542 for reasoning items returned by `POST /v1/responses` and WebSocket54764 for reasoning items returned by `POST /v1/responses` and WebSocket

54543 `response.create` requests.54765 `response.create` requests.

54544 54766 

54767 When streaming, use the completed reasoning item and its

54768 `encrypted_content` from the `response.output_item.done` event in

54769 subsequent requests. The `encrypted_content` in

54770 `response.output_item.added` may be incomplete. This is especially

54771 important when `store` is `false` or when using Zero Data Retention.

54772 

54545 - `status: optional "in_progress" or "completed" or "incomplete"`54773 - `status: optional "in_progress" or "completed" or "incomplete"`

54546 54774 

54547 The status of the item. One of `in_progress`, `completed`, or54775 The status of the item. One of `in_progress`, `completed`, or


55301 Unique identifier for the MCP tool call approval request.55529 Unique identifier for the MCP tool call approval request.

55302 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.55530 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

55303 55531 

55304 - `error: optional string or null`55532 - `error: optional BetaMcpToolCallError or null`

55305 55533 

55306 The error from the tool call, if any.55534 The error from the tool call, if any.

55307 55535 

55536 - `McpProtocolError object { code, message, type }`

55537 

55538 - `code: number`

55539 

55540 - `message: string`

55541 

55542 - `type: "mcp_protocol_error"`

55543 

55544 - `"mcp_protocol_error"`

55545 

55546 - `McpToolExecutionError object { content, type }`

55547 

55548 - `content: unknown`

55549 

55550 - `type: "mcp_tool_execution_error"`

55551 

55552 - `"mcp_tool_execution_error"`

55553 

55554 - `HTTPError object { code, message, type }`

55555 

55556 - `code: number`

55557 

55558 - `message: string`

55559 

55560 - `type: "http_error"`

55561 

55562 - `"http_error"`

55563 

55308 - `output: optional string or null`55564 - `output: optional string or null`

55309 55565 

55310 The output from the tool call.55566 The output from the tool call.


56345 56601 

56346 The path to the directory containing the skill.56602 The path to the directory containing the skill.

56347 56603 

56604### Beta Mcp Tool Call Error

56605 

56606- `BetaMcpToolCallError = object { code, message, type } or object { content, type } or object { code, message, type }`

56607 

56608 - `McpProtocolError object { code, message, type }`

56609 

56610 - `code: number`

56611 

56612 - `message: string`

56613 

56614 - `type: "mcp_protocol_error"`

56615 

56616 - `"mcp_protocol_error"`

56617 

56618 - `McpToolExecutionError object { content, type }`

56619 

56620 - `content: unknown`

56621 

56622 - `type: "mcp_tool_execution_error"`

56623 

56624 - `"mcp_tool_execution_error"`

56625 

56626 - `HTTPError object { code, message, type }`

56627 

56628 - `code: number`

56629 

56630 - `message: string`

56631 

56632 - `type: "http_error"`

56633 

56634 - `"http_error"`

56635 

56348### Beta Response56636### Beta Response

56349 56637 

56350- `BetaResponse object { id, created_at, error, 32 more }`56638- `BetaResponse object { id, created_at, error, 32 more }`


60191 for reasoning items returned by `POST /v1/responses` and WebSocket60479 for reasoning items returned by `POST /v1/responses` and WebSocket

60192 `response.create` requests.60480 `response.create` requests.

60193 60481 

60482 When streaming, use the completed reasoning item and its

60483 `encrypted_content` from the `response.output_item.done` event in

60484 subsequent requests. The `encrypted_content` in

60485 `response.output_item.added` may be incomplete. This is especially

60486 important when `store` is `false` or when using Zero Data Retention.

60487 

60194 - `status: optional "in_progress" or "completed" or "incomplete"`60488 - `status: optional "in_progress" or "completed" or "incomplete"`

60195 60489 

60196 The status of the item. One of `in_progress`, `completed`, or60490 The status of the item. One of `in_progress`, `completed`, or


60964 Unique identifier for the MCP tool call approval request.61258 Unique identifier for the MCP tool call approval request.

60965 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.61259 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

60966 61260 

60967 - `error: optional string or null`61261 - `error: optional BetaMcpToolCallError or null`

60968 61262 

60969 The error from the tool call, if any.61263 The error from the tool call, if any.

60970 61264 

61265 - `McpProtocolError object { code, message, type }`

61266 

61267 - `code: number`

61268 

61269 - `message: string`

61270 

61271 - `type: "mcp_protocol_error"`

61272 

61273 - `"mcp_protocol_error"`

61274 

61275 - `McpToolExecutionError object { content, type }`

61276 

61277 - `content: unknown`

61278 

61279 - `type: "mcp_tool_execution_error"`

61280 

61281 - `"mcp_tool_execution_error"`

61282 

61283 - `HTTPError object { code, message, type }`

61284 

61285 - `code: number`

61286 

61287 - `message: string`

61288 

61289 - `type: "http_error"`

61290 

61291 - `"http_error"`

61292 

60971 - `output: optional string or null`61293 - `output: optional string or null`

60972 61294 

60973 The output from the tool call.61295 The output from the tool call.


62253 for reasoning items returned by `POST /v1/responses` and WebSocket62575 for reasoning items returned by `POST /v1/responses` and WebSocket

62254 `response.create` requests.62576 `response.create` requests.

62255 62577 

62578 When streaming, use the completed reasoning item and its

62579 `encrypted_content` from the `response.output_item.done` event in

62580 subsequent requests. The `encrypted_content` in

62581 `response.output_item.added` may be incomplete. This is especially

62582 important when `store` is `false` or when using Zero Data Retention.

62583 

62256 - `status: optional "in_progress" or "completed" or "incomplete"`62584 - `status: optional "in_progress" or "completed" or "incomplete"`

62257 62585 

62258 The status of the item. One of `in_progress`, `completed`, or62586 The status of the item. One of `in_progress`, `completed`, or


65130 Unique identifier for the MCP tool call approval request.65458 Unique identifier for the MCP tool call approval request.

65131 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.65459 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

65132 65460 

65133 - `error: optional string or null`65461 - `error: optional BetaMcpToolCallError or null`

65134 65462 

65135 The error from the tool call, if any.65463 The error from the tool call, if any.

65136 65464 


71270 for reasoning items returned by `POST /v1/responses` and WebSocket71598 for reasoning items returned by `POST /v1/responses` and WebSocket

71271 `response.create` requests.71599 `response.create` requests.

71272 71600 

71601 When streaming, use the completed reasoning item and its

71602 `encrypted_content` from the `response.output_item.done` event in

71603 subsequent requests. The `encrypted_content` in

71604 `response.output_item.added` may be incomplete. This is especially

71605 important when `store` is `false` or when using Zero Data Retention.

71606 

71273 - `status: optional "in_progress" or "completed" or "incomplete"`71607 - `status: optional "in_progress" or "completed" or "incomplete"`

71274 71608 

71275 The status of the item. One of `in_progress`, `completed`, or71609 The status of the item. One of `in_progress`, `completed`, or


72043 Unique identifier for the MCP tool call approval request.72377 Unique identifier for the MCP tool call approval request.

72044 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.72378 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

72045 72379 

72046 - `error: optional string or null`72380 - `error: optional BetaMcpToolCallError or null`

72047 72381 

72048 The error from the tool call, if any.72382 The error from the tool call, if any.

72049 72383 

72384 - `McpProtocolError object { code, message, type }`

72385 

72386 - `code: number`

72387 

72388 - `message: string`

72389 

72390 - `type: "mcp_protocol_error"`

72391 

72392 - `"mcp_protocol_error"`

72393 

72394 - `McpToolExecutionError object { content, type }`

72395 

72396 - `content: unknown`

72397 

72398 - `type: "mcp_tool_execution_error"`

72399 

72400 - `"mcp_tool_execution_error"`

72401 

72402 - `HTTPError object { code, message, type }`

72403 

72404 - `code: number`

72405 

72406 - `message: string`

72407 

72408 - `type: "http_error"`

72409 

72410 - `"http_error"`

72411 

72050 - `output: optional string or null`72412 - `output: optional string or null`

72051 72413 

72052 The output from the tool call.72414 The output from the tool call.


73332 for reasoning items returned by `POST /v1/responses` and WebSocket73694 for reasoning items returned by `POST /v1/responses` and WebSocket

73333 `response.create` requests.73695 `response.create` requests.

73334 73696 

73697 When streaming, use the completed reasoning item and its

73698 `encrypted_content` from the `response.output_item.done` event in

73699 subsequent requests. The `encrypted_content` in

73700 `response.output_item.added` may be incomplete. This is especially

73701 important when `store` is `false` or when using Zero Data Retention.

73702 

73335 - `status: optional "in_progress" or "completed" or "incomplete"`73703 - `status: optional "in_progress" or "completed" or "incomplete"`

73336 73704 

73337 The status of the item. One of `in_progress`, `completed`, or73705 The status of the item. One of `in_progress`, `completed`, or


76209 Unique identifier for the MCP tool call approval request.76577 Unique identifier for the MCP tool call approval request.

76210 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.76578 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

76211 76579 

76212 - `error: optional string or null`76580 - `error: optional BetaMcpToolCallError or null`

76213 76581 

76214 The error from the tool call, if any.76582 The error from the tool call, if any.

76215 76583 


82810 for reasoning items returned by `POST /v1/responses` and WebSocket83178 for reasoning items returned by `POST /v1/responses` and WebSocket

82811 `response.create` requests.83179 `response.create` requests.

82812 83180 

83181 When streaming, use the completed reasoning item and its

83182 `encrypted_content` from the `response.output_item.done` event in

83183 subsequent requests. The `encrypted_content` in

83184 `response.output_item.added` may be incomplete. This is especially

83185 important when `store` is `false` or when using Zero Data Retention.

83186 

82813 - `status: optional "in_progress" or "completed" or "incomplete"`83187 - `status: optional "in_progress" or "completed" or "incomplete"`

82814 83188 

82815 The status of the item. One of `in_progress`, `completed`, or83189 The status of the item. One of `in_progress`, `completed`, or


83583 Unique identifier for the MCP tool call approval request.83957 Unique identifier for the MCP tool call approval request.

83584 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.83958 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

83585 83959 

83586 - `error: optional string or null`83960 - `error: optional BetaMcpToolCallError or null`

83587 83961 

83588 The error from the tool call, if any.83962 The error from the tool call, if any.

83589 83963 

83964 - `McpProtocolError object { code, message, type }`

83965 

83966 - `code: number`

83967 

83968 - `message: string`

83969 

83970 - `type: "mcp_protocol_error"`

83971 

83972 - `"mcp_protocol_error"`

83973 

83974 - `McpToolExecutionError object { content, type }`

83975 

83976 - `content: unknown`

83977 

83978 - `type: "mcp_tool_execution_error"`

83979 

83980 - `"mcp_tool_execution_error"`

83981 

83982 - `HTTPError object { code, message, type }`

83983 

83984 - `code: number`

83985 

83986 - `message: string`

83987 

83988 - `type: "http_error"`

83989 

83990 - `"http_error"`

83991 

83590 - `output: optional string or null`83992 - `output: optional string or null`

83591 83993 

83592 The output from the tool call.83994 The output from the tool call.


84872 for reasoning items returned by `POST /v1/responses` and WebSocket85274 for reasoning items returned by `POST /v1/responses` and WebSocket

84873 `response.create` requests.85275 `response.create` requests.

84874 85276 

85277 When streaming, use the completed reasoning item and its

85278 `encrypted_content` from the `response.output_item.done` event in

85279 subsequent requests. The `encrypted_content` in

85280 `response.output_item.added` may be incomplete. This is especially

85281 important when `store` is `false` or when using Zero Data Retention.

85282 

84875 - `status: optional "in_progress" or "completed" or "incomplete"`85283 - `status: optional "in_progress" or "completed" or "incomplete"`

84876 85284 

84877 The status of the item. One of `in_progress`, `completed`, or85285 The status of the item. One of `in_progress`, `completed`, or


87749 Unique identifier for the MCP tool call approval request.88157 Unique identifier for the MCP tool call approval request.

87750 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.88158 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

87751 88159 

87752 - `error: optional string or null`88160 - `error: optional BetaMcpToolCallError or null`

87753 88161 

87754 The error from the tool call, if any.88162 The error from the tool call, if any.

87755 88163 


93797 for reasoning items returned by `POST /v1/responses` and WebSocket94205 for reasoning items returned by `POST /v1/responses` and WebSocket

93798 `response.create` requests.94206 `response.create` requests.

93799 94207 

94208 When streaming, use the completed reasoning item and its

94209 `encrypted_content` from the `response.output_item.done` event in

94210 subsequent requests. The `encrypted_content` in

94211 `response.output_item.added` may be incomplete. This is especially

94212 important when `store` is `false` or when using Zero Data Retention.

94213 

93800 - `status: optional "in_progress" or "completed" or "incomplete"`94214 - `status: optional "in_progress" or "completed" or "incomplete"`

93801 94215 

93802 The status of the item. One of `in_progress`, `completed`, or94216 The status of the item. One of `in_progress`, `completed`, or


94570 Unique identifier for the MCP tool call approval request.94984 Unique identifier for the MCP tool call approval request.

94571 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.94985 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

94572 94986 

94573 - `error: optional string or null`94987 - `error: optional BetaMcpToolCallError or null`

94574 94988 

94575 The error from the tool call, if any.94989 The error from the tool call, if any.

94576 94990 

94991 - `McpProtocolError object { code, message, type }`

94992 

94993 - `code: number`

94994 

94995 - `message: string`

94996 

94997 - `type: "mcp_protocol_error"`

94998 

94999 - `"mcp_protocol_error"`

95000 

95001 - `McpToolExecutionError object { content, type }`

95002 

95003 - `content: unknown`

95004 

95005 - `type: "mcp_tool_execution_error"`

95006 

95007 - `"mcp_tool_execution_error"`

95008 

95009 - `HTTPError object { code, message, type }`

95010 

95011 - `code: number`

95012 

95013 - `message: string`

95014 

95015 - `type: "http_error"`

95016 

95017 - `"http_error"`

95018 

94577 - `output: optional string or null`95019 - `output: optional string or null`

94578 95020 

94579 The output from the tool call.95021 The output from the tool call.


95859 for reasoning items returned by `POST /v1/responses` and WebSocket96301 for reasoning items returned by `POST /v1/responses` and WebSocket

95860 `response.create` requests.96302 `response.create` requests.

95861 96303 

96304 When streaming, use the completed reasoning item and its

96305 `encrypted_content` from the `response.output_item.done` event in

96306 subsequent requests. The `encrypted_content` in

96307 `response.output_item.added` may be incomplete. This is especially

96308 important when `store` is `false` or when using Zero Data Retention.

96309 

95862 - `status: optional "in_progress" or "completed" or "incomplete"`96310 - `status: optional "in_progress" or "completed" or "incomplete"`

95863 96311 

95864 The status of the item. One of `in_progress`, `completed`, or96312 The status of the item. One of `in_progress`, `completed`, or


98736 Unique identifier for the MCP tool call approval request.99184 Unique identifier for the MCP tool call approval request.

98737 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.99185 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

98738 99186 

98739 - `error: optional string or null`99187 - `error: optional BetaMcpToolCallError or null`

98740 99188 

98741 The error from the tool call, if any.99189 The error from the tool call, if any.

98742 99190 


101191 101639 

101192### Beta Response Image Gen Call Partial Image Event101640### Beta Response Image Gen Call Partial Image Event

101193 101641 

101194- `BetaResponseImageGenCallPartialImageEvent object { item_id, output_index, partial_image_b64, 4 more }`101642- `BetaResponseImageGenCallPartialImageEvent object { item_id, output_index, partial_image_b64, 8 more }`

101195 101643 

101196 Emitted when a partial image is available during image generation streaming.101644 Emitted when a partial image is available during image generation streaming.

101197 101645 


101229 101677 

101230 The canonical name of the agent that produced this item.101678 The canonical name of the agent that produced this item.

101231 101679 

101680 - `background: optional string`

101681 

101682 The background setting that was used.

101683 

101684 - `output_format: optional string`

101685 

101686 The output format that was used.

101687 

101688 - `quality: optional string`

101689 

101690 The image quality that was used.

101691 

101692 - `size: optional string`

101693 

101694 The image size that was used.

101695 

101232### Beta Response In Progress Event101696### Beta Response In Progress Event

101233 101697 

101234- `BetaResponseInProgressEvent object { response, sequence_number, type, agent }`101698- `BetaResponseInProgressEvent object { response, sequence_number, type, agent }`


105081 for reasoning items returned by `POST /v1/responses` and WebSocket105545 for reasoning items returned by `POST /v1/responses` and WebSocket

105082 `response.create` requests.105546 `response.create` requests.

105083 105547 

105548 When streaming, use the completed reasoning item and its

105549 `encrypted_content` from the `response.output_item.done` event in

105550 subsequent requests. The `encrypted_content` in

105551 `response.output_item.added` may be incomplete. This is especially

105552 important when `store` is `false` or when using Zero Data Retention.

105553 

105084 - `status: optional "in_progress" or "completed" or "incomplete"`105554 - `status: optional "in_progress" or "completed" or "incomplete"`

105085 105555 

105086 The status of the item. One of `in_progress`, `completed`, or105556 The status of the item. One of `in_progress`, `completed`, or


105854 Unique identifier for the MCP tool call approval request.106324 Unique identifier for the MCP tool call approval request.

105855 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.106325 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

105856 106326 

105857 - `error: optional string or null`106327 - `error: optional BetaMcpToolCallError or null`

105858 106328 

105859 The error from the tool call, if any.106329 The error from the tool call, if any.

105860 106330 

106331 - `McpProtocolError object { code, message, type }`

106332 

106333 - `code: number`

106334 

106335 - `message: string`

106336 

106337 - `type: "mcp_protocol_error"`

106338 

106339 - `"mcp_protocol_error"`

106340 

106341 - `McpToolExecutionError object { content, type }`

106342 

106343 - `content: unknown`

106344 

106345 - `type: "mcp_tool_execution_error"`

106346 

106347 - `"mcp_tool_execution_error"`

106348 

106349 - `HTTPError object { code, message, type }`

106350 

106351 - `code: number`

106352 

106353 - `message: string`

106354 

106355 - `type: "http_error"`

106356 

106357 - `"http_error"`

106358 

105861 - `output: optional string or null`106359 - `output: optional string or null`

105862 106360 

105863 The output from the tool call.106361 The output from the tool call.


107143 for reasoning items returned by `POST /v1/responses` and WebSocket107641 for reasoning items returned by `POST /v1/responses` and WebSocket

107144 `response.create` requests.107642 `response.create` requests.

107145 107643 

107644 When streaming, use the completed reasoning item and its

107645 `encrypted_content` from the `response.output_item.done` event in

107646 subsequent requests. The `encrypted_content` in

107647 `response.output_item.added` may be incomplete. This is especially

107648 important when `store` is `false` or when using Zero Data Retention.

107649 

107146 - `status: optional "in_progress" or "completed" or "incomplete"`107650 - `status: optional "in_progress" or "completed" or "incomplete"`

107147 107651 

107148 The status of the item. One of `in_progress`, `completed`, or107652 The status of the item. One of `in_progress`, `completed`, or


110020 Unique identifier for the MCP tool call approval request.110524 Unique identifier for the MCP tool call approval request.

110021 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.110525 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

110022 110526 

110023 - `error: optional string or null`110527 - `error: optional BetaMcpToolCallError or null`

110024 110528 

110025 The error from the tool call, if any.110529 The error from the tool call, if any.

110026 110530 


115937 for reasoning items returned by `POST /v1/responses` and WebSocket116441 for reasoning items returned by `POST /v1/responses` and WebSocket

115938 `response.create` requests.116442 `response.create` requests.

115939 116443 

116444 When streaming, use the completed reasoning item and its

116445 `encrypted_content` from the `response.output_item.done` event in

116446 subsequent requests. The `encrypted_content` in

116447 `response.output_item.added` may be incomplete. This is especially

116448 important when `store` is `false` or when using Zero Data Retention.

116449 

115940 - `status: optional "in_progress" or "completed" or "incomplete"`116450 - `status: optional "in_progress" or "completed" or "incomplete"`

115941 116451 

115942 The status of the item. One of `in_progress`, `completed`, or116452 The status of the item. One of `in_progress`, `completed`, or


116710 Unique identifier for the MCP tool call approval request.117220 Unique identifier for the MCP tool call approval request.

116711 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.117221 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

116712 117222 

116713 - `error: optional string or null`117223 - `error: optional BetaMcpToolCallError or null`

116714 117224 

116715 The error from the tool call, if any.117225 The error from the tool call, if any.

116716 117226 

117227 - `McpProtocolError object { code, message, type }`

117228 

117229 - `code: number`

117230 

117231 - `message: string`

117232 

117233 - `type: "mcp_protocol_error"`

117234 

117235 - `"mcp_protocol_error"`

117236 

117237 - `McpToolExecutionError object { content, type }`

117238 

117239 - `content: unknown`

117240 

117241 - `type: "mcp_tool_execution_error"`

117242 

117243 - `"mcp_tool_execution_error"`

117244 

117245 - `HTTPError object { code, message, type }`

117246 

117247 - `code: number`

117248 

117249 - `message: string`

117250 

117251 - `type: "http_error"`

117252 

117253 - `"http_error"`

117254 

116717 - `output: optional string or null`117255 - `output: optional string or null`

116718 117256 

116719 The output from the tool call.117257 The output from the tool call.


117999 for reasoning items returned by `POST /v1/responses` and WebSocket118537 for reasoning items returned by `POST /v1/responses` and WebSocket

118000 `response.create` requests.118538 `response.create` requests.

118001 118539 

118540 When streaming, use the completed reasoning item and its

118541 `encrypted_content` from the `response.output_item.done` event in

118542 subsequent requests. The `encrypted_content` in

118543 `response.output_item.added` may be incomplete. This is especially

118544 important when `store` is `false` or when using Zero Data Retention.

118545 

118002 - `status: optional "in_progress" or "completed" or "incomplete"`118546 - `status: optional "in_progress" or "completed" or "incomplete"`

118003 118547 

118004 The status of the item. One of `in_progress`, `completed`, or118548 The status of the item. One of `in_progress`, `completed`, or


120876 Unique identifier for the MCP tool call approval request.121420 Unique identifier for the MCP tool call approval request.

120877 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.121421 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

120878 121422 

120879 - `error: optional string or null`121423 - `error: optional BetaMcpToolCallError or null`

120880 121424 

120881 The error from the tool call, if any.121425 The error from the tool call, if any.

120882 121426 


126700 for reasoning items returned by `POST /v1/responses` and WebSocket127244 for reasoning items returned by `POST /v1/responses` and WebSocket

126701 `response.create` requests.127245 `response.create` requests.

126702 127246 

127247 When streaming, use the completed reasoning item and its

127248 `encrypted_content` from the `response.output_item.done` event in

127249 subsequent requests. The `encrypted_content` in

127250 `response.output_item.added` may be incomplete. This is especially

127251 important when `store` is `false` or when using Zero Data Retention.

127252 

126703 - `status: optional "in_progress" or "completed" or "incomplete"`127253 - `status: optional "in_progress" or "completed" or "incomplete"`

126704 127254 

126705 The status of the item. One of `in_progress`, `completed`, or127255 The status of the item. One of `in_progress`, `completed`, or


127473 Unique identifier for the MCP tool call approval request.128023 Unique identifier for the MCP tool call approval request.

127474 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.128024 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

127475 128025 

127476 - `error: optional string or null`128026 - `error: optional BetaMcpToolCallError or null`

127477 128027 

127478 The error from the tool call, if any.128028 The error from the tool call, if any.

127479 128029 

128030 - `McpProtocolError object { code, message, type }`

128031 

128032 - `code: number`

128033 

128034 - `message: string`

128035 

128036 - `type: "mcp_protocol_error"`

128037 

128038 - `"mcp_protocol_error"`

128039 

128040 - `McpToolExecutionError object { content, type }`

128041 

128042 - `content: unknown`

128043 

128044 - `type: "mcp_tool_execution_error"`

128045 

128046 - `"mcp_tool_execution_error"`

128047 

128048 - `HTTPError object { code, message, type }`

128049 

128050 - `code: number`

128051 

128052 - `message: string`

128053 

128054 - `type: "http_error"`

128055 

128056 - `"http_error"`

128057 

127480 - `output: optional string or null`128058 - `output: optional string or null`

127481 128059 

127482 The output from the tool call.128060 The output from the tool call.


131526 for reasoning items returned by `POST /v1/responses` and WebSocket132104 for reasoning items returned by `POST /v1/responses` and WebSocket

131527 `response.create` requests.132105 `response.create` requests.

131528 132106 

132107 When streaming, use the completed reasoning item and its

132108 `encrypted_content` from the `response.output_item.done` event in

132109 subsequent requests. The `encrypted_content` in

132110 `response.output_item.added` may be incomplete. This is especially

132111 important when `store` is `false` or when using Zero Data Retention.

132112 

131529 - `status: optional "in_progress" or "completed" or "incomplete"`132113 - `status: optional "in_progress" or "completed" or "incomplete"`

131530 132114 

131531 The status of the item. One of `in_progress`, `completed`, or132115 The status of the item. One of `in_progress`, `completed`, or


132299 Unique identifier for the MCP tool call approval request.132883 Unique identifier for the MCP tool call approval request.

132300 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.132884 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

132301 132885 

132302 - `error: optional string or null`132886 - `error: optional BetaMcpToolCallError or null`

132303 132887 

132304 The error from the tool call, if any.132888 The error from the tool call, if any.

132305 132889 

132890 - `McpProtocolError object { code, message, type }`

132891 

132892 - `code: number`

132893 

132894 - `message: string`

132895 

132896 - `type: "mcp_protocol_error"`

132897 

132898 - `"mcp_protocol_error"`

132899 

132900 - `McpToolExecutionError object { content, type }`

132901 

132902 - `content: unknown`

132903 

132904 - `type: "mcp_tool_execution_error"`

132905 

132906 - `"mcp_tool_execution_error"`

132907 

132908 - `HTTPError object { code, message, type }`

132909 

132910 - `code: number`

132911 

132912 - `message: string`

132913 

132914 - `type: "http_error"`

132915 

132916 - `"http_error"`

132917 

132306 - `output: optional string or null`132918 - `output: optional string or null`

132307 132919 

132308 The output from the tool call.132920 The output from the tool call.


134846 for reasoning items returned by `POST /v1/responses` and WebSocket135458 for reasoning items returned by `POST /v1/responses` and WebSocket

134847 `response.create` requests.135459 `response.create` requests.

134848 135460 

135461 When streaming, use the completed reasoning item and its

135462 `encrypted_content` from the `response.output_item.done` event in

135463 subsequent requests. The `encrypted_content` in

135464 `response.output_item.added` may be incomplete. This is especially

135465 important when `store` is `false` or when using Zero Data Retention.

135466 

134849 - `status: optional "in_progress" or "completed" or "incomplete"`135467 - `status: optional "in_progress" or "completed" or "incomplete"`

134850 135468 

134851 The status of the item. One of `in_progress`, `completed`, or135469 The status of the item. One of `in_progress`, `completed`, or


137873 Unique identifier for the MCP tool call approval request.138491 Unique identifier for the MCP tool call approval request.

137874 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.138492 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

137875 138493 

137876 - `error: optional string or null`138494 - `error: optional BetaMcpToolCallError or null`

137877 138495 

137878 The error from the tool call, if any.138496 The error from the tool call, if any.

137879 138497 

138498 - `McpProtocolError object { code, message, type }`

138499 

138500 - `code: number`

138501 

138502 - `message: string`

138503 

138504 - `type: "mcp_protocol_error"`

138505 

138506 - `"mcp_protocol_error"`

138507 

138508 - `McpToolExecutionError object { content, type }`

138509 

138510 - `content: unknown`

138511 

138512 - `type: "mcp_tool_execution_error"`

138513 

138514 - `"mcp_tool_execution_error"`

138515 

138516 - `HTTPError object { code, message, type }`

138517 

138518 - `code: number`

138519 

138520 - `message: string`

138521 

138522 - `type: "http_error"`

138523 

138524 - `"http_error"`

138525 

137880 - `output: optional string or null`138526 - `output: optional string or null`

137881 138527 

137882 The output from the tool call.138528 The output from the tool call.


138167 138813 

138168 - `item: BetaResponseOutputItem`138814 - `item: BetaResponseOutputItem`

138169 138815 

138170 The output item that was added.138816 The output item that was added. For reasoning items, `encrypted_content`

138817 may be incomplete while the item is in progress. Use the reasoning item

138818 from the corresponding `response.output_item.done` event when passing it

138819 as input to a subsequent request.

138171 138820 

138172 - `BetaResponseOutputMessage object { id, content, role, 4 more }`138821 - `BetaResponseOutputMessage object { id, content, role, 4 more }`

138173 138822 


139482 for reasoning items returned by `POST /v1/responses` and WebSocket140131 for reasoning items returned by `POST /v1/responses` and WebSocket

139483 `response.create` requests.140132 `response.create` requests.

139484 140133 

140134 When streaming, use the completed reasoning item and its

140135 `encrypted_content` from the `response.output_item.done` event in

140136 subsequent requests. The `encrypted_content` in

140137 `response.output_item.added` may be incomplete. This is especially

140138 important when `store` is `false` or when using Zero Data Retention.

140139 

139485 - `status: optional "in_progress" or "completed" or "incomplete"`140140 - `status: optional "in_progress" or "completed" or "incomplete"`

139486 140141 

139487 The status of the item. One of `in_progress`, `completed`, or140142 The status of the item. One of `in_progress`, `completed`, or


142509 Unique identifier for the MCP tool call approval request.143164 Unique identifier for the MCP tool call approval request.

142510 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.143165 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

142511 143166 

142512 - `error: optional string or null`143167 - `error: optional BetaMcpToolCallError or null`

142513 143168 

142514 The error from the tool call, if any.143169 The error from the tool call, if any.

142515 143170 

143171 - `McpProtocolError object { code, message, type }`

143172 

143173 - `code: number`

143174 

143175 - `message: string`

143176 

143177 - `type: "mcp_protocol_error"`

143178 

143179 - `"mcp_protocol_error"`

143180 

143181 - `McpToolExecutionError object { content, type }`

143182 

143183 - `content: unknown`

143184 

143185 - `type: "mcp_tool_execution_error"`

143186 

143187 - `"mcp_tool_execution_error"`

143188 

143189 - `HTTPError object { code, message, type }`

143190 

143191 - `code: number`

143192 

143193 - `message: string`

143194 

143195 - `type: "http_error"`

143196 

143197 - `"http_error"`

143198 

142516 - `output: optional string or null`143199 - `output: optional string or null`

142517 143200 

142518 The output from the tool call.143201 The output from the tool call.


144140 for reasoning items returned by `POST /v1/responses` and WebSocket144823 for reasoning items returned by `POST /v1/responses` and WebSocket

144141 `response.create` requests.144824 `response.create` requests.

144142 144825 

144826 When streaming, use the completed reasoning item and its

144827 `encrypted_content` from the `response.output_item.done` event in

144828 subsequent requests. The `encrypted_content` in

144829 `response.output_item.added` may be incomplete. This is especially

144830 important when `store` is `false` or when using Zero Data Retention.

144831 

144143 - `status: optional "in_progress" or "completed" or "incomplete"`144832 - `status: optional "in_progress" or "completed" or "incomplete"`

144144 144833 

144145 The status of the item. One of `in_progress`, `completed`, or144834 The status of the item. One of `in_progress`, `completed`, or


147167 Unique identifier for the MCP tool call approval request.147856 Unique identifier for the MCP tool call approval request.

147168 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.147857 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

147169 147858 

147170 - `error: optional string or null`147859 - `error: optional BetaMcpToolCallError or null`

147171 147860 

147172 The error from the tool call, if any.147861 The error from the tool call, if any.

147173 147862 

147863 - `McpProtocolError object { code, message, type }`

147864 

147865 - `code: number`

147866 

147867 - `message: string`

147868 

147869 - `type: "mcp_protocol_error"`

147870 

147871 - `"mcp_protocol_error"`

147872 

147873 - `McpToolExecutionError object { content, type }`

147874 

147875 - `content: unknown`

147876 

147877 - `type: "mcp_tool_execution_error"`

147878 

147879 - `"mcp_tool_execution_error"`

147880 

147881 - `HTTPError object { code, message, type }`

147882 

147883 - `code: number`

147884 

147885 - `message: string`

147886 

147887 - `type: "http_error"`

147888 

147889 - `"http_error"`

147890 

147174 - `output: optional string or null`147891 - `output: optional string or null`

147175 147892 

147176 The output from the tool call.147893 The output from the tool call.


147828 148545 

147829 Emitted when an annotation is added to output text content.148546 Emitted when an annotation is added to output text content.

147830 148547 

147831 - `annotation: unknown`148548 - `annotation: object { file_id, filename, index, type } or object { end_index, start_index, title, 2 more } or object { container_id, end_index, file_id, 3 more } or object { file_id, index, type } or null`

148549 

148550 An annotation that applies to a span of output text.

148551 

148552 - `FileCitation object { file_id, filename, index, type }`

148553 

148554 A citation to a file.

148555 

148556 - `file_id: string`

148557 

148558 The ID of the file.

148559 

148560 - `filename: string`

148561 

148562 The filename of the file cited.

148563 

148564 - `index: number`

148565 

148566 The index of the file in the list of files.

148567 

148568 - `type: "file_citation"`

148569 

148570 The type of the file citation. Always `file_citation`.

148571 

148572 - `"file_citation"`

148573 

148574 - `URLCitation object { end_index, start_index, title, 2 more }`

148575 

148576 A citation for a web resource used to generate a model response.

148577 

148578 - `end_index: number`

148579 

148580 The index of the last character of the URL citation in the message.

148581 

148582 - `start_index: number`

148583 

148584 The index of the first character of the URL citation in the message.

148585 

148586 - `title: string`

148587 

148588 The title of the web resource.

148589 

148590 - `type: "url_citation"`

148591 

148592 The type of the URL citation. Always `url_citation`.

147832 148593 

147833 The annotation object being added. (See annotation schema for details.)148594 - `"url_citation"`

148595 

148596 - `url: string`

148597 

148598 The URL of the web resource.

148599 

148600 - `ContainerFileCitation object { container_id, end_index, file_id, 3 more }`

148601 

148602 A citation for a container file used to generate a model response.

148603 

148604 - `container_id: string`

148605 

148606 The ID of the container file.

148607 

148608 - `end_index: number`

148609 

148610 The index of the last character of the container file citation in the message.

148611 

148612 - `file_id: string`

148613 

148614 The ID of the file.

148615 

148616 - `filename: string`

148617 

148618 The filename of the container file cited.

148619 

148620 - `start_index: number`

148621 

148622 The index of the first character of the container file citation in the message.

148623 

148624 - `type: "container_file_citation"`

148625 

148626 The type of the container file citation. Always `container_file_citation`.

148627 

148628 - `"container_file_citation"`

148629 

148630 - `FilePath object { file_id, index, type }`

148631 

148632 A path to a file.

148633 

148634 - `file_id: string`

148635 

148636 The ID of the file.

148637 

148638 - `index: number`

148639 

148640 The index of the file in the list of files.

148641 

148642 - `type: "file_path"`

148643 

148644 The type of the file path. Always `file_path`.

148645 

148646 - `"file_path"`

147834 148647 

147835 - `annotation_index: number`148648 - `annotation_index: number`

147836 148649 


151851 for reasoning items returned by `POST /v1/responses` and WebSocket152664 for reasoning items returned by `POST /v1/responses` and WebSocket

151852 `response.create` requests.152665 `response.create` requests.

151853 152666 

152667 When streaming, use the completed reasoning item and its

152668 `encrypted_content` from the `response.output_item.done` event in

152669 subsequent requests. The `encrypted_content` in

152670 `response.output_item.added` may be incomplete. This is especially

152671 important when `store` is `false` or when using Zero Data Retention.

152672 

151854 - `status: optional "in_progress" or "completed" or "incomplete"`152673 - `status: optional "in_progress" or "completed" or "incomplete"`

151855 152674 

151856 The status of the item. One of `in_progress`, `completed`, or152675 The status of the item. One of `in_progress`, `completed`, or


152624 Unique identifier for the MCP tool call approval request.153443 Unique identifier for the MCP tool call approval request.

152625 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.153444 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

152626 153445 

152627 - `error: optional string or null`153446 - `error: optional BetaMcpToolCallError or null`

152628 153447 

152629 The error from the tool call, if any.153448 The error from the tool call, if any.

152630 153449 

153450 - `McpProtocolError object { code, message, type }`

153451 

153452 - `code: number`

153453 

153454 - `message: string`

153455 

153456 - `type: "mcp_protocol_error"`

153457 

153458 - `"mcp_protocol_error"`

153459 

153460 - `McpToolExecutionError object { content, type }`

153461 

153462 - `content: unknown`

153463 

153464 - `type: "mcp_tool_execution_error"`

153465 

153466 - `"mcp_tool_execution_error"`

153467 

153468 - `HTTPError object { code, message, type }`

153469 

153470 - `code: number`

153471 

153472 - `message: string`

153473 

153474 - `type: "http_error"`

153475 

153476 - `"http_error"`

153477 

152631 - `output: optional string or null`153478 - `output: optional string or null`

152632 153479 

152633 The output from the tool call.153480 The output from the tool call.


153913 for reasoning items returned by `POST /v1/responses` and WebSocket154760 for reasoning items returned by `POST /v1/responses` and WebSocket

153914 `response.create` requests.154761 `response.create` requests.

153915 154762 

154763 When streaming, use the completed reasoning item and its

154764 `encrypted_content` from the `response.output_item.done` event in

154765 subsequent requests. The `encrypted_content` in

154766 `response.output_item.added` may be incomplete. This is especially

154767 important when `store` is `false` or when using Zero Data Retention.

154768 

153916 - `status: optional "in_progress" or "completed" or "incomplete"`154769 - `status: optional "in_progress" or "completed" or "incomplete"`

153917 154770 

153918 The status of the item. One of `in_progress`, `completed`, or154771 The status of the item. One of `in_progress`, `completed`, or


156790 Unique identifier for the MCP tool call approval request.157643 Unique identifier for the MCP tool call approval request.

156791 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.157644 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

156792 157645 

156793 - `error: optional string or null`157646 - `error: optional BetaMcpToolCallError or null`

156794 157647 

156795 The error from the tool call, if any.157648 The error from the tool call, if any.

156796 157649 


163300 for reasoning items returned by `POST /v1/responses` and WebSocket164153 for reasoning items returned by `POST /v1/responses` and WebSocket

163301 `response.create` requests.164154 `response.create` requests.

163302 164155 

164156 When streaming, use the completed reasoning item and its

164157 `encrypted_content` from the `response.output_item.done` event in

164158 subsequent requests. The `encrypted_content` in

164159 `response.output_item.added` may be incomplete. This is especially

164160 important when `store` is `false` or when using Zero Data Retention.

164161 

163303 - `status: optional "in_progress" or "completed" or "incomplete"`164162 - `status: optional "in_progress" or "completed" or "incomplete"`

163304 164163 

163305 The status of the item. One of `in_progress`, `completed`, or164164 The status of the item. One of `in_progress`, `completed`, or


164073 Unique identifier for the MCP tool call approval request.164932 Unique identifier for the MCP tool call approval request.

164074 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.164933 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

164075 164934 

164076 - `error: optional string or null`164935 - `error: optional BetaMcpToolCallError or null`

164077 164936 

164078 The error from the tool call, if any.164937 The error from the tool call, if any.

164079 164938 

164939 - `McpProtocolError object { code, message, type }`

164940 

164941 - `code: number`

164942 

164943 - `message: string`

164944 

164945 - `type: "mcp_protocol_error"`

164946 

164947 - `"mcp_protocol_error"`

164948 

164949 - `McpToolExecutionError object { content, type }`

164950 

164951 - `content: unknown`

164952 

164953 - `type: "mcp_tool_execution_error"`

164954 

164955 - `"mcp_tool_execution_error"`

164956 

164957 - `HTTPError object { code, message, type }`

164958 

164959 - `code: number`

164960 

164961 - `message: string`

164962 

164963 - `type: "http_error"`

164964 

164965 - `"http_error"`

164966 

164080 - `output: optional string or null`164967 - `output: optional string or null`

164081 164968 

164082 The output from the tool call.164969 The output from the tool call.


165362 for reasoning items returned by `POST /v1/responses` and WebSocket166249 for reasoning items returned by `POST /v1/responses` and WebSocket

165363 `response.create` requests.166250 `response.create` requests.

165364 166251 

166252 When streaming, use the completed reasoning item and its

166253 `encrypted_content` from the `response.output_item.done` event in

166254 subsequent requests. The `encrypted_content` in

166255 `response.output_item.added` may be incomplete. This is especially

166256 important when `store` is `false` or when using Zero Data Retention.

166257 

165365 - `status: optional "in_progress" or "completed" or "incomplete"`166258 - `status: optional "in_progress" or "completed" or "incomplete"`

165366 166259 

165367 The status of the item. One of `in_progress`, `completed`, or166260 The status of the item. One of `in_progress`, `completed`, or


168239 Unique identifier for the MCP tool call approval request.169132 Unique identifier for the MCP tool call approval request.

168240 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.169133 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

168241 169134 

168242 - `error: optional string or null`169135 - `error: optional BetaMcpToolCallError or null`

168243 169136 

168244 The error from the tool call, if any.169137 The error from the tool call, if any.

168245 169138 


170697 171590 

170698 - `item: BetaResponseOutputItem`171591 - `item: BetaResponseOutputItem`

170699 171592 

170700 The output item that was added.171593 The output item that was added. For reasoning items, `encrypted_content`

171594 may be incomplete while the item is in progress. Use the reasoning item

171595 from the corresponding `response.output_item.done` event when passing it

171596 as input to a subsequent request.

170701 171597 

170702 - `BetaResponseOutputMessage object { id, content, role, 4 more }`171598 - `BetaResponseOutputMessage object { id, content, role, 4 more }`

170703 171599 


171495 172391 

171496 The canonical name of the agent that produced this item.172392 The canonical name of the agent that produced this item.

171497 172393 

171498 - `BetaResponseImageGenCallPartialImageEvent object { item_id, output_index, partial_image_b64, 4 more }`172394 - `BetaResponseImageGenCallPartialImageEvent object { item_id, output_index, partial_image_b64, 8 more }`

171499 172395 

171500 Emitted when a partial image is available during image generation streaming.172396 Emitted when a partial image is available during image generation streaming.

171501 172397 


171533 172429 

171534 The canonical name of the agent that produced this item.172430 The canonical name of the agent that produced this item.

171535 172431 

172432 - `background: optional string`

172433 

172434 The background setting that was used.

172435 

172436 - `output_format: optional string`

172437 

172438 The output format that was used.

172439 

172440 - `quality: optional string`

172441 

172442 The image quality that was used.

172443 

172444 - `size: optional string`

172445 

172446 The image size that was used.

172447 

171536 - `BetaResponseMcpCallArgumentsDeltaEvent object { delta, item_id, output_index, 3 more }`172448 - `BetaResponseMcpCallArgumentsDeltaEvent object { delta, item_id, output_index, 3 more }`

171537 172449 

171538 Emitted when there is a delta (partial update) to the arguments of an MCP tool call.172450 Emitted when there is a delta (partial update) to the arguments of an MCP tool call.


171785 172697 

171786 Emitted when an annotation is added to output text content.172698 Emitted when an annotation is added to output text content.

171787 172699 

171788 - `annotation: unknown`172700 - `annotation: object { file_id, filename, index, type } or object { end_index, start_index, title, 2 more } or object { container_id, end_index, file_id, 3 more } or object { file_id, index, type } or null`

172701 

172702 An annotation that applies to a span of output text.

172703 

172704 - `FileCitation object { file_id, filename, index, type }`

172705 

172706 A citation to a file.

172707 

172708 - `file_id: string`

172709 

172710 The ID of the file.

172711 

172712 - `filename: string`

172713 

172714 The filename of the file cited.

172715 

172716 - `index: number`

172717 

172718 The index of the file in the list of files.

172719 

172720 - `type: "file_citation"`

172721 

172722 The type of the file citation. Always `file_citation`.

172723 

172724 - `"file_citation"`

172725 

172726 - `URLCitation object { end_index, start_index, title, 2 more }`

172727 

172728 A citation for a web resource used to generate a model response.

172729 

172730 - `end_index: number`

172731 

172732 The index of the last character of the URL citation in the message.

172733 

172734 - `start_index: number`

172735 

172736 The index of the first character of the URL citation in the message.

172737 

172738 - `title: string`

171789 172739 

171790 The annotation object being added. (See annotation schema for details.)172740 The title of the web resource.

172741 

172742 - `type: "url_citation"`

172743 

172744 The type of the URL citation. Always `url_citation`.

172745 

172746 - `"url_citation"`

172747 

172748 - `url: string`

172749 

172750 The URL of the web resource.

172751 

172752 - `ContainerFileCitation object { container_id, end_index, file_id, 3 more }`

172753 

172754 A citation for a container file used to generate a model response.

172755 

172756 - `container_id: string`

172757 

172758 The ID of the container file.

172759 

172760 - `end_index: number`

172761 

172762 The index of the last character of the container file citation in the message.

172763 

172764 - `file_id: string`

172765 

172766 The ID of the file.

172767 

172768 - `filename: string`

172769 

172770 The filename of the container file cited.

172771 

172772 - `start_index: number`

172773 

172774 The index of the first character of the container file citation in the message.

172775 

172776 - `type: "container_file_citation"`

172777 

172778 The type of the container file citation. Always `container_file_citation`.

172779 

172780 - `"container_file_citation"`

172781 

172782 - `FilePath object { file_id, index, type }`

172783 

172784 A path to a file.

172785 

172786 - `file_id: string`

172787 

172788 The ID of the file.

172789 

172790 - `index: number`

172791 

172792 The index of the file in the list of files.

172793 

172794 - `type: "file_path"`

172795 

172796 The type of the file path. Always `file_path`.

172797 

172798 - `"file_path"`

171791 172799 

171792 - `annotation_index: number`172800 - `annotation_index: number`

171793 172801 


176137 for reasoning items returned by `POST /v1/responses` and WebSocket177145 for reasoning items returned by `POST /v1/responses` and WebSocket

176138 `response.create` requests.177146 `response.create` requests.

176139 177147 

177148 When streaming, use the completed reasoning item and its

177149 `encrypted_content` from the `response.output_item.done` event in

177150 subsequent requests. The `encrypted_content` in

177151 `response.output_item.added` may be incomplete. This is especially

177152 important when `store` is `false` or when using Zero Data Retention.

177153 

176140 - `status: optional "in_progress" or "completed" or "incomplete"`177154 - `status: optional "in_progress" or "completed" or "incomplete"`

176141 177155 

176142 The status of the item. One of `in_progress`, `completed`, or177156 The status of the item. One of `in_progress`, `completed`, or


176910 Unique identifier for the MCP tool call approval request.177924 Unique identifier for the MCP tool call approval request.

176911 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.177925 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

176912 177926 

176913 - `error: optional string or null`177927 - `error: optional BetaMcpToolCallError or null`

176914 177928 

176915 The error from the tool call, if any.177929 The error from the tool call, if any.

176916 177930 

177931 - `McpProtocolError object { code, message, type }`

177932 

177933 - `code: number`

177934 

177935 - `message: string`

177936 

177937 - `type: "mcp_protocol_error"`

177938 

177939 - `"mcp_protocol_error"`

177940 

177941 - `McpToolExecutionError object { content, type }`

177942 

177943 - `content: unknown`

177944 

177945 - `type: "mcp_tool_execution_error"`

177946 

177947 - `"mcp_tool_execution_error"`

177948 

177949 - `HTTPError object { code, message, type }`

177950 

177951 - `code: number`

177952 

177953 - `message: string`

177954 

177955 - `type: "http_error"`

177956 

177957 - `"http_error"`

177958 

176917 - `output: optional string or null`177959 - `output: optional string or null`

176918 177960 

176919 The output from the tool call.177961 The output from the tool call.


181952 for reasoning items returned by `POST /v1/responses` and WebSocket182994 for reasoning items returned by `POST /v1/responses` and WebSocket

181953 `response.create` requests.182995 `response.create` requests.

181954 182996 

182997 When streaming, use the completed reasoning item and its

182998 `encrypted_content` from the `response.output_item.done` event in

182999 subsequent requests. The `encrypted_content` in

183000 `response.output_item.added` may be incomplete. This is especially

183001 important when `store` is `false` or when using Zero Data Retention.

183002 

181955 - `status: optional "in_progress" or "completed" or "incomplete"`183003 - `status: optional "in_progress" or "completed" or "incomplete"`

181956 183004 

181957 The status of the item. One of `in_progress`, `completed`, or183005 The status of the item. One of `in_progress`, `completed`, or


182701 Unique identifier for the MCP tool call approval request.183749 Unique identifier for the MCP tool call approval request.

182702 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.183750 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

182703 183751 

182704 - `error: optional string or null`183752 - `error: optional BetaMcpToolCallError or null`

182705 183753 

182706 The error from the tool call, if any.183754 The error from the tool call, if any.

182707 183755 


183110 when the originating `response.create` event supplied a184158 when the originating `response.create` event supplied a

183111 `stream_id`.184159 `stream_id`.

183112 184160 

183113 - `BetaResponseWsError = BetaResponseErrorEvent`

183114 

183115 Emitted when an error occurs.

183116 

183117 - `stream_id: optional string`

183118 

183119 The WebSocket lane that emitted this event. This field is present

183120 when the originating `response.create` event supplied a

183121 `stream_id`.

183122 

183123 - `BetaResponseFileSearchCallWsCompleted = BetaResponseFileSearchCallCompletedEvent`184161 - `BetaResponseFileSearchCallWsCompleted = BetaResponseFileSearchCallCompletedEvent`

183124 184162 

183125 Emitted when a file search call is completed (results found).184163 Emitted when a file search call is completed (results found).


183510 when the originating `response.create` event supplied a184548 when the originating `response.create` event supplied a

183511 `stream_id`.184549 `stream_id`.

183512 184550 

184551 - `BetaResponseWsError object { error, type, agent, 3 more }`

184552 

184553 Emitted when an error occurs while processing a Responses WebSocket request.

184554 

184555 - `error: object { code, message, param, 2 more }`

184556 

184557 Details about the error.

184558 

184559 - `code: string or null`

184560 

184561 The error code that was emitted, if any.

184562 

184563 - `message: string`

184564 

184565 The human-readable error message that was emitted.

184566 

184567 - `param: string or null`

184568 

184569 The parameter name that was associated with the error, if any.

184570 

184571 - `type: string`

184572 

184573 The error type that was emitted.

184574 

184575 - `headers: optional map[string]`

184576 

184577 The response headers that were emitted with the error, if any.

184578 

184579 - `type: "error"`

184580 

184581 The type of the event. Always `error`.

184582 

184583 - `"error"`

184584 

184585 - `agent: optional object { agent_name } or null`

184586 

184587 The agent that owns this multi-agent streaming event.

184588 

184589 - `agent_name: string`

184590 

184591 The canonical name of the agent that produced this item.

184592 

184593 - `sequence_number: optional number`

184594 

184595 The sequence number of an error emitted by the response stream.

184596 

184597 - `status: optional number`

184598 

184599 The HTTP status code associated with a WebSocket protocol error.

184600 

184601 - `stream_id: optional string`

184602 

184603 The WebSocket lane that emitted this event. This field is present when the

184604 originating `response.create` event supplied a `stream_id`.

184605 

183513 - `BetaResponseInjectCreatedEvent object { response_id, sequence_number, type, stream_id }`184606 - `BetaResponseInjectCreatedEvent object { response_id, sequence_number, type, stream_id }`

183514 184607 

183515 Emitted when all injected input items were validated and committed to the184608 Emitted when all injected input items were validated and committed to the


187312 for reasoning items returned by `POST /v1/responses` and WebSocket188405 for reasoning items returned by `POST /v1/responses` and WebSocket

187313 `response.create` requests.188406 `response.create` requests.

187314 188407 

188408 When streaming, use the completed reasoning item and its

188409 `encrypted_content` from the `response.output_item.done` event in

188410 subsequent requests. The `encrypted_content` in

188411 `response.output_item.added` may be incomplete. This is especially

188412 important when `store` is `false` or when using Zero Data Retention.

188413 

187315 - `status: optional "in_progress" or "completed" or "incomplete"`188414 - `status: optional "in_progress" or "completed" or "incomplete"`

187316 188415 

187317 The status of the item. One of `in_progress`, `completed`, or188416 The status of the item. One of `in_progress`, `completed`, or


188085 Unique identifier for the MCP tool call approval request.189184 Unique identifier for the MCP tool call approval request.

188086 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.189185 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

188087 189186 

188088 - `error: optional string or null`189187 - `error: optional BetaMcpToolCallError or null`

188089 189188 

188090 The error from the tool call, if any.189189 The error from the tool call, if any.

188091 189190 

189191 - `McpProtocolError object { code, message, type }`

189192 

189193 - `code: number`

189194 

189195 - `message: string`

189196 

189197 - `type: "mcp_protocol_error"`

189198 

189199 - `"mcp_protocol_error"`

189200 

189201 - `McpToolExecutionError object { content, type }`

189202 

189203 - `content: unknown`

189204 

189205 - `type: "mcp_tool_execution_error"`

189206 

189207 - `"mcp_tool_execution_error"`

189208 

189209 - `HTTPError object { code, message, type }`

189210 

189211 - `code: number`

189212 

189213 - `message: string`

189214 

189215 - `type: "http_error"`

189216 

189217 - `"http_error"`

189218 

188092 - `output: optional string or null`189219 - `output: optional string or null`

188093 189220 

188094 The output from the tool call.189221 The output from the tool call.


192280 for reasoning items returned by `POST /v1/responses` and WebSocket193407 for reasoning items returned by `POST /v1/responses` and WebSocket

192281 `response.create` requests.193408 `response.create` requests.

192282 193409 

193410 When streaming, use the completed reasoning item and its

193411 `encrypted_content` from the `response.output_item.done` event in

193412 subsequent requests. The `encrypted_content` in

193413 `response.output_item.added` may be incomplete. This is especially

193414 important when `store` is `false` or when using Zero Data Retention.

193415 

192283 - `status: optional "in_progress" or "completed" or "incomplete"`193416 - `status: optional "in_progress" or "completed" or "incomplete"`

192284 193417 

192285 The status of the item. One of `in_progress`, `completed`, or193418 The status of the item. One of `in_progress`, `completed`, or


193145 Unique identifier for the MCP tool call approval request.194278 Unique identifier for the MCP tool call approval request.

193146 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.194279 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

193147 194280 

193148 - `error: optional string or null`194281 - `error: optional BetaMcpToolCallError or null`

193149 194282 

193150 The error from the tool call, if any.194283 The error from the tool call, if any.

193151 194284 

194285 - `McpProtocolError object { code, message, type }`

194286 

194287 - `code: number`

194288 

194289 - `message: string`

194290 

194291 - `type: "mcp_protocol_error"`

194292 

194293 - `"mcp_protocol_error"`

194294 

194295 - `McpToolExecutionError object { content, type }`

194296 

194297 - `content: unknown`

194298 

194299 - `type: "mcp_tool_execution_error"`

194300 

194301 - `"mcp_tool_execution_error"`

194302 

194303 - `HTTPError object { code, message, type }`

194304 

194305 - `code: number`

194306 

194307 - `message: string`

194308 

194309 - `type: "http_error"`

194310 

194311 - `"http_error"`

194312 

193152 - `output: optional string or null`194313 - `output: optional string or null`

193153 194314 

193154 The output from the tool call.194315 The output from the tool call.


197078 for reasoning items returned by `POST /v1/responses` and WebSocket198239 for reasoning items returned by `POST /v1/responses` and WebSocket

197079 `response.create` requests.198240 `response.create` requests.

197080 198241 

198242 When streaming, use the completed reasoning item and its

198243 `encrypted_content` from the `response.output_item.done` event in

198244 subsequent requests. The `encrypted_content` in

198245 `response.output_item.added` may be incomplete. This is especially

198246 important when `store` is `false` or when using Zero Data Retention.

198247 

197081 - `status: optional "in_progress" or "completed" or "incomplete"`198248 - `status: optional "in_progress" or "completed" or "incomplete"`

197082 198249 

197083 The status of the item. One of `in_progress`, `completed`, or198250 The status of the item. One of `in_progress`, `completed`, or


197943 Unique identifier for the MCP tool call approval request.199110 Unique identifier for the MCP tool call approval request.

197944 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.199111 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

197945 199112 

197946 - `error: optional string or null`199113 - `error: optional BetaMcpToolCallError or null`

197947 199114 

197948 The error from the tool call, if any.199115 The error from the tool call, if any.

197949 199116 

199117 - `McpProtocolError object { code, message, type }`

199118 

199119 - `code: number`

199120 

199121 - `message: string`

199122 

199123 - `type: "mcp_protocol_error"`

199124 

199125 - `"mcp_protocol_error"`

199126 

199127 - `McpToolExecutionError object { content, type }`

199128 

199129 - `content: unknown`

199130 

199131 - `type: "mcp_tool_execution_error"`

199132 

199133 - `"mcp_tool_execution_error"`

199134 

199135 - `HTTPError object { code, message, type }`

199136 

199137 - `code: number`

199138 

199139 - `message: string`

199140 

199141 - `type: "http_error"`

199142 

199143 - `"http_error"`

199144 

197950 - `output: optional string or null`199145 - `output: optional string or null`

197951 199146 

197952 The output from the tool call.199147 The output from the tool call.


201941 for reasoning items returned by `POST /v1/responses` and WebSocket203136 for reasoning items returned by `POST /v1/responses` and WebSocket

201942 `response.create` requests.203137 `response.create` requests.

201943 203138 

203139 When streaming, use the completed reasoning item and its

203140 `encrypted_content` from the `response.output_item.done` event in

203141 subsequent requests. The `encrypted_content` in

203142 `response.output_item.added` may be incomplete. This is especially

203143 important when `store` is `false` or when using Zero Data Retention.

203144 

201944 - `status: optional "in_progress" or "completed" or "incomplete"`203145 - `status: optional "in_progress" or "completed" or "incomplete"`

201945 203146 

201946 The status of the item. One of `in_progress`, `completed`, or203147 The status of the item. One of `in_progress`, `completed`, or


202714 Unique identifier for the MCP tool call approval request.203915 Unique identifier for the MCP tool call approval request.

202715 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.203916 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

202716 203917 

202717 - `error: optional string or null`203918 - `error: optional BetaMcpToolCallError or null`

202718 203919 

202719 The error from the tool call, if any.203920 The error from the tool call, if any.

202720 203921 

203922 - `McpProtocolError object { code, message, type }`

203923 

203924 - `code: number`

203925 

203926 - `message: string`

203927 

203928 - `type: "mcp_protocol_error"`

203929 

203930 - `"mcp_protocol_error"`

203931 

203932 - `McpToolExecutionError object { content, type }`

203933 

203934 - `content: unknown`

203935 

203936 - `type: "mcp_tool_execution_error"`

203937 

203938 - `"mcp_tool_execution_error"`

203939 

203940 - `HTTPError object { code, message, type }`

203941 

203942 - `code: number`

203943 

203944 - `message: string`

203945 

203946 - `type: "http_error"`

203947 

203948 - `"http_error"`

203949 

202721 - `output: optional string or null`203950 - `output: optional string or null`

202722 203951 

202723 The output from the tool call.203952 The output from the tool call.

Details

3862 for reasoning items returned by `POST /v1/responses` and WebSocket3862 for reasoning items returned by `POST /v1/responses` and WebSocket

3863 `response.create` requests.3863 `response.create` requests.

3864 3864 

3865 When streaming, use the completed reasoning item and its

3866 `encrypted_content` from the `response.output_item.done` event in

3867 subsequent requests. The `encrypted_content` in

3868 `response.output_item.added` may be incomplete. This is especially

3869 important when `store` is `false` or when using Zero Data Retention.

3870 

3865 - `status: optional "in_progress" or "completed" or "incomplete"`3871 - `status: optional "in_progress" or "completed" or "incomplete"`

3866 3872 

3867 The status of the item. One of `in_progress`, `completed`, or3873 The status of the item. One of `in_progress`, `completed`, or


4635 Unique identifier for the MCP tool call approval request.4641 Unique identifier for the MCP tool call approval request.

4636 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.4642 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

4637 4643 

4638 - `error: optional string or null`4644 - `error: optional BetaMcpToolCallError or null`

4639 4645 

4640 The error from the tool call, if any.4646 The error from the tool call, if any.

4641 4647 

4648 - `McpProtocolError object { code, message, type }`

4649 

4650 - `code: number`

4651 

4652 - `message: string`

4653 

4654 - `type: "mcp_protocol_error"`

4655 

4656 - `"mcp_protocol_error"`

4657 

4658 - `McpToolExecutionError object { content, type }`

4659 

4660 - `content: unknown`

4661 

4662 - `type: "mcp_tool_execution_error"`

4663 

4664 - `"mcp_tool_execution_error"`

4665 

4666 - `HTTPError object { code, message, type }`

4667 

4668 - `code: number`

4669 

4670 - `message: string`

4671 

4672 - `type: "http_error"`

4673 

4674 - `"http_error"`

4675 

4642 - `output: optional string or null`4676 - `output: optional string or null`

4643 4677 

4644 The output from the tool call.4678 The output from the tool call.


5924 for reasoning items returned by `POST /v1/responses` and WebSocket5958 for reasoning items returned by `POST /v1/responses` and WebSocket

5925 `response.create` requests.5959 `response.create` requests.

5926 5960 

5961 When streaming, use the completed reasoning item and its

5962 `encrypted_content` from the `response.output_item.done` event in

5963 subsequent requests. The `encrypted_content` in

5964 `response.output_item.added` may be incomplete. This is especially

5965 important when `store` is `false` or when using Zero Data Retention.

5966 

5927 - `status: optional "in_progress" or "completed" or "incomplete"`5967 - `status: optional "in_progress" or "completed" or "incomplete"`

5928 5968 

5929 The status of the item. One of `in_progress`, `completed`, or5969 The status of the item. One of `in_progress`, `completed`, or


8801 Unique identifier for the MCP tool call approval request.8841 Unique identifier for the MCP tool call approval request.

8802 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.8842 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

8803 8843 

8804 - `error: optional string or null`8844 - `error: optional BetaMcpToolCallError or null`

8805 8845 

8806 The error from the tool call, if any.8846 The error from the tool call, if any.

8807 8847 

Details

3992 for reasoning items returned by `POST /v1/responses` and WebSocket3992 for reasoning items returned by `POST /v1/responses` and WebSocket

3993 `response.create` requests.3993 `response.create` requests.

3994 3994 

3995 When streaming, use the completed reasoning item and its

3996 `encrypted_content` from the `response.output_item.done` event in

3997 subsequent requests. The `encrypted_content` in

3998 `response.output_item.added` may be incomplete. This is especially

3999 important when `store` is `false` or when using Zero Data Retention.

4000 

3995 - `status: optional "in_progress" or "completed" or "incomplete"`4001 - `status: optional "in_progress" or "completed" or "incomplete"`

3996 4002 

3997 The status of the item. One of `in_progress`, `completed`, or4003 The status of the item. One of `in_progress`, `completed`, or


4765 Unique identifier for the MCP tool call approval request.4771 Unique identifier for the MCP tool call approval request.

4766 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.4772 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

4767 4773 

4768 - `error: optional string or null`4774 - `error: optional BetaMcpToolCallError or null`

4769 4775 

4770 The error from the tool call, if any.4776 The error from the tool call, if any.

4771 4777 

4778 - `McpProtocolError object { code, message, type }`

4779 

4780 - `code: number`

4781 

4782 - `message: string`

4783 

4784 - `type: "mcp_protocol_error"`

4785 

4786 - `"mcp_protocol_error"`

4787 

4788 - `McpToolExecutionError object { content, type }`

4789 

4790 - `content: unknown`

4791 

4792 - `type: "mcp_tool_execution_error"`

4793 

4794 - `"mcp_tool_execution_error"`

4795 

4796 - `HTTPError object { code, message, type }`

4797 

4798 - `code: number`

4799 

4800 - `message: string`

4801 

4802 - `type: "http_error"`

4803 

4804 - `"http_error"`

4805 

4772 - `output: optional string or null`4806 - `output: optional string or null`

4773 4807 

4774 The output from the tool call.4808 The output from the tool call.


8917 for reasoning items returned by `POST /v1/responses` and WebSocket8951 for reasoning items returned by `POST /v1/responses` and WebSocket

8918 `response.create` requests.8952 `response.create` requests.

8919 8953 

8954 When streaming, use the completed reasoning item and its

8955 `encrypted_content` from the `response.output_item.done` event in

8956 subsequent requests. The `encrypted_content` in

8957 `response.output_item.added` may be incomplete. This is especially

8958 important when `store` is `false` or when using Zero Data Retention.

8959 

8920 - `status: optional "in_progress" or "completed" or "incomplete"`8960 - `status: optional "in_progress" or "completed" or "incomplete"`

8921 8961 

8922 The status of the item. One of `in_progress`, `completed`, or8962 The status of the item. One of `in_progress`, `completed`, or


9676 Unique identifier for the MCP tool call approval request.9716 Unique identifier for the MCP tool call approval request.

9677 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.9717 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

9678 9718 

9679 - `error: optional string or null`9719 - `error: optional BetaMcpToolCallError or null`

9680 9720 

9681 The error from the tool call, if any.9721 The error from the tool call, if any.

9682 9722 

9723 - `McpProtocolError object { code, message, type }`

9724 

9725 - `code: number`

9726 

9727 - `message: string`

9728 

9729 - `type: "mcp_protocol_error"`

9730 

9731 - `"mcp_protocol_error"`

9732 

9733 - `McpToolExecutionError object { content, type }`

9734 

9735 - `content: unknown`

9736 

9737 - `type: "mcp_tool_execution_error"`

9738 

9739 - `"mcp_tool_execution_error"`

9740 

9741 - `HTTPError object { code, message, type }`

9742 

9743 - `code: number`

9744 

9745 - `message: string`

9746 

9747 - `type: "http_error"`

9748 

9749 - `"http_error"`

9750 

9683 - `output: optional string or null`9751 - `output: optional string or null`

9684 9752 

9685 The output from the tool call.9753 The output from the tool call.

Details

3854 for reasoning items returned by `POST /v1/responses` and WebSocket3854 for reasoning items returned by `POST /v1/responses` and WebSocket

3855 `response.create` requests.3855 `response.create` requests.

3856 3856 

3857 When streaming, use the completed reasoning item and its

3858 `encrypted_content` from the `response.output_item.done` event in

3859 subsequent requests. The `encrypted_content` in

3860 `response.output_item.added` may be incomplete. This is especially

3861 important when `store` is `false` or when using Zero Data Retention.

3862 

3857 - `status: optional "in_progress" or "completed" or "incomplete"`3863 - `status: optional "in_progress" or "completed" or "incomplete"`

3858 3864 

3859 The status of the item. One of `in_progress`, `completed`, or3865 The status of the item. One of `in_progress`, `completed`, or


4627 Unique identifier for the MCP tool call approval request.4633 Unique identifier for the MCP tool call approval request.

4628 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.4634 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

4629 4635 

4630 - `error: optional string or null`4636 - `error: optional BetaMcpToolCallError or null`

4631 4637 

4632 The error from the tool call, if any.4638 The error from the tool call, if any.

4633 4639 

4640 - `McpProtocolError object { code, message, type }`

4641 

4642 - `code: number`

4643 

4644 - `message: string`

4645 

4646 - `type: "mcp_protocol_error"`

4647 

4648 - `"mcp_protocol_error"`

4649 

4650 - `McpToolExecutionError object { content, type }`

4651 

4652 - `content: unknown`

4653 

4654 - `type: "mcp_tool_execution_error"`

4655 

4656 - `"mcp_tool_execution_error"`

4657 

4658 - `HTTPError object { code, message, type }`

4659 

4660 - `code: number`

4661 

4662 - `message: string`

4663 

4664 - `type: "http_error"`

4665 

4666 - `"http_error"`

4667 

4634 - `output: optional string or null`4668 - `output: optional string or null`

4635 4669 

4636 The output from the tool call.4670 The output from the tool call.


10579 for reasoning items returned by `POST /v1/responses` and WebSocket10613 for reasoning items returned by `POST /v1/responses` and WebSocket

10580 `response.create` requests.10614 `response.create` requests.

10581 10615 

10616 When streaming, use the completed reasoning item and its

10617 `encrypted_content` from the `response.output_item.done` event in

10618 subsequent requests. The `encrypted_content` in

10619 `response.output_item.added` may be incomplete. This is especially

10620 important when `store` is `false` or when using Zero Data Retention.

10621 

10582 - `status: optional "in_progress" or "completed" or "incomplete"`10622 - `status: optional "in_progress" or "completed" or "incomplete"`

10583 10623 

10584 The status of the item. One of `in_progress`, `completed`, or10624 The status of the item. One of `in_progress`, `completed`, or


11352 Unique identifier for the MCP tool call approval request.11392 Unique identifier for the MCP tool call approval request.

11353 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.11393 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

11354 11394 

11355 - `error: optional string or null`11395 - `error: optional BetaMcpToolCallError or null`

11356 11396 

11357 The error from the tool call, if any.11397 The error from the tool call, if any.

11358 11398 

11399 - `McpProtocolError object { code, message, type }`

11400 

11401 - `code: number`

11402 

11403 - `message: string`

11404 

11405 - `type: "mcp_protocol_error"`

11406 

11407 - `"mcp_protocol_error"`

11408 

11409 - `McpToolExecutionError object { content, type }`

11410 

11411 - `content: unknown`

11412 

11413 - `type: "mcp_tool_execution_error"`

11414 

11415 - `"mcp_tool_execution_error"`

11416 

11417 - `HTTPError object { code, message, type }`

11418 

11419 - `code: number`

11420 

11421 - `message: string`

11422 

11423 - `type: "http_error"`

11424 

11425 - `"http_error"`

11426 

11359 - `output: optional string or null`11427 - `output: optional string or null`

11360 11428 

11361 The output from the tool call.11429 The output from the tool call.


12641 for reasoning items returned by `POST /v1/responses` and WebSocket12709 for reasoning items returned by `POST /v1/responses` and WebSocket

12642 `response.create` requests.12710 `response.create` requests.

12643 12711 

12712 When streaming, use the completed reasoning item and its

12713 `encrypted_content` from the `response.output_item.done` event in

12714 subsequent requests. The `encrypted_content` in

12715 `response.output_item.added` may be incomplete. This is especially

12716 important when `store` is `false` or when using Zero Data Retention.

12717 

12644 - `status: optional "in_progress" or "completed" or "incomplete"`12718 - `status: optional "in_progress" or "completed" or "incomplete"`

12645 12719 

12646 The status of the item. One of `in_progress`, `completed`, or12720 The status of the item. One of `in_progress`, `completed`, or


15518 Unique identifier for the MCP tool call approval request.15592 Unique identifier for the MCP tool call approval request.

15519 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.15593 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

15520 15594 

15521 - `error: optional string or null`15595 - `error: optional BetaMcpToolCallError or null`

15522 15596 

15523 The error from the tool call, if any.15597 The error from the tool call, if any.

15524 15598 

Details

3906 for reasoning items returned by `POST /v1/responses` and WebSocket3906 for reasoning items returned by `POST /v1/responses` and WebSocket

3907 `response.create` requests.3907 `response.create` requests.

3908 3908 

3909 When streaming, use the completed reasoning item and its

3910 `encrypted_content` from the `response.output_item.done` event in

3911 subsequent requests. The `encrypted_content` in

3912 `response.output_item.added` may be incomplete. This is especially

3913 important when `store` is `false` or when using Zero Data Retention.

3914 

3909 - `status: optional "in_progress" or "completed" or "incomplete"`3915 - `status: optional "in_progress" or "completed" or "incomplete"`

3910 3916 

3911 The status of the item. One of `in_progress`, `completed`, or3917 The status of the item. One of `in_progress`, `completed`, or


4679 Unique identifier for the MCP tool call approval request.4685 Unique identifier for the MCP tool call approval request.

4680 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.4686 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

4681 4687 

4682 - `error: optional string or null`4688 - `error: optional BetaMcpToolCallError or null`

4683 4689 

4684 The error from the tool call, if any.4690 The error from the tool call, if any.

4685 4691 

4692 - `McpProtocolError object { code, message, type }`

4693 

4694 - `code: number`

4695 

4696 - `message: string`

4697 

4698 - `type: "mcp_protocol_error"`

4699 

4700 - `"mcp_protocol_error"`

4701 

4702 - `McpToolExecutionError object { content, type }`

4703 

4704 - `content: unknown`

4705 

4706 - `type: "mcp_tool_execution_error"`

4707 

4708 - `"mcp_tool_execution_error"`

4709 

4710 - `HTTPError object { code, message, type }`

4711 

4712 - `code: number`

4713 

4714 - `message: string`

4715 

4716 - `type: "http_error"`

4717 

4718 - `"http_error"`

4719 

4686 - `output: optional string or null`4720 - `output: optional string or null`

4687 4721 

4688 The output from the tool call.4722 The output from the tool call.


5968 for reasoning items returned by `POST /v1/responses` and WebSocket6002 for reasoning items returned by `POST /v1/responses` and WebSocket

5969 `response.create` requests.6003 `response.create` requests.

5970 6004 

6005 When streaming, use the completed reasoning item and its

6006 `encrypted_content` from the `response.output_item.done` event in

6007 subsequent requests. The `encrypted_content` in

6008 `response.output_item.added` may be incomplete. This is especially

6009 important when `store` is `false` or when using Zero Data Retention.

6010 

5971 - `status: optional "in_progress" or "completed" or "incomplete"`6011 - `status: optional "in_progress" or "completed" or "incomplete"`

5972 6012 

5973 The status of the item. One of `in_progress`, `completed`, or6013 The status of the item. One of `in_progress`, `completed`, or


8845 Unique identifier for the MCP tool call approval request.8885 Unique identifier for the MCP tool call approval request.

8846 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.8886 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

8847 8887 

8848 - `error: optional string or null`8888 - `error: optional BetaMcpToolCallError or null`

8849 8889 

8850 The error from the tool call, if any.8890 The error from the tool call, if any.

8851 8891 

Details

12453 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",12453 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",

12454 "deprecated": false,12454 "deprecated": false,

12455 "key": "encrypted_content",12455 "key": "encrypted_content",

12456 "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",12456 "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",

12457 "type": {12457 "type": {

12458 "kind": "HttpTypeString"12458 "kind": "HttpTypeString"

12459 },12459 },


15437 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",15437 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",

15438 "deprecated": false,15438 "deprecated": false,

15439 "key": "error",15439 "key": "error",

15440 "docstring": "The error from the tool call, if any.\n",15440 "docstring": "The error from the tool call, if any.",

15441 "type": {15441 "type": {

15442 "kind": "HttpTypeString"15442 "kind": "HttpTypeReference",

15443 "ident": "BetaMcpToolCallError",

15444 "$ref": "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)"

15443 },15445 },

15444 "optional": true,15446 "optional": true,

15445 "nullable": true,15447 "nullable": true,

15446 "schemaType": "string",15448 "modelImplicit": false,

15447 "children": []15449 "schemaType": "union",

15450 "modelPath": "(resource) beta.responses > (model) beta_mcp_tool_call_error",

15451 "childrenParentSchema": "union",

15452 "children": [

15453 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

15454 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

15455 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

15456 ]

15448 },15457 },

15449 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": {15458 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": {

15450 "kind": "HttpDeclProperty",15459 "kind": "HttpDeclProperty",


22142 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",22151 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",

22143 "deprecated": false,22152 "deprecated": false,

22144 "key": "encrypted_content",22153 "key": "encrypted_content",

22145 "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",22154 "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",

22146 "type": {22155 "type": {

22147 "kind": "HttpTypeString"22156 "kind": "HttpTypeString"

22148 },22157 },


24067 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",24076 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",

24068 "deprecated": false,24077 "deprecated": false,

24069 "key": "error",24078 "key": "error",

24070 "docstring": "The error from the tool call, if any.\n",24079 "docstring": "The error from the tool call, if any.",

24071 "type": {24080 "type": {

24072 "kind": "HttpTypeString"24081 "kind": "HttpTypeReference",

24082 "ident": "BetaMcpToolCallError",

24083 "$ref": "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)"

24073 },24084 },

24074 "optional": true,24085 "optional": true,

24075 "nullable": true,24086 "nullable": true,

24076 "schemaType": "string",24087 "modelImplicit": false,

24077 "children": []24088 "schemaType": "union",

24089 "modelPath": "(resource) beta.responses > (model) beta_mcp_tool_call_error",

24090 "childrenParentSchema": "union",

24091 "children": [

24092 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

24093 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

24094 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

24095 ]

24078 },24096 },

24079 "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) output": {24097 "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) output": {

24080 "kind": "HttpDeclProperty",24098 "kind": "HttpDeclProperty",


29097 "schemaType": "string",29115 "schemaType": "string",

29098 "children": []29116 "children": []

29099 },29117 },

29118 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0": {

29119 "kind": "HttpDeclTypeAlias",

29120 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0",

29121 "ident": "McpProtocolError",

29122 "type": {

29123 "kind": "HttpTypeObject",

29124 "members": [

29125 {

29126 "ident": "code"

29127 },

29128 {

29129 "ident": "message"

29130 },

29131 {

29132 "ident": "type"

29133 }

29134 ]

29135 },

29136 "childrenParentSchema": "object",

29137 "children": [

29138 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) code",

29139 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) message",

29140 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type"

29141 ]

29142 },

29143 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1": {

29144 "kind": "HttpDeclTypeAlias",

29145 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1",

29146 "ident": "McpToolExecutionError",

29147 "type": {

29148 "kind": "HttpTypeObject",

29149 "members": [

29150 {

29151 "ident": "content"

29152 },

29153 {

29154 "ident": "type"

29155 }

29156 ]

29157 },

29158 "childrenParentSchema": "object",

29159 "children": [

29160 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) content",

29161 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type"

29162 ]

29163 },

29164 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2": {

29165 "kind": "HttpDeclTypeAlias",

29166 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2",

29167 "ident": "HTTPError",

29168 "type": {

29169 "kind": "HttpTypeObject",

29170 "members": [

29171 {

29172 "ident": "code"

29173 },

29174 {

29175 "ident": "message"

29176 },

29177 {

29178 "ident": "type"

29179 }

29180 ]

29181 },

29182 "childrenParentSchema": "object",

29183 "children": [

29184 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) code",

29185 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) message",

29186 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type"

29187 ]

29188 },

29189 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)": {

29190 "kind": "HttpDeclTypeAlias",

29191 "oasRef": "#/components/schemas/BetaMCPToolCallError",

29192 "ident": "BetaMcpToolCallError",

29193 "type": {

29194 "kind": "HttpTypeUnion",

29195 "oasRef": "#/components/schemas/BetaMCPToolCallError",

29196 "types": [

29197 {

29198 "kind": "HttpTypeObject",

29199 "members": [

29200 {

29201 "ident": "code"

29202 },

29203 {

29204 "ident": "message"

29205 },

29206 {

29207 "ident": "type"

29208 }

29209 ]

29210 },

29211 {

29212 "kind": "HttpTypeObject",

29213 "members": [

29214 {

29215 "ident": "content"

29216 },

29217 {

29218 "ident": "type"

29219 }

29220 ]

29221 },

29222 {

29223 "kind": "HttpTypeObject",

29224 "members": [

29225 {

29226 "ident": "code"

29227 },

29228 {

29229 "ident": "message"

29230 },

29231 {

29232 "ident": "type"

29233 }

29234 ]

29235 }

29236 ]

29237 },

29238 "childrenParentSchema": "union",

29239 "children": [

29240 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

29241 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

29242 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

29243 ]

29244 },

29100 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": {29245 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": {

29101 "kind": "HttpDeclReference",29246 "kind": "HttpDeclReference",

29102 "type": {29247 "type": {


41780 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0"41925 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0"

41781 ]41926 ]

41782 },41927 },

41928 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) code": {

41929 "kind": "HttpDeclProperty",

41930 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code",

41931 "deprecated": false,

41932 "key": "code",

41933 "type": {

41934 "kind": "HttpTypeNumber"

41935 },

41936 "optional": false,

41937 "nullable": false,

41938 "schemaType": "integer",

41939 "children": []

41940 },

41941 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) message": {

41942 "kind": "HttpDeclProperty",

41943 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message",

41944 "deprecated": false,

41945 "key": "message",

41946 "type": {

41947 "kind": "HttpTypeString"

41948 },

41949 "optional": false,

41950 "nullable": false,

41951 "schemaType": "string",

41952 "children": []

41953 },

41954 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type": {

41955 "kind": "HttpDeclProperty",

41956 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type",

41957 "deprecated": false,

41958 "key": "type",

41959 "type": {

41960 "kind": "HttpTypeUnion",

41961 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type",

41962 "types": [

41963 {

41964 "kind": "HttpTypeLiteral",

41965 "literal": "mcp_protocol_error"

41966 }

41967 ]

41968 },

41969 "default": "mcp_protocol_error",

41970 "optional": false,

41971 "nullable": false,

41972 "schemaType": "enum",

41973 "childrenParentSchema": "enum",

41974 "children": [

41975 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0"

41976 ]

41977 },

41978 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) content": {

41979 "kind": "HttpDeclProperty",

41980 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content",

41981 "deprecated": false,

41982 "key": "content",

41983 "type": {

41984 "kind": "HttpTypeUnknown"

41985 },

41986 "optional": false,

41987 "nullable": false,

41988 "schemaType": "unknown",

41989 "children": []

41990 },

41991 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type": {

41992 "kind": "HttpDeclProperty",

41993 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type",

41994 "deprecated": false,

41995 "key": "type",

41996 "type": {

41997 "kind": "HttpTypeUnion",

41998 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type",

41999 "types": [

42000 {

42001 "kind": "HttpTypeLiteral",

42002 "literal": "mcp_tool_execution_error"

42003 }

42004 ]

42005 },

42006 "default": "mcp_tool_execution_error",

42007 "optional": false,

42008 "nullable": false,

42009 "schemaType": "enum",

42010 "childrenParentSchema": "enum",

42011 "children": [

42012 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0"

42013 ]

42014 },

42015 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) code": {

42016 "kind": "HttpDeclProperty",

42017 "oasRef": "#/components/schemas/BetaHTTPError/properties/code",

42018 "deprecated": false,

42019 "key": "code",

42020 "type": {

42021 "kind": "HttpTypeNumber"

42022 },

42023 "optional": false,

42024 "nullable": false,

42025 "schemaType": "integer",

42026 "children": []

42027 },

42028 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) message": {

42029 "kind": "HttpDeclProperty",

42030 "oasRef": "#/components/schemas/BetaHTTPError/properties/message",

42031 "deprecated": false,

42032 "key": "message",

42033 "type": {

42034 "kind": "HttpTypeString"

42035 },

42036 "optional": false,

42037 "nullable": false,

42038 "schemaType": "string",

42039 "children": []

42040 },

42041 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type": {

42042 "kind": "HttpDeclProperty",

42043 "oasRef": "#/components/schemas/BetaHTTPError/properties/type",

42044 "deprecated": false,

42045 "key": "type",

42046 "type": {

42047 "kind": "HttpTypeUnion",

42048 "oasRef": "#/components/schemas/BetaHTTPError/properties/type",

42049 "types": [

42050 {

42051 "kind": "HttpTypeLiteral",

42052 "literal": "http_error"

42053 }

42054 ]

42055 },

42056 "default": "http_error",

42057 "optional": false,

42058 "nullable": false,

42059 "schemaType": "enum",

42060 "childrenParentSchema": "enum",

42061 "children": [

42062 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0"

42063 ]

42064 },

41783 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": {42065 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": {

41784 "kind": "HttpDeclProperty",42066 "kind": "HttpDeclProperty",

41785 "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type",42067 "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type",


52234 "literal": "program"52516 "literal": "program"

52235 }52517 }

52236 },52518 },

52519 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0": {

52520 "kind": "HttpDeclReference",

52521 "type": {

52522 "kind": "HttpTypeLiteral",

52523 "literal": "mcp_protocol_error"

52524 }

52525 },

52526 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0": {

52527 "kind": "HttpDeclReference",

52528 "type": {

52529 "kind": "HttpTypeLiteral",

52530 "literal": "mcp_tool_execution_error"

52531 }

52532 },

52533 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0": {

52534 "kind": "HttpDeclReference",

52535 "type": {

52536 "kind": "HttpTypeLiteral",

52537 "literal": "http_error"

52538 }

52539 },

52237 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": {52540 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": {

52238 "kind": "HttpDeclReference",52541 "kind": "HttpDeclReference",

52239 "type": {52542 "type": {


76211 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",76514 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",

76212 "deprecated": false,76515 "deprecated": false,

76213 "key": "encrypted_content",76516 "key": "encrypted_content",

76214 "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",76517 "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",

76215 "type": {76518 "type": {

76216 "kind": "HttpTypeString"76519 "kind": "HttpTypeString"

76217 },76520 },


79195 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",79498 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",

79196 "deprecated": false,79499 "deprecated": false,

79197 "key": "error",79500 "key": "error",

79198 "docstring": "The error from the tool call, if any.\n",79501 "docstring": "The error from the tool call, if any.",

79199 "type": {79502 "type": {

79200 "kind": "HttpTypeString"79503 "kind": "HttpTypeReference",

79504 "ident": "BetaMcpToolCallError",

79505 "$ref": "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)"

79201 },79506 },

79202 "optional": true,79507 "optional": true,

79203 "nullable": true,79508 "nullable": true,

79204 "schemaType": "string",79509 "modelImplicit": false,

79205 "children": []79510 "schemaType": "union",

79511 "modelPath": "(resource) beta.responses > (model) beta_mcp_tool_call_error",

79512 "childrenParentSchema": "union",

79513 "children": [

79514 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

79515 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

79516 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

79517 ]

79206 },79518 },

79207 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": {79519 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": {

79208 "kind": "HttpDeclProperty",79520 "kind": "HttpDeclProperty",


85900 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",86212 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",

85901 "deprecated": false,86213 "deprecated": false,

85902 "key": "encrypted_content",86214 "key": "encrypted_content",

85903 "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",86215 "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",

85904 "type": {86216 "type": {

85905 "kind": "HttpTypeString"86217 "kind": "HttpTypeString"

85906 },86218 },


87825 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",88137 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",

87826 "deprecated": false,88138 "deprecated": false,

87827 "key": "error",88139 "key": "error",

87828 "docstring": "The error from the tool call, if any.\n",88140 "docstring": "The error from the tool call, if any.",

87829 "type": {88141 "type": {

87830 "kind": "HttpTypeString"88142 "kind": "HttpTypeReference",

88143 "ident": "BetaMcpToolCallError",

88144 "$ref": "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)"

87831 },88145 },

87832 "optional": true,88146 "optional": true,

87833 "nullable": true,88147 "nullable": true,

87834 "schemaType": "string",88148 "modelImplicit": false,

87835 "children": []88149 "schemaType": "union",

88150 "modelPath": "(resource) beta.responses > (model) beta_mcp_tool_call_error",

88151 "childrenParentSchema": "union",

88152 "children": [

88153 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

88154 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

88155 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

88156 ]

87836 },88157 },

87837 "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) output": {88158 "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) output": {

87838 "kind": "HttpDeclProperty",88159 "kind": "HttpDeclProperty",


92855 "schemaType": "string",93176 "schemaType": "string",

92856 "children": []93177 "children": []

92857 },93178 },

93179 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0": {

93180 "kind": "HttpDeclTypeAlias",

93181 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0",

93182 "ident": "McpProtocolError",

93183 "type": {

93184 "kind": "HttpTypeObject",

93185 "members": [

93186 {

93187 "ident": "code"

93188 },

93189 {

93190 "ident": "message"

93191 },

93192 {

93193 "ident": "type"

93194 }

93195 ]

93196 },

93197 "childrenParentSchema": "object",

93198 "children": [

93199 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) code",

93200 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) message",

93201 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type"

93202 ]

93203 },

93204 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1": {

93205 "kind": "HttpDeclTypeAlias",

93206 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1",

93207 "ident": "McpToolExecutionError",

93208 "type": {

93209 "kind": "HttpTypeObject",

93210 "members": [

93211 {

93212 "ident": "content"

93213 },

93214 {

93215 "ident": "type"

93216 }

93217 ]

93218 },

93219 "childrenParentSchema": "object",

93220 "children": [

93221 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) content",

93222 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type"

93223 ]

93224 },

93225 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2": {

93226 "kind": "HttpDeclTypeAlias",

93227 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2",

93228 "ident": "HTTPError",

93229 "type": {

93230 "kind": "HttpTypeObject",

93231 "members": [

93232 {

93233 "ident": "code"

93234 },

93235 {

93236 "ident": "message"

93237 },

93238 {

93239 "ident": "type"

93240 }

93241 ]

93242 },

93243 "childrenParentSchema": "object",

93244 "children": [

93245 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) code",

93246 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) message",

93247 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type"

93248 ]

93249 },

93250 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)": {

93251 "kind": "HttpDeclTypeAlias",

93252 "oasRef": "#/components/schemas/BetaMCPToolCallError",

93253 "ident": "BetaMcpToolCallError",

93254 "type": {

93255 "kind": "HttpTypeUnion",

93256 "oasRef": "#/components/schemas/BetaMCPToolCallError",

93257 "types": [

93258 {

93259 "kind": "HttpTypeObject",

93260 "members": [

93261 {

93262 "ident": "code"

93263 },

93264 {

93265 "ident": "message"

93266 },

93267 {

93268 "ident": "type"

93269 }

93270 ]

93271 },

93272 {

93273 "kind": "HttpTypeObject",

93274 "members": [

93275 {

93276 "ident": "content"

93277 },

93278 {

93279 "ident": "type"

93280 }

93281 ]

93282 },

93283 {

93284 "kind": "HttpTypeObject",

93285 "members": [

93286 {

93287 "ident": "code"

93288 },

93289 {

93290 "ident": "message"

93291 },

93292 {

93293 "ident": "type"

93294 }

93295 ]

93296 }

93297 ]

93298 },

93299 "childrenParentSchema": "union",

93300 "children": [

93301 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

93302 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

93303 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

93304 ]

93305 },

92858 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": {93306 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": {

92859 "kind": "HttpDeclReference",93307 "kind": "HttpDeclReference",

92860 "type": {93308 "type": {


105538 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0"105986 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0"

105539 ]105987 ]

105540 },105988 },

105989 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) code": {

105990 "kind": "HttpDeclProperty",

105991 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code",

105992 "deprecated": false,

105993 "key": "code",

105994 "type": {

105995 "kind": "HttpTypeNumber"

105996 },

105997 "optional": false,

105998 "nullable": false,

105999 "schemaType": "integer",

106000 "children": []

106001 },

106002 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) message": {

106003 "kind": "HttpDeclProperty",

106004 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message",

106005 "deprecated": false,

106006 "key": "message",

106007 "type": {

106008 "kind": "HttpTypeString"

106009 },

106010 "optional": false,

106011 "nullable": false,

106012 "schemaType": "string",

106013 "children": []

106014 },

106015 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type": {

106016 "kind": "HttpDeclProperty",

106017 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type",

106018 "deprecated": false,

106019 "key": "type",

106020 "type": {

106021 "kind": "HttpTypeUnion",

106022 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type",

106023 "types": [

106024 {

106025 "kind": "HttpTypeLiteral",

106026 "literal": "mcp_protocol_error"

106027 }

106028 ]

106029 },

106030 "default": "mcp_protocol_error",

106031 "optional": false,

106032 "nullable": false,

106033 "schemaType": "enum",

106034 "childrenParentSchema": "enum",

106035 "children": [

106036 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0"

106037 ]

106038 },

106039 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) content": {

106040 "kind": "HttpDeclProperty",

106041 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content",

106042 "deprecated": false,

106043 "key": "content",

106044 "type": {

106045 "kind": "HttpTypeUnknown"

106046 },

106047 "optional": false,

106048 "nullable": false,

106049 "schemaType": "unknown",

106050 "children": []

106051 },

106052 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type": {

106053 "kind": "HttpDeclProperty",

106054 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type",

106055 "deprecated": false,

106056 "key": "type",

106057 "type": {

106058 "kind": "HttpTypeUnion",

106059 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type",

106060 "types": [

106061 {

106062 "kind": "HttpTypeLiteral",

106063 "literal": "mcp_tool_execution_error"

106064 }

106065 ]

106066 },

106067 "default": "mcp_tool_execution_error",

106068 "optional": false,

106069 "nullable": false,

106070 "schemaType": "enum",

106071 "childrenParentSchema": "enum",

106072 "children": [

106073 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0"

106074 ]

106075 },

106076 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) code": {

106077 "kind": "HttpDeclProperty",

106078 "oasRef": "#/components/schemas/BetaHTTPError/properties/code",

106079 "deprecated": false,

106080 "key": "code",

106081 "type": {

106082 "kind": "HttpTypeNumber"

106083 },

106084 "optional": false,

106085 "nullable": false,

106086 "schemaType": "integer",

106087 "children": []

106088 },

106089 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) message": {

106090 "kind": "HttpDeclProperty",

106091 "oasRef": "#/components/schemas/BetaHTTPError/properties/message",

106092 "deprecated": false,

106093 "key": "message",

106094 "type": {

106095 "kind": "HttpTypeString"

106096 },

106097 "optional": false,

106098 "nullable": false,

106099 "schemaType": "string",

106100 "children": []

106101 },

106102 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type": {

106103 "kind": "HttpDeclProperty",

106104 "oasRef": "#/components/schemas/BetaHTTPError/properties/type",

106105 "deprecated": false,

106106 "key": "type",

106107 "type": {

106108 "kind": "HttpTypeUnion",

106109 "oasRef": "#/components/schemas/BetaHTTPError/properties/type",

106110 "types": [

106111 {

106112 "kind": "HttpTypeLiteral",

106113 "literal": "http_error"

106114 }

106115 ]

106116 },

106117 "default": "http_error",

106118 "optional": false,

106119 "nullable": false,

106120 "schemaType": "enum",

106121 "childrenParentSchema": "enum",

106122 "children": [

106123 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0"

106124 ]

106125 },

105541 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": {106126 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": {

105542 "kind": "HttpDeclProperty",106127 "kind": "HttpDeclProperty",

105543 "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type",106128 "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type",


115992 "literal": "program"116577 "literal": "program"

115993 }116578 }

115994 },116579 },

116580 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0": {

116581 "kind": "HttpDeclReference",

116582 "type": {

116583 "kind": "HttpTypeLiteral",

116584 "literal": "mcp_protocol_error"

116585 }

116586 },

116587 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0": {

116588 "kind": "HttpDeclReference",

116589 "type": {

116590 "kind": "HttpTypeLiteral",

116591 "literal": "mcp_tool_execution_error"

116592 }

116593 },

116594 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0": {

116595 "kind": "HttpDeclReference",

116596 "type": {

116597 "kind": "HttpTypeLiteral",

116598 "literal": "http_error"

116599 }

116600 },

115995 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": {116601 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": {

115996 "kind": "HttpDeclReference",116602 "kind": "HttpDeclReference",

115997 "type": {116603 "type": {


139969 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",140575 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",

139970 "deprecated": false,140576 "deprecated": false,

139971 "key": "encrypted_content",140577 "key": "encrypted_content",

139972 "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",140578 "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",

139973 "type": {140579 "type": {

139974 "kind": "HttpTypeString"140580 "kind": "HttpTypeString"

139975 },140581 },


142953 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",143559 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",

142954 "deprecated": false,143560 "deprecated": false,

142955 "key": "error",143561 "key": "error",

142956 "docstring": "The error from the tool call, if any.\n",143562 "docstring": "The error from the tool call, if any.",

142957 "type": {143563 "type": {

142958 "kind": "HttpTypeString"143564 "kind": "HttpTypeReference",

143565 "ident": "BetaMcpToolCallError",

143566 "$ref": "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)"

142959 },143567 },

142960 "optional": true,143568 "optional": true,

142961 "nullable": true,143569 "nullable": true,

142962 "schemaType": "string",143570 "modelImplicit": false,

142963 "children": []143571 "schemaType": "union",

143572 "modelPath": "(resource) beta.responses > (model) beta_mcp_tool_call_error",

143573 "childrenParentSchema": "union",

143574 "children": [

143575 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

143576 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

143577 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

143578 ]

142964 },143579 },

142965 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": {143580 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": {

142966 "kind": "HttpDeclProperty",143581 "kind": "HttpDeclProperty",


149658 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",150273 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",

149659 "deprecated": false,150274 "deprecated": false,

149660 "key": "encrypted_content",150275 "key": "encrypted_content",

149661 "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",150276 "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",

149662 "type": {150277 "type": {

149663 "kind": "HttpTypeString"150278 "kind": "HttpTypeString"

149664 },150279 },


151583 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",152198 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",

151584 "deprecated": false,152199 "deprecated": false,

151585 "key": "error",152200 "key": "error",

151586 "docstring": "The error from the tool call, if any.\n",152201 "docstring": "The error from the tool call, if any.",

151587 "type": {152202 "type": {

151588 "kind": "HttpTypeString"152203 "kind": "HttpTypeReference",

152204 "ident": "BetaMcpToolCallError",

152205 "$ref": "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)"

151589 },152206 },

151590 "optional": true,152207 "optional": true,

151591 "nullable": true,152208 "nullable": true,

151592 "schemaType": "string",152209 "modelImplicit": false,

151593 "children": []152210 "schemaType": "union",

152211 "modelPath": "(resource) beta.responses > (model) beta_mcp_tool_call_error",

152212 "childrenParentSchema": "union",

152213 "children": [

152214 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

152215 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

152216 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

152217 ]

151594 },152218 },

151595 "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) output": {152219 "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) output": {

151596 "kind": "HttpDeclProperty",152220 "kind": "HttpDeclProperty",


156613 "schemaType": "string",157237 "schemaType": "string",

156614 "children": []157238 "children": []

156615 },157239 },

157240 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0": {

157241 "kind": "HttpDeclTypeAlias",

157242 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0",

157243 "ident": "McpProtocolError",

157244 "type": {

157245 "kind": "HttpTypeObject",

157246 "members": [

157247 {

157248 "ident": "code"

157249 },

157250 {

157251 "ident": "message"

157252 },

157253 {

157254 "ident": "type"

157255 }

157256 ]

157257 },

157258 "childrenParentSchema": "object",

157259 "children": [

157260 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) code",

157261 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) message",

157262 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type"

157263 ]

157264 },

157265 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1": {

157266 "kind": "HttpDeclTypeAlias",

157267 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1",

157268 "ident": "McpToolExecutionError",

157269 "type": {

157270 "kind": "HttpTypeObject",

157271 "members": [

157272 {

157273 "ident": "content"

157274 },

157275 {

157276 "ident": "type"

157277 }

157278 ]

157279 },

157280 "childrenParentSchema": "object",

157281 "children": [

157282 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) content",

157283 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type"

157284 ]

157285 },

157286 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2": {

157287 "kind": "HttpDeclTypeAlias",

157288 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2",

157289 "ident": "HTTPError",

157290 "type": {

157291 "kind": "HttpTypeObject",

157292 "members": [

157293 {

157294 "ident": "code"

157295 },

157296 {

157297 "ident": "message"

157298 },

157299 {

157300 "ident": "type"

157301 }

157302 ]

157303 },

157304 "childrenParentSchema": "object",

157305 "children": [

157306 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) code",

157307 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) message",

157308 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type"

157309 ]

157310 },

157311 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)": {

157312 "kind": "HttpDeclTypeAlias",

157313 "oasRef": "#/components/schemas/BetaMCPToolCallError",

157314 "ident": "BetaMcpToolCallError",

157315 "type": {

157316 "kind": "HttpTypeUnion",

157317 "oasRef": "#/components/schemas/BetaMCPToolCallError",

157318 "types": [

157319 {

157320 "kind": "HttpTypeObject",

157321 "members": [

157322 {

157323 "ident": "code"

157324 },

157325 {

157326 "ident": "message"

157327 },

157328 {

157329 "ident": "type"

157330 }

157331 ]

157332 },

157333 {

157334 "kind": "HttpTypeObject",

157335 "members": [

157336 {

157337 "ident": "content"

157338 },

157339 {

157340 "ident": "type"

157341 }

157342 ]

157343 },

157344 {

157345 "kind": "HttpTypeObject",

157346 "members": [

157347 {

157348 "ident": "code"

157349 },

157350 {

157351 "ident": "message"

157352 },

157353 {

157354 "ident": "type"

157355 }

157356 ]

157357 }

157358 ]

157359 },

157360 "childrenParentSchema": "union",

157361 "children": [

157362 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

157363 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

157364 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

157365 ]

157366 },

156616 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": {157367 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": {

156617 "kind": "HttpDeclReference",157368 "kind": "HttpDeclReference",

156618 "type": {157369 "type": {


169296 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0"170047 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0"

169297 ]170048 ]

169298 },170049 },

170050 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) code": {

170051 "kind": "HttpDeclProperty",

170052 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code",

170053 "deprecated": false,

170054 "key": "code",

170055 "type": {

170056 "kind": "HttpTypeNumber"

170057 },

170058 "optional": false,

170059 "nullable": false,

170060 "schemaType": "integer",

170061 "children": []

170062 },

170063 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) message": {

170064 "kind": "HttpDeclProperty",

170065 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message",

170066 "deprecated": false,

170067 "key": "message",

170068 "type": {

170069 "kind": "HttpTypeString"

170070 },

170071 "optional": false,

170072 "nullable": false,

170073 "schemaType": "string",

170074 "children": []

170075 },

170076 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type": {

170077 "kind": "HttpDeclProperty",

170078 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type",

170079 "deprecated": false,

170080 "key": "type",

170081 "type": {

170082 "kind": "HttpTypeUnion",

170083 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type",

170084 "types": [

170085 {

170086 "kind": "HttpTypeLiteral",

170087 "literal": "mcp_protocol_error"

170088 }

170089 ]

170090 },

170091 "default": "mcp_protocol_error",

170092 "optional": false,

170093 "nullable": false,

170094 "schemaType": "enum",

170095 "childrenParentSchema": "enum",

170096 "children": [

170097 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0"

170098 ]

170099 },

170100 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) content": {

170101 "kind": "HttpDeclProperty",

170102 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content",

170103 "deprecated": false,

170104 "key": "content",

170105 "type": {

170106 "kind": "HttpTypeUnknown"

170107 },

170108 "optional": false,

170109 "nullable": false,

170110 "schemaType": "unknown",

170111 "children": []

170112 },

170113 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type": {

170114 "kind": "HttpDeclProperty",

170115 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type",

170116 "deprecated": false,

170117 "key": "type",

170118 "type": {

170119 "kind": "HttpTypeUnion",

170120 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type",

170121 "types": [

170122 {

170123 "kind": "HttpTypeLiteral",

170124 "literal": "mcp_tool_execution_error"

170125 }

170126 ]

170127 },

170128 "default": "mcp_tool_execution_error",

170129 "optional": false,

170130 "nullable": false,

170131 "schemaType": "enum",

170132 "childrenParentSchema": "enum",

170133 "children": [

170134 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0"

170135 ]

170136 },

170137 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) code": {

170138 "kind": "HttpDeclProperty",

170139 "oasRef": "#/components/schemas/BetaHTTPError/properties/code",

170140 "deprecated": false,

170141 "key": "code",

170142 "type": {

170143 "kind": "HttpTypeNumber"

170144 },

170145 "optional": false,

170146 "nullable": false,

170147 "schemaType": "integer",

170148 "children": []

170149 },

170150 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) message": {

170151 "kind": "HttpDeclProperty",

170152 "oasRef": "#/components/schemas/BetaHTTPError/properties/message",

170153 "deprecated": false,

170154 "key": "message",

170155 "type": {

170156 "kind": "HttpTypeString"

170157 },

170158 "optional": false,

170159 "nullable": false,

170160 "schemaType": "string",

170161 "children": []

170162 },

170163 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type": {

170164 "kind": "HttpDeclProperty",

170165 "oasRef": "#/components/schemas/BetaHTTPError/properties/type",

170166 "deprecated": false,

170167 "key": "type",

170168 "type": {

170169 "kind": "HttpTypeUnion",

170170 "oasRef": "#/components/schemas/BetaHTTPError/properties/type",

170171 "types": [

170172 {

170173 "kind": "HttpTypeLiteral",

170174 "literal": "http_error"

170175 }

170176 ]

170177 },

170178 "default": "http_error",

170179 "optional": false,

170180 "nullable": false,

170181 "schemaType": "enum",

170182 "childrenParentSchema": "enum",

170183 "children": [

170184 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0"

170185 ]

170186 },

169299 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": {170187 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": {

169300 "kind": "HttpDeclProperty",170188 "kind": "HttpDeclProperty",

169301 "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type",170189 "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type",


179750 "literal": "program"180638 "literal": "program"

179751 }180639 }

179752 },180640 },

180641 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0": {

180642 "kind": "HttpDeclReference",

180643 "type": {

180644 "kind": "HttpTypeLiteral",

180645 "literal": "mcp_protocol_error"

180646 }

180647 },

180648 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0": {

180649 "kind": "HttpDeclReference",

180650 "type": {

180651 "kind": "HttpTypeLiteral",

180652 "literal": "mcp_tool_execution_error"

180653 }

180654 },

180655 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0": {

180656 "kind": "HttpDeclReference",

180657 "type": {

180658 "kind": "HttpTypeLiteral",

180659 "literal": "http_error"

180660 }

180661 },

179753 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": {180662 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": {

179754 "kind": "HttpDeclReference",180663 "kind": "HttpDeclReference",

179755 "type": {180664 "type": {


203744 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",204653 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",

203745 "deprecated": false,204654 "deprecated": false,

203746 "key": "encrypted_content",204655 "key": "encrypted_content",

203747 "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",204656 "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",

203748 "type": {204657 "type": {

203749 "kind": "HttpTypeString"204658 "kind": "HttpTypeString"

203750 },204659 },


206728 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",207637 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",

206729 "deprecated": false,207638 "deprecated": false,

206730 "key": "error",207639 "key": "error",

206731 "docstring": "The error from the tool call, if any.\n",207640 "docstring": "The error from the tool call, if any.",

206732 "type": {207641 "type": {

206733 "kind": "HttpTypeString"207642 "kind": "HttpTypeReference",

207643 "ident": "BetaMcpToolCallError",

207644 "$ref": "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)"

206734 },207645 },

206735 "optional": true,207646 "optional": true,

206736 "nullable": true,207647 "nullable": true,

206737 "schemaType": "string",207648 "modelImplicit": false,

206738 "children": []207649 "schemaType": "union",

207650 "modelPath": "(resource) beta.responses > (model) beta_mcp_tool_call_error",

207651 "childrenParentSchema": "union",

207652 "children": [

207653 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

207654 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

207655 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

207656 ]

206739 },207657 },

206740 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": {207658 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": {

206741 "kind": "HttpDeclProperty",207659 "kind": "HttpDeclProperty",


213433 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",214351 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",

213434 "deprecated": false,214352 "deprecated": false,

213435 "key": "encrypted_content",214353 "key": "encrypted_content",

213436 "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",214354 "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",

213437 "type": {214355 "type": {

213438 "kind": "HttpTypeString"214356 "kind": "HttpTypeString"

213439 },214357 },


215358 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",216276 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",

215359 "deprecated": false,216277 "deprecated": false,

215360 "key": "error",216278 "key": "error",

215361 "docstring": "The error from the tool call, if any.\n",216279 "docstring": "The error from the tool call, if any.",

215362 "type": {216280 "type": {

215363 "kind": "HttpTypeString"216281 "kind": "HttpTypeReference",

216282 "ident": "BetaMcpToolCallError",

216283 "$ref": "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)"

215364 },216284 },

215365 "optional": true,216285 "optional": true,

215366 "nullable": true,216286 "nullable": true,

215367 "schemaType": "string",216287 "modelImplicit": false,

215368 "children": []216288 "schemaType": "union",

216289 "modelPath": "(resource) beta.responses > (model) beta_mcp_tool_call_error",

216290 "childrenParentSchema": "union",

216291 "children": [

216292 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

216293 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

216294 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

216295 ]

215369 },216296 },

215370 "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) output": {216297 "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) output": {

215371 "kind": "HttpDeclProperty",216298 "kind": "HttpDeclProperty",


220388 "schemaType": "string",221315 "schemaType": "string",

220389 "children": []221316 "children": []

220390 },221317 },

221318 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0": {

221319 "kind": "HttpDeclTypeAlias",

221320 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0",

221321 "ident": "McpProtocolError",

221322 "type": {

221323 "kind": "HttpTypeObject",

221324 "members": [

221325 {

221326 "ident": "code"

221327 },

221328 {

221329 "ident": "message"

221330 },

221331 {

221332 "ident": "type"

221333 }

221334 ]

221335 },

221336 "childrenParentSchema": "object",

221337 "children": [

221338 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) code",

221339 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) message",

221340 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type"

221341 ]

221342 },

221343 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1": {

221344 "kind": "HttpDeclTypeAlias",

221345 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1",

221346 "ident": "McpToolExecutionError",

221347 "type": {

221348 "kind": "HttpTypeObject",

221349 "members": [

221350 {

221351 "ident": "content"

221352 },

221353 {

221354 "ident": "type"

221355 }

221356 ]

221357 },

221358 "childrenParentSchema": "object",

221359 "children": [

221360 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) content",

221361 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type"

221362 ]

221363 },

221364 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2": {

221365 "kind": "HttpDeclTypeAlias",

221366 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2",

221367 "ident": "HTTPError",

221368 "type": {

221369 "kind": "HttpTypeObject",

221370 "members": [

221371 {

221372 "ident": "code"

221373 },

221374 {

221375 "ident": "message"

221376 },

221377 {

221378 "ident": "type"

221379 }

221380 ]

221381 },

221382 "childrenParentSchema": "object",

221383 "children": [

221384 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) code",

221385 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) message",

221386 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type"

221387 ]

221388 },

221389 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)": {

221390 "kind": "HttpDeclTypeAlias",

221391 "oasRef": "#/components/schemas/BetaMCPToolCallError",

221392 "ident": "BetaMcpToolCallError",

221393 "type": {

221394 "kind": "HttpTypeUnion",

221395 "oasRef": "#/components/schemas/BetaMCPToolCallError",

221396 "types": [

221397 {

221398 "kind": "HttpTypeObject",

221399 "members": [

221400 {

221401 "ident": "code"

221402 },

221403 {

221404 "ident": "message"

221405 },

221406 {

221407 "ident": "type"

221408 }

221409 ]

221410 },

221411 {

221412 "kind": "HttpTypeObject",

221413 "members": [

221414 {

221415 "ident": "content"

221416 },

221417 {

221418 "ident": "type"

221419 }

221420 ]

221421 },

221422 {

221423 "kind": "HttpTypeObject",

221424 "members": [

221425 {

221426 "ident": "code"

221427 },

221428 {

221429 "ident": "message"

221430 },

221431 {

221432 "ident": "type"

221433 }

221434 ]

221435 }

221436 ]

221437 },

221438 "childrenParentSchema": "union",

221439 "children": [

221440 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

221441 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

221442 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

221443 ]

221444 },

220391 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": {221445 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": {

220392 "kind": "HttpDeclReference",221446 "kind": "HttpDeclReference",

220393 "type": {221447 "type": {


233071 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0"234125 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0"

233072 ]234126 ]

233073 },234127 },

234128 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) code": {

234129 "kind": "HttpDeclProperty",

234130 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code",

234131 "deprecated": false,

234132 "key": "code",

234133 "type": {

234134 "kind": "HttpTypeNumber"

234135 },

234136 "optional": false,

234137 "nullable": false,

234138 "schemaType": "integer",

234139 "children": []

234140 },

234141 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) message": {

234142 "kind": "HttpDeclProperty",

234143 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message",

234144 "deprecated": false,

234145 "key": "message",

234146 "type": {

234147 "kind": "HttpTypeString"

234148 },

234149 "optional": false,

234150 "nullable": false,

234151 "schemaType": "string",

234152 "children": []

234153 },

234154 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type": {

234155 "kind": "HttpDeclProperty",

234156 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type",

234157 "deprecated": false,

234158 "key": "type",

234159 "type": {

234160 "kind": "HttpTypeUnion",

234161 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type",

234162 "types": [

234163 {

234164 "kind": "HttpTypeLiteral",

234165 "literal": "mcp_protocol_error"

234166 }

234167 ]

234168 },

234169 "default": "mcp_protocol_error",

234170 "optional": false,

234171 "nullable": false,

234172 "schemaType": "enum",

234173 "childrenParentSchema": "enum",

234174 "children": [

234175 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0"

234176 ]

234177 },

234178 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) content": {

234179 "kind": "HttpDeclProperty",

234180 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content",

234181 "deprecated": false,

234182 "key": "content",

234183 "type": {

234184 "kind": "HttpTypeUnknown"

234185 },

234186 "optional": false,

234187 "nullable": false,

234188 "schemaType": "unknown",

234189 "children": []

234190 },

234191 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type": {

234192 "kind": "HttpDeclProperty",

234193 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type",

234194 "deprecated": false,

234195 "key": "type",

234196 "type": {

234197 "kind": "HttpTypeUnion",

234198 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type",

234199 "types": [

234200 {

234201 "kind": "HttpTypeLiteral",

234202 "literal": "mcp_tool_execution_error"

234203 }

234204 ]

234205 },

234206 "default": "mcp_tool_execution_error",

234207 "optional": false,

234208 "nullable": false,

234209 "schemaType": "enum",

234210 "childrenParentSchema": "enum",

234211 "children": [

234212 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0"

234213 ]

234214 },

234215 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) code": {

234216 "kind": "HttpDeclProperty",

234217 "oasRef": "#/components/schemas/BetaHTTPError/properties/code",

234218 "deprecated": false,

234219 "key": "code",

234220 "type": {

234221 "kind": "HttpTypeNumber"

234222 },

234223 "optional": false,

234224 "nullable": false,

234225 "schemaType": "integer",

234226 "children": []

234227 },

234228 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) message": {

234229 "kind": "HttpDeclProperty",

234230 "oasRef": "#/components/schemas/BetaHTTPError/properties/message",

234231 "deprecated": false,

234232 "key": "message",

234233 "type": {

234234 "kind": "HttpTypeString"

234235 },

234236 "optional": false,

234237 "nullable": false,

234238 "schemaType": "string",

234239 "children": []

234240 },

234241 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type": {

234242 "kind": "HttpDeclProperty",

234243 "oasRef": "#/components/schemas/BetaHTTPError/properties/type",

234244 "deprecated": false,

234245 "key": "type",

234246 "type": {

234247 "kind": "HttpTypeUnion",

234248 "oasRef": "#/components/schemas/BetaHTTPError/properties/type",

234249 "types": [

234250 {

234251 "kind": "HttpTypeLiteral",

234252 "literal": "http_error"

234253 }

234254 ]

234255 },

234256 "default": "http_error",

234257 "optional": false,

234258 "nullable": false,

234259 "schemaType": "enum",

234260 "childrenParentSchema": "enum",

234261 "children": [

234262 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0"

234263 ]

234264 },

233074 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": {234265 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": {

233075 "kind": "HttpDeclProperty",234266 "kind": "HttpDeclProperty",

233076 "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type",234267 "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type",


243525 "literal": "program"244716 "literal": "program"

243526 }244717 }

243527 },244718 },

244719 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0": {

244720 "kind": "HttpDeclReference",

244721 "type": {

244722 "kind": "HttpTypeLiteral",

244723 "literal": "mcp_protocol_error"

244724 }

244725 },

244726 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0": {

244727 "kind": "HttpDeclReference",

244728 "type": {

244729 "kind": "HttpTypeLiteral",

244730 "literal": "mcp_tool_execution_error"

244731 }

244732 },

244733 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0": {

244734 "kind": "HttpDeclReference",

244735 "type": {

244736 "kind": "HttpTypeLiteral",

244737 "literal": "http_error"

244738 }

244739 },

243528 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": {244740 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": {

243529 "kind": "HttpDeclReference",244741 "kind": "HttpDeclReference",

243530 "type": {244742 "type": {


267500 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",268712 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",

267501 "deprecated": false,268713 "deprecated": false,

267502 "key": "encrypted_content",268714 "key": "encrypted_content",

267503 "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",268715 "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",

267504 "type": {268716 "type": {

267505 "kind": "HttpTypeString"268717 "kind": "HttpTypeString"

267506 },268718 },


270484 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",271696 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",

270485 "deprecated": false,271697 "deprecated": false,

270486 "key": "error",271698 "key": "error",

270487 "docstring": "The error from the tool call, if any.\n",271699 "docstring": "The error from the tool call, if any.",

270488 "type": {271700 "type": {

270489 "kind": "HttpTypeString"271701 "kind": "HttpTypeReference",

271702 "ident": "BetaMcpToolCallError",

271703 "$ref": "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)"

270490 },271704 },

270491 "optional": true,271705 "optional": true,

270492 "nullable": true,271706 "nullable": true,

270493 "schemaType": "string",271707 "modelImplicit": false,

270494 "children": []271708 "schemaType": "union",

271709 "modelPath": "(resource) beta.responses > (model) beta_mcp_tool_call_error",

271710 "childrenParentSchema": "union",

271711 "children": [

271712 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

271713 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

271714 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

271715 ]

270495 },271716 },

270496 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": {271717 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": {

270497 "kind": "HttpDeclProperty",271718 "kind": "HttpDeclProperty",


277189 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",278410 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",

277190 "deprecated": false,278411 "deprecated": false,

277191 "key": "encrypted_content",278412 "key": "encrypted_content",

277192 "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",278413 "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",

277193 "type": {278414 "type": {

277194 "kind": "HttpTypeString"278415 "kind": "HttpTypeString"

277195 },278416 },


279114 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",280335 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",

279115 "deprecated": false,280336 "deprecated": false,

279116 "key": "error",280337 "key": "error",

279117 "docstring": "The error from the tool call, if any.\n",280338 "docstring": "The error from the tool call, if any.",

279118 "type": {280339 "type": {

279119 "kind": "HttpTypeString"280340 "kind": "HttpTypeReference",

280341 "ident": "BetaMcpToolCallError",

280342 "$ref": "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)"

279120 },280343 },

279121 "optional": true,280344 "optional": true,

279122 "nullable": true,280345 "nullable": true,

279123 "schemaType": "string",280346 "modelImplicit": false,

279124 "children": []280347 "schemaType": "union",

280348 "modelPath": "(resource) beta.responses > (model) beta_mcp_tool_call_error",

280349 "childrenParentSchema": "union",

280350 "children": [

280351 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

280352 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

280353 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

280354 ]

279125 },280355 },

279126 "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) output": {280356 "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) output": {

279127 "kind": "HttpDeclProperty",280357 "kind": "HttpDeclProperty",


284144 "schemaType": "string",285374 "schemaType": "string",

284145 "children": []285375 "children": []

284146 },285376 },

285377 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0": {

285378 "kind": "HttpDeclTypeAlias",

285379 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0",

285380 "ident": "McpProtocolError",

285381 "type": {

285382 "kind": "HttpTypeObject",

285383 "members": [

285384 {

285385 "ident": "code"

285386 },

285387 {

285388 "ident": "message"

285389 },

285390 {

285391 "ident": "type"

285392 }

285393 ]

285394 },

285395 "childrenParentSchema": "object",

285396 "children": [

285397 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) code",

285398 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) message",

285399 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type"

285400 ]

285401 },

285402 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1": {

285403 "kind": "HttpDeclTypeAlias",

285404 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1",

285405 "ident": "McpToolExecutionError",

285406 "type": {

285407 "kind": "HttpTypeObject",

285408 "members": [

285409 {

285410 "ident": "content"

285411 },

285412 {

285413 "ident": "type"

285414 }

285415 ]

285416 },

285417 "childrenParentSchema": "object",

285418 "children": [

285419 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) content",

285420 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type"

285421 ]

285422 },

285423 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2": {

285424 "kind": "HttpDeclTypeAlias",

285425 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2",

285426 "ident": "HTTPError",

285427 "type": {

285428 "kind": "HttpTypeObject",

285429 "members": [

285430 {

285431 "ident": "code"

285432 },

285433 {

285434 "ident": "message"

285435 },

285436 {

285437 "ident": "type"

285438 }

285439 ]

285440 },

285441 "childrenParentSchema": "object",

285442 "children": [

285443 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) code",

285444 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) message",

285445 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type"

285446 ]

285447 },

285448 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)": {

285449 "kind": "HttpDeclTypeAlias",

285450 "oasRef": "#/components/schemas/BetaMCPToolCallError",

285451 "ident": "BetaMcpToolCallError",

285452 "type": {

285453 "kind": "HttpTypeUnion",

285454 "oasRef": "#/components/schemas/BetaMCPToolCallError",

285455 "types": [

285456 {

285457 "kind": "HttpTypeObject",

285458 "members": [

285459 {

285460 "ident": "code"

285461 },

285462 {

285463 "ident": "message"

285464 },

285465 {

285466 "ident": "type"

285467 }

285468 ]

285469 },

285470 {

285471 "kind": "HttpTypeObject",

285472 "members": [

285473 {

285474 "ident": "content"

285475 },

285476 {

285477 "ident": "type"

285478 }

285479 ]

285480 },

285481 {

285482 "kind": "HttpTypeObject",

285483 "members": [

285484 {

285485 "ident": "code"

285486 },

285487 {

285488 "ident": "message"

285489 },

285490 {

285491 "ident": "type"

285492 }

285493 ]

285494 }

285495 ]

285496 },

285497 "childrenParentSchema": "union",

285498 "children": [

285499 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

285500 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

285501 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

285502 ]

285503 },

284147 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": {285504 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": {

284148 "kind": "HttpDeclReference",285505 "kind": "HttpDeclReference",

284149 "type": {285506 "type": {


296827 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0"298184 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0"

296828 ]298185 ]

296829 },298186 },

298187 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) code": {

298188 "kind": "HttpDeclProperty",

298189 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code",

298190 "deprecated": false,

298191 "key": "code",

298192 "type": {

298193 "kind": "HttpTypeNumber"

298194 },

298195 "optional": false,

298196 "nullable": false,

298197 "schemaType": "integer",

298198 "children": []

298199 },

298200 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) message": {

298201 "kind": "HttpDeclProperty",

298202 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message",

298203 "deprecated": false,

298204 "key": "message",

298205 "type": {

298206 "kind": "HttpTypeString"

298207 },

298208 "optional": false,

298209 "nullable": false,

298210 "schemaType": "string",

298211 "children": []

298212 },

298213 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type": {

298214 "kind": "HttpDeclProperty",

298215 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type",

298216 "deprecated": false,

298217 "key": "type",

298218 "type": {

298219 "kind": "HttpTypeUnion",

298220 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type",

298221 "types": [

298222 {

298223 "kind": "HttpTypeLiteral",

298224 "literal": "mcp_protocol_error"

298225 }

298226 ]

298227 },

298228 "default": "mcp_protocol_error",

298229 "optional": false,

298230 "nullable": false,

298231 "schemaType": "enum",

298232 "childrenParentSchema": "enum",

298233 "children": [

298234 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0"

298235 ]

298236 },

298237 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) content": {

298238 "kind": "HttpDeclProperty",

298239 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content",

298240 "deprecated": false,

298241 "key": "content",

298242 "type": {

298243 "kind": "HttpTypeUnknown"

298244 },

298245 "optional": false,

298246 "nullable": false,

298247 "schemaType": "unknown",

298248 "children": []

298249 },

298250 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type": {

298251 "kind": "HttpDeclProperty",

298252 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type",

298253 "deprecated": false,

298254 "key": "type",

298255 "type": {

298256 "kind": "HttpTypeUnion",

298257 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type",

298258 "types": [

298259 {

298260 "kind": "HttpTypeLiteral",

298261 "literal": "mcp_tool_execution_error"

298262 }

298263 ]

298264 },

298265 "default": "mcp_tool_execution_error",

298266 "optional": false,

298267 "nullable": false,

298268 "schemaType": "enum",

298269 "childrenParentSchema": "enum",

298270 "children": [

298271 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0"

298272 ]

298273 },

298274 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) code": {

298275 "kind": "HttpDeclProperty",

298276 "oasRef": "#/components/schemas/BetaHTTPError/properties/code",

298277 "deprecated": false,

298278 "key": "code",

298279 "type": {

298280 "kind": "HttpTypeNumber"

298281 },

298282 "optional": false,

298283 "nullable": false,

298284 "schemaType": "integer",

298285 "children": []

298286 },

298287 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) message": {

298288 "kind": "HttpDeclProperty",

298289 "oasRef": "#/components/schemas/BetaHTTPError/properties/message",

298290 "deprecated": false,

298291 "key": "message",

298292 "type": {

298293 "kind": "HttpTypeString"

298294 },

298295 "optional": false,

298296 "nullable": false,

298297 "schemaType": "string",

298298 "children": []

298299 },

298300 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type": {

298301 "kind": "HttpDeclProperty",

298302 "oasRef": "#/components/schemas/BetaHTTPError/properties/type",

298303 "deprecated": false,

298304 "key": "type",

298305 "type": {

298306 "kind": "HttpTypeUnion",

298307 "oasRef": "#/components/schemas/BetaHTTPError/properties/type",

298308 "types": [

298309 {

298310 "kind": "HttpTypeLiteral",

298311 "literal": "http_error"

298312 }

298313 ]

298314 },

298315 "default": "http_error",

298316 "optional": false,

298317 "nullable": false,

298318 "schemaType": "enum",

298319 "childrenParentSchema": "enum",

298320 "children": [

298321 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0"

298322 ]

298323 },

296830 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": {298324 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": {

296831 "kind": "HttpDeclProperty",298325 "kind": "HttpDeclProperty",

296832 "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type",298326 "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type",


307281 "literal": "program"308775 "literal": "program"

307282 }308776 }

307283 },308777 },

308778 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0": {

308779 "kind": "HttpDeclReference",

308780 "type": {

308781 "kind": "HttpTypeLiteral",

308782 "literal": "mcp_protocol_error"

308783 }

308784 },

308785 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0": {

308786 "kind": "HttpDeclReference",

308787 "type": {

308788 "kind": "HttpTypeLiteral",

308789 "literal": "mcp_tool_execution_error"

308790 }

308791 },

308792 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0": {

308793 "kind": "HttpDeclReference",

308794 "type": {

308795 "kind": "HttpTypeLiteral",

308796 "literal": "http_error"

308797 }

308798 },

307284 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": {308799 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": {

307285 "kind": "HttpDeclReference",308800 "kind": "HttpDeclReference",

307286 "type": {308801 "type": {


318861 "oasRef": "#/components/schemas/BetaResponseOutputItemAddedEvent/properties/item",320376 "oasRef": "#/components/schemas/BetaResponseOutputItemAddedEvent/properties/item",

318862 "deprecated": false,320377 "deprecated": false,

318863 "key": "item",320378 "key": "item",

318864 "docstring": "The output item that was added.\n",320379 "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",

318865 "type": {320380 "type": {

318866 "kind": "HttpTypeReference",320381 "kind": "HttpTypeReference",

318867 "ident": "BetaResponseOutputItem",320382 "ident": "BetaResponseOutputItem",


323091 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",324606 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",

323092 "deprecated": false,324607 "deprecated": false,

323093 "key": "encrypted_content",324608 "key": "encrypted_content",

323094 "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",324609 "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",

323095 "type": {324610 "type": {

323096 "kind": "HttpTypeString"324611 "kind": "HttpTypeString"

323097 },324612 },


326075 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",327590 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",

326076 "deprecated": false,327591 "deprecated": false,

326077 "key": "error",327592 "key": "error",

326078 "docstring": "The error from the tool call, if any.\n",327593 "docstring": "The error from the tool call, if any.",

326079 "type": {327594 "type": {

326080 "kind": "HttpTypeString"327595 "kind": "HttpTypeReference",

327596 "ident": "BetaMcpToolCallError",

327597 "$ref": "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)"

326081 },327598 },

326082 "optional": true,327599 "optional": true,

326083 "nullable": true,327600 "nullable": true,

326084 "schemaType": "string",327601 "modelImplicit": false,

326085 "children": []327602 "schemaType": "union",

327603 "modelPath": "(resource) beta.responses > (model) beta_mcp_tool_call_error",

327604 "childrenParentSchema": "union",

327605 "children": [

327606 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

327607 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

327608 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

327609 ]

326086 },327610 },

326087 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": {327611 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": {

326088 "kind": "HttpDeclProperty",327612 "kind": "HttpDeclProperty",


331139 "schemaType": "string",332663 "schemaType": "string",

331140 "children": []332664 "children": []

331141 },332665 },

332666 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0": {

332667 "kind": "HttpDeclTypeAlias",

332668 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0",

332669 "ident": "McpProtocolError",

332670 "type": {

332671 "kind": "HttpTypeObject",

332672 "members": [

332673 {

332674 "ident": "code"

332675 },

332676 {

332677 "ident": "message"

332678 },

332679 {

332680 "ident": "type"

332681 }

332682 ]

332683 },

332684 "childrenParentSchema": "object",

332685 "children": [

332686 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) code",

332687 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) message",

332688 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type"

332689 ]

332690 },

332691 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1": {

332692 "kind": "HttpDeclTypeAlias",

332693 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1",

332694 "ident": "McpToolExecutionError",

332695 "type": {

332696 "kind": "HttpTypeObject",

332697 "members": [

332698 {

332699 "ident": "content"

332700 },

332701 {

332702 "ident": "type"

332703 }

332704 ]

332705 },

332706 "childrenParentSchema": "object",

332707 "children": [

332708 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) content",

332709 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type"

332710 ]

332711 },

332712 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2": {

332713 "kind": "HttpDeclTypeAlias",

332714 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2",

332715 "ident": "HTTPError",

332716 "type": {

332717 "kind": "HttpTypeObject",

332718 "members": [

332719 {

332720 "ident": "code"

332721 },

332722 {

332723 "ident": "message"

332724 },

332725 {

332726 "ident": "type"

332727 }

332728 ]

332729 },

332730 "childrenParentSchema": "object",

332731 "children": [

332732 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) code",

332733 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) message",

332734 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type"

332735 ]

332736 },

332737 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)": {

332738 "kind": "HttpDeclTypeAlias",

332739 "oasRef": "#/components/schemas/BetaMCPToolCallError",

332740 "ident": "BetaMcpToolCallError",

332741 "type": {

332742 "kind": "HttpTypeUnion",

332743 "oasRef": "#/components/schemas/BetaMCPToolCallError",

332744 "types": [

332745 {

332746 "kind": "HttpTypeObject",

332747 "members": [

332748 {

332749 "ident": "code"

332750 },

332751 {

332752 "ident": "message"

332753 },

332754 {

332755 "ident": "type"

332756 }

332757 ]

332758 },

332759 {

332760 "kind": "HttpTypeObject",

332761 "members": [

332762 {

332763 "ident": "content"

332764 },

332765 {

332766 "ident": "type"

332767 }

332768 ]

332769 },

332770 {

332771 "kind": "HttpTypeObject",

332772 "members": [

332773 {

332774 "ident": "code"

332775 },

332776 {

332777 "ident": "message"

332778 },

332779 {

332780 "ident": "type"

332781 }

332782 ]

332783 }

332784 ]

332785 },

332786 "childrenParentSchema": "union",

332787 "children": [

332788 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

332789 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

332790 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

332791 ]

332792 },

331142 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": {332793 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": {

331143 "kind": "HttpDeclReference",332794 "kind": "HttpDeclReference",

331144 "type": {332795 "type": {


337963 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0"339614 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0"

337964 ]339615 ]

337965 },339616 },

339617 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) code": {

339618 "kind": "HttpDeclProperty",

339619 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code",

339620 "deprecated": false,

339621 "key": "code",

339622 "type": {

339623 "kind": "HttpTypeNumber"

339624 },

339625 "optional": false,

339626 "nullable": false,

339627 "schemaType": "integer",

339628 "children": []

339629 },

339630 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) message": {

339631 "kind": "HttpDeclProperty",

339632 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message",

339633 "deprecated": false,

339634 "key": "message",

339635 "type": {

339636 "kind": "HttpTypeString"

339637 },

339638 "optional": false,

339639 "nullable": false,

339640 "schemaType": "string",

339641 "children": []

339642 },

339643 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type": {

339644 "kind": "HttpDeclProperty",

339645 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type",

339646 "deprecated": false,

339647 "key": "type",

339648 "type": {

339649 "kind": "HttpTypeUnion",

339650 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type",

339651 "types": [

339652 {

339653 "kind": "HttpTypeLiteral",

339654 "literal": "mcp_protocol_error"

339655 }

339656 ]

339657 },

339658 "default": "mcp_protocol_error",

339659 "optional": false,

339660 "nullable": false,

339661 "schemaType": "enum",

339662 "childrenParentSchema": "enum",

339663 "children": [

339664 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0"

339665 ]

339666 },

339667 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) content": {

339668 "kind": "HttpDeclProperty",

339669 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content",

339670 "deprecated": false,

339671 "key": "content",

339672 "type": {

339673 "kind": "HttpTypeUnknown"

339674 },

339675 "optional": false,

339676 "nullable": false,

339677 "schemaType": "unknown",

339678 "children": []

339679 },

339680 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type": {

339681 "kind": "HttpDeclProperty",

339682 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type",

339683 "deprecated": false,

339684 "key": "type",

339685 "type": {

339686 "kind": "HttpTypeUnion",

339687 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type",

339688 "types": [

339689 {

339690 "kind": "HttpTypeLiteral",

339691 "literal": "mcp_tool_execution_error"

339692 }

339693 ]

339694 },

339695 "default": "mcp_tool_execution_error",

339696 "optional": false,

339697 "nullable": false,

339698 "schemaType": "enum",

339699 "childrenParentSchema": "enum",

339700 "children": [

339701 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0"

339702 ]

339703 },

339704 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) code": {

339705 "kind": "HttpDeclProperty",

339706 "oasRef": "#/components/schemas/BetaHTTPError/properties/code",

339707 "deprecated": false,

339708 "key": "code",

339709 "type": {

339710 "kind": "HttpTypeNumber"

339711 },

339712 "optional": false,

339713 "nullable": false,

339714 "schemaType": "integer",

339715 "children": []

339716 },

339717 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) message": {

339718 "kind": "HttpDeclProperty",

339719 "oasRef": "#/components/schemas/BetaHTTPError/properties/message",

339720 "deprecated": false,

339721 "key": "message",

339722 "type": {

339723 "kind": "HttpTypeString"

339724 },

339725 "optional": false,

339726 "nullable": false,

339727 "schemaType": "string",

339728 "children": []

339729 },

339730 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type": {

339731 "kind": "HttpDeclProperty",

339732 "oasRef": "#/components/schemas/BetaHTTPError/properties/type",

339733 "deprecated": false,

339734 "key": "type",

339735 "type": {

339736 "kind": "HttpTypeUnion",

339737 "oasRef": "#/components/schemas/BetaHTTPError/properties/type",

339738 "types": [

339739 {

339740 "kind": "HttpTypeLiteral",

339741 "literal": "http_error"

339742 }

339743 ]

339744 },

339745 "default": "http_error",

339746 "optional": false,

339747 "nullable": false,

339748 "schemaType": "enum",

339749 "childrenParentSchema": "enum",

339750 "children": [

339751 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0"

339752 ]

339753 },

337966 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": {339754 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": {

337967 "kind": "HttpDeclProperty",339755 "kind": "HttpDeclProperty",

337968 "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type",339756 "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type",


341566 "literal": "program"343354 "literal": "program"

341567 }343355 }

341568 },343356 },

343357 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0": {

343358 "kind": "HttpDeclReference",

343359 "type": {

343360 "kind": "HttpTypeLiteral",

343361 "literal": "mcp_protocol_error"

343362 }

343363 },

343364 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0": {

343365 "kind": "HttpDeclReference",

343366 "type": {

343367 "kind": "HttpTypeLiteral",

343368 "literal": "mcp_tool_execution_error"

343369 }

343370 },

343371 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0": {

343372 "kind": "HttpDeclReference",

343373 "type": {

343374 "kind": "HttpTypeLiteral",

343375 "literal": "http_error"

343376 }

343377 },

341569 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": {343378 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": {

341570 "kind": "HttpDeclReference",343379 "kind": "HttpDeclReference",

341571 "type": {343380 "type": {


350290 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",352099 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",

350291 "deprecated": false,352100 "deprecated": false,

350292 "key": "encrypted_content",352101 "key": "encrypted_content",

350293 "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",352102 "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",

350294 "type": {352103 "type": {

350295 "kind": "HttpTypeString"352104 "kind": "HttpTypeString"

350296 },352105 },


353274 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",355083 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",

353275 "deprecated": false,355084 "deprecated": false,

353276 "key": "error",355085 "key": "error",

353277 "docstring": "The error from the tool call, if any.\n",355086 "docstring": "The error from the tool call, if any.",

353278 "type": {355087 "type": {

353279 "kind": "HttpTypeString"355088 "kind": "HttpTypeReference",

355089 "ident": "BetaMcpToolCallError",

355090 "$ref": "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)"

353280 },355091 },

353281 "optional": true,355092 "optional": true,

353282 "nullable": true,355093 "nullable": true,

353283 "schemaType": "string",355094 "modelImplicit": false,

353284 "children": []355095 "schemaType": "union",

355096 "modelPath": "(resource) beta.responses > (model) beta_mcp_tool_call_error",

355097 "childrenParentSchema": "union",

355098 "children": [

355099 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

355100 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

355101 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

355102 ]

353285 },355103 },

353286 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": {355104 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": {

353287 "kind": "HttpDeclProperty",355105 "kind": "HttpDeclProperty",


358338 "schemaType": "string",360156 "schemaType": "string",

358339 "children": []360157 "children": []

358340 },360158 },

360159 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0": {

360160 "kind": "HttpDeclTypeAlias",

360161 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0",

360162 "ident": "McpProtocolError",

360163 "type": {

360164 "kind": "HttpTypeObject",

360165 "members": [

360166 {

360167 "ident": "code"

360168 },

360169 {

360170 "ident": "message"

360171 },

360172 {

360173 "ident": "type"

360174 }

360175 ]

360176 },

360177 "childrenParentSchema": "object",

360178 "children": [

360179 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) code",

360180 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) message",

360181 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type"

360182 ]

360183 },

360184 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1": {

360185 "kind": "HttpDeclTypeAlias",

360186 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1",

360187 "ident": "McpToolExecutionError",

360188 "type": {

360189 "kind": "HttpTypeObject",

360190 "members": [

360191 {

360192 "ident": "content"

360193 },

360194 {

360195 "ident": "type"

360196 }

360197 ]

360198 },

360199 "childrenParentSchema": "object",

360200 "children": [

360201 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) content",

360202 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type"

360203 ]

360204 },

360205 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2": {

360206 "kind": "HttpDeclTypeAlias",

360207 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2",

360208 "ident": "HTTPError",

360209 "type": {

360210 "kind": "HttpTypeObject",

360211 "members": [

360212 {

360213 "ident": "code"

360214 },

360215 {

360216 "ident": "message"

360217 },

360218 {

360219 "ident": "type"

360220 }

360221 ]

360222 },

360223 "childrenParentSchema": "object",

360224 "children": [

360225 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) code",

360226 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) message",

360227 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type"

360228 ]

360229 },

360230 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)": {

360231 "kind": "HttpDeclTypeAlias",

360232 "oasRef": "#/components/schemas/BetaMCPToolCallError",

360233 "ident": "BetaMcpToolCallError",

360234 "type": {

360235 "kind": "HttpTypeUnion",

360236 "oasRef": "#/components/schemas/BetaMCPToolCallError",

360237 "types": [

360238 {

360239 "kind": "HttpTypeObject",

360240 "members": [

360241 {

360242 "ident": "code"

360243 },

360244 {

360245 "ident": "message"

360246 },

360247 {

360248 "ident": "type"

360249 }

360250 ]

360251 },

360252 {

360253 "kind": "HttpTypeObject",

360254 "members": [

360255 {

360256 "ident": "content"

360257 },

360258 {

360259 "ident": "type"

360260 }

360261 ]

360262 },

360263 {

360264 "kind": "HttpTypeObject",

360265 "members": [

360266 {

360267 "ident": "code"

360268 },

360269 {

360270 "ident": "message"

360271 },

360272 {

360273 "ident": "type"

360274 }

360275 ]

360276 }

360277 ]

360278 },

360279 "childrenParentSchema": "union",

360280 "children": [

360281 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

360282 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

360283 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

360284 ]

360285 },

358341 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": {360286 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": {

358342 "kind": "HttpDeclReference",360287 "kind": "HttpDeclReference",

358343 "type": {360288 "type": {


365162 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0"367107 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0"

365163 ]367108 ]

365164 },367109 },

367110 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) code": {

367111 "kind": "HttpDeclProperty",

367112 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code",

367113 "deprecated": false,

367114 "key": "code",

367115 "type": {

367116 "kind": "HttpTypeNumber"

367117 },

367118 "optional": false,

367119 "nullable": false,

367120 "schemaType": "integer",

367121 "children": []

367122 },

367123 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) message": {

367124 "kind": "HttpDeclProperty",

367125 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message",

367126 "deprecated": false,

367127 "key": "message",

367128 "type": {

367129 "kind": "HttpTypeString"

367130 },

367131 "optional": false,

367132 "nullable": false,

367133 "schemaType": "string",

367134 "children": []

367135 },

367136 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type": {

367137 "kind": "HttpDeclProperty",

367138 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type",

367139 "deprecated": false,

367140 "key": "type",

367141 "type": {

367142 "kind": "HttpTypeUnion",

367143 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type",

367144 "types": [

367145 {

367146 "kind": "HttpTypeLiteral",

367147 "literal": "mcp_protocol_error"

367148 }

367149 ]

367150 },

367151 "default": "mcp_protocol_error",

367152 "optional": false,

367153 "nullable": false,

367154 "schemaType": "enum",

367155 "childrenParentSchema": "enum",

367156 "children": [

367157 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0"

367158 ]

367159 },

367160 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) content": {

367161 "kind": "HttpDeclProperty",

367162 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content",

367163 "deprecated": false,

367164 "key": "content",

367165 "type": {

367166 "kind": "HttpTypeUnknown"

367167 },

367168 "optional": false,

367169 "nullable": false,

367170 "schemaType": "unknown",

367171 "children": []

367172 },

367173 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type": {

367174 "kind": "HttpDeclProperty",

367175 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type",

367176 "deprecated": false,

367177 "key": "type",

367178 "type": {

367179 "kind": "HttpTypeUnion",

367180 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type",

367181 "types": [

367182 {

367183 "kind": "HttpTypeLiteral",

367184 "literal": "mcp_tool_execution_error"

367185 }

367186 ]

367187 },

367188 "default": "mcp_tool_execution_error",

367189 "optional": false,

367190 "nullable": false,

367191 "schemaType": "enum",

367192 "childrenParentSchema": "enum",

367193 "children": [

367194 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0"

367195 ]

367196 },

367197 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) code": {

367198 "kind": "HttpDeclProperty",

367199 "oasRef": "#/components/schemas/BetaHTTPError/properties/code",

367200 "deprecated": false,

367201 "key": "code",

367202 "type": {

367203 "kind": "HttpTypeNumber"

367204 },

367205 "optional": false,

367206 "nullable": false,

367207 "schemaType": "integer",

367208 "children": []

367209 },

367210 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) message": {

367211 "kind": "HttpDeclProperty",

367212 "oasRef": "#/components/schemas/BetaHTTPError/properties/message",

367213 "deprecated": false,

367214 "key": "message",

367215 "type": {

367216 "kind": "HttpTypeString"

367217 },

367218 "optional": false,

367219 "nullable": false,

367220 "schemaType": "string",

367221 "children": []

367222 },

367223 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type": {

367224 "kind": "HttpDeclProperty",

367225 "oasRef": "#/components/schemas/BetaHTTPError/properties/type",

367226 "deprecated": false,

367227 "key": "type",

367228 "type": {

367229 "kind": "HttpTypeUnion",

367230 "oasRef": "#/components/schemas/BetaHTTPError/properties/type",

367231 "types": [

367232 {

367233 "kind": "HttpTypeLiteral",

367234 "literal": "http_error"

367235 }

367236 ]

367237 },

367238 "default": "http_error",

367239 "optional": false,

367240 "nullable": false,

367241 "schemaType": "enum",

367242 "childrenParentSchema": "enum",

367243 "children": [

367244 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0"

367245 ]

367246 },

365165 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": {367247 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": {

365166 "kind": "HttpDeclProperty",367248 "kind": "HttpDeclProperty",

365167 "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type",367249 "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type",


368765 "literal": "program"370847 "literal": "program"

368766 }370848 }

368767 },370849 },

370850 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0": {

370851 "kind": "HttpDeclReference",

370852 "type": {

370853 "kind": "HttpTypeLiteral",

370854 "literal": "mcp_protocol_error"

370855 }

370856 },

370857 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0": {

370858 "kind": "HttpDeclReference",

370859 "type": {

370860 "kind": "HttpTypeLiteral",

370861 "literal": "mcp_tool_execution_error"

370862 }

370863 },

370864 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0": {

370865 "kind": "HttpDeclReference",

370866 "type": {

370867 "kind": "HttpTypeLiteral",

370868 "literal": "http_error"

370869 }

370870 },

368768 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": {370871 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": {

368769 "kind": "HttpDeclReference",370872 "kind": "HttpDeclReference",

368770 "type": {370873 "type": {


379978 },382081 },

379979 {382082 {

379980 "ident": "agent"382083 "ident": "agent"

382084 },

382085 {

382086 "ident": "background"

382087 },

382088 {

382089 "ident": "output_format"

382090 },

382091 {

382092 "ident": "quality"

382093 },

382094 {

382095 "ident": "size"

379981 }382096 }

379982 ]382097 ]

379983 },382098 },


379989 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) partial_image_index",382104 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) partial_image_index",

379990 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) sequence_number",382105 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) sequence_number",

379991 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) type",382106 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) type",

379992 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) agent"382107 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) agent",

382108 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) background",

382109 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) output_format",

382110 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) quality",

382111 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) size"

379993 ]382112 ]

379994 },382113 },

379995 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) item_id": {382114 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) item_id": {


380108 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) agent > (property) agent_name"382227 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) agent > (property) agent_name"

380109 ]382228 ]

380110 },382229 },

382230 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) background": {

382231 "kind": "HttpDeclProperty",

382232 "oasRef": "#/components/schemas/BetaResponseImageGenCallPartialImageEvent/properties/background",

382233 "deprecated": false,

382234 "key": "background",

382235 "docstring": "The background setting that was used.",

382236 "type": {

382237 "kind": "HttpTypeString"

382238 },

382239 "optional": true,

382240 "nullable": false,

382241 "schemaType": "string",

382242 "children": []

382243 },

382244 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) output_format": {

382245 "kind": "HttpDeclProperty",

382246 "oasRef": "#/components/schemas/BetaResponseImageGenCallPartialImageEvent/properties/output_format",

382247 "deprecated": false,

382248 "key": "output_format",

382249 "docstring": "The output format that was used.",

382250 "type": {

382251 "kind": "HttpTypeString"

382252 },

382253 "optional": true,

382254 "nullable": false,

382255 "schemaType": "string",

382256 "children": []

382257 },

382258 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) quality": {

382259 "kind": "HttpDeclProperty",

382260 "oasRef": "#/components/schemas/BetaResponseImageGenCallPartialImageEvent/properties/quality",

382261 "deprecated": false,

382262 "key": "quality",

382263 "docstring": "The image quality that was used.",

382264 "type": {

382265 "kind": "HttpTypeString"

382266 },

382267 "optional": true,

382268 "nullable": false,

382269 "schemaType": "string",

382270 "children": []

382271 },

382272 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) size": {

382273 "kind": "HttpDeclProperty",

382274 "oasRef": "#/components/schemas/BetaResponseImageGenCallPartialImageEvent/properties/size",

382275 "deprecated": false,

382276 "key": "size",

382277 "docstring": "The image size that was used.",

382278 "type": {

382279 "kind": "HttpTypeString"

382280 },

382281 "optional": true,

382282 "nullable": false,

382283 "schemaType": "string",

382284 "children": []

382285 },

380111 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) type > (member) 0": {382286 "(resource) beta.responses > (model) beta_response_image_gen_call_partial_image_event > (schema) > (property) type > (member) 0": {

380112 "kind": "HttpDeclReference",382287 "kind": "HttpDeclReference",

380113 "type": {382288 "type": {


382453 "oasRef": "#/components/schemas/BetaResponseOutputTextAnnotationAddedEvent/properties/annotation",384628 "oasRef": "#/components/schemas/BetaResponseOutputTextAnnotationAddedEvent/properties/annotation",

382454 "deprecated": false,384629 "deprecated": false,

382455 "key": "annotation",384630 "key": "annotation",

382456 "docstring": "The annotation object being added. (See annotation schema for details.)",384631 "docstring": "An annotation that applies to a span of output text.",

382457 "type": {384632 "type": {

382458 "kind": "HttpTypeUnknown"384633 "kind": "HttpTypeUnion",

384634 "oasRef": "#/components/schemas/BetaResponseOutputTextAnnotationAddedEvent/properties/annotation",

384635 "types": [

384636 {

384637 "kind": "HttpTypeObject",

384638 "members": [

384639 {

384640 "ident": "file_id"

384641 },

384642 {

384643 "ident": "filename"

384644 },

384645 {

384646 "ident": "index"

384647 },

384648 {

384649 "ident": "type"

384650 }

384651 ]

384652 },

384653 {

384654 "kind": "HttpTypeObject",

384655 "members": [

384656 {

384657 "ident": "end_index"

384658 },

384659 {

384660 "ident": "start_index"

384661 },

384662 {

384663 "ident": "title"

384664 },

384665 {

384666 "ident": "type"

384667 },

384668 {

384669 "ident": "url"

384670 }

384671 ]

384672 },

384673 {

384674 "kind": "HttpTypeObject",

384675 "members": [

384676 {

384677 "ident": "container_id"

384678 },

384679 {

384680 "ident": "end_index"

384681 },

384682 {

384683 "ident": "file_id"

384684 },

384685 {

384686 "ident": "filename"

384687 },

384688 {

384689 "ident": "start_index"

384690 },

384691 {

384692 "ident": "type"

384693 }

384694 ]

384695 },

384696 {

384697 "kind": "HttpTypeObject",

384698 "members": [

384699 {

384700 "ident": "file_id"

384701 },

384702 {

384703 "ident": "index"

384704 },

384705 {

384706 "ident": "type"

384707 }

384708 ]

384709 }

384710 ]

382459 },384711 },

382460 "optional": false,384712 "optional": false,

382461 "nullable": false,384713 "nullable": true,

382462 "schemaType": "unknown",384714 "schemaType": "union",

382463 "children": []384715 "childrenParentSchema": "union",

384716 "children": [

384717 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0",

384718 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1",

384719 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2",

384720 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3"

384721 ]

382464 },384722 },

382465 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation_index": {384723 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation_index": {

382466 "kind": "HttpDeclProperty",384724 "kind": "HttpDeclProperty",


382578 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) agent > (property) agent_name"384836 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) agent > (property) agent_name"

382579 ]384837 ]

382580 },384838 },

384839 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0": {

384840 "kind": "HttpDeclTypeAlias",

384841 "oasRef": "#/components/schemas/BetaAnnotation/oneOf/0",

384842 "docstring": "A citation to a file.",

384843 "ident": "FileCitation",

384844 "type": {

384845 "kind": "HttpTypeObject",

384846 "members": [

384847 {

384848 "ident": "file_id"

384849 },

384850 {

384851 "ident": "filename"

384852 },

384853 {

384854 "ident": "index"

384855 },

384856 {

384857 "ident": "type"

384858 }

384859 ]

384860 },

384861 "childrenParentSchema": "object",

384862 "children": [

384863 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) file_id",

384864 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) filename",

384865 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) index",

384866 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) type"

384867 ]

384868 },

384869 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1": {

384870 "kind": "HttpDeclTypeAlias",

384871 "oasRef": "#/components/schemas/BetaAnnotation/oneOf/1",

384872 "docstring": "A citation for a web resource used to generate a model response.",

384873 "ident": "URLCitation",

384874 "type": {

384875 "kind": "HttpTypeObject",

384876 "members": [

384877 {

384878 "ident": "end_index"

384879 },

384880 {

384881 "ident": "start_index"

384882 },

384883 {

384884 "ident": "title"

384885 },

384886 {

384887 "ident": "type"

384888 },

384889 {

384890 "ident": "url"

384891 }

384892 ]

384893 },

384894 "childrenParentSchema": "object",

384895 "children": [

384896 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) end_index",

384897 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) start_index",

384898 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) title",

384899 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) type",

384900 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) url"

384901 ]

384902 },

384903 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2": {

384904 "kind": "HttpDeclTypeAlias",

384905 "oasRef": "#/components/schemas/BetaAnnotation/oneOf/2",

384906 "docstring": "A citation for a container file used to generate a model response.",

384907 "ident": "ContainerFileCitation",

384908 "type": {

384909 "kind": "HttpTypeObject",

384910 "members": [

384911 {

384912 "ident": "container_id"

384913 },

384914 {

384915 "ident": "end_index"

384916 },

384917 {

384918 "ident": "file_id"

384919 },

384920 {

384921 "ident": "filename"

384922 },

384923 {

384924 "ident": "start_index"

384925 },

384926 {

384927 "ident": "type"

384928 }

384929 ]

384930 },

384931 "childrenParentSchema": "object",

384932 "children": [

384933 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) container_id",

384934 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) end_index",

384935 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) file_id",

384936 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) filename",

384937 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) start_index",

384938 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) type"

384939 ]

384940 },

384941 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3": {

384942 "kind": "HttpDeclTypeAlias",

384943 "oasRef": "#/components/schemas/BetaAnnotation/oneOf/3",

384944 "docstring": "A path to a file.\n",

384945 "ident": "FilePath",

384946 "type": {

384947 "kind": "HttpTypeObject",

384948 "members": [

384949 {

384950 "ident": "file_id"

384951 },

384952 {

384953 "ident": "index"

384954 },

384955 {

384956 "ident": "type"

384957 }

384958 ]

384959 },

384960 "childrenParentSchema": "object",

384961 "children": [

384962 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) file_id",

384963 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) index",

384964 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) type"

384965 ]

384966 },

382581 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) type > (member) 0": {384967 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) type > (member) 0": {

382582 "kind": "HttpDeclReference",384968 "kind": "HttpDeclReference",

382583 "type": {384969 "type": {


382598 "nullable": false,384984 "nullable": false,

382599 "schemaType": "string",384985 "schemaType": "string",

382600 "children": []384986 "children": []

384987 },

384988 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) file_id": {

384989 "kind": "HttpDeclProperty",

384990 "oasRef": "#/components/schemas/BetaFileCitationBody/properties/file_id",

384991 "deprecated": false,

384992 "key": "file_id",

384993 "docstring": "The ID of the file.",

384994 "type": {

384995 "kind": "HttpTypeString"

384996 },

384997 "optional": false,

384998 "nullable": false,

384999 "schemaType": "string",

385000 "children": []

385001 },

385002 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) filename": {

385003 "kind": "HttpDeclProperty",

385004 "oasRef": "#/components/schemas/BetaFileCitationBody/properties/filename",

385005 "deprecated": false,

385006 "key": "filename",

385007 "docstring": "The filename of the file cited.",

385008 "type": {

385009 "kind": "HttpTypeString"

385010 },

385011 "optional": false,

385012 "nullable": false,

385013 "schemaType": "string",

385014 "children": []

385015 },

385016 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) index": {

385017 "kind": "HttpDeclProperty",

385018 "oasRef": "#/components/schemas/BetaFileCitationBody/properties/index",

385019 "deprecated": false,

385020 "key": "index",

385021 "docstring": "The index of the file in the list of files.",

385022 "type": {

385023 "kind": "HttpTypeNumber"

385024 },

385025 "optional": false,

385026 "nullable": false,

385027 "schemaType": "integer",

385028 "children": []

385029 },

385030 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) type": {

385031 "kind": "HttpDeclProperty",

385032 "oasRef": "#/components/schemas/BetaFileCitationBody/properties/type",

385033 "deprecated": false,

385034 "key": "type",

385035 "docstring": "The type of the file citation. Always `file_citation`.",

385036 "type": {

385037 "kind": "HttpTypeUnion",

385038 "oasRef": "#/components/schemas/BetaFileCitationBody/properties/type",

385039 "types": [

385040 {

385041 "kind": "HttpTypeLiteral",

385042 "literal": "file_citation"

385043 }

385044 ]

385045 },

385046 "default": "file_citation",

385047 "optional": false,

385048 "nullable": false,

385049 "schemaType": "enum",

385050 "childrenParentSchema": "enum",

385051 "children": [

385052 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) type > (member) 0"

385053 ]

385054 },

385055 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) end_index": {

385056 "kind": "HttpDeclProperty",

385057 "oasRef": "#/components/schemas/BetaUrlCitationBody/properties/end_index",

385058 "deprecated": false,

385059 "key": "end_index",

385060 "docstring": "The index of the last character of the URL citation in the message.",

385061 "type": {

385062 "kind": "HttpTypeNumber"

385063 },

385064 "optional": false,

385065 "nullable": false,

385066 "schemaType": "integer",

385067 "children": []

385068 },

385069 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) start_index": {

385070 "kind": "HttpDeclProperty",

385071 "oasRef": "#/components/schemas/BetaUrlCitationBody/properties/start_index",

385072 "deprecated": false,

385073 "key": "start_index",

385074 "docstring": "The index of the first character of the URL citation in the message.",

385075 "type": {

385076 "kind": "HttpTypeNumber"

385077 },

385078 "optional": false,

385079 "nullable": false,

385080 "schemaType": "integer",

385081 "children": []

385082 },

385083 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) title": {

385084 "kind": "HttpDeclProperty",

385085 "oasRef": "#/components/schemas/BetaUrlCitationBody/properties/title",

385086 "deprecated": false,

385087 "key": "title",

385088 "docstring": "The title of the web resource.",

385089 "type": {

385090 "kind": "HttpTypeString"

385091 },

385092 "optional": false,

385093 "nullable": false,

385094 "schemaType": "string",

385095 "children": []

385096 },

385097 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) type": {

385098 "kind": "HttpDeclProperty",

385099 "oasRef": "#/components/schemas/BetaUrlCitationBody/properties/type",

385100 "deprecated": false,

385101 "key": "type",

385102 "docstring": "The type of the URL citation. Always `url_citation`.",

385103 "type": {

385104 "kind": "HttpTypeUnion",

385105 "oasRef": "#/components/schemas/BetaUrlCitationBody/properties/type",

385106 "types": [

385107 {

385108 "kind": "HttpTypeLiteral",

385109 "literal": "url_citation"

385110 }

385111 ]

385112 },

385113 "default": "url_citation",

385114 "optional": false,

385115 "nullable": false,

385116 "schemaType": "enum",

385117 "childrenParentSchema": "enum",

385118 "children": [

385119 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) type > (member) 0"

385120 ]

385121 },

385122 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) url": {

385123 "kind": "HttpDeclProperty",

385124 "oasRef": "#/components/schemas/BetaUrlCitationBody/properties/url",

385125 "deprecated": false,

385126 "key": "url",

385127 "docstring": "The URL of the web resource.",

385128 "type": {

385129 "kind": "HttpTypeString"

385130 },

385131 "constraints": {

385132 "format": "uri"

385133 },

385134 "optional": false,

385135 "nullable": false,

385136 "schemaType": "string",

385137 "children": []

385138 },

385139 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) container_id": {

385140 "kind": "HttpDeclProperty",

385141 "oasRef": "#/components/schemas/BetaContainerFileCitationBody/properties/container_id",

385142 "deprecated": false,

385143 "key": "container_id",

385144 "docstring": "The ID of the container file.",

385145 "type": {

385146 "kind": "HttpTypeString"

385147 },

385148 "optional": false,

385149 "nullable": false,

385150 "schemaType": "string",

385151 "children": []

385152 },

385153 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) end_index": {

385154 "kind": "HttpDeclProperty",

385155 "oasRef": "#/components/schemas/BetaContainerFileCitationBody/properties/end_index",

385156 "deprecated": false,

385157 "key": "end_index",

385158 "docstring": "The index of the last character of the container file citation in the message.",

385159 "type": {

385160 "kind": "HttpTypeNumber"

385161 },

385162 "optional": false,

385163 "nullable": false,

385164 "schemaType": "integer",

385165 "children": []

385166 },

385167 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) file_id": {

385168 "kind": "HttpDeclProperty",

385169 "oasRef": "#/components/schemas/BetaContainerFileCitationBody/properties/file_id",

385170 "deprecated": false,

385171 "key": "file_id",

385172 "docstring": "The ID of the file.",

385173 "type": {

385174 "kind": "HttpTypeString"

385175 },

385176 "optional": false,

385177 "nullable": false,

385178 "schemaType": "string",

385179 "children": []

385180 },

385181 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) filename": {

385182 "kind": "HttpDeclProperty",

385183 "oasRef": "#/components/schemas/BetaContainerFileCitationBody/properties/filename",

385184 "deprecated": false,

385185 "key": "filename",

385186 "docstring": "The filename of the container file cited.",

385187 "type": {

385188 "kind": "HttpTypeString"

385189 },

385190 "optional": false,

385191 "nullable": false,

385192 "schemaType": "string",

385193 "children": []

385194 },

385195 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) start_index": {

385196 "kind": "HttpDeclProperty",

385197 "oasRef": "#/components/schemas/BetaContainerFileCitationBody/properties/start_index",

385198 "deprecated": false,

385199 "key": "start_index",

385200 "docstring": "The index of the first character of the container file citation in the message.",

385201 "type": {

385202 "kind": "HttpTypeNumber"

385203 },

385204 "optional": false,

385205 "nullable": false,

385206 "schemaType": "integer",

385207 "children": []

385208 },

385209 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) type": {

385210 "kind": "HttpDeclProperty",

385211 "oasRef": "#/components/schemas/BetaContainerFileCitationBody/properties/type",

385212 "deprecated": false,

385213 "key": "type",

385214 "docstring": "The type of the container file citation. Always `container_file_citation`.",

385215 "type": {

385216 "kind": "HttpTypeUnion",

385217 "oasRef": "#/components/schemas/BetaContainerFileCitationBody/properties/type",

385218 "types": [

385219 {

385220 "kind": "HttpTypeLiteral",

385221 "literal": "container_file_citation"

385222 }

385223 ]

385224 },

385225 "default": "container_file_citation",

385226 "optional": false,

385227 "nullable": false,

385228 "schemaType": "enum",

385229 "childrenParentSchema": "enum",

385230 "children": [

385231 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) type > (member) 0"

385232 ]

385233 },

385234 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) file_id": {

385235 "kind": "HttpDeclProperty",

385236 "oasRef": "#/components/schemas/BetaFilePath/properties/file_id",

385237 "deprecated": false,

385238 "key": "file_id",

385239 "docstring": "The ID of the file.\n",

385240 "type": {

385241 "kind": "HttpTypeString"

385242 },

385243 "optional": false,

385244 "nullable": false,

385245 "schemaType": "string",

385246 "children": []

385247 },

385248 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) index": {

385249 "kind": "HttpDeclProperty",

385250 "oasRef": "#/components/schemas/BetaFilePath/properties/index",

385251 "deprecated": false,

385252 "key": "index",

385253 "docstring": "The index of the file in the list of files.\n",

385254 "type": {

385255 "kind": "HttpTypeNumber"

385256 },

385257 "optional": false,

385258 "nullable": false,

385259 "schemaType": "integer",

385260 "children": []

385261 },

385262 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) type": {

385263 "kind": "HttpDeclProperty",

385264 "oasRef": "#/components/schemas/BetaFilePath/properties/type",

385265 "deprecated": false,

385266 "key": "type",

385267 "docstring": "The type of the file path. Always `file_path`.\n",

385268 "type": {

385269 "kind": "HttpTypeUnion",

385270 "oasRef": "#/components/schemas/BetaFilePath/properties/type",

385271 "types": [

385272 {

385273 "kind": "HttpTypeLiteral",

385274 "literal": "file_path"

385275 }

385276 ]

385277 },

385278 "optional": false,

385279 "nullable": false,

385280 "schemaType": "enum",

385281 "childrenParentSchema": "enum",

385282 "children": [

385283 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) type > (member) 0"

385284 ]

385285 },

385286 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) type > (member) 0": {

385287 "kind": "HttpDeclReference",

385288 "type": {

385289 "kind": "HttpTypeLiteral",

385290 "literal": "file_citation"

385291 }

385292 },

385293 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) type > (member) 0": {

385294 "kind": "HttpDeclReference",

385295 "type": {

385296 "kind": "HttpTypeLiteral",

385297 "literal": "url_citation"

385298 }

385299 },

385300 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) type > (member) 0": {

385301 "kind": "HttpDeclReference",

385302 "type": {

385303 "kind": "HttpTypeLiteral",

385304 "literal": "container_file_citation"

385305 }

385306 },

385307 "(resource) beta.responses > (model) beta_response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) type > (member) 0": {

385308 "kind": "HttpDeclReference",

385309 "type": {

385310 "kind": "HttpTypeLiteral",

385311 "literal": "file_path"

385312 }

382601 }385313 }

382602}385314}

382603```385315```


382612 "content_index": 0,385324 "content_index": 0,

382613 "annotation_index": 0,385325 "annotation_index": 0,

382614 "annotation": {385326 "annotation": {

382615 "type": "text_annotation",385327 "type": "file_citation",

382616 "text": "This is a test annotation",385328 "file_id": "file-abc",

382617 "start": 0,385329 "index": 0,

382618 "end": 10385330 "filename": "example.txt"

382619 },385331 },

382620 "sequence_number": 1385332 "sequence_number": 1

382621}385333}


395065 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",397777 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",

395066 "deprecated": false,397778 "deprecated": false,

395067 "key": "encrypted_content",397779 "key": "encrypted_content",

395068 "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",397780 "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",

395069 "type": {397781 "type": {

395070 "kind": "HttpTypeString"397782 "kind": "HttpTypeString"

395071 },397783 },


398049 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",400761 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",

398050 "deprecated": false,400762 "deprecated": false,

398051 "key": "error",400763 "key": "error",

398052 "docstring": "The error from the tool call, if any.\n",400764 "docstring": "The error from the tool call, if any.",

398053 "type": {400765 "type": {

398054 "kind": "HttpTypeString"400766 "kind": "HttpTypeReference",

400767 "ident": "BetaMcpToolCallError",

400768 "$ref": "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)"

398055 },400769 },

398056 "optional": true,400770 "optional": true,

398057 "nullable": true,400771 "nullable": true,

398058 "schemaType": "string",400772 "modelImplicit": false,

398059 "children": []400773 "schemaType": "union",

400774 "modelPath": "(resource) beta.responses > (model) beta_mcp_tool_call_error",

400775 "childrenParentSchema": "union",

400776 "children": [

400777 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

400778 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

400779 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

400780 ]

398060 },400781 },

398061 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": {400782 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) output": {

398062 "kind": "HttpDeclProperty",400783 "kind": "HttpDeclProperty",


404754 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",407475 "oasRef": "#/components/schemas/BetaReasoningItem/properties/encrypted_content",

404755 "deprecated": false,407476 "deprecated": false,

404756 "key": "encrypted_content",407477 "key": "encrypted_content",

404757 "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",407478 "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",

404758 "type": {407479 "type": {

404759 "kind": "HttpTypeString"407480 "kind": "HttpTypeString"

404760 },407481 },


406679 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",409400 "oasRef": "#/components/schemas/BetaMCPToolCall/properties/error",

406680 "deprecated": false,409401 "deprecated": false,

406681 "key": "error",409402 "key": "error",

406682 "docstring": "The error from the tool call, if any.\n",409403 "docstring": "The error from the tool call, if any.",

406683 "type": {409404 "type": {

406684 "kind": "HttpTypeString"409405 "kind": "HttpTypeReference",

409406 "ident": "BetaMcpToolCallError",

409407 "$ref": "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)"

406685 },409408 },

406686 "optional": true,409409 "optional": true,

406687 "nullable": true,409410 "nullable": true,

406688 "schemaType": "string",409411 "modelImplicit": false,

406689 "children": []409412 "schemaType": "union",

409413 "modelPath": "(resource) beta.responses > (model) beta_mcp_tool_call_error",

409414 "childrenParentSchema": "union",

409415 "children": [

409416 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

409417 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

409418 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

409419 ]

406690 },409420 },

406691 "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) output": {409421 "(resource) beta.responses > (model) beta_response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 28 > (property) output": {

406692 "kind": "HttpDeclProperty",409422 "kind": "HttpDeclProperty",


411709 "schemaType": "string",414439 "schemaType": "string",

411710 "children": []414440 "children": []

411711 },414441 },

414442 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0": {

414443 "kind": "HttpDeclTypeAlias",

414444 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/0",

414445 "ident": "McpProtocolError",

414446 "type": {

414447 "kind": "HttpTypeObject",

414448 "members": [

414449 {

414450 "ident": "code"

414451 },

414452 {

414453 "ident": "message"

414454 },

414455 {

414456 "ident": "type"

414457 }

414458 ]

414459 },

414460 "childrenParentSchema": "object",

414461 "children": [

414462 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) code",

414463 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) message",

414464 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type"

414465 ]

414466 },

414467 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1": {

414468 "kind": "HttpDeclTypeAlias",

414469 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/1",

414470 "ident": "McpToolExecutionError",

414471 "type": {

414472 "kind": "HttpTypeObject",

414473 "members": [

414474 {

414475 "ident": "content"

414476 },

414477 {

414478 "ident": "type"

414479 }

414480 ]

414481 },

414482 "childrenParentSchema": "object",

414483 "children": [

414484 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) content",

414485 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type"

414486 ]

414487 },

414488 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2": {

414489 "kind": "HttpDeclTypeAlias",

414490 "oasRef": "#/components/schemas/BetaMCPToolCallError/oneOf/2",

414491 "ident": "HTTPError",

414492 "type": {

414493 "kind": "HttpTypeObject",

414494 "members": [

414495 {

414496 "ident": "code"

414497 },

414498 {

414499 "ident": "message"

414500 },

414501 {

414502 "ident": "type"

414503 }

414504 ]

414505 },

414506 "childrenParentSchema": "object",

414507 "children": [

414508 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) code",

414509 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) message",

414510 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type"

414511 ]

414512 },

414513 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema)": {

414514 "kind": "HttpDeclTypeAlias",

414515 "oasRef": "#/components/schemas/BetaMCPToolCallError",

414516 "ident": "BetaMcpToolCallError",

414517 "type": {

414518 "kind": "HttpTypeUnion",

414519 "oasRef": "#/components/schemas/BetaMCPToolCallError",

414520 "types": [

414521 {

414522 "kind": "HttpTypeObject",

414523 "members": [

414524 {

414525 "ident": "code"

414526 },

414527 {

414528 "ident": "message"

414529 },

414530 {

414531 "ident": "type"

414532 }

414533 ]

414534 },

414535 {

414536 "kind": "HttpTypeObject",

414537 "members": [

414538 {

414539 "ident": "content"

414540 },

414541 {

414542 "ident": "type"

414543 }

414544 ]

414545 },

414546 {

414547 "kind": "HttpTypeObject",

414548 "members": [

414549 {

414550 "ident": "code"

414551 },

414552 {

414553 "ident": "message"

414554 },

414555 {

414556 "ident": "type"

414557 }

414558 ]

414559 }

414560 ]

414561 },

414562 "childrenParentSchema": "union",

414563 "children": [

414564 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0",

414565 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1",

414566 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2"

414567 ]

414568 },

411712 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": {414569 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 25 > (property) status > (member) 0": {

411713 "kind": "HttpDeclReference",414570 "kind": "HttpDeclReference",

411714 "type": {414571 "type": {


424392 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0"427249 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 24 > (property) caller > (variant) 1 > (property) type > (member) 0"

424393 ]427250 ]

424394 },427251 },

427252 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) code": {

427253 "kind": "HttpDeclProperty",

427254 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/code",

427255 "deprecated": false,

427256 "key": "code",

427257 "type": {

427258 "kind": "HttpTypeNumber"

427259 },

427260 "optional": false,

427261 "nullable": false,

427262 "schemaType": "integer",

427263 "children": []

427264 },

427265 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) message": {

427266 "kind": "HttpDeclProperty",

427267 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/message",

427268 "deprecated": false,

427269 "key": "message",

427270 "type": {

427271 "kind": "HttpTypeString"

427272 },

427273 "optional": false,

427274 "nullable": false,

427275 "schemaType": "string",

427276 "children": []

427277 },

427278 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type": {

427279 "kind": "HttpDeclProperty",

427280 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type",

427281 "deprecated": false,

427282 "key": "type",

427283 "type": {

427284 "kind": "HttpTypeUnion",

427285 "oasRef": "#/components/schemas/BetaMCPProtocolError/properties/type",

427286 "types": [

427287 {

427288 "kind": "HttpTypeLiteral",

427289 "literal": "mcp_protocol_error"

427290 }

427291 ]

427292 },

427293 "default": "mcp_protocol_error",

427294 "optional": false,

427295 "nullable": false,

427296 "schemaType": "enum",

427297 "childrenParentSchema": "enum",

427298 "children": [

427299 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0"

427300 ]

427301 },

427302 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) content": {

427303 "kind": "HttpDeclProperty",

427304 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/content",

427305 "deprecated": false,

427306 "key": "content",

427307 "type": {

427308 "kind": "HttpTypeUnknown"

427309 },

427310 "optional": false,

427311 "nullable": false,

427312 "schemaType": "unknown",

427313 "children": []

427314 },

427315 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type": {

427316 "kind": "HttpDeclProperty",

427317 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type",

427318 "deprecated": false,

427319 "key": "type",

427320 "type": {

427321 "kind": "HttpTypeUnion",

427322 "oasRef": "#/components/schemas/BetaMCPToolExecutionError/properties/type",

427323 "types": [

427324 {

427325 "kind": "HttpTypeLiteral",

427326 "literal": "mcp_tool_execution_error"

427327 }

427328 ]

427329 },

427330 "default": "mcp_tool_execution_error",

427331 "optional": false,

427332 "nullable": false,

427333 "schemaType": "enum",

427334 "childrenParentSchema": "enum",

427335 "children": [

427336 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0"

427337 ]

427338 },

427339 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) code": {

427340 "kind": "HttpDeclProperty",

427341 "oasRef": "#/components/schemas/BetaHTTPError/properties/code",

427342 "deprecated": false,

427343 "key": "code",

427344 "type": {

427345 "kind": "HttpTypeNumber"

427346 },

427347 "optional": false,

427348 "nullable": false,

427349 "schemaType": "integer",

427350 "children": []

427351 },

427352 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) message": {

427353 "kind": "HttpDeclProperty",

427354 "oasRef": "#/components/schemas/BetaHTTPError/properties/message",

427355 "deprecated": false,

427356 "key": "message",

427357 "type": {

427358 "kind": "HttpTypeString"

427359 },

427360 "optional": false,

427361 "nullable": false,

427362 "schemaType": "string",

427363 "children": []

427364 },

427365 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type": {

427366 "kind": "HttpDeclProperty",

427367 "oasRef": "#/components/schemas/BetaHTTPError/properties/type",

427368 "deprecated": false,

427369 "key": "type",

427370 "type": {

427371 "kind": "HttpTypeUnion",

427372 "oasRef": "#/components/schemas/BetaHTTPError/properties/type",

427373 "types": [

427374 {

427375 "kind": "HttpTypeLiteral",

427376 "literal": "http_error"

427377 }

427378 ]

427379 },

427380 "default": "http_error",

427381 "optional": false,

427382 "nullable": false,

427383 "schemaType": "enum",

427384 "childrenParentSchema": "enum",

427385 "children": [

427386 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0"

427387 ]

427388 },

424395 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": {427389 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type": {

424396 "kind": "HttpDeclProperty",427390 "kind": "HttpDeclProperty",

424397 "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type",427391 "oasRef": "#/components/schemas/BetaDirectToolCallCaller/properties/type",


434846 "literal": "program"437840 "literal": "program"

434847 }437841 }

434848 },437842 },

437843 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0": {

437844 "kind": "HttpDeclReference",

437845 "type": {

437846 "kind": "HttpTypeLiteral",

437847 "literal": "mcp_protocol_error"

437848 }

437849 },

437850 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0": {

437851 "kind": "HttpDeclReference",

437852 "type": {

437853 "kind": "HttpTypeLiteral",

437854 "literal": "mcp_tool_execution_error"

437855 }

437856 },

437857 "(resource) beta.responses > (model) beta_mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0": {

437858 "kind": "HttpDeclReference",

437859 "type": {

437860 "kind": "HttpTypeLiteral",

437861 "literal": "http_error"

437862 }

437863 },

434849 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": {437864 "(resource) beta.responses > (model) beta_response_output_item > (schema) > (variant) 29 > (property) caller > (variant) 0 > (property) type > (member) 0": {

434850 "kind": "HttpDeclReference",437865 "kind": "HttpDeclReference",

434851 "type": {437866 "type": {

Details

3721 for reasoning items returned by `POST /v1/responses` and WebSocket3721 for reasoning items returned by `POST /v1/responses` and WebSocket

3722 `response.create` requests.3722 `response.create` requests.

3723 3723 

3724 When streaming, use the completed reasoning item and its

3725 `encrypted_content` from the `response.output_item.done` event in

3726 subsequent requests. The `encrypted_content` in

3727 `response.output_item.added` may be incomplete. This is especially

3728 important when `store` is `false` or when using Zero Data Retention.

3729 

3724 - `status: optional "in_progress" or "completed" or "incomplete"`3730 - `status: optional "in_progress" or "completed" or "incomplete"`

3725 3731 

3726 The status of the item. One of `in_progress`, `completed`, or3732 The status of the item. One of `in_progress`, `completed`, or


4586 Unique identifier for the MCP tool call approval request.4592 Unique identifier for the MCP tool call approval request.

4587 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.4593 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

4588 4594 

4589 - `error: optional string or null`4595 - `error: optional BetaMcpToolCallError or null`

4590 4596 

4591 The error from the tool call, if any.4597 The error from the tool call, if any.

4592 4598 

4599 - `McpProtocolError object { code, message, type }`

4600 

4601 - `code: number`

4602 

4603 - `message: string`

4604 

4605 - `type: "mcp_protocol_error"`

4606 

4607 - `"mcp_protocol_error"`

4608 

4609 - `McpToolExecutionError object { content, type }`

4610 

4611 - `content: unknown`

4612 

4613 - `type: "mcp_tool_execution_error"`

4614 

4615 - `"mcp_tool_execution_error"`

4616 

4617 - `HTTPError object { code, message, type }`

4618 

4619 - `code: number`

4620 

4621 - `message: string`

4622 

4623 - `type: "http_error"`

4624 

4625 - `"http_error"`

4626 

4593 - `output: optional string or null`4627 - `output: optional string or null`

4594 4628 

4595 The output from the tool call.4629 The output from the tool call.


8519 for reasoning items returned by `POST /v1/responses` and WebSocket8553 for reasoning items returned by `POST /v1/responses` and WebSocket

8520 `response.create` requests.8554 `response.create` requests.

8521 8555 

8556 When streaming, use the completed reasoning item and its

8557 `encrypted_content` from the `response.output_item.done` event in

8558 subsequent requests. The `encrypted_content` in

8559 `response.output_item.added` may be incomplete. This is especially

8560 important when `store` is `false` or when using Zero Data Retention.

8561 

8522 - `status: optional "in_progress" or "completed" or "incomplete"`8562 - `status: optional "in_progress" or "completed" or "incomplete"`

8523 8563 

8524 The status of the item. One of `in_progress`, `completed`, or8564 The status of the item. One of `in_progress`, `completed`, or


9384 Unique identifier for the MCP tool call approval request.9424 Unique identifier for the MCP tool call approval request.

9385 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.9425 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

9386 9426 

9387 - `error: optional string or null`9427 - `error: optional BetaMcpToolCallError or null`

9388 9428 

9389 The error from the tool call, if any.9429 The error from the tool call, if any.

9390 9430 

9431 - `McpProtocolError object { code, message, type }`

9432 

9433 - `code: number`

9434 

9435 - `message: string`

9436 

9437 - `type: "mcp_protocol_error"`

9438 

9439 - `"mcp_protocol_error"`

9440 

9441 - `McpToolExecutionError object { content, type }`

9442 

9443 - `content: unknown`

9444 

9445 - `type: "mcp_tool_execution_error"`

9446 

9447 - `"mcp_tool_execution_error"`

9448 

9449 - `HTTPError object { code, message, type }`

9450 

9451 - `code: number`

9452 

9453 - `message: string`

9454 

9455 - `type: "http_error"`

9456 

9457 - `"http_error"`

9458 

9391 - `output: optional string or null`9459 - `output: optional string or null`

9392 9460 

9393 The output from the tool call.9461 The output from the tool call.

Details

3719 for reasoning items returned by `POST /v1/responses` and WebSocket3719 for reasoning items returned by `POST /v1/responses` and WebSocket

3720 `response.create` requests.3720 `response.create` requests.

3721 3721 

3722 When streaming, use the completed reasoning item and its

3723 `encrypted_content` from the `response.output_item.done` event in

3724 subsequent requests. The `encrypted_content` in

3725 `response.output_item.added` may be incomplete. This is especially

3726 important when `store` is `false` or when using Zero Data Retention.

3727 

3722 - `status: optional "in_progress" or "completed" or "incomplete"`3728 - `status: optional "in_progress" or "completed" or "incomplete"`

3723 3729 

3724 The status of the item. One of `in_progress`, `completed`, or3730 The status of the item. One of `in_progress`, `completed`, or


4584 Unique identifier for the MCP tool call approval request.4590 Unique identifier for the MCP tool call approval request.

4585 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.4591 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

4586 4592 

4587 - `error: optional string or null`4593 - `error: optional BetaMcpToolCallError or null`

4588 4594 

4589 The error from the tool call, if any.4595 The error from the tool call, if any.

4590 4596 

4597 - `McpProtocolError object { code, message, type }`

4598 

4599 - `code: number`

4600 

4601 - `message: string`

4602 

4603 - `type: "mcp_protocol_error"`

4604 

4605 - `"mcp_protocol_error"`

4606 

4607 - `McpToolExecutionError object { content, type }`

4608 

4609 - `content: unknown`

4610 

4611 - `type: "mcp_tool_execution_error"`

4612 

4613 - `"mcp_tool_execution_error"`

4614 

4615 - `HTTPError object { code, message, type }`

4616 

4617 - `code: number`

4618 

4619 - `message: string`

4620 

4621 - `type: "http_error"`

4622 

4623 - `"http_error"`

4624 

4591 - `output: optional string or null`4625 - `output: optional string or null`

4592 4626 

4593 The output from the tool call.4627 The output from the tool call.

Details

3797 for reasoning items returned by `POST /v1/responses` and WebSocket3797 for reasoning items returned by `POST /v1/responses` and WebSocket

3798 `response.create` requests.3798 `response.create` requests.

3799 3799 

3800 When streaming, use the completed reasoning item and its

3801 `encrypted_content` from the `response.output_item.done` event in

3802 subsequent requests. The `encrypted_content` in

3803 `response.output_item.added` may be incomplete. This is especially

3804 important when `store` is `false` or when using Zero Data Retention.

3805 

3800 - `status: optional "in_progress" or "completed" or "incomplete"`3806 - `status: optional "in_progress" or "completed" or "incomplete"`

3801 3807 

3802 The status of the item. One of `in_progress`, `completed`, or3808 The status of the item. One of `in_progress`, `completed`, or


4570 Unique identifier for the MCP tool call approval request.4576 Unique identifier for the MCP tool call approval request.

4571 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.4577 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

4572 4578 

4573 - `error: optional string or null`4579 - `error: optional BetaMcpToolCallError or null`

4574 4580 

4575 The error from the tool call, if any.4581 The error from the tool call, if any.

4576 4582 

4583 - `McpProtocolError object { code, message, type }`

4584 

4585 - `code: number`

4586 

4587 - `message: string`

4588 

4589 - `type: "mcp_protocol_error"`

4590 

4591 - `"mcp_protocol_error"`

4592 

4593 - `McpToolExecutionError object { content, type }`

4594 

4595 - `content: unknown`

4596 

4597 - `type: "mcp_tool_execution_error"`

4598 

4599 - `"mcp_tool_execution_error"`

4600 

4601 - `HTTPError object { code, message, type }`

4602 

4603 - `code: number`

4604 

4605 - `message: string`

4606 

4607 - `type: "http_error"`

4608 

4609 - `"http_error"`

4610 

4577 - `output: optional string or null`4611 - `output: optional string or null`

4578 4612 

4579 The output from the tool call.4613 The output from the tool call.

Details

3795 for reasoning items returned by `POST /v1/responses` and WebSocket3795 for reasoning items returned by `POST /v1/responses` and WebSocket

3796 `response.create` requests.3796 `response.create` requests.

3797 3797 

3798 When streaming, use the completed reasoning item and its

3799 `encrypted_content` from the `response.output_item.done` event in

3800 subsequent requests. The `encrypted_content` in

3801 `response.output_item.added` may be incomplete. This is especially

3802 important when `store` is `false` or when using Zero Data Retention.

3803 

3798 - `status: optional "in_progress" or "completed" or "incomplete"`3804 - `status: optional "in_progress" or "completed" or "incomplete"`

3799 3805 

3800 The status of the item. One of `in_progress`, `completed`, or3806 The status of the item. One of `in_progress`, `completed`, or


4568 Unique identifier for the MCP tool call approval request.4574 Unique identifier for the MCP tool call approval request.

4569 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.4575 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

4570 4576 

4571 - `error: optional string or null`4577 - `error: optional BetaMcpToolCallError or null`

4572 4578 

4573 The error from the tool call, if any.4579 The error from the tool call, if any.

4574 4580 

4581 - `McpProtocolError object { code, message, type }`

4582 

4583 - `code: number`

4584 

4585 - `message: string`

4586 

4587 - `type: "mcp_protocol_error"`

4588 

4589 - `"mcp_protocol_error"`

4590 

4591 - `McpToolExecutionError object { content, type }`

4592 

4593 - `content: unknown`

4594 

4595 - `type: "mcp_tool_execution_error"`

4596 

4597 - `"mcp_tool_execution_error"`

4598 

4599 - `HTTPError object { code, message, type }`

4600 

4601 - `code: number`

4602 

4603 - `message: string`

4604 

4605 - `type: "http_error"`

4606 

4607 - `"http_error"`

4608 

4575 - `output: optional string or null`4609 - `output: optional string or null`

4576 4610 

4577 The output from the tool call.4611 The output from the tool call.

Details

1398 1398 

1399### Returns1399### Returns

1400 1400 

1401- `ChatCompletion object { id, choices, created, 6 more }`1401- `ChatCompletion object { id, choices, created, 7 more }`

1402 1402 

1403 Represents a chat completion response returned by model, based on the provided input.1403 Represents a chat completion response returned by model, based on the provided input.

1404 1404 


1643 1643 

1644 - `"chat.completion"`1644 - `"chat.completion"`

1645 1645 

1646 - `metadata: optional Metadata or null`

1647 

1648 Set of 16 key-value pairs that can be attached to an object. This can be

1649 useful for storing additional information about the object in a structured

1650 format, and querying for objects via API or the dashboard.

1651 

1652 Keys are strings with a maximum length of 64 characters. Values are strings

1653 with a maximum length of 512 characters.

1654 

1646 - `moderation: optional object { input, output } or null`1655 - `moderation: optional object { input, output } or null`

1647 1656 

1648 Moderation results for the request input and generated output, if moderated1657 Moderation results for the request input and generated output, if moderated


1834 1843 

1835 Total number of tokens used in the request (prompt + completion).1844 Total number of tokens used in the request (prompt + completion).

1836 1845 

1837 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, rejected_prediction_tokens }`1846 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, 2 more }`

1838 1847 

1839 Breakdown of tokens used in a completion.1848 Breakdown of tokens used in a completion.

1840 1849 


1859 completion tokens for purposes of billing, output, and context window1868 completion tokens for purposes of billing, output, and context window

1860 limits.1869 limits.

1861 1870 

1862 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens }`1871 - `text_tokens: optional number`

1872 

1873 Text output tokens generated by the model.

1874 

1875 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens, 2 more }`

1863 1876 

1864 Breakdown of tokens used in the prompt.1877 Breakdown of tokens used in the prompt.

1865 1878 


1875 1888 

1876 Cached tokens present in the prompt.1889 Cached tokens present in the prompt.

1877 1890 

1891 - `image_tokens: optional number`

1892 

1893 Image input tokens present in the prompt.

1894 

1895 - `text_tokens: optional number`

1896 

1897 Text input tokens present in the prompt.

1898 

1878### Example1899### Example

1879 1900 

1880```http1901```http


1986 "created": 0,2007 "created": 0,

1987 "model": "model",2008 "model": "model",

1988 "object": "chat.completion",2009 "object": "chat.completion",

2010 "metadata": {

2011 "foo": "string"

2012 },

1989 "moderation": {2013 "moderation": {

1990 "input": {2014 "input": {

1991 "model": "model",2015 "model": "model",


2042 "accepted_prediction_tokens": 0,2066 "accepted_prediction_tokens": 0,

2043 "audio_tokens": 0,2067 "audio_tokens": 0,

2044 "reasoning_tokens": 0,2068 "reasoning_tokens": 0,

2045 "rejected_prediction_tokens": 02069 "rejected_prediction_tokens": 0,

2070 "text_tokens": 0

2046 },2071 },

2047 "prompt_tokens_details": {2072 "prompt_tokens_details": {

2048 "audio_tokens": 0,2073 "audio_tokens": 0,

2049 "cache_write_tokens": 0,2074 "cache_write_tokens": 0,

2050 "cached_tokens": 02075 "cached_tokens": 0,

2076 "image_tokens": 0,

2077 "text_tokens": 0

2051 }2078 }

2052 }2079 }

2053}2080}


2860 2887 

2861 - `"chat.completion"`2888 - `"chat.completion"`

2862 2889 

2890 - `metadata: optional Metadata or null`

2891 

2892 Set of 16 key-value pairs that can be attached to an object. This can be

2893 useful for storing additional information about the object in a structured

2894 format, and querying for objects via API or the dashboard.

2895 

2896 Keys are strings with a maximum length of 64 characters. Values are strings

2897 with a maximum length of 512 characters.

2898 

2863 - `moderation: optional object { input, output } or null`2899 - `moderation: optional object { input, output } or null`

2864 2900 

2865 Moderation results for the request input and generated output, if moderated2901 Moderation results for the request input and generated output, if moderated


3051 3087 

3052 Total number of tokens used in the request (prompt + completion).3088 Total number of tokens used in the request (prompt + completion).

3053 3089 

3054 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, rejected_prediction_tokens }`3090 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, 2 more }`

3055 3091 

3056 Breakdown of tokens used in a completion.3092 Breakdown of tokens used in a completion.

3057 3093 


3076 completion tokens for purposes of billing, output, and context window3112 completion tokens for purposes of billing, output, and context window

3077 limits.3113 limits.

3078 3114 

3079 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens }`3115 - `text_tokens: optional number`

3116 

3117 Text output tokens generated by the model.

3118 

3119 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens, 2 more }`

3080 3120 

3081 Breakdown of tokens used in the prompt.3121 Breakdown of tokens used in the prompt.

3082 3122 


3092 3132 

3093 Cached tokens present in the prompt.3133 Cached tokens present in the prompt.

3094 3134 

3135 - `image_tokens: optional number`

3136 

3137 Image input tokens present in the prompt.

3138 

3139 - `text_tokens: optional number`

3140 

3141 Text input tokens present in the prompt.

3142 

3095- `first_id: string`3143- `first_id: string`

3096 3144 

3097 The identifier of the first chat completion in the data array.3145 The identifier of the first chat completion in the data array.


3207 "created": 0,3255 "created": 0,

3208 "model": "model",3256 "model": "model",

3209 "object": "chat.completion",3257 "object": "chat.completion",

3258 "metadata": {

3259 "foo": "string"

3260 },

3210 "moderation": {3261 "moderation": {

3211 "input": {3262 "input": {

3212 "model": "model",3263 "model": "model",


3263 "accepted_prediction_tokens": 0,3314 "accepted_prediction_tokens": 0,

3264 "audio_tokens": 0,3315 "audio_tokens": 0,

3265 "reasoning_tokens": 0,3316 "reasoning_tokens": 0,

3266 "rejected_prediction_tokens": 03317 "rejected_prediction_tokens": 0,

3318 "text_tokens": 0

3267 },3319 },

3268 "prompt_tokens_details": {3320 "prompt_tokens_details": {

3269 "audio_tokens": 0,3321 "audio_tokens": 0,

3270 "cache_write_tokens": 0,3322 "cache_write_tokens": 0,

3271 "cached_tokens": 03323 "cached_tokens": 0,

3324 "image_tokens": 0,

3325 "text_tokens": 0

3272 }3326 }

3273 }3327 }

3274 }3328 }


3351 3405 

3352### Returns3406### Returns

3353 3407 

3354- `ChatCompletion object { id, choices, created, 6 more }`3408- `ChatCompletion object { id, choices, created, 7 more }`

3355 3409 

3356 Represents a chat completion response returned by model, based on the provided input.3410 Represents a chat completion response returned by model, based on the provided input.

3357 3411 


3596 3650 

3597 - `"chat.completion"`3651 - `"chat.completion"`

3598 3652 

3653 - `metadata: optional Metadata or null`

3654 

3655 Set of 16 key-value pairs that can be attached to an object. This can be

3656 useful for storing additional information about the object in a structured

3657 format, and querying for objects via API or the dashboard.

3658 

3659 Keys are strings with a maximum length of 64 characters. Values are strings

3660 with a maximum length of 512 characters.

3661 

3599 - `moderation: optional object { input, output } or null`3662 - `moderation: optional object { input, output } or null`

3600 3663 

3601 Moderation results for the request input and generated output, if moderated3664 Moderation results for the request input and generated output, if moderated


3787 3850 

3788 Total number of tokens used in the request (prompt + completion).3851 Total number of tokens used in the request (prompt + completion).

3789 3852 

3790 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, rejected_prediction_tokens }`3853 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, 2 more }`

3791 3854 

3792 Breakdown of tokens used in a completion.3855 Breakdown of tokens used in a completion.

3793 3856 


3812 completion tokens for purposes of billing, output, and context window3875 completion tokens for purposes of billing, output, and context window

3813 limits.3876 limits.

3814 3877 

3815 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens }`3878 - `text_tokens: optional number`

3879 

3880 Text output tokens generated by the model.

3881 

3882 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens, 2 more }`

3816 3883 

3817 Breakdown of tokens used in the prompt.3884 Breakdown of tokens used in the prompt.

3818 3885 


3828 3895 

3829 Cached tokens present in the prompt.3896 Cached tokens present in the prompt.

3830 3897 

3898 - `image_tokens: optional number`

3899 

3900 Image input tokens present in the prompt.

3901 

3902 - `text_tokens: optional number`

3903 

3904 Text input tokens present in the prompt.

3905 

3831### Example3906### Example

3832 3907 

3833```http3908```http


3923 "created": 0,3998 "created": 0,

3924 "model": "model",3999 "model": "model",

3925 "object": "chat.completion",4000 "object": "chat.completion",

4001 "metadata": {

4002 "foo": "string"

4003 },

3926 "moderation": {4004 "moderation": {

3927 "input": {4005 "input": {

3928 "model": "model",4006 "model": "model",


3979 "accepted_prediction_tokens": 0,4057 "accepted_prediction_tokens": 0,

3980 "audio_tokens": 0,4058 "audio_tokens": 0,

3981 "reasoning_tokens": 0,4059 "reasoning_tokens": 0,

3982 "rejected_prediction_tokens": 04060 "rejected_prediction_tokens": 0,

4061 "text_tokens": 0

3983 },4062 },

3984 "prompt_tokens_details": {4063 "prompt_tokens_details": {

3985 "audio_tokens": 0,4064 "audio_tokens": 0,

3986 "cache_write_tokens": 0,4065 "cache_write_tokens": 0,

3987 "cached_tokens": 04066 "cached_tokens": 0,

4067 "image_tokens": 0,

4068 "text_tokens": 0

3988 }4069 }

3989 }4070 }

3990}4071}


4065 4146 

4066### Returns4147### Returns

4067 4148 

4068- `ChatCompletion object { id, choices, created, 6 more }`4149- `ChatCompletion object { id, choices, created, 7 more }`

4069 4150 

4070 Represents a chat completion response returned by model, based on the provided input.4151 Represents a chat completion response returned by model, based on the provided input.

4071 4152 


4310 4391 

4311 - `"chat.completion"`4392 - `"chat.completion"`

4312 4393 

4394 - `metadata: optional Metadata or null`

4395 

4396 Set of 16 key-value pairs that can be attached to an object. This can be

4397 useful for storing additional information about the object in a structured

4398 format, and querying for objects via API or the dashboard.

4399 

4400 Keys are strings with a maximum length of 64 characters. Values are strings

4401 with a maximum length of 512 characters.

4402 

4313 - `moderation: optional object { input, output } or null`4403 - `moderation: optional object { input, output } or null`

4314 4404 

4315 Moderation results for the request input and generated output, if moderated4405 Moderation results for the request input and generated output, if moderated


4501 4591 

4502 Total number of tokens used in the request (prompt + completion).4592 Total number of tokens used in the request (prompt + completion).

4503 4593 

4504 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, rejected_prediction_tokens }`4594 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, 2 more }`

4505 4595 

4506 Breakdown of tokens used in a completion.4596 Breakdown of tokens used in a completion.

4507 4597 


4526 completion tokens for purposes of billing, output, and context window4616 completion tokens for purposes of billing, output, and context window

4527 limits.4617 limits.

4528 4618 

4529 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens }`4619 - `text_tokens: optional number`

4620 

4621 Text output tokens generated by the model.

4622 

4623 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens, 2 more }`

4530 4624 

4531 Breakdown of tokens used in the prompt.4625 Breakdown of tokens used in the prompt.

4532 4626 


4542 4636 

4543 Cached tokens present in the prompt.4637 Cached tokens present in the prompt.

4544 4638 

4639 - `image_tokens: optional number`

4640 

4641 Image input tokens present in the prompt.

4642 

4643 - `text_tokens: optional number`

4644 

4645 Text input tokens present in the prompt.

4646 

4545### Example4647### Example

4546 4648 

4547```http4649```http


4643 "created": 0,4745 "created": 0,

4644 "model": "model",4746 "model": "model",

4645 "object": "chat.completion",4747 "object": "chat.completion",

4748 "metadata": {

4749 "foo": "string"

4750 },

4646 "moderation": {4751 "moderation": {

4647 "input": {4752 "input": {

4648 "model": "model",4753 "model": "model",


4699 "accepted_prediction_tokens": 0,4804 "accepted_prediction_tokens": 0,

4700 "audio_tokens": 0,4805 "audio_tokens": 0,

4701 "reasoning_tokens": 0,4806 "reasoning_tokens": 0,

4702 "rejected_prediction_tokens": 04807 "rejected_prediction_tokens": 0,

4808 "text_tokens": 0

4703 },4809 },

4704 "prompt_tokens_details": {4810 "prompt_tokens_details": {

4705 "audio_tokens": 0,4811 "audio_tokens": 0,

4706 "cache_write_tokens": 0,4812 "cache_write_tokens": 0,

4707 "cached_tokens": 04813 "cached_tokens": 0,

4814 "image_tokens": 0,

4815 "text_tokens": 0

4708 }4816 }

4709 }4817 }

4710}4818}


4799 4907 

4800### Chat Completion4908### Chat Completion

4801 4909 

4802- `ChatCompletion object { id, choices, created, 6 more }`4910- `ChatCompletion object { id, choices, created, 7 more }`

4803 4911 

4804 Represents a chat completion response returned by model, based on the provided input.4912 Represents a chat completion response returned by model, based on the provided input.

4805 4913 


5044 5152 

5045 - `"chat.completion"`5153 - `"chat.completion"`

5046 5154 

5155 - `metadata: optional Metadata or null`

5156 

5157 Set of 16 key-value pairs that can be attached to an object. This can be

5158 useful for storing additional information about the object in a structured

5159 format, and querying for objects via API or the dashboard.

5160 

5161 Keys are strings with a maximum length of 64 characters. Values are strings

5162 with a maximum length of 512 characters.

5163 

5047 - `moderation: optional object { input, output } or null`5164 - `moderation: optional object { input, output } or null`

5048 5165 

5049 Moderation results for the request input and generated output, if moderated5166 Moderation results for the request input and generated output, if moderated


5235 5352 

5236 Total number of tokens used in the request (prompt + completion).5353 Total number of tokens used in the request (prompt + completion).

5237 5354 

5238 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, rejected_prediction_tokens }`5355 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, 2 more }`

5239 5356 

5240 Breakdown of tokens used in a completion.5357 Breakdown of tokens used in a completion.

5241 5358 


5260 completion tokens for purposes of billing, output, and context window5377 completion tokens for purposes of billing, output, and context window

5261 limits.5378 limits.

5262 5379 

5263 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens }`5380 - `text_tokens: optional number`

5381 

5382 Text output tokens generated by the model.

5383 

5384 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens, 2 more }`

5264 5385 

5265 Breakdown of tokens used in the prompt.5386 Breakdown of tokens used in the prompt.

5266 5387 


5276 5397 

5277 Cached tokens present in the prompt.5398 Cached tokens present in the prompt.

5278 5399 

5400 - `image_tokens: optional number`

5401 

5402 Image input tokens present in the prompt.

5403 

5404 - `text_tokens: optional number`

5405 

5406 Text input tokens present in the prompt.

5407 

5279### Chat Completion Allowed Tool Choice5408### Chat Completion Allowed Tool Choice

5280 5409 

5281- `ChatCompletionAllowedToolChoice object { allowed_tools, type }`5410- `ChatCompletionAllowedToolChoice object { allowed_tools, type }`


5919 6048 

5920 Total number of tokens used in the request (prompt + completion).6049 Total number of tokens used in the request (prompt + completion).

5921 6050 

5922 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, rejected_prediction_tokens }`6051 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, 2 more }`

5923 6052 

5924 Breakdown of tokens used in a completion.6053 Breakdown of tokens used in a completion.

5925 6054 


5944 completion tokens for purposes of billing, output, and context window6073 completion tokens for purposes of billing, output, and context window

5945 limits.6074 limits.

5946 6075 

5947 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens }`6076 - `text_tokens: optional number`

6077 

6078 Text output tokens generated by the model.

6079 

6080 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens, 2 more }`

5948 6081 

5949 Breakdown of tokens used in the prompt.6082 Breakdown of tokens used in the prompt.

5950 6083 


5960 6093 

5961 Cached tokens present in the prompt.6094 Cached tokens present in the prompt.

5962 6095 

6096 - `image_tokens: optional number`

6097 

6098 Image input tokens present in the prompt.

6099 

6100 - `text_tokens: optional number`

6101 

6102 Text input tokens present in the prompt.

6103 

5963### Chat Completion Content Part6104### Chat Completion Content Part

5964 6105 

5965- `ChatCompletionContentPart = ChatCompletionContentPartText or ChatCompletionContentPartImage or ChatCompletionContentPartInputAudio or object { file, type, prompt_cache_breakpoint }`6106- `ChatCompletionContentPart = ChatCompletionContentPartText or ChatCompletionContentPartImage or ChatCompletionContentPartInputAudio or object { file, type, prompt_cache_breakpoint }`

Details

1396 1396 

1397### Returns1397### Returns

1398 1398 

1399- `ChatCompletion object { id, choices, created, 6 more }`1399- `ChatCompletion object { id, choices, created, 7 more }`

1400 1400 

1401 Represents a chat completion response returned by model, based on the provided input.1401 Represents a chat completion response returned by model, based on the provided input.

1402 1402 


1641 1641 

1642 - `"chat.completion"`1642 - `"chat.completion"`

1643 1643 

1644 - `metadata: optional Metadata or null`

1645 

1646 Set of 16 key-value pairs that can be attached to an object. This can be

1647 useful for storing additional information about the object in a structured

1648 format, and querying for objects via API or the dashboard.

1649 

1650 Keys are strings with a maximum length of 64 characters. Values are strings

1651 with a maximum length of 512 characters.

1652 

1644 - `moderation: optional object { input, output } or null`1653 - `moderation: optional object { input, output } or null`

1645 1654 

1646 Moderation results for the request input and generated output, if moderated1655 Moderation results for the request input and generated output, if moderated


1832 1841 

1833 Total number of tokens used in the request (prompt + completion).1842 Total number of tokens used in the request (prompt + completion).

1834 1843 

1835 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, rejected_prediction_tokens }`1844 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, 2 more }`

1836 1845 

1837 Breakdown of tokens used in a completion.1846 Breakdown of tokens used in a completion.

1838 1847 


1857 completion tokens for purposes of billing, output, and context window1866 completion tokens for purposes of billing, output, and context window

1858 limits.1867 limits.

1859 1868 

1860 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens }`1869 - `text_tokens: optional number`

1870 

1871 Text output tokens generated by the model.

1872 

1873 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens, 2 more }`

1861 1874 

1862 Breakdown of tokens used in the prompt.1875 Breakdown of tokens used in the prompt.

1863 1876 


1873 1886 

1874 Cached tokens present in the prompt.1887 Cached tokens present in the prompt.

1875 1888 

1889 - `image_tokens: optional number`

1890 

1891 Image input tokens present in the prompt.

1892 

1893 - `text_tokens: optional number`

1894 

1895 Text input tokens present in the prompt.

1896 

1876### Example1897### Example

1877 1898 

1878```http1899```http


1984 "created": 0,2005 "created": 0,

1985 "model": "model",2006 "model": "model",

1986 "object": "chat.completion",2007 "object": "chat.completion",

2008 "metadata": {

2009 "foo": "string"

2010 },

1987 "moderation": {2011 "moderation": {

1988 "input": {2012 "input": {

1989 "model": "model",2013 "model": "model",


2040 "accepted_prediction_tokens": 0,2064 "accepted_prediction_tokens": 0,

2041 "audio_tokens": 0,2065 "audio_tokens": 0,

2042 "reasoning_tokens": 0,2066 "reasoning_tokens": 0,

2043 "rejected_prediction_tokens": 02067 "rejected_prediction_tokens": 0,

2068 "text_tokens": 0

2044 },2069 },

2045 "prompt_tokens_details": {2070 "prompt_tokens_details": {

2046 "audio_tokens": 0,2071 "audio_tokens": 0,

2047 "cache_write_tokens": 0,2072 "cache_write_tokens": 0,

2048 "cached_tokens": 02073 "cached_tokens": 0,

2074 "image_tokens": 0,

2075 "text_tokens": 0

2049 }2076 }

2050 }2077 }

2051}2078}


2858 2885 

2859 - `"chat.completion"`2886 - `"chat.completion"`

2860 2887 

2888 - `metadata: optional Metadata or null`

2889 

2890 Set of 16 key-value pairs that can be attached to an object. This can be

2891 useful for storing additional information about the object in a structured

2892 format, and querying for objects via API or the dashboard.

2893 

2894 Keys are strings with a maximum length of 64 characters. Values are strings

2895 with a maximum length of 512 characters.

2896 

2861 - `moderation: optional object { input, output } or null`2897 - `moderation: optional object { input, output } or null`

2862 2898 

2863 Moderation results for the request input and generated output, if moderated2899 Moderation results for the request input and generated output, if moderated


3049 3085 

3050 Total number of tokens used in the request (prompt + completion).3086 Total number of tokens used in the request (prompt + completion).

3051 3087 

3052 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, rejected_prediction_tokens }`3088 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, 2 more }`

3053 3089 

3054 Breakdown of tokens used in a completion.3090 Breakdown of tokens used in a completion.

3055 3091 


3074 completion tokens for purposes of billing, output, and context window3110 completion tokens for purposes of billing, output, and context window

3075 limits.3111 limits.

3076 3112 

3077 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens }`3113 - `text_tokens: optional number`

3114 

3115 Text output tokens generated by the model.

3116 

3117 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens, 2 more }`

3078 3118 

3079 Breakdown of tokens used in the prompt.3119 Breakdown of tokens used in the prompt.

3080 3120 


3090 3130 

3091 Cached tokens present in the prompt.3131 Cached tokens present in the prompt.

3092 3132 

3133 - `image_tokens: optional number`

3134 

3135 Image input tokens present in the prompt.

3136 

3137 - `text_tokens: optional number`

3138 

3139 Text input tokens present in the prompt.

3140 

3093- `first_id: string`3141- `first_id: string`

3094 3142 

3095 The identifier of the first chat completion in the data array.3143 The identifier of the first chat completion in the data array.


3205 "created": 0,3253 "created": 0,

3206 "model": "model",3254 "model": "model",

3207 "object": "chat.completion",3255 "object": "chat.completion",

3256 "metadata": {

3257 "foo": "string"

3258 },

3208 "moderation": {3259 "moderation": {

3209 "input": {3260 "input": {

3210 "model": "model",3261 "model": "model",


3261 "accepted_prediction_tokens": 0,3312 "accepted_prediction_tokens": 0,

3262 "audio_tokens": 0,3313 "audio_tokens": 0,

3263 "reasoning_tokens": 0,3314 "reasoning_tokens": 0,

3264 "rejected_prediction_tokens": 03315 "rejected_prediction_tokens": 0,

3316 "text_tokens": 0

3265 },3317 },

3266 "prompt_tokens_details": {3318 "prompt_tokens_details": {

3267 "audio_tokens": 0,3319 "audio_tokens": 0,

3268 "cache_write_tokens": 0,3320 "cache_write_tokens": 0,

3269 "cached_tokens": 03321 "cached_tokens": 0,

3322 "image_tokens": 0,

3323 "text_tokens": 0

3270 }3324 }

3271 }3325 }

3272 }3326 }


3349 3403 

3350### Returns3404### Returns

3351 3405 

3352- `ChatCompletion object { id, choices, created, 6 more }`3406- `ChatCompletion object { id, choices, created, 7 more }`

3353 3407 

3354 Represents a chat completion response returned by model, based on the provided input.3408 Represents a chat completion response returned by model, based on the provided input.

3355 3409 


3594 3648 

3595 - `"chat.completion"`3649 - `"chat.completion"`

3596 3650 

3651 - `metadata: optional Metadata or null`

3652 

3653 Set of 16 key-value pairs that can be attached to an object. This can be

3654 useful for storing additional information about the object in a structured

3655 format, and querying for objects via API or the dashboard.

3656 

3657 Keys are strings with a maximum length of 64 characters. Values are strings

3658 with a maximum length of 512 characters.

3659 

3597 - `moderation: optional object { input, output } or null`3660 - `moderation: optional object { input, output } or null`

3598 3661 

3599 Moderation results for the request input and generated output, if moderated3662 Moderation results for the request input and generated output, if moderated


3785 3848 

3786 Total number of tokens used in the request (prompt + completion).3849 Total number of tokens used in the request (prompt + completion).

3787 3850 

3788 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, rejected_prediction_tokens }`3851 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, 2 more }`

3789 3852 

3790 Breakdown of tokens used in a completion.3853 Breakdown of tokens used in a completion.

3791 3854 


3810 completion tokens for purposes of billing, output, and context window3873 completion tokens for purposes of billing, output, and context window

3811 limits.3874 limits.

3812 3875 

3813 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens }`3876 - `text_tokens: optional number`

3877 

3878 Text output tokens generated by the model.

3879 

3880 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens, 2 more }`

3814 3881 

3815 Breakdown of tokens used in the prompt.3882 Breakdown of tokens used in the prompt.

3816 3883 


3826 3893 

3827 Cached tokens present in the prompt.3894 Cached tokens present in the prompt.

3828 3895 

3896 - `image_tokens: optional number`

3897 

3898 Image input tokens present in the prompt.

3899 

3900 - `text_tokens: optional number`

3901 

3902 Text input tokens present in the prompt.

3903 

3829### Example3904### Example

3830 3905 

3831```http3906```http


3921 "created": 0,3996 "created": 0,

3922 "model": "model",3997 "model": "model",

3923 "object": "chat.completion",3998 "object": "chat.completion",

3999 "metadata": {

4000 "foo": "string"

4001 },

3924 "moderation": {4002 "moderation": {

3925 "input": {4003 "input": {

3926 "model": "model",4004 "model": "model",


3977 "accepted_prediction_tokens": 0,4055 "accepted_prediction_tokens": 0,

3978 "audio_tokens": 0,4056 "audio_tokens": 0,

3979 "reasoning_tokens": 0,4057 "reasoning_tokens": 0,

3980 "rejected_prediction_tokens": 04058 "rejected_prediction_tokens": 0,

4059 "text_tokens": 0

3981 },4060 },

3982 "prompt_tokens_details": {4061 "prompt_tokens_details": {

3983 "audio_tokens": 0,4062 "audio_tokens": 0,

3984 "cache_write_tokens": 0,4063 "cache_write_tokens": 0,

3985 "cached_tokens": 04064 "cached_tokens": 0,

4065 "image_tokens": 0,

4066 "text_tokens": 0

3986 }4067 }

3987 }4068 }

3988}4069}


4063 4144 

4064### Returns4145### Returns

4065 4146 

4066- `ChatCompletion object { id, choices, created, 6 more }`4147- `ChatCompletion object { id, choices, created, 7 more }`

4067 4148 

4068 Represents a chat completion response returned by model, based on the provided input.4149 Represents a chat completion response returned by model, based on the provided input.

4069 4150 


4308 4389 

4309 - `"chat.completion"`4390 - `"chat.completion"`

4310 4391 

4392 - `metadata: optional Metadata or null`

4393 

4394 Set of 16 key-value pairs that can be attached to an object. This can be

4395 useful for storing additional information about the object in a structured

4396 format, and querying for objects via API or the dashboard.

4397 

4398 Keys are strings with a maximum length of 64 characters. Values are strings

4399 with a maximum length of 512 characters.

4400 

4311 - `moderation: optional object { input, output } or null`4401 - `moderation: optional object { input, output } or null`

4312 4402 

4313 Moderation results for the request input and generated output, if moderated4403 Moderation results for the request input and generated output, if moderated


4499 4589 

4500 Total number of tokens used in the request (prompt + completion).4590 Total number of tokens used in the request (prompt + completion).

4501 4591 

4502 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, rejected_prediction_tokens }`4592 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, 2 more }`

4503 4593 

4504 Breakdown of tokens used in a completion.4594 Breakdown of tokens used in a completion.

4505 4595 


4524 completion tokens for purposes of billing, output, and context window4614 completion tokens for purposes of billing, output, and context window

4525 limits.4615 limits.

4526 4616 

4527 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens }`4617 - `text_tokens: optional number`

4618 

4619 Text output tokens generated by the model.

4620 

4621 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens, 2 more }`

4528 4622 

4529 Breakdown of tokens used in the prompt.4623 Breakdown of tokens used in the prompt.

4530 4624 


4540 4634 

4541 Cached tokens present in the prompt.4635 Cached tokens present in the prompt.

4542 4636 

4637 - `image_tokens: optional number`

4638 

4639 Image input tokens present in the prompt.

4640 

4641 - `text_tokens: optional number`

4642 

4643 Text input tokens present in the prompt.

4644 

4543### Example4645### Example

4544 4646 

4545```http4647```http


4641 "created": 0,4743 "created": 0,

4642 "model": "model",4744 "model": "model",

4643 "object": "chat.completion",4745 "object": "chat.completion",

4746 "metadata": {

4747 "foo": "string"

4748 },

4644 "moderation": {4749 "moderation": {

4645 "input": {4750 "input": {

4646 "model": "model",4751 "model": "model",


4697 "accepted_prediction_tokens": 0,4802 "accepted_prediction_tokens": 0,

4698 "audio_tokens": 0,4803 "audio_tokens": 0,

4699 "reasoning_tokens": 0,4804 "reasoning_tokens": 0,

4700 "rejected_prediction_tokens": 04805 "rejected_prediction_tokens": 0,

4806 "text_tokens": 0

4701 },4807 },

4702 "prompt_tokens_details": {4808 "prompt_tokens_details": {

4703 "audio_tokens": 0,4809 "audio_tokens": 0,

4704 "cache_write_tokens": 0,4810 "cache_write_tokens": 0,

4705 "cached_tokens": 04811 "cached_tokens": 0,

4812 "image_tokens": 0,

4813 "text_tokens": 0

4706 }4814 }

4707 }4815 }

4708}4816}


4797 4905 

4798### Chat Completion4906### Chat Completion

4799 4907 

4800- `ChatCompletion object { id, choices, created, 6 more }`4908- `ChatCompletion object { id, choices, created, 7 more }`

4801 4909 

4802 Represents a chat completion response returned by model, based on the provided input.4910 Represents a chat completion response returned by model, based on the provided input.

4803 4911 


5042 5150 

5043 - `"chat.completion"`5151 - `"chat.completion"`

5044 5152 

5153 - `metadata: optional Metadata or null`

5154 

5155 Set of 16 key-value pairs that can be attached to an object. This can be

5156 useful for storing additional information about the object in a structured

5157 format, and querying for objects via API or the dashboard.

5158 

5159 Keys are strings with a maximum length of 64 characters. Values are strings

5160 with a maximum length of 512 characters.

5161 

5045 - `moderation: optional object { input, output } or null`5162 - `moderation: optional object { input, output } or null`

5046 5163 

5047 Moderation results for the request input and generated output, if moderated5164 Moderation results for the request input and generated output, if moderated


5233 5350 

5234 Total number of tokens used in the request (prompt + completion).5351 Total number of tokens used in the request (prompt + completion).

5235 5352 

5236 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, rejected_prediction_tokens }`5353 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, 2 more }`

5237 5354 

5238 Breakdown of tokens used in a completion.5355 Breakdown of tokens used in a completion.

5239 5356 


5258 completion tokens for purposes of billing, output, and context window5375 completion tokens for purposes of billing, output, and context window

5259 limits.5376 limits.

5260 5377 

5261 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens }`5378 - `text_tokens: optional number`

5379 

5380 Text output tokens generated by the model.

5381 

5382 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens, 2 more }`

5262 5383 

5263 Breakdown of tokens used in the prompt.5384 Breakdown of tokens used in the prompt.

5264 5385 


5274 5395 

5275 Cached tokens present in the prompt.5396 Cached tokens present in the prompt.

5276 5397 

5398 - `image_tokens: optional number`

5399 

5400 Image input tokens present in the prompt.

5401 

5402 - `text_tokens: optional number`

5403 

5404 Text input tokens present in the prompt.

5405 

5277### Chat Completion Allowed Tool Choice5406### Chat Completion Allowed Tool Choice

5278 5407 

5279- `ChatCompletionAllowedToolChoice object { allowed_tools, type }`5408- `ChatCompletionAllowedToolChoice object { allowed_tools, type }`


5917 6046 

5918 Total number of tokens used in the request (prompt + completion).6047 Total number of tokens used in the request (prompt + completion).

5919 6048 

5920 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, rejected_prediction_tokens }`6049 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, 2 more }`

5921 6050 

5922 Breakdown of tokens used in a completion.6051 Breakdown of tokens used in a completion.

5923 6052 


5942 completion tokens for purposes of billing, output, and context window6071 completion tokens for purposes of billing, output, and context window

5943 limits.6072 limits.

5944 6073 

5945 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens }`6074 - `text_tokens: optional number`

6075 

6076 Text output tokens generated by the model.

6077 

6078 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens, 2 more }`

5946 6079 

5947 Breakdown of tokens used in the prompt.6080 Breakdown of tokens used in the prompt.

5948 6081 


5958 6091 

5959 Cached tokens present in the prompt.6092 Cached tokens present in the prompt.

5960 6093 

6094 - `image_tokens: optional number`

6095 

6096 Image input tokens present in the prompt.

6097 

6098 - `text_tokens: optional number`

6099 

6100 Text input tokens present in the prompt.

6101 

5961### Chat Completion Content Part6102### Chat Completion Content Part

5962 6103 

5963- `ChatCompletionContentPart = ChatCompletionContentPartText or ChatCompletionContentPartImage or ChatCompletionContentPartInputAudio or object { file, type, prompt_cache_breakpoint }`6104- `ChatCompletionContentPart = ChatCompletionContentPartText or ChatCompletionContentPartImage or ChatCompletionContentPartInputAudio or object { file, type, prompt_cache_breakpoint }`

Details

1394 1394 

1395### Returns1395### Returns

1396 1396 

1397- `ChatCompletion object { id, choices, created, 6 more }`1397- `ChatCompletion object { id, choices, created, 7 more }`

1398 1398 

1399 Represents a chat completion response returned by model, based on the provided input.1399 Represents a chat completion response returned by model, based on the provided input.

1400 1400 


1639 1639 

1640 - `"chat.completion"`1640 - `"chat.completion"`

1641 1641 

1642 - `metadata: optional Metadata or null`

1643 

1644 Set of 16 key-value pairs that can be attached to an object. This can be

1645 useful for storing additional information about the object in a structured

1646 format, and querying for objects via API or the dashboard.

1647 

1648 Keys are strings with a maximum length of 64 characters. Values are strings

1649 with a maximum length of 512 characters.

1650 

1642 - `moderation: optional object { input, output } or null`1651 - `moderation: optional object { input, output } or null`

1643 1652 

1644 Moderation results for the request input and generated output, if moderated1653 Moderation results for the request input and generated output, if moderated


1830 1839 

1831 Total number of tokens used in the request (prompt + completion).1840 Total number of tokens used in the request (prompt + completion).

1832 1841 

1833 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, rejected_prediction_tokens }`1842 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, 2 more }`

1834 1843 

1835 Breakdown of tokens used in a completion.1844 Breakdown of tokens used in a completion.

1836 1845 


1855 completion tokens for purposes of billing, output, and context window1864 completion tokens for purposes of billing, output, and context window

1856 limits.1865 limits.

1857 1866 

1858 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens }`1867 - `text_tokens: optional number`

1868 

1869 Text output tokens generated by the model.

1870 

1871 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens, 2 more }`

1859 1872 

1860 Breakdown of tokens used in the prompt.1873 Breakdown of tokens used in the prompt.

1861 1874 


1871 1884 

1872 Cached tokens present in the prompt.1885 Cached tokens present in the prompt.

1873 1886 

1887 - `image_tokens: optional number`

1888 

1889 Image input tokens present in the prompt.

1890 

1891 - `text_tokens: optional number`

1892 

1893 Text input tokens present in the prompt.

1894 

1874### Example1895### Example

1875 1896 

1876```http1897```http


1982 "created": 0,2003 "created": 0,

1983 "model": "model",2004 "model": "model",

1984 "object": "chat.completion",2005 "object": "chat.completion",

2006 "metadata": {

2007 "foo": "string"

2008 },

1985 "moderation": {2009 "moderation": {

1986 "input": {2010 "input": {

1987 "model": "model",2011 "model": "model",


2038 "accepted_prediction_tokens": 0,2062 "accepted_prediction_tokens": 0,

2039 "audio_tokens": 0,2063 "audio_tokens": 0,

2040 "reasoning_tokens": 0,2064 "reasoning_tokens": 0,

2041 "rejected_prediction_tokens": 02065 "rejected_prediction_tokens": 0,

2066 "text_tokens": 0

2042 },2067 },

2043 "prompt_tokens_details": {2068 "prompt_tokens_details": {

2044 "audio_tokens": 0,2069 "audio_tokens": 0,

2045 "cache_write_tokens": 0,2070 "cache_write_tokens": 0,

2046 "cached_tokens": 02071 "cached_tokens": 0,

2072 "image_tokens": 0,

2073 "text_tokens": 0

2047 }2074 }

2048 }2075 }

2049}2076}

Details

280 280 

281 - `"chat.completion"`281 - `"chat.completion"`

282 282 

283 - `metadata: optional Metadata or null`

284 

285 Set of 16 key-value pairs that can be attached to an object. This can be

286 useful for storing additional information about the object in a structured

287 format, and querying for objects via API or the dashboard.

288 

289 Keys are strings with a maximum length of 64 characters. Values are strings

290 with a maximum length of 512 characters.

291 

283 - `moderation: optional object { input, output } or null`292 - `moderation: optional object { input, output } or null`

284 293 

285 Moderation results for the request input and generated output, if moderated294 Moderation results for the request input and generated output, if moderated


471 480 

472 Total number of tokens used in the request (prompt + completion).481 Total number of tokens used in the request (prompt + completion).

473 482 

474 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, rejected_prediction_tokens }`483 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, 2 more }`

475 484 

476 Breakdown of tokens used in a completion.485 Breakdown of tokens used in a completion.

477 486 


496 completion tokens for purposes of billing, output, and context window505 completion tokens for purposes of billing, output, and context window

497 limits.506 limits.

498 507 

499 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens }`508 - `text_tokens: optional number`

509 

510 Text output tokens generated by the model.

511 

512 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens, 2 more }`

500 513 

501 Breakdown of tokens used in the prompt.514 Breakdown of tokens used in the prompt.

502 515 


512 525 

513 Cached tokens present in the prompt.526 Cached tokens present in the prompt.

514 527 

528 - `image_tokens: optional number`

529 

530 Image input tokens present in the prompt.

531 

532 - `text_tokens: optional number`

533 

534 Text input tokens present in the prompt.

535 

515- `first_id: string`536- `first_id: string`

516 537 

517 The identifier of the first chat completion in the data array.538 The identifier of the first chat completion in the data array.


627 "created": 0,648 "created": 0,

628 "model": "model",649 "model": "model",

629 "object": "chat.completion",650 "object": "chat.completion",

651 "metadata": {

652 "foo": "string"

653 },

630 "moderation": {654 "moderation": {

631 "input": {655 "input": {

632 "model": "model",656 "model": "model",


683 "accepted_prediction_tokens": 0,707 "accepted_prediction_tokens": 0,

684 "audio_tokens": 0,708 "audio_tokens": 0,

685 "reasoning_tokens": 0,709 "reasoning_tokens": 0,

686 "rejected_prediction_tokens": 0710 "rejected_prediction_tokens": 0,

711 "text_tokens": 0

687 },712 },

688 "prompt_tokens_details": {713 "prompt_tokens_details": {

689 "audio_tokens": 0,714 "audio_tokens": 0,

690 "cache_write_tokens": 0,715 "cache_write_tokens": 0,

691 "cached_tokens": 0716 "cached_tokens": 0,

717 "image_tokens": 0,

718 "text_tokens": 0

692 }719 }

693 }720 }

694 }721 }

Details

11 11 

12### Returns12### Returns

13 13 

14- `ChatCompletion object { id, choices, created, 6 more }`14- `ChatCompletion object { id, choices, created, 7 more }`

15 15 

16 Represents a chat completion response returned by model, based on the provided input.16 Represents a chat completion response returned by model, based on the provided input.

17 17 


256 256 

257 - `"chat.completion"`257 - `"chat.completion"`

258 258 

259 - `metadata: optional Metadata or null`

260 

261 Set of 16 key-value pairs that can be attached to an object. This can be

262 useful for storing additional information about the object in a structured

263 format, and querying for objects via API or the dashboard.

264 

265 Keys are strings with a maximum length of 64 characters. Values are strings

266 with a maximum length of 512 characters.

267 

259 - `moderation: optional object { input, output } or null`268 - `moderation: optional object { input, output } or null`

260 269 

261 Moderation results for the request input and generated output, if moderated270 Moderation results for the request input and generated output, if moderated


447 456 

448 Total number of tokens used in the request (prompt + completion).457 Total number of tokens used in the request (prompt + completion).

449 458 

450 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, rejected_prediction_tokens }`459 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, 2 more }`

451 460 

452 Breakdown of tokens used in a completion.461 Breakdown of tokens used in a completion.

453 462 


472 completion tokens for purposes of billing, output, and context window481 completion tokens for purposes of billing, output, and context window

473 limits.482 limits.

474 483 

475 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens }`484 - `text_tokens: optional number`

485 

486 Text output tokens generated by the model.

487 

488 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens, 2 more }`

476 489 

477 Breakdown of tokens used in the prompt.490 Breakdown of tokens used in the prompt.

478 491 


488 501 

489 Cached tokens present in the prompt.502 Cached tokens present in the prompt.

490 503 

504 - `image_tokens: optional number`

505 

506 Image input tokens present in the prompt.

507 

508 - `text_tokens: optional number`

509 

510 Text input tokens present in the prompt.

511 

491### Example512### Example

492 513 

493```http514```http


583 "created": 0,604 "created": 0,

584 "model": "model",605 "model": "model",

585 "object": "chat.completion",606 "object": "chat.completion",

607 "metadata": {

608 "foo": "string"

609 },

586 "moderation": {610 "moderation": {

587 "input": {611 "input": {

588 "model": "model",612 "model": "model",


639 "accepted_prediction_tokens": 0,663 "accepted_prediction_tokens": 0,

640 "audio_tokens": 0,664 "audio_tokens": 0,

641 "reasoning_tokens": 0,665 "reasoning_tokens": 0,

642 "rejected_prediction_tokens": 0666 "rejected_prediction_tokens": 0,

667 "text_tokens": 0

643 },668 },

644 "prompt_tokens_details": {669 "prompt_tokens_details": {

645 "audio_tokens": 0,670 "audio_tokens": 0,

646 "cache_write_tokens": 0,671 "cache_write_tokens": 0,

647 "cached_tokens": 0672 "cached_tokens": 0,

673 "image_tokens": 0,

674 "text_tokens": 0

648 }675 }

649 }676 }

650}677}

Details

23 23 

24### Returns24### Returns

25 25 

26- `ChatCompletion object { id, choices, created, 6 more }`26- `ChatCompletion object { id, choices, created, 7 more }`

27 27 

28 Represents a chat completion response returned by model, based on the provided input.28 Represents a chat completion response returned by model, based on the provided input.

29 29 


268 268 

269 - `"chat.completion"`269 - `"chat.completion"`

270 270 

271 - `metadata: optional Metadata or null`

272 

273 Set of 16 key-value pairs that can be attached to an object. This can be

274 useful for storing additional information about the object in a structured

275 format, and querying for objects via API or the dashboard.

276 

277 Keys are strings with a maximum length of 64 characters. Values are strings

278 with a maximum length of 512 characters.

279 

271 - `moderation: optional object { input, output } or null`280 - `moderation: optional object { input, output } or null`

272 281 

273 Moderation results for the request input and generated output, if moderated282 Moderation results for the request input and generated output, if moderated


459 468 

460 Total number of tokens used in the request (prompt + completion).469 Total number of tokens used in the request (prompt + completion).

461 470 

462 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, rejected_prediction_tokens }`471 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, 2 more }`

463 472 

464 Breakdown of tokens used in a completion.473 Breakdown of tokens used in a completion.

465 474 


484 completion tokens for purposes of billing, output, and context window493 completion tokens for purposes of billing, output, and context window

485 limits.494 limits.

486 495 

487 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens }`496 - `text_tokens: optional number`

497 

498 Text output tokens generated by the model.

499 

500 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens, 2 more }`

488 501 

489 Breakdown of tokens used in the prompt.502 Breakdown of tokens used in the prompt.

490 503 


500 513 

501 Cached tokens present in the prompt.514 Cached tokens present in the prompt.

502 515 

516 - `image_tokens: optional number`

517 

518 Image input tokens present in the prompt.

519 

520 - `text_tokens: optional number`

521 

522 Text input tokens present in the prompt.

523 

503### Example524### Example

504 525 

505```http526```http


601 "created": 0,622 "created": 0,

602 "model": "model",623 "model": "model",

603 "object": "chat.completion",624 "object": "chat.completion",

625 "metadata": {

626 "foo": "string"

627 },

604 "moderation": {628 "moderation": {

605 "input": {629 "input": {

606 "model": "model",630 "model": "model",


657 "accepted_prediction_tokens": 0,681 "accepted_prediction_tokens": 0,

658 "audio_tokens": 0,682 "audio_tokens": 0,

659 "reasoning_tokens": 0,683 "reasoning_tokens": 0,

660 "rejected_prediction_tokens": 0684 "rejected_prediction_tokens": 0,

685 "text_tokens": 0

661 },686 },

662 "prompt_tokens_details": {687 "prompt_tokens_details": {

663 "audio_tokens": 0,688 "audio_tokens": 0,

664 "cache_write_tokens": 0,689 "cache_write_tokens": 0,

665 "cached_tokens": 0690 "cached_tokens": 0,

691 "image_tokens": 0,

692 "text_tokens": 0

666 }693 }

667 }694 }

668}695}

Details

624 },624 },

625 {625 {

626 "ident": "rejected_prediction_tokens"626 "ident": "rejected_prediction_tokens"

627 },

628 {

629 "ident": "text_tokens"

627 }630 }

628 ]631 ]

629 },632 },


635 "(resource) completions > (model) completion_usage > (schema) > (property) completion_tokens_details > (property) accepted_prediction_tokens",638 "(resource) completions > (model) completion_usage > (schema) > (property) completion_tokens_details > (property) accepted_prediction_tokens",

636 "(resource) completions > (model) completion_usage > (schema) > (property) completion_tokens_details > (property) audio_tokens",639 "(resource) completions > (model) completion_usage > (schema) > (property) completion_tokens_details > (property) audio_tokens",

637 "(resource) completions > (model) completion_usage > (schema) > (property) completion_tokens_details > (property) reasoning_tokens",640 "(resource) completions > (model) completion_usage > (schema) > (property) completion_tokens_details > (property) reasoning_tokens",

638 "(resource) completions > (model) completion_usage > (schema) > (property) completion_tokens_details > (property) rejected_prediction_tokens"641 "(resource) completions > (model) completion_usage > (schema) > (property) completion_tokens_details > (property) rejected_prediction_tokens",

642 "(resource) completions > (model) completion_usage > (schema) > (property) completion_tokens_details > (property) text_tokens"

639 ]643 ]

640 },644 },

641 "(resource) completions > (model) completion_usage > (schema) > (property) prompt_tokens_details": {645 "(resource) completions > (model) completion_usage > (schema) > (property) prompt_tokens_details": {


655 },659 },

656 {660 {

657 "ident": "cached_tokens"661 "ident": "cached_tokens"

662 },

663 {

664 "ident": "image_tokens"

665 },

666 {

667 "ident": "text_tokens"

658 }668 }

659 ]669 ]

660 },670 },


665 "children": [675 "children": [

666 "(resource) completions > (model) completion_usage > (schema) > (property) prompt_tokens_details > (property) audio_tokens",676 "(resource) completions > (model) completion_usage > (schema) > (property) prompt_tokens_details > (property) audio_tokens",

667 "(resource) completions > (model) completion_usage > (schema) > (property) prompt_tokens_details > (property) cache_write_tokens",677 "(resource) completions > (model) completion_usage > (schema) > (property) prompt_tokens_details > (property) cache_write_tokens",

668 "(resource) completions > (model) completion_usage > (schema) > (property) prompt_tokens_details > (property) cached_tokens"678 "(resource) completions > (model) completion_usage > (schema) > (property) prompt_tokens_details > (property) cached_tokens",

679 "(resource) completions > (model) completion_usage > (schema) > (property) prompt_tokens_details > (property) image_tokens",

680 "(resource) completions > (model) completion_usage > (schema) > (property) prompt_tokens_details > (property) text_tokens"

669 ]681 ]

670 },682 },

671 "(resource) completions > (model) completion_usage > (schema)": {683 "(resource) completions > (model) completion_usage > (schema)": {


1088 "schemaType": "integer",1100 "schemaType": "integer",

1089 "children": []1101 "children": []

1090 },1102 },

1103 "(resource) completions > (model) completion_usage > (schema) > (property) completion_tokens_details > (property) text_tokens": {

1104 "kind": "HttpDeclProperty",

1105 "oasRef": "#/components/schemas/CompletionUsage/properties/completion_tokens_details/properties/text_tokens",

1106 "deprecated": false,

1107 "key": "text_tokens",

1108 "docstring": "Text output tokens generated by the model.",

1109 "type": {

1110 "kind": "HttpTypeNumber"

1111 },

1112 "optional": true,

1113 "nullable": false,

1114 "schemaType": "integer",

1115 "children": []

1116 },

1091 "(resource) completions > (model) completion_usage > (schema) > (property) prompt_tokens_details > (property) audio_tokens": {1117 "(resource) completions > (model) completion_usage > (schema) > (property) prompt_tokens_details > (property) audio_tokens": {

1092 "kind": "HttpDeclProperty",1118 "kind": "HttpDeclProperty",

1093 "oasRef": "#/components/schemas/CompletionUsage/properties/prompt_tokens_details/properties/audio_tokens",1119 "oasRef": "#/components/schemas/CompletionUsage/properties/prompt_tokens_details/properties/audio_tokens",


1133 "schemaType": "integer",1159 "schemaType": "integer",

1134 "children": []1160 "children": []

1135 },1161 },

1162 "(resource) completions > (model) completion_usage > (schema) > (property) prompt_tokens_details > (property) image_tokens": {

1163 "kind": "HttpDeclProperty",

1164 "oasRef": "#/components/schemas/CompletionUsage/properties/prompt_tokens_details/properties/image_tokens",

1165 "deprecated": false,

1166 "key": "image_tokens",

1167 "docstring": "Image input tokens present in the prompt.",

1168 "type": {

1169 "kind": "HttpTypeNumber"

1170 },

1171 "optional": true,

1172 "nullable": false,

1173 "schemaType": "integer",

1174 "children": []

1175 },

1176 "(resource) completions > (model) completion_usage > (schema) > (property) prompt_tokens_details > (property) text_tokens": {

1177 "kind": "HttpDeclProperty",

1178 "oasRef": "#/components/schemas/CompletionUsage/properties/prompt_tokens_details/properties/text_tokens",

1179 "deprecated": false,

1180 "key": "text_tokens",

1181 "docstring": "Text input tokens present in the prompt.",

1182 "type": {

1183 "kind": "HttpTypeNumber"

1184 },

1185 "optional": true,

1186 "nullable": false,

1187 "schemaType": "integer",

1188 "children": []

1189 },

1136 "(resource) chat.completions > (model) chat_completion_chunk > (schema) > (property) choices > (items) > (property) delta > (property) function_call > (property) arguments": {1190 "(resource) chat.completions > (model) chat_completion_chunk > (schema) > (property) choices > (items) > (property) delta > (property) function_call > (property) arguments": {

1137 "kind": "HttpDeclProperty",1191 "kind": "HttpDeclProperty",

1138 "oasRef": "#/components/schemas/ChatCompletionStreamResponseDelta/properties/function_call/properties/arguments",1192 "oasRef": "#/components/schemas/ChatCompletionStreamResponseDelta/properties/function_call/properties/arguments",

Details

234 234 

235 Total number of tokens used in the request (prompt + completion).235 Total number of tokens used in the request (prompt + completion).

236 236 

237 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, rejected_prediction_tokens }`237 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, 2 more }`

238 238 

239 Breakdown of tokens used in a completion.239 Breakdown of tokens used in a completion.

240 240 


259 completion tokens for purposes of billing, output, and context window259 completion tokens for purposes of billing, output, and context window

260 limits.260 limits.

261 261 

262 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens }`262 - `text_tokens: optional number`

263 

264 Text output tokens generated by the model.

265 

266 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens, 2 more }`

263 267 

264 Breakdown of tokens used in the prompt.268 Breakdown of tokens used in the prompt.

265 269 


275 279 

276 Cached tokens present in the prompt.280 Cached tokens present in the prompt.

277 281 

282 - `image_tokens: optional number`

283 

284 Image input tokens present in the prompt.

285 

286 - `text_tokens: optional number`

287 

288 Text input tokens present in the prompt.

289 

278### Example290### Example

279 291 

280```http292```http


333 "accepted_prediction_tokens": 0,345 "accepted_prediction_tokens": 0,

334 "audio_tokens": 0,346 "audio_tokens": 0,

335 "reasoning_tokens": 0,347 "reasoning_tokens": 0,

336 "rejected_prediction_tokens": 0348 "rejected_prediction_tokens": 0,

349 "text_tokens": 0

337 },350 },

338 "prompt_tokens_details": {351 "prompt_tokens_details": {

339 "audio_tokens": 0,352 "audio_tokens": 0,

340 "cache_write_tokens": 0,353 "cache_write_tokens": 0,

341 "cached_tokens": 0354 "cached_tokens": 0,

355 "image_tokens": 0,

356 "text_tokens": 0

342 }357 }

343 }358 }

344}359}


496 511 

497 Total number of tokens used in the request (prompt + completion).512 Total number of tokens used in the request (prompt + completion).

498 513 

499 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, rejected_prediction_tokens }`514 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, 2 more }`

500 515 

501 Breakdown of tokens used in a completion.516 Breakdown of tokens used in a completion.

502 517 


521 completion tokens for purposes of billing, output, and context window536 completion tokens for purposes of billing, output, and context window

522 limits.537 limits.

523 538 

524 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens }`539 - `text_tokens: optional number`

540 

541 Text output tokens generated by the model.

542 

543 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens, 2 more }`

525 544 

526 Breakdown of tokens used in the prompt.545 Breakdown of tokens used in the prompt.

527 546 


537 556 

538 Cached tokens present in the prompt.557 Cached tokens present in the prompt.

539 558 

559 - `image_tokens: optional number`

560 

561 Image input tokens present in the prompt.

562 

563 - `text_tokens: optional number`

564 

565 Text input tokens present in the prompt.

566 

540### Completion Choice567### Completion Choice

541 568 

542- `CompletionChoice object { finish_reason, index, logprobs, text }`569- `CompletionChoice object { finish_reason, index, logprobs, text }`


585 612 

586 Total number of tokens used in the request (prompt + completion).613 Total number of tokens used in the request (prompt + completion).

587 614 

588 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, rejected_prediction_tokens }`615 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, 2 more }`

589 616 

590 Breakdown of tokens used in a completion.617 Breakdown of tokens used in a completion.

591 618 


610 completion tokens for purposes of billing, output, and context window637 completion tokens for purposes of billing, output, and context window

611 limits.638 limits.

612 639 

613 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens }`640 - `text_tokens: optional number`

641 

642 Text output tokens generated by the model.

643 

644 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens, 2 more }`

614 645 

615 Breakdown of tokens used in the prompt.646 Breakdown of tokens used in the prompt.

616 647 


625 - `cached_tokens: optional number`656 - `cached_tokens: optional number`

626 657 

627 Cached tokens present in the prompt.658 Cached tokens present in the prompt.

659 

660 - `image_tokens: optional number`

661 

662 Image input tokens present in the prompt.

663 

664 - `text_tokens: optional number`

665 

666 Text input tokens present in the prompt.

Details

232 232 

233 Total number of tokens used in the request (prompt + completion).233 Total number of tokens used in the request (prompt + completion).

234 234 

235 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, rejected_prediction_tokens }`235 - `completion_tokens_details: optional object { accepted_prediction_tokens, audio_tokens, reasoning_tokens, 2 more }`

236 236 

237 Breakdown of tokens used in a completion.237 Breakdown of tokens used in a completion.

238 238 


257 completion tokens for purposes of billing, output, and context window257 completion tokens for purposes of billing, output, and context window

258 limits.258 limits.

259 259 

260 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens }`260 - `text_tokens: optional number`

261 

262 Text output tokens generated by the model.

263 

264 - `prompt_tokens_details: optional object { audio_tokens, cache_write_tokens, cached_tokens, 2 more }`

261 265 

262 Breakdown of tokens used in the prompt.266 Breakdown of tokens used in the prompt.

263 267 


273 277 

274 Cached tokens present in the prompt.278 Cached tokens present in the prompt.

275 279 

280 - `image_tokens: optional number`

281 

282 Image input tokens present in the prompt.

283 

284 - `text_tokens: optional number`

285 

286 Text input tokens present in the prompt.

287 

276### Example288### Example

277 289 

278```http290```http


331 "accepted_prediction_tokens": 0,343 "accepted_prediction_tokens": 0,

332 "audio_tokens": 0,344 "audio_tokens": 0,

333 "reasoning_tokens": 0,345 "reasoning_tokens": 0,

334 "rejected_prediction_tokens": 0346 "rejected_prediction_tokens": 0,

347 "text_tokens": 0

335 },348 },

336 "prompt_tokens_details": {349 "prompt_tokens_details": {

337 "audio_tokens": 0,350 "audio_tokens": 0,

338 "cache_write_tokens": 0,351 "cache_write_tokens": 0,

339 "cached_tokens": 0352 "cached_tokens": 0,

353 "image_tokens": 0,

354 "text_tokens": 0

340 }355 }

341 }356 }

342}357}

Details

3177 for reasoning items returned by `POST /v1/responses` and WebSocket3177 for reasoning items returned by `POST /v1/responses` and WebSocket

3178 `response.create` requests.3178 `response.create` requests.

3179 3179 

3180 When streaming, use the completed reasoning item and its

3181 `encrypted_content` from the `response.output_item.done` event in

3182 subsequent requests. The `encrypted_content` in

3183 `response.output_item.added` may be incomplete. This is especially

3184 important when `store` is `false` or when using Zero Data Retention.

3185 

3180 - `status: optional "in_progress" or "completed" or "incomplete"`3186 - `status: optional "in_progress" or "completed" or "incomplete"`

3181 3187 

3182 The status of the item. One of `in_progress`, `completed`, or3188 The status of the item. One of `in_progress`, `completed`, or


3846 Unique identifier for the MCP tool call approval request.3852 Unique identifier for the MCP tool call approval request.

3847 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.3853 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

3848 3854 

3849 - `error: optional string or null`3855 - `error: optional McpToolCallError or null`

3850 3856 

3851 The error from the tool call, if any.3857 The error from the tool call, if any.

3852 3858 

3859 - `McpProtocolError object { code, message, type }`

3860 

3861 - `code: number`

3862 

3863 - `message: string`

3864 

3865 - `type: "mcp_protocol_error"`

3866 

3867 - `"mcp_protocol_error"`

3868 

3869 - `McpToolExecutionError object { content, type }`

3870 

3871 - `content: unknown`

3872 

3873 - `type: "mcp_tool_execution_error"`

3874 

3875 - `"mcp_tool_execution_error"`

3876 

3877 - `HTTPError object { code, message, type }`

3878 

3879 - `code: number`

3880 

3881 - `message: string`

3882 

3883 - `type: "http_error"`

3884 

3885 - `"http_error"`

3886 

3853 - `output: optional string or null`3887 - `output: optional string or null`

3854 3888 

3855 The output from the tool call.3889 The output from the tool call.


8072 for reasoning items returned by `POST /v1/responses` and WebSocket8106 for reasoning items returned by `POST /v1/responses` and WebSocket

8073 `response.create` requests.8107 `response.create` requests.

8074 8108 

8109 When streaming, use the completed reasoning item and its

8110 `encrypted_content` from the `response.output_item.done` event in

8111 subsequent requests. The `encrypted_content` in

8112 `response.output_item.added` may be incomplete. This is especially

8113 important when `store` is `false` or when using Zero Data Retention.

8114 

8075 - `status: optional "in_progress" or "completed" or "incomplete"`8115 - `status: optional "in_progress" or "completed" or "incomplete"`

8076 8116 

8077 The status of the item. One of `in_progress`, `completed`, or8117 The status of the item. One of `in_progress`, `completed`, or


8741 Unique identifier for the MCP tool call approval request.8781 Unique identifier for the MCP tool call approval request.

8742 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.8782 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

8743 8783 

8744 - `error: optional string or null`8784 - `error: optional McpToolCallError or null`

8745 8785 

8746 The error from the tool call, if any.8786 The error from the tool call, if any.

8747 8787 

8788 - `McpProtocolError object { code, message, type }`

8789 

8790 - `code: number`

8791 

8792 - `message: string`

8793 

8794 - `type: "mcp_protocol_error"`

8795 

8796 - `"mcp_protocol_error"`

8797 

8798 - `McpToolExecutionError object { content, type }`

8799 

8800 - `content: unknown`

8801 

8802 - `type: "mcp_tool_execution_error"`

8803 

8804 - `"mcp_tool_execution_error"`

8805 

8806 - `HTTPError object { code, message, type }`

8807 

8808 - `code: number`

8809 

8810 - `message: string`

8811 

8812 - `type: "http_error"`

8813 

8814 - `"http_error"`

8815 

8748 - `output: optional string or null`8816 - `output: optional string or null`

8749 8817 

8750 The output from the tool call.8818 The output from the tool call.


12094 for reasoning items returned by `POST /v1/responses` and WebSocket12162 for reasoning items returned by `POST /v1/responses` and WebSocket

12095 `response.create` requests.12163 `response.create` requests.

12096 12164 

12165 When streaming, use the completed reasoning item and its

12166 `encrypted_content` from the `response.output_item.done` event in

12167 subsequent requests. The `encrypted_content` in

12168 `response.output_item.added` may be incomplete. This is especially

12169 important when `store` is `false` or when using Zero Data Retention.

12170 

12097 - `status: optional "in_progress" or "completed" or "incomplete"`12171 - `status: optional "in_progress" or "completed" or "incomplete"`

12098 12172 

12099 The status of the item. One of `in_progress`, `completed`, or12173 The status of the item. One of `in_progress`, `completed`, or


12809 Unique identifier for the MCP tool call approval request.12883 Unique identifier for the MCP tool call approval request.

12810 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.12884 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

12811 12885 

12812 - `error: optional string or null`12886 - `error: optional McpToolCallError or null`

12813 12887 

12814 The error from the tool call, if any.12888 The error from the tool call, if any.

12815 12889 

12890 - `McpProtocolError object { code, message, type }`

12891 

12892 - `code: number`

12893 

12894 - `message: string`

12895 

12896 - `type: "mcp_protocol_error"`

12897 

12898 - `"mcp_protocol_error"`

12899 

12900 - `McpToolExecutionError object { content, type }`

12901 

12902 - `content: unknown`

12903 

12904 - `type: "mcp_tool_execution_error"`

12905 

12906 - `"mcp_tool_execution_error"`

12907 

12908 - `HTTPError object { code, message, type }`

12909 

12910 - `code: number`

12911 

12912 - `message: string`

12913 

12914 - `type: "http_error"`

12915 

12916 - `"http_error"`

12917 

12816 - `output: optional string or null`12918 - `output: optional string or null`

12817 12919 

12818 The output from the tool call.12920 The output from the tool call.


16339 for reasoning items returned by `POST /v1/responses` and WebSocket16441 for reasoning items returned by `POST /v1/responses` and WebSocket

16340 `response.create` requests.16442 `response.create` requests.

16341 16443 

16444 When streaming, use the completed reasoning item and its

16445 `encrypted_content` from the `response.output_item.done` event in

16446 subsequent requests. The `encrypted_content` in

16447 `response.output_item.added` may be incomplete. This is especially

16448 important when `store` is `false` or when using Zero Data Retention.

16449 

16342 - `status: optional "in_progress" or "completed" or "incomplete"`16450 - `status: optional "in_progress" or "completed" or "incomplete"`

16343 16451 

16344 The status of the item. One of `in_progress`, `completed`, or16452 The status of the item. One of `in_progress`, `completed`, or


17054 Unique identifier for the MCP tool call approval request.17162 Unique identifier for the MCP tool call approval request.

17055 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.17163 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

17056 17164 

17057 - `error: optional string or null`17165 - `error: optional McpToolCallError or null`

17058 17166 

17059 The error from the tool call, if any.17167 The error from the tool call, if any.

17060 17168 

17169 - `McpProtocolError object { code, message, type }`

17170 

17171 - `code: number`

17172 

17173 - `message: string`

17174 

17175 - `type: "mcp_protocol_error"`

17176 

17177 - `"mcp_protocol_error"`

17178 

17179 - `McpToolExecutionError object { content, type }`

17180 

17181 - `content: unknown`

17182 

17183 - `type: "mcp_tool_execution_error"`

17184 

17185 - `"mcp_tool_execution_error"`

17186 

17187 - `HTTPError object { code, message, type }`

17188 

17189 - `code: number`

17190 

17191 - `message: string`

17192 

17193 - `type: "http_error"`

17194 

17195 - `"http_error"`

17196 

17061 - `output: optional string or null`17197 - `output: optional string or null`

17062 17198 

17063 The output from the tool call.17199 The output from the tool call.


20445 for reasoning items returned by `POST /v1/responses` and WebSocket20581 for reasoning items returned by `POST /v1/responses` and WebSocket

20446 `response.create` requests.20582 `response.create` requests.

20447 20583 

20584 When streaming, use the completed reasoning item and its

20585 `encrypted_content` from the `response.output_item.done` event in

20586 subsequent requests. The `encrypted_content` in

20587 `response.output_item.added` may be incomplete. This is especially

20588 important when `store` is `false` or when using Zero Data Retention.

20589 

20448 - `status: optional "in_progress" or "completed" or "incomplete"`20590 - `status: optional "in_progress" or "completed" or "incomplete"`

20449 20591 

20450 The status of the item. One of `in_progress`, `completed`, or20592 The status of the item. One of `in_progress`, `completed`, or


21160 Unique identifier for the MCP tool call approval request.21302 Unique identifier for the MCP tool call approval request.

21161 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.21303 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

21162 21304 

21163 - `error: optional string or null`21305 - `error: optional McpToolCallError or null`

21164 21306 

21165 The error from the tool call, if any.21307 The error from the tool call, if any.

21166 21308 

21309 - `McpProtocolError object { code, message, type }`

21310 

21311 - `code: number`

21312 

21313 - `message: string`

21314 

21315 - `type: "mcp_protocol_error"`

21316 

21317 - `"mcp_protocol_error"`

21318 

21319 - `McpToolExecutionError object { content, type }`

21320 

21321 - `content: unknown`

21322 

21323 - `type: "mcp_tool_execution_error"`

21324 

21325 - `"mcp_tool_execution_error"`

21326 

21327 - `HTTPError object { code, message, type }`

21328 

21329 - `code: number`

21330 

21331 - `message: string`

21332 

21333 - `type: "http_error"`

21334 

21335 - `"http_error"`

21336 

21167 - `output: optional string or null`21337 - `output: optional string or null`

21168 21338 

21169 The output from the tool call.21339 The output from the tool call.


24484 for reasoning items returned by `POST /v1/responses` and WebSocket24654 for reasoning items returned by `POST /v1/responses` and WebSocket

24485 `response.create` requests.24655 `response.create` requests.

24486 24656 

24657 When streaming, use the completed reasoning item and its

24658 `encrypted_content` from the `response.output_item.done` event in

24659 subsequent requests. The `encrypted_content` in

24660 `response.output_item.added` may be incomplete. This is especially

24661 important when `store` is `false` or when using Zero Data Retention.

24662 

24487 - `status: optional "in_progress" or "completed" or "incomplete"`24663 - `status: optional "in_progress" or "completed" or "incomplete"`

24488 24664 

24489 The status of the item. One of `in_progress`, `completed`, or24665 The status of the item. One of `in_progress`, `completed`, or


25199 Unique identifier for the MCP tool call approval request.25375 Unique identifier for the MCP tool call approval request.

25200 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.25376 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

25201 25377 

25202 - `error: optional string or null`25378 - `error: optional McpToolCallError or null`

25203 25379 

25204 The error from the tool call, if any.25380 The error from the tool call, if any.

25205 25381 

25382 - `McpProtocolError object { code, message, type }`

25383 

25384 - `code: number`

25385 

25386 - `message: string`

25387 

25388 - `type: "mcp_protocol_error"`

25389 

25390 - `"mcp_protocol_error"`

25391 

25392 - `McpToolExecutionError object { content, type }`

25393 

25394 - `content: unknown`

25395 

25396 - `type: "mcp_tool_execution_error"`

25397 

25398 - `"mcp_tool_execution_error"`

25399 

25400 - `HTTPError object { code, message, type }`

25401 

25402 - `code: number`

25403 

25404 - `message: string`

25405 

25406 - `type: "http_error"`

25407 

25408 - `"http_error"`

25409 

25206 - `output: optional string or null`25410 - `output: optional string or null`

25207 25411 

25208 The output from the tool call.25412 The output from the tool call.


28476 for reasoning items returned by `POST /v1/responses` and WebSocket28680 for reasoning items returned by `POST /v1/responses` and WebSocket

28477 `response.create` requests.28681 `response.create` requests.

28478 28682 

28683 When streaming, use the completed reasoning item and its

28684 `encrypted_content` from the `response.output_item.done` event in

28685 subsequent requests. The `encrypted_content` in

28686 `response.output_item.added` may be incomplete. This is especially

28687 important when `store` is `false` or when using Zero Data Retention.

28688 

28479 - `status: optional "in_progress" or "completed" or "incomplete"`28689 - `status: optional "in_progress" or "completed" or "incomplete"`

28480 28690 

28481 The status of the item. One of `in_progress`, `completed`, or28691 The status of the item. One of `in_progress`, `completed`, or


29191 Unique identifier for the MCP tool call approval request.29401 Unique identifier for the MCP tool call approval request.

29192 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.29402 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

29193 29403 

29194 - `error: optional string or null`29404 - `error: optional McpToolCallError or null`

29195 29405 

29196 The error from the tool call, if any.29406 The error from the tool call, if any.

29197 29407 

29408 - `McpProtocolError object { code, message, type }`

29409 

29410 - `code: number`

29411 

29412 - `message: string`

29413 

29414 - `type: "mcp_protocol_error"`

29415 

29416 - `"mcp_protocol_error"`

29417 

29418 - `McpToolExecutionError object { content, type }`

29419 

29420 - `content: unknown`

29421 

29422 - `type: "mcp_tool_execution_error"`

29423 

29424 - `"mcp_tool_execution_error"`

29425 

29426 - `HTTPError object { code, message, type }`

29427 

29428 - `code: number`

29429 

29430 - `message: string`

29431 

29432 - `type: "http_error"`

29433 

29434 - `"http_error"`

29435 

29198 - `output: optional string or null`29436 - `output: optional string or null`

29199 29437 

29200 The output from the tool call.29438 The output from the tool call.

Details

3175 for reasoning items returned by `POST /v1/responses` and WebSocket3175 for reasoning items returned by `POST /v1/responses` and WebSocket

3176 `response.create` requests.3176 `response.create` requests.

3177 3177 

3178 When streaming, use the completed reasoning item and its

3179 `encrypted_content` from the `response.output_item.done` event in

3180 subsequent requests. The `encrypted_content` in

3181 `response.output_item.added` may be incomplete. This is especially

3182 important when `store` is `false` or when using Zero Data Retention.

3183 

3178 - `status: optional "in_progress" or "completed" or "incomplete"`3184 - `status: optional "in_progress" or "completed" or "incomplete"`

3179 3185 

3180 The status of the item. One of `in_progress`, `completed`, or3186 The status of the item. One of `in_progress`, `completed`, or


3844 Unique identifier for the MCP tool call approval request.3850 Unique identifier for the MCP tool call approval request.

3845 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.3851 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

3846 3852 

3847 - `error: optional string or null`3853 - `error: optional McpToolCallError or null`

3848 3854 

3849 The error from the tool call, if any.3855 The error from the tool call, if any.

3850 3856 

3857 - `McpProtocolError object { code, message, type }`

3858 

3859 - `code: number`

3860 

3861 - `message: string`

3862 

3863 - `type: "mcp_protocol_error"`

3864 

3865 - `"mcp_protocol_error"`

3866 

3867 - `McpToolExecutionError object { content, type }`

3868 

3869 - `content: unknown`

3870 

3871 - `type: "mcp_tool_execution_error"`

3872 

3873 - `"mcp_tool_execution_error"`

3874 

3875 - `HTTPError object { code, message, type }`

3876 

3877 - `code: number`

3878 

3879 - `message: string`

3880 

3881 - `type: "http_error"`

3882 

3883 - `"http_error"`

3884 

3851 - `output: optional string or null`3885 - `output: optional string or null`

3852 3886 

3853 The output from the tool call.3887 The output from the tool call.

Details

3204 for reasoning items returned by `POST /v1/responses` and WebSocket3204 for reasoning items returned by `POST /v1/responses` and WebSocket

3205 `response.create` requests.3205 `response.create` requests.

3206 3206 

3207 When streaming, use the completed reasoning item and its

3208 `encrypted_content` from the `response.output_item.done` event in

3209 subsequent requests. The `encrypted_content` in

3210 `response.output_item.added` may be incomplete. This is especially

3211 important when `store` is `false` or when using Zero Data Retention.

3212 

3207 - `status: optional "in_progress" or "completed" or "incomplete"`3213 - `status: optional "in_progress" or "completed" or "incomplete"`

3208 3214 

3209 The status of the item. One of `in_progress`, `completed`, or3215 The status of the item. One of `in_progress`, `completed`, or


3873 Unique identifier for the MCP tool call approval request.3879 Unique identifier for the MCP tool call approval request.

3874 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.3880 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

3875 3881 

3876 - `error: optional string or null`3882 - `error: optional McpToolCallError or null`

3877 3883 

3878 The error from the tool call, if any.3884 The error from the tool call, if any.

3879 3885 

3886 - `McpProtocolError object { code, message, type }`

3887 

3888 - `code: number`

3889 

3890 - `message: string`

3891 

3892 - `type: "mcp_protocol_error"`

3893 

3894 - `"mcp_protocol_error"`

3895 

3896 - `McpToolExecutionError object { content, type }`

3897 

3898 - `content: unknown`

3899 

3900 - `type: "mcp_tool_execution_error"`

3901 

3902 - `"mcp_tool_execution_error"`

3903 

3904 - `HTTPError object { code, message, type }`

3905 

3906 - `code: number`

3907 

3908 - `message: string`

3909 

3910 - `type: "http_error"`

3911 

3912 - `"http_error"`

3913 

3880 - `output: optional string or null`3914 - `output: optional string or null`

3881 3915 

3882 The output from the tool call.3916 The output from the tool call.


7226 for reasoning items returned by `POST /v1/responses` and WebSocket7260 for reasoning items returned by `POST /v1/responses` and WebSocket

7227 `response.create` requests.7261 `response.create` requests.

7228 7262 

7263 When streaming, use the completed reasoning item and its

7264 `encrypted_content` from the `response.output_item.done` event in

7265 subsequent requests. The `encrypted_content` in

7266 `response.output_item.added` may be incomplete. This is especially

7267 important when `store` is `false` or when using Zero Data Retention.

7268 

7229 - `status: optional "in_progress" or "completed" or "incomplete"`7269 - `status: optional "in_progress" or "completed" or "incomplete"`

7230 7270 

7231 The status of the item. One of `in_progress`, `completed`, or7271 The status of the item. One of `in_progress`, `completed`, or


7941 Unique identifier for the MCP tool call approval request.7981 Unique identifier for the MCP tool call approval request.

7942 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.7982 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

7943 7983 

7944 - `error: optional string or null`7984 - `error: optional McpToolCallError or null`

7945 7985 

7946 The error from the tool call, if any.7986 The error from the tool call, if any.

7947 7987 

7988 - `McpProtocolError object { code, message, type }`

7989 

7990 - `code: number`

7991 

7992 - `message: string`

7993 

7994 - `type: "mcp_protocol_error"`

7995 

7996 - `"mcp_protocol_error"`

7997 

7998 - `McpToolExecutionError object { content, type }`

7999 

8000 - `content: unknown`

8001 

8002 - `type: "mcp_tool_execution_error"`

8003 

8004 - `"mcp_tool_execution_error"`

8005 

8006 - `HTTPError object { code, message, type }`

8007 

8008 - `code: number`

8009 

8010 - `message: string`

8011 

8012 - `type: "http_error"`

8013 

8014 - `"http_error"`

8015 

7948 - `output: optional string or null`8016 - `output: optional string or null`

7949 8017 

7950 The output from the tool call.8018 The output from the tool call.


11471 for reasoning items returned by `POST /v1/responses` and WebSocket11539 for reasoning items returned by `POST /v1/responses` and WebSocket

11472 `response.create` requests.11540 `response.create` requests.

11473 11541 

11542 When streaming, use the completed reasoning item and its

11543 `encrypted_content` from the `response.output_item.done` event in

11544 subsequent requests. The `encrypted_content` in

11545 `response.output_item.added` may be incomplete. This is especially

11546 important when `store` is `false` or when using Zero Data Retention.

11547 

11474 - `status: optional "in_progress" or "completed" or "incomplete"`11548 - `status: optional "in_progress" or "completed" or "incomplete"`

11475 11549 

11476 The status of the item. One of `in_progress`, `completed`, or11550 The status of the item. One of `in_progress`, `completed`, or


12186 Unique identifier for the MCP tool call approval request.12260 Unique identifier for the MCP tool call approval request.

12187 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.12261 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

12188 12262 

12189 - `error: optional string or null`12263 - `error: optional McpToolCallError or null`

12190 12264 

12191 The error from the tool call, if any.12265 The error from the tool call, if any.

12192 12266 

12267 - `McpProtocolError object { code, message, type }`

12268 

12269 - `code: number`

12270 

12271 - `message: string`

12272 

12273 - `type: "mcp_protocol_error"`

12274 

12275 - `"mcp_protocol_error"`

12276 

12277 - `McpToolExecutionError object { content, type }`

12278 

12279 - `content: unknown`

12280 

12281 - `type: "mcp_tool_execution_error"`

12282 

12283 - `"mcp_tool_execution_error"`

12284 

12285 - `HTTPError object { code, message, type }`

12286 

12287 - `code: number`

12288 

12289 - `message: string`

12290 

12291 - `type: "http_error"`

12292 

12293 - `"http_error"`

12294 

12193 - `output: optional string or null`12295 - `output: optional string or null`

12194 12296 

12195 The output from the tool call.12297 The output from the tool call.


15577 for reasoning items returned by `POST /v1/responses` and WebSocket15679 for reasoning items returned by `POST /v1/responses` and WebSocket

15578 `response.create` requests.15680 `response.create` requests.

15579 15681 

15682 When streaming, use the completed reasoning item and its

15683 `encrypted_content` from the `response.output_item.done` event in

15684 subsequent requests. The `encrypted_content` in

15685 `response.output_item.added` may be incomplete. This is especially

15686 important when `store` is `false` or when using Zero Data Retention.

15687 

15580 - `status: optional "in_progress" or "completed" or "incomplete"`15688 - `status: optional "in_progress" or "completed" or "incomplete"`

15581 15689 

15582 The status of the item. One of `in_progress`, `completed`, or15690 The status of the item. One of `in_progress`, `completed`, or


16292 Unique identifier for the MCP tool call approval request.16400 Unique identifier for the MCP tool call approval request.

16293 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.16401 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

16294 16402 

16295 - `error: optional string or null`16403 - `error: optional McpToolCallError or null`

16296 16404 

16297 The error from the tool call, if any.16405 The error from the tool call, if any.

16298 16406 

16407 - `McpProtocolError object { code, message, type }`

16408 

16409 - `code: number`

16410 

16411 - `message: string`

16412 

16413 - `type: "mcp_protocol_error"`

16414 

16415 - `"mcp_protocol_error"`

16416 

16417 - `McpToolExecutionError object { content, type }`

16418 

16419 - `content: unknown`

16420 

16421 - `type: "mcp_tool_execution_error"`

16422 

16423 - `"mcp_tool_execution_error"`

16424 

16425 - `HTTPError object { code, message, type }`

16426 

16427 - `code: number`

16428 

16429 - `message: string`

16430 

16431 - `type: "http_error"`

16432 

16433 - `"http_error"`

16434 

16299 - `output: optional string or null`16435 - `output: optional string or null`

16300 16436 

16301 The output from the tool call.16437 The output from the tool call.


19616 for reasoning items returned by `POST /v1/responses` and WebSocket19752 for reasoning items returned by `POST /v1/responses` and WebSocket

19617 `response.create` requests.19753 `response.create` requests.

19618 19754 

19755 When streaming, use the completed reasoning item and its

19756 `encrypted_content` from the `response.output_item.done` event in

19757 subsequent requests. The `encrypted_content` in

19758 `response.output_item.added` may be incomplete. This is especially

19759 important when `store` is `false` or when using Zero Data Retention.

19760 

19619 - `status: optional "in_progress" or "completed" or "incomplete"`19761 - `status: optional "in_progress" or "completed" or "incomplete"`

19620 19762 

19621 The status of the item. One of `in_progress`, `completed`, or19763 The status of the item. One of `in_progress`, `completed`, or


20331 Unique identifier for the MCP tool call approval request.20473 Unique identifier for the MCP tool call approval request.

20332 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.20474 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

20333 20475 

20334 - `error: optional string or null`20476 - `error: optional McpToolCallError or null`

20335 20477 

20336 The error from the tool call, if any.20478 The error from the tool call, if any.

20337 20479 

20480 - `McpProtocolError object { code, message, type }`

20481 

20482 - `code: number`

20483 

20484 - `message: string`

20485 

20486 - `type: "mcp_protocol_error"`

20487 

20488 - `"mcp_protocol_error"`

20489 

20490 - `McpToolExecutionError object { content, type }`

20491 

20492 - `content: unknown`

20493 

20494 - `type: "mcp_tool_execution_error"`

20495 

20496 - `"mcp_tool_execution_error"`

20497 

20498 - `HTTPError object { code, message, type }`

20499 

20500 - `code: number`

20501 

20502 - `message: string`

20503 

20504 - `type: "http_error"`

20505 

20506 - `"http_error"`

20507 

20338 - `output: optional string or null`20508 - `output: optional string or null`

20339 20509 

20340 The output from the tool call.20510 The output from the tool call.


23608 for reasoning items returned by `POST /v1/responses` and WebSocket23778 for reasoning items returned by `POST /v1/responses` and WebSocket

23609 `response.create` requests.23779 `response.create` requests.

23610 23780 

23781 When streaming, use the completed reasoning item and its

23782 `encrypted_content` from the `response.output_item.done` event in

23783 subsequent requests. The `encrypted_content` in

23784 `response.output_item.added` may be incomplete. This is especially

23785 important when `store` is `false` or when using Zero Data Retention.

23786 

23611 - `status: optional "in_progress" or "completed" or "incomplete"`23787 - `status: optional "in_progress" or "completed" or "incomplete"`

23612 23788 

23613 The status of the item. One of `in_progress`, `completed`, or23789 The status of the item. One of `in_progress`, `completed`, or


24323 Unique identifier for the MCP tool call approval request.24499 Unique identifier for the MCP tool call approval request.

24324 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.24500 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

24325 24501 

24326 - `error: optional string or null`24502 - `error: optional McpToolCallError or null`

24327 24503 

24328 The error from the tool call, if any.24504 The error from the tool call, if any.

24329 24505 

24506 - `McpProtocolError object { code, message, type }`

24507 

24508 - `code: number`

24509 

24510 - `message: string`

24511 

24512 - `type: "mcp_protocol_error"`

24513 

24514 - `"mcp_protocol_error"`

24515 

24516 - `McpToolExecutionError object { content, type }`

24517 

24518 - `content: unknown`

24519 

24520 - `type: "mcp_tool_execution_error"`

24521 

24522 - `"mcp_tool_execution_error"`

24523 

24524 - `HTTPError object { code, message, type }`

24525 

24526 - `code: number`

24527 

24528 - `message: string`

24529 

24530 - `type: "http_error"`

24531 

24532 - `"http_error"`

24533 

24330 - `output: optional string or null`24534 - `output: optional string or null`

24331 24535 

24332 The output from the tool call.24536 The output from the tool call.

Details

3202 for reasoning items returned by `POST /v1/responses` and WebSocket3202 for reasoning items returned by `POST /v1/responses` and WebSocket

3203 `response.create` requests.3203 `response.create` requests.

3204 3204 

3205 When streaming, use the completed reasoning item and its

3206 `encrypted_content` from the `response.output_item.done` event in

3207 subsequent requests. The `encrypted_content` in

3208 `response.output_item.added` may be incomplete. This is especially

3209 important when `store` is `false` or when using Zero Data Retention.

3210 

3205 - `status: optional "in_progress" or "completed" or "incomplete"`3211 - `status: optional "in_progress" or "completed" or "incomplete"`

3206 3212 

3207 The status of the item. One of `in_progress`, `completed`, or3213 The status of the item. One of `in_progress`, `completed`, or


3871 Unique identifier for the MCP tool call approval request.3877 Unique identifier for the MCP tool call approval request.

3872 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.3878 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

3873 3879 

3874 - `error: optional string or null`3880 - `error: optional McpToolCallError or null`

3875 3881 

3876 The error from the tool call, if any.3882 The error from the tool call, if any.

3877 3883 

3884 - `McpProtocolError object { code, message, type }`

3885 

3886 - `code: number`

3887 

3888 - `message: string`

3889 

3890 - `type: "mcp_protocol_error"`

3891 

3892 - `"mcp_protocol_error"`

3893 

3894 - `McpToolExecutionError object { content, type }`

3895 

3896 - `content: unknown`

3897 

3898 - `type: "mcp_tool_execution_error"`

3899 

3900 - `"mcp_tool_execution_error"`

3901 

3902 - `HTTPError object { code, message, type }`

3903 

3904 - `code: number`

3905 

3906 - `message: string`

3907 

3908 - `type: "http_error"`

3909 

3910 - `"http_error"`

3911 

3878 - `output: optional string or null`3912 - `output: optional string or null`

3879 3913 

3880 The output from the tool call.3914 The output from the tool call.


7224 for reasoning items returned by `POST /v1/responses` and WebSocket7258 for reasoning items returned by `POST /v1/responses` and WebSocket

7225 `response.create` requests.7259 `response.create` requests.

7226 7260 

7261 When streaming, use the completed reasoning item and its

7262 `encrypted_content` from the `response.output_item.done` event in

7263 subsequent requests. The `encrypted_content` in

7264 `response.output_item.added` may be incomplete. This is especially

7265 important when `store` is `false` or when using Zero Data Retention.

7266 

7227 - `status: optional "in_progress" or "completed" or "incomplete"`7267 - `status: optional "in_progress" or "completed" or "incomplete"`

7228 7268 

7229 The status of the item. One of `in_progress`, `completed`, or7269 The status of the item. One of `in_progress`, `completed`, or


7939 Unique identifier for the MCP tool call approval request.7979 Unique identifier for the MCP tool call approval request.

7940 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.7980 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

7941 7981 

7942 - `error: optional string or null`7982 - `error: optional McpToolCallError or null`

7943 7983 

7944 The error from the tool call, if any.7984 The error from the tool call, if any.

7945 7985 

7986 - `McpProtocolError object { code, message, type }`

7987 

7988 - `code: number`

7989 

7990 - `message: string`

7991 

7992 - `type: "mcp_protocol_error"`

7993 

7994 - `"mcp_protocol_error"`

7995 

7996 - `McpToolExecutionError object { content, type }`

7997 

7998 - `content: unknown`

7999 

8000 - `type: "mcp_tool_execution_error"`

8001 

8002 - `"mcp_tool_execution_error"`

8003 

8004 - `HTTPError object { code, message, type }`

8005 

8006 - `code: number`

8007 

8008 - `message: string`

8009 

8010 - `type: "http_error"`

8011 

8012 - `"http_error"`

8013 

7946 - `output: optional string or null`8014 - `output: optional string or null`

7947 8015 

7948 The output from the tool call.8016 The output from the tool call.

Details

3196 for reasoning items returned by `POST /v1/responses` and WebSocket3196 for reasoning items returned by `POST /v1/responses` and WebSocket

3197 `response.create` requests.3197 `response.create` requests.

3198 3198 

3199 When streaming, use the completed reasoning item and its

3200 `encrypted_content` from the `response.output_item.done` event in

3201 subsequent requests. The `encrypted_content` in

3202 `response.output_item.added` may be incomplete. This is especially

3203 important when `store` is `false` or when using Zero Data Retention.

3204 

3199 - `status: optional "in_progress" or "completed" or "incomplete"`3205 - `status: optional "in_progress" or "completed" or "incomplete"`

3200 3206 

3201 The status of the item. One of `in_progress`, `completed`, or3207 The status of the item. One of `in_progress`, `completed`, or


3911 Unique identifier for the MCP tool call approval request.3917 Unique identifier for the MCP tool call approval request.

3912 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.3918 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

3913 3919 

3914 - `error: optional string or null`3920 - `error: optional McpToolCallError or null`

3915 3921 

3916 The error from the tool call, if any.3922 The error from the tool call, if any.

3917 3923 

3924 - `McpProtocolError object { code, message, type }`

3925 

3926 - `code: number`

3927 

3928 - `message: string`

3929 

3930 - `type: "mcp_protocol_error"`

3931 

3932 - `"mcp_protocol_error"`

3933 

3934 - `McpToolExecutionError object { content, type }`

3935 

3936 - `content: unknown`

3937 

3938 - `type: "mcp_tool_execution_error"`

3939 

3940 - `"mcp_tool_execution_error"`

3941 

3942 - `HTTPError object { code, message, type }`

3943 

3944 - `code: number`

3945 

3946 - `message: string`

3947 

3948 - `type: "http_error"`

3949 

3950 - `"http_error"`

3951 

3918 - `output: optional string or null`3952 - `output: optional string or null`

3919 3953 

3920 The output from the tool call.3954 The output from the tool call.

Details

3167 for reasoning items returned by `POST /v1/responses` and WebSocket3167 for reasoning items returned by `POST /v1/responses` and WebSocket

3168 `response.create` requests.3168 `response.create` requests.

3169 3169 

3170 When streaming, use the completed reasoning item and its

3171 `encrypted_content` from the `response.output_item.done` event in

3172 subsequent requests. The `encrypted_content` in

3173 `response.output_item.added` may be incomplete. This is especially

3174 important when `store` is `false` or when using Zero Data Retention.

3175 

3170 - `status: optional "in_progress" or "completed" or "incomplete"`3176 - `status: optional "in_progress" or "completed" or "incomplete"`

3171 3177 

3172 The status of the item. One of `in_progress`, `completed`, or3178 The status of the item. One of `in_progress`, `completed`, or


3882 Unique identifier for the MCP tool call approval request.3888 Unique identifier for the MCP tool call approval request.

3883 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.3889 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

3884 3890 

3885 - `error: optional string or null`3891 - `error: optional McpToolCallError or null`

3886 3892 

3887 The error from the tool call, if any.3893 The error from the tool call, if any.

3888 3894 

3895 - `McpProtocolError object { code, message, type }`

3896 

3897 - `code: number`

3898 

3899 - `message: string`

3900 

3901 - `type: "mcp_protocol_error"`

3902 

3903 - `"mcp_protocol_error"`

3904 

3905 - `McpToolExecutionError object { content, type }`

3906 

3907 - `content: unknown`

3908 

3909 - `type: "mcp_tool_execution_error"`

3910 

3911 - `"mcp_tool_execution_error"`

3912 

3913 - `HTTPError object { code, message, type }`

3914 

3915 - `code: number`

3916 

3917 - `message: string`

3918 

3919 - `type: "http_error"`

3920 

3921 - `"http_error"`

3922 

3889 - `output: optional string or null`3923 - `output: optional string or null`

3890 3924 

3891 The output from the tool call.3925 The output from the tool call.

Details

84 84 

85 The organization that owns the model.85 The organization that owns the model.

86 86 

87 - `shutdown_date: optional string or null`

88 

89 The date when the model will shut down, or null if not announced.

90 

87- `object: "list"`91- `object: "list"`

88 92 

89 - `"list"`93 - `"list"`


104 "id": "id",108 "id": "id",

105 "created": 0,109 "created": 0,

106 "object": "model",110 "object": "model",

107 "owned_by": "owned_by"111 "owned_by": "owned_by",

112 "shutdown_date": "2019-12-27"

108 }113 }

109 ],114 ],

110 "object": "list"115 "object": "list"


128 "id": "model-id-0",133 "id": "model-id-0",

129 "object": "model",134 "object": "model",

130 "created": 1686935002,135 "created": 1686935002,

131 "owned_by": "organization-owner"136 "owned_by": "organization-owner",

137 "shutdown_date": null

132 },138 },

133 {139 {

134 "id": "model-id-1",140 "id": "model-id-1",

135 "object": "model",141 "object": "model",

136 "created": 1686935002,142 "created": 1686935002,

137 "owned_by": "organization-owner",143 "owned_by": "organization-owner",

144 "shutdown_date": null

138 },145 },

139 {146 {

140 "id": "model-id-2",147 "id": "model-id-2",

141 "object": "model",148 "object": "model",

142 "created": 1686935002,149 "created": 1686935002,

143 "owned_by": "openai"150 "owned_by": "openai",

151 "shutdown_date": "2026-10-23"

144 },152 },

145 ]153 ]

146}154}


158 166 

159### Returns167### Returns

160 168 

161- `Model object { id, created, object, owned_by }`169- `Model object { id, created, object, 2 more }`

162 170 

163 Describes an OpenAI model offering that can be used with the API.171 Describes an OpenAI model offering that can be used with the API.

164 172 


180 188 

181 The organization that owns the model.189 The organization that owns the model.

182 190 

191 - `shutdown_date: optional string or null`

192 

193 The date when the model will shut down, or null if not announced.

194 

183### Example195### Example

184 196 

185```http197```http


194 "id": "id",206 "id": "id",

195 "created": 0,207 "created": 0,

196 "object": "model",208 "object": "model",

197 "owned_by": "owned_by"209 "owned_by": "owned_by",

210 "shutdown_date": "2019-12-27"

198}211}

199```212```

200 213 


212 "id": "VAR_chat_model_id",225 "id": "VAR_chat_model_id",

213 "object": "model",226 "object": "model",

214 "created": 1686935002,227 "created": 1686935002,

215 "owned_by": "openai"228 "owned_by": "openai",

229 "shutdown_date": "2026-10-23"

216}230}

217```231```

218 232 


220 234 

221### Model235### Model

222 236 

223- `Model object { id, created, object, owned_by }`237- `Model object { id, created, object, 2 more }`

224 238 

225 Describes an OpenAI model offering that can be used with the API.239 Describes an OpenAI model offering that can be used with the API.

226 240 


242 256 

243 The organization that owns the model.257 The organization that owns the model.

244 258 

259 - `shutdown_date: optional string or null`

260 

261 The date when the model will shut down, or null if not announced.

262 

245### Model Deleted263### Model Deleted

246 264 

247- `ModelDeleted object { id, deleted, object }`265- `ModelDeleted object { id, deleted, object }`

Details

26 26 

27 The organization that owns the model.27 The organization that owns the model.

28 28 

29 - `shutdown_date: optional string or null`

30 

31 The date when the model will shut down, or null if not announced.

32 

29- `object: "list"`33- `object: "list"`

30 34 

31 - `"list"`35 - `"list"`


46 "id": "id",50 "id": "id",

47 "created": 0,51 "created": 0,

48 "object": "model",52 "object": "model",

49 "owned_by": "owned_by"53 "owned_by": "owned_by",

54 "shutdown_date": "2019-12-27"

50 }55 }

51 ],56 ],

52 "object": "list"57 "object": "list"


70 "id": "model-id-0",75 "id": "model-id-0",

71 "object": "model",76 "object": "model",

72 "created": 1686935002,77 "created": 1686935002,

73 "owned_by": "organization-owner"78 "owned_by": "organization-owner",

79 "shutdown_date": null

74 },80 },

75 {81 {

76 "id": "model-id-1",82 "id": "model-id-1",

77 "object": "model",83 "object": "model",

78 "created": 1686935002,84 "created": 1686935002,

79 "owned_by": "organization-owner",85 "owned_by": "organization-owner",

86 "shutdown_date": null

80 },87 },

81 {88 {

82 "id": "model-id-2",89 "id": "model-id-2",

83 "object": "model",90 "object": "model",

84 "created": 1686935002,91 "created": 1686935002,

85 "owned_by": "openai"92 "owned_by": "openai",

93 "shutdown_date": "2026-10-23"

86 },94 },

87 ]95 ]

88}96}

Details

10 10 

11### Returns11### Returns

12 12 

13- `Model object { id, created, object, owned_by }`13- `Model object { id, created, object, 2 more }`

14 14 

15 Describes an OpenAI model offering that can be used with the API.15 Describes an OpenAI model offering that can be used with the API.

16 16 


32 32 

33 The organization that owns the model.33 The organization that owns the model.

34 34 

35 - `shutdown_date: optional string or null`

36 

37 The date when the model will shut down, or null if not announced.

38 

35### Example39### Example

36 40 

37```http41```http


46 "id": "id",50 "id": "id",

47 "created": 0,51 "created": 0,

48 "object": "model",52 "object": "model",

49 "owned_by": "owned_by"53 "owned_by": "owned_by",

54 "shutdown_date": "2019-12-27"

50}55}

51```56```

52 57 


64 "id": "VAR_chat_model_id",69 "id": "VAR_chat_model_id",

65 "object": "model",70 "object": "model",

66 "created": 1686935002,71 "created": 1686935002,

67 "owned_by": "openai"72 "owned_by": "openai",

73 "shutdown_date": "2026-10-23"

68}74}

69```75```

Details

3271 for reasoning items returned by `POST /v1/responses` and WebSocket3271 for reasoning items returned by `POST /v1/responses` and WebSocket

3272 `response.create` requests.3272 `response.create` requests.

3273 3273 

3274 When streaming, use the completed reasoning item and its

3275 `encrypted_content` from the `response.output_item.done` event in

3276 subsequent requests. The `encrypted_content` in

3277 `response.output_item.added` may be incomplete. This is especially

3278 important when `store` is `false` or when using Zero Data Retention.

3279 

3274 - `status: optional "in_progress" or "completed" or "incomplete"`3280 - `status: optional "in_progress" or "completed" or "incomplete"`

3275 3281 

3276 The status of the item. One of `in_progress`, `completed`, or3282 The status of the item. One of `in_progress`, `completed`, or


3940 Unique identifier for the MCP tool call approval request.3946 Unique identifier for the MCP tool call approval request.

3941 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.3947 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

3942 3948 

3943 - `error: optional string or null`3949 - `error: optional McpToolCallError or null`

3944 3950 

3945 The error from the tool call, if any.3951 The error from the tool call, if any.

3946 3952 

3953 - `McpProtocolError object { code, message, type }`

3954 

3955 - `code: number`

3956 

3957 - `message: string`

3958 

3959 - `type: "mcp_protocol_error"`

3960 

3961 - `"mcp_protocol_error"`

3962 

3963 - `McpToolExecutionError object { content, type }`

3964 

3965 - `content: unknown`

3966 

3967 - `type: "mcp_tool_execution_error"`

3968 

3969 - `"mcp_tool_execution_error"`

3970 

3971 - `HTTPError object { code, message, type }`

3972 

3973 - `code: number`

3974 

3975 - `message: string`

3976 

3977 - `type: "http_error"`

3978 

3979 - `"http_error"`

3980 

3947 - `output: optional string or null`3981 - `output: optional string or null`

3948 3982 

3949 The output from the tool call.3983 The output from the tool call.


4874 for reasoning items returned by `POST /v1/responses` and WebSocket4908 for reasoning items returned by `POST /v1/responses` and WebSocket

4875 `response.create` requests.4909 `response.create` requests.

4876 4910 

4911 When streaming, use the completed reasoning item and its

4912 `encrypted_content` from the `response.output_item.done` event in

4913 subsequent requests. The `encrypted_content` in

4914 `response.output_item.added` may be incomplete. This is especially

4915 important when `store` is `false` or when using Zero Data Retention.

4916 

4877 - `status: optional "in_progress" or "completed" or "incomplete"`4917 - `status: optional "in_progress" or "completed" or "incomplete"`

4878 4918 

4879 The status of the item. One of `in_progress`, `completed`, or4919 The status of the item. One of `in_progress`, `completed`, or


7271 Unique identifier for the MCP tool call approval request.7311 Unique identifier for the MCP tool call approval request.

7272 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.7312 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

7273 7313 

7274 - `error: optional string or null`7314 - `error: optional McpToolCallError or null`

7275 7315 

7276 The error from the tool call, if any.7316 The error from the tool call, if any.

7277 7317 


12709 for reasoning items returned by `POST /v1/responses` and WebSocket12749 for reasoning items returned by `POST /v1/responses` and WebSocket

12710 `response.create` requests.12750 `response.create` requests.

12711 12751 

12752 When streaming, use the completed reasoning item and its

12753 `encrypted_content` from the `response.output_item.done` event in

12754 subsequent requests. The `encrypted_content` in

12755 `response.output_item.added` may be incomplete. This is especially

12756 important when `store` is `false` or when using Zero Data Retention.

12757 

12712 - `status: optional "in_progress" or "completed" or "incomplete"`12758 - `status: optional "in_progress" or "completed" or "incomplete"`

12713 12759 

12714 The status of the item. One of `in_progress`, `completed`, or12760 The status of the item. One of `in_progress`, `completed`, or


13378 Unique identifier for the MCP tool call approval request.13424 Unique identifier for the MCP tool call approval request.

13379 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.13425 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

13380 13426 

13381 - `error: optional string or null`13427 - `error: optional McpToolCallError or null`

13382 13428 

13383 The error from the tool call, if any.13429 The error from the tool call, if any.

13384 13430 

13431 - `McpProtocolError object { code, message, type }`

13432 

13433 - `code: number`

13434 

13435 - `message: string`

13436 

13437 - `type: "mcp_protocol_error"`

13438 

13439 - `"mcp_protocol_error"`

13440 

13441 - `McpToolExecutionError object { content, type }`

13442 

13443 - `content: unknown`

13444 

13445 - `type: "mcp_tool_execution_error"`

13446 

13447 - `"mcp_tool_execution_error"`

13448 

13449 - `HTTPError object { code, message, type }`

13450 

13451 - `code: number`

13452 

13453 - `message: string`

13454 

13455 - `type: "http_error"`

13456 

13457 - `"http_error"`

13458 

13385 - `output: optional string or null`13459 - `output: optional string or null`

13386 13460 

13387 The output from the tool call.13461 The output from the tool call.


16847 for reasoning items returned by `POST /v1/responses` and WebSocket16921 for reasoning items returned by `POST /v1/responses` and WebSocket

16848 `response.create` requests.16922 `response.create` requests.

16849 16923 

16924 When streaming, use the completed reasoning item and its

16925 `encrypted_content` from the `response.output_item.done` event in

16926 subsequent requests. The `encrypted_content` in

16927 `response.output_item.added` may be incomplete. This is especially

16928 important when `store` is `false` or when using Zero Data Retention.

16929 

16850 - `status: optional "in_progress" or "completed" or "incomplete"`16930 - `status: optional "in_progress" or "completed" or "incomplete"`

16851 16931 

16852 The status of the item. One of `in_progress`, `completed`, or16932 The status of the item. One of `in_progress`, `completed`, or


17510 Unique identifier for the MCP tool call approval request.17590 Unique identifier for the MCP tool call approval request.

17511 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.17591 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

17512 17592 

17513 - `error: optional string or null`17593 - `error: optional McpToolCallError or null`

17514 17594 

17515 The error from the tool call, if any.17595 The error from the tool call, if any.

17516 17596 

17597 - `McpProtocolError object { code, message, type }`

17598 

17599 - `code: number`

17600 

17601 - `message: string`

17602 

17603 - `type: "mcp_protocol_error"`

17604 

17605 - `"mcp_protocol_error"`

17606 

17607 - `McpToolExecutionError object { content, type }`

17608 

17609 - `content: unknown`

17610 

17611 - `type: "mcp_tool_execution_error"`

17612 

17613 - `"mcp_tool_execution_error"`

17614 

17615 - `HTTPError object { code, message, type }`

17616 

17617 - `code: number`

17618 

17619 - `message: string`

17620 

17621 - `type: "http_error"`

17622 

17623 - `"http_error"`

17624 

17517 - `output: optional string or null`17625 - `output: optional string or null`

17518 17626 

17519 The output from the tool call.17627 The output from the tool call.


21073 for reasoning items returned by `POST /v1/responses` and WebSocket21181 for reasoning items returned by `POST /v1/responses` and WebSocket

21074 `response.create` requests.21182 `response.create` requests.

21075 21183 

21184 When streaming, use the completed reasoning item and its

21185 `encrypted_content` from the `response.output_item.done` event in

21186 subsequent requests. The `encrypted_content` in

21187 `response.output_item.added` may be incomplete. This is especially

21188 important when `store` is `false` or when using Zero Data Retention.

21189 

21076 - `status: optional "in_progress" or "completed" or "incomplete"`21190 - `status: optional "in_progress" or "completed" or "incomplete"`

21077 21191 

21078 The status of the item. One of `in_progress`, `completed`, or21192 The status of the item. One of `in_progress`, `completed`, or


21742 Unique identifier for the MCP tool call approval request.21856 Unique identifier for the MCP tool call approval request.

21743 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.21857 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

21744 21858 

21745 - `error: optional string or null`21859 - `error: optional McpToolCallError or null`

21746 21860 

21747 The error from the tool call, if any.21861 The error from the tool call, if any.

21748 21862 

21863 - `McpProtocolError object { code, message, type }`

21864 

21865 - `code: number`

21866 

21867 - `message: string`

21868 

21869 - `type: "mcp_protocol_error"`

21870 

21871 - `"mcp_protocol_error"`

21872 

21873 - `McpToolExecutionError object { content, type }`

21874 

21875 - `content: unknown`

21876 

21877 - `type: "mcp_tool_execution_error"`

21878 

21879 - `"mcp_tool_execution_error"`

21880 

21881 - `HTTPError object { code, message, type }`

21882 

21883 - `code: number`

21884 

21885 - `message: string`

21886 

21887 - `type: "http_error"`

21888 

21889 - `"http_error"`

21890 

21749 - `output: optional string or null`21891 - `output: optional string or null`

21750 21892 

21751 The output from the tool call.21893 The output from the tool call.


26863 for reasoning items returned by `POST /v1/responses` and WebSocket27005 for reasoning items returned by `POST /v1/responses` and WebSocket

26864 `response.create` requests.27006 `response.create` requests.

26865 27007 

27008 When streaming, use the completed reasoning item and its

27009 `encrypted_content` from the `response.output_item.done` event in

27010 subsequent requests. The `encrypted_content` in

27011 `response.output_item.added` may be incomplete. This is especially

27012 important when `store` is `false` or when using Zero Data Retention.

27013 

26866 - `status: optional "in_progress" or "completed" or "incomplete"`27014 - `status: optional "in_progress" or "completed" or "incomplete"`

26867 27015 

26868 The status of the item. One of `in_progress`, `completed`, or27016 The status of the item. One of `in_progress`, `completed`, or


27532 Unique identifier for the MCP tool call approval request.27680 Unique identifier for the MCP tool call approval request.

27533 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.27681 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

27534 27682 

27535 - `error: optional string or null`27683 - `error: optional McpToolCallError or null`

27536 27684 

27537 The error from the tool call, if any.27685 The error from the tool call, if any.

27538 27686 

27687 - `McpProtocolError object { code, message, type }`

27688 

27689 - `code: number`

27690 

27691 - `message: string`

27692 

27693 - `type: "mcp_protocol_error"`

27694 

27695 - `"mcp_protocol_error"`

27696 

27697 - `McpToolExecutionError object { content, type }`

27698 

27699 - `content: unknown`

27700 

27701 - `type: "mcp_tool_execution_error"`

27702 

27703 - `"mcp_tool_execution_error"`

27704 

27705 - `HTTPError object { code, message, type }`

27706 

27707 - `code: number`

27708 

27709 - `message: string`

27710 

27711 - `type: "http_error"`

27712 

27713 - `"http_error"`

27714 

27539 - `output: optional string or null`27715 - `output: optional string or null`

27540 27716 

27541 The output from the tool call.27717 The output from the tool call.


28466 for reasoning items returned by `POST /v1/responses` and WebSocket28642 for reasoning items returned by `POST /v1/responses` and WebSocket

28467 `response.create` requests.28643 `response.create` requests.

28468 28644 

28645 When streaming, use the completed reasoning item and its

28646 `encrypted_content` from the `response.output_item.done` event in

28647 subsequent requests. The `encrypted_content` in

28648 `response.output_item.added` may be incomplete. This is especially

28649 important when `store` is `false` or when using Zero Data Retention.

28650 

28469 - `status: optional "in_progress" or "completed" or "incomplete"`28651 - `status: optional "in_progress" or "completed" or "incomplete"`

28470 28652 

28471 The status of the item. One of `in_progress`, `completed`, or28653 The status of the item. One of `in_progress`, `completed`, or


30863 Unique identifier for the MCP tool call approval request.31045 Unique identifier for the MCP tool call approval request.

30864 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.31046 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

30865 31047 

30866 - `error: optional string or null`31048 - `error: optional McpToolCallError or null`

30867 31049 

30868 The error from the tool call, if any.31050 The error from the tool call, if any.

30869 31051 


36958 for reasoning items returned by `POST /v1/responses` and WebSocket37140 for reasoning items returned by `POST /v1/responses` and WebSocket

36959 `response.create` requests.37141 `response.create` requests.

36960 37142 

37143 When streaming, use the completed reasoning item and its

37144 `encrypted_content` from the `response.output_item.done` event in

37145 subsequent requests. The `encrypted_content` in

37146 `response.output_item.added` may be incomplete. This is especially

37147 important when `store` is `false` or when using Zero Data Retention.

37148 

36961 - `status: optional "in_progress" or "completed" or "incomplete"`37149 - `status: optional "in_progress" or "completed" or "incomplete"`

36962 37150 

36963 The status of the item. One of `in_progress`, `completed`, or37151 The status of the item. One of `in_progress`, `completed`, or


37627 Unique identifier for the MCP tool call approval request.37815 Unique identifier for the MCP tool call approval request.

37628 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.37816 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

37629 37817 

37630 - `error: optional string or null`37818 - `error: optional McpToolCallError or null`

37631 37819 

37632 The error from the tool call, if any.37820 The error from the tool call, if any.

37633 37821 

37822 - `McpProtocolError object { code, message, type }`

37823 

37824 - `code: number`

37825 

37826 - `message: string`

37827 

37828 - `type: "mcp_protocol_error"`

37829 

37830 - `"mcp_protocol_error"`

37831 

37832 - `McpToolExecutionError object { content, type }`

37833 

37834 - `content: unknown`

37835 

37836 - `type: "mcp_tool_execution_error"`

37837 

37838 - `"mcp_tool_execution_error"`

37839 

37840 - `HTTPError object { code, message, type }`

37841 

37842 - `code: number`

37843 

37844 - `message: string`

37845 

37846 - `type: "http_error"`

37847 

37848 - `"http_error"`

37849 

37634 - `output: optional string or null`37850 - `output: optional string or null`

37635 37851 

37636 The output from the tool call.37852 The output from the tool call.


38561 for reasoning items returned by `POST /v1/responses` and WebSocket38777 for reasoning items returned by `POST /v1/responses` and WebSocket

38562 `response.create` requests.38778 `response.create` requests.

38563 38779 

38780 When streaming, use the completed reasoning item and its

38781 `encrypted_content` from the `response.output_item.done` event in

38782 subsequent requests. The `encrypted_content` in

38783 `response.output_item.added` may be incomplete. This is especially

38784 important when `store` is `false` or when using Zero Data Retention.

38785 

38564 - `status: optional "in_progress" or "completed" or "incomplete"`38786 - `status: optional "in_progress" or "completed" or "incomplete"`

38565 38787 

38566 The status of the item. One of `in_progress`, `completed`, or38788 The status of the item. One of `in_progress`, `completed`, or


40958 Unique identifier for the MCP tool call approval request.41180 Unique identifier for the MCP tool call approval request.

40959 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.41181 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

40960 41182 

40961 - `error: optional string or null`41183 - `error: optional McpToolCallError or null`

40962 41184 

40963 The error from the tool call, if any.41185 The error from the tool call, if any.

40964 41186 


46206 for reasoning items returned by `POST /v1/responses` and WebSocket46428 for reasoning items returned by `POST /v1/responses` and WebSocket

46207 `response.create` requests.46429 `response.create` requests.

46208 46430 

46431 When streaming, use the completed reasoning item and its

46432 `encrypted_content` from the `response.output_item.done` event in

46433 subsequent requests. The `encrypted_content` in

46434 `response.output_item.added` may be incomplete. This is especially

46435 important when `store` is `false` or when using Zero Data Retention.

46436 

46209 - `status: optional "in_progress" or "completed" or "incomplete"`46437 - `status: optional "in_progress" or "completed" or "incomplete"`

46210 46438 

46211 The status of the item. One of `in_progress`, `completed`, or46439 The status of the item. One of `in_progress`, `completed`, or


46869 Unique identifier for the MCP tool call approval request.47097 Unique identifier for the MCP tool call approval request.

46870 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.47098 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

46871 47099 

46872 - `error: optional string or null`47100 - `error: optional McpToolCallError or null`

46873 47101 

46874 The error from the tool call, if any.47102 The error from the tool call, if any.

46875 47103 

47104 - `McpProtocolError object { code, message, type }`

47105 

47106 - `code: number`

47107 

47108 - `message: string`

47109 

47110 - `type: "mcp_protocol_error"`

47111 

47112 - `"mcp_protocol_error"`

47113 

47114 - `McpToolExecutionError object { content, type }`

47115 

47116 - `content: unknown`

47117 

47118 - `type: "mcp_tool_execution_error"`

47119 

47120 - `"mcp_tool_execution_error"`

47121 

47122 - `HTTPError object { code, message, type }`

47123 

47124 - `code: number`

47125 

47126 - `message: string`

47127 

47128 - `type: "http_error"`

47129 

47130 - `"http_error"`

47131 

46876 - `output: optional string or null`47132 - `output: optional string or null`

46877 47133 

46878 The output from the tool call.47134 The output from the tool call.


47897 48153 

47898 The path to the directory containing the skill.48154 The path to the directory containing the skill.

47899 48155 

48156### Mcp Tool Call Error

48157 

48158- `McpToolCallError = object { code, message, type } or object { content, type } or object { code, message, type }`

48159 

48160 - `McpProtocolError object { code, message, type }`

48161 

48162 - `code: number`

48163 

48164 - `message: string`

48165 

48166 - `type: "mcp_protocol_error"`

48167 

48168 - `"mcp_protocol_error"`

48169 

48170 - `McpToolExecutionError object { content, type }`

48171 

48172 - `content: unknown`

48173 

48174 - `type: "mcp_tool_execution_error"`

48175 

48176 - `"mcp_tool_execution_error"`

48177 

48178 - `HTTPError object { code, message, type }`

48179 

48180 - `code: number`

48181 

48182 - `message: string`

48183 

48184 - `type: "http_error"`

48185 

48186 - `"http_error"`

48187 

47900### Response48188### Response

47901 48189 

47902- `Response object { id, created_at, error, 32 more }`48190- `Response object { id, created_at, error, 32 more }`


51156 for reasoning items returned by `POST /v1/responses` and WebSocket51444 for reasoning items returned by `POST /v1/responses` and WebSocket

51157 `response.create` requests.51445 `response.create` requests.

51158 51446 

51447 When streaming, use the completed reasoning item and its

51448 `encrypted_content` from the `response.output_item.done` event in

51449 subsequent requests. The `encrypted_content` in

51450 `response.output_item.added` may be incomplete. This is especially

51451 important when `store` is `false` or when using Zero Data Retention.

51452 

51159 - `status: optional "in_progress" or "completed" or "incomplete"`51453 - `status: optional "in_progress" or "completed" or "incomplete"`

51160 51454 

51161 The status of the item. One of `in_progress`, `completed`, or51455 The status of the item. One of `in_progress`, `completed`, or


51825 Unique identifier for the MCP tool call approval request.52119 Unique identifier for the MCP tool call approval request.

51826 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.52120 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

51827 52121 

51828 - `error: optional string or null`52122 - `error: optional McpToolCallError or null`

51829 52123 

51830 The error from the tool call, if any.52124 The error from the tool call, if any.

51831 52125 

52126 - `McpProtocolError object { code, message, type }`

52127 

52128 - `code: number`

52129 

52130 - `message: string`

52131 

52132 - `type: "mcp_protocol_error"`

52133 

52134 - `"mcp_protocol_error"`

52135 

52136 - `McpToolExecutionError object { content, type }`

52137 

52138 - `content: unknown`

52139 

52140 - `type: "mcp_tool_execution_error"`

52141 

52142 - `"mcp_tool_execution_error"`

52143 

52144 - `HTTPError object { code, message, type }`

52145 

52146 - `code: number`

52147 

52148 - `message: string`

52149 

52150 - `type: "http_error"`

52151 

52152 - `"http_error"`

52153 

51832 - `output: optional string or null`52154 - `output: optional string or null`

51833 52155 

51834 The output from the tool call.52156 The output from the tool call.


52759 for reasoning items returned by `POST /v1/responses` and WebSocket53081 for reasoning items returned by `POST /v1/responses` and WebSocket

52760 `response.create` requests.53082 `response.create` requests.

52761 53083 

53084 When streaming, use the completed reasoning item and its

53085 `encrypted_content` from the `response.output_item.done` event in

53086 subsequent requests. The `encrypted_content` in

53087 `response.output_item.added` may be incomplete. This is especially

53088 important when `store` is `false` or when using Zero Data Retention.

53089 

52762 - `status: optional "in_progress" or "completed" or "incomplete"`53090 - `status: optional "in_progress" or "completed" or "incomplete"`

52763 53091 

52764 The status of the item. One of `in_progress`, `completed`, or53092 The status of the item. One of `in_progress`, `completed`, or


55156 Unique identifier for the MCP tool call approval request.55484 Unique identifier for the MCP tool call approval request.

55157 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.55485 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

55158 55486 

55159 - `error: optional string or null`55487 - `error: optional McpToolCallError or null`

55160 55488 

55161 The error from the tool call, if any.55489 The error from the tool call, if any.

55162 55490 


60417 for reasoning items returned by `POST /v1/responses` and WebSocket60745 for reasoning items returned by `POST /v1/responses` and WebSocket

60418 `response.create` requests.60746 `response.create` requests.

60419 60747 

60748 When streaming, use the completed reasoning item and its

60749 `encrypted_content` from the `response.output_item.done` event in

60750 subsequent requests. The `encrypted_content` in

60751 `response.output_item.added` may be incomplete. This is especially

60752 important when `store` is `false` or when using Zero Data Retention.

60753 

60420 - `status: optional "in_progress" or "completed" or "incomplete"`60754 - `status: optional "in_progress" or "completed" or "incomplete"`

60421 60755 

60422 The status of the item. One of `in_progress`, `completed`, or60756 The status of the item. One of `in_progress`, `completed`, or


61086 Unique identifier for the MCP tool call approval request.61420 Unique identifier for the MCP tool call approval request.

61087 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.61421 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

61088 61422 

61089 - `error: optional string or null`61423 - `error: optional McpToolCallError or null`

61090 61424 

61091 The error from the tool call, if any.61425 The error from the tool call, if any.

61092 61426 

61427 - `McpProtocolError object { code, message, type }`

61428 

61429 - `code: number`

61430 

61431 - `message: string`

61432 

61433 - `type: "mcp_protocol_error"`

61434 

61435 - `"mcp_protocol_error"`

61436 

61437 - `McpToolExecutionError object { content, type }`

61438 

61439 - `content: unknown`

61440 

61441 - `type: "mcp_tool_execution_error"`

61442 

61443 - `"mcp_tool_execution_error"`

61444 

61445 - `HTTPError object { code, message, type }`

61446 

61447 - `code: number`

61448 

61449 - `message: string`

61450 

61451 - `type: "http_error"`

61452 

61453 - `"http_error"`

61454 

61093 - `output: optional string or null`61455 - `output: optional string or null`

61094 61456 

61095 The output from the tool call.61457 The output from the tool call.


62020 for reasoning items returned by `POST /v1/responses` and WebSocket62382 for reasoning items returned by `POST /v1/responses` and WebSocket

62021 `response.create` requests.62383 `response.create` requests.

62022 62384 

62385 When streaming, use the completed reasoning item and its

62386 `encrypted_content` from the `response.output_item.done` event in

62387 subsequent requests. The `encrypted_content` in

62388 `response.output_item.added` may be incomplete. This is especially

62389 important when `store` is `false` or when using Zero Data Retention.

62390 

62023 - `status: optional "in_progress" or "completed" or "incomplete"`62391 - `status: optional "in_progress" or "completed" or "incomplete"`

62024 62392 

62025 The status of the item. One of `in_progress`, `completed`, or62393 The status of the item. One of `in_progress`, `completed`, or


64417 Unique identifier for the MCP tool call approval request.64785 Unique identifier for the MCP tool call approval request.

64418 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.64786 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

64419 64787 

64420 - `error: optional string or null`64788 - `error: optional McpToolCallError or null`

64421 64789 

64422 The error from the tool call, if any.64790 The error from the tool call, if any.

64423 64791 


70187 for reasoning items returned by `POST /v1/responses` and WebSocket70555 for reasoning items returned by `POST /v1/responses` and WebSocket

70188 `response.create` requests.70556 `response.create` requests.

70189 70557 

70558 When streaming, use the completed reasoning item and its

70559 `encrypted_content` from the `response.output_item.done` event in

70560 subsequent requests. The `encrypted_content` in

70561 `response.output_item.added` may be incomplete. This is especially

70562 important when `store` is `false` or when using Zero Data Retention.

70563 

70190 - `status: optional "in_progress" or "completed" or "incomplete"`70564 - `status: optional "in_progress" or "completed" or "incomplete"`

70191 70565 

70192 The status of the item. One of `in_progress`, `completed`, or70566 The status of the item. One of `in_progress`, `completed`, or


70856 Unique identifier for the MCP tool call approval request.71230 Unique identifier for the MCP tool call approval request.

70857 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.71231 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

70858 71232 

70859 - `error: optional string or null`71233 - `error: optional McpToolCallError or null`

70860 71234 

70861 The error from the tool call, if any.71235 The error from the tool call, if any.

70862 71236 

71237 - `McpProtocolError object { code, message, type }`

71238 

71239 - `code: number`

71240 

71241 - `message: string`

71242 

71243 - `type: "mcp_protocol_error"`

71244 

71245 - `"mcp_protocol_error"`

71246 

71247 - `McpToolExecutionError object { content, type }`

71248 

71249 - `content: unknown`

71250 

71251 - `type: "mcp_tool_execution_error"`

71252 

71253 - `"mcp_tool_execution_error"`

71254 

71255 - `HTTPError object { code, message, type }`

71256 

71257 - `code: number`

71258 

71259 - `message: string`

71260 

71261 - `type: "http_error"`

71262 

71263 - `"http_error"`

71264 

70863 - `output: optional string or null`71265 - `output: optional string or null`

70864 71266 

70865 The output from the tool call.71267 The output from the tool call.


71790 for reasoning items returned by `POST /v1/responses` and WebSocket72192 for reasoning items returned by `POST /v1/responses` and WebSocket

71791 `response.create` requests.72193 `response.create` requests.

71792 72194 

72195 When streaming, use the completed reasoning item and its

72196 `encrypted_content` from the `response.output_item.done` event in

72197 subsequent requests. The `encrypted_content` in

72198 `response.output_item.added` may be incomplete. This is especially

72199 important when `store` is `false` or when using Zero Data Retention.

72200 

71793 - `status: optional "in_progress" or "completed" or "incomplete"`72201 - `status: optional "in_progress" or "completed" or "incomplete"`

71794 72202 

71795 The status of the item. One of `in_progress`, `completed`, or72203 The status of the item. One of `in_progress`, `completed`, or


74187 Unique identifier for the MCP tool call approval request.74595 Unique identifier for the MCP tool call approval request.

74188 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.74596 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

74189 74597 

74190 - `error: optional string or null`74598 - `error: optional McpToolCallError or null`

74191 74599 

74192 The error from the tool call, if any.74600 The error from the tool call, if any.

74193 74601 


79396 for reasoning items returned by `POST /v1/responses` and WebSocket79804 for reasoning items returned by `POST /v1/responses` and WebSocket

79397 `response.create` requests.79805 `response.create` requests.

79398 79806 

79807 When streaming, use the completed reasoning item and its

79808 `encrypted_content` from the `response.output_item.done` event in

79809 subsequent requests. The `encrypted_content` in

79810 `response.output_item.added` may be incomplete. This is especially

79811 important when `store` is `false` or when using Zero Data Retention.

79812 

79399 - `status: optional "in_progress" or "completed" or "incomplete"`79813 - `status: optional "in_progress" or "completed" or "incomplete"`

79400 79814 

79401 The status of the item. One of `in_progress`, `completed`, or79815 The status of the item. One of `in_progress`, `completed`, or


80065 Unique identifier for the MCP tool call approval request.80479 Unique identifier for the MCP tool call approval request.

80066 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.80480 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

80067 80481 

80068 - `error: optional string or null`80482 - `error: optional McpToolCallError or null`

80069 80483 

80070 The error from the tool call, if any.80484 The error from the tool call, if any.

80071 80485 

80486 - `McpProtocolError object { code, message, type }`

80487 

80488 - `code: number`

80489 

80490 - `message: string`

80491 

80492 - `type: "mcp_protocol_error"`

80493 

80494 - `"mcp_protocol_error"`

80495 

80496 - `McpToolExecutionError object { content, type }`

80497 

80498 - `content: unknown`

80499 

80500 - `type: "mcp_tool_execution_error"`

80501 

80502 - `"mcp_tool_execution_error"`

80503 

80504 - `HTTPError object { code, message, type }`

80505 

80506 - `code: number`

80507 

80508 - `message: string`

80509 

80510 - `type: "http_error"`

80511 

80512 - `"http_error"`

80513 

80072 - `output: optional string or null`80514 - `output: optional string or null`

80073 80515 

80074 The output from the tool call.80516 The output from the tool call.


80999 for reasoning items returned by `POST /v1/responses` and WebSocket81441 for reasoning items returned by `POST /v1/responses` and WebSocket

81000 `response.create` requests.81442 `response.create` requests.

81001 81443 

81444 When streaming, use the completed reasoning item and its

81445 `encrypted_content` from the `response.output_item.done` event in

81446 subsequent requests. The `encrypted_content` in

81447 `response.output_item.added` may be incomplete. This is especially

81448 important when `store` is `false` or when using Zero Data Retention.

81449 

81002 - `status: optional "in_progress" or "completed" or "incomplete"`81450 - `status: optional "in_progress" or "completed" or "incomplete"`

81003 81451 

81004 The status of the item. One of `in_progress`, `completed`, or81452 The status of the item. One of `in_progress`, `completed`, or


83396 Unique identifier for the MCP tool call approval request.83844 Unique identifier for the MCP tool call approval request.

83397 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.83845 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

83398 83846 

83399 - `error: optional string or null`83847 - `error: optional McpToolCallError or null`

83400 83848 

83401 The error from the tool call, if any.83849 The error from the tool call, if any.

83402 83850 


85559 86007 

85560### Response Image Gen Call Partial Image Event86008### Response Image Gen Call Partial Image Event

85561 86009 

85562- `ResponseImageGenCallPartialImageEvent object { item_id, output_index, partial_image_b64, 3 more }`86010- `ResponseImageGenCallPartialImageEvent object { item_id, output_index, partial_image_b64, 7 more }`

85563 86011 

85564 Emitted when a partial image is available during image generation streaming.86012 Emitted when a partial image is available during image generation streaming.

85565 86013 


85589 86037 

85590 - `"response.image_generation_call.partial_image"`86038 - `"response.image_generation_call.partial_image"`

85591 86039 

86040 - `background: optional string`

86041 

86042 The background setting that was used.

86043 

86044 - `output_format: optional string`

86045 

86046 The output format that was used.

86047 

86048 - `quality: optional string`

86049 

86050 The image quality that was used.

86051 

86052 - `size: optional string`

86053 

86054 The image size that was used.

86055 

85592### Response In Progress Event86056### Response In Progress Event

85593 86057 

85594- `ResponseInProgressEvent object { response, sequence_number, type }`86058- `ResponseInProgressEvent object { response, sequence_number, type }`


88854 for reasoning items returned by `POST /v1/responses` and WebSocket89318 for reasoning items returned by `POST /v1/responses` and WebSocket

88855 `response.create` requests.89319 `response.create` requests.

88856 89320 

89321 When streaming, use the completed reasoning item and its

89322 `encrypted_content` from the `response.output_item.done` event in

89323 subsequent requests. The `encrypted_content` in

89324 `response.output_item.added` may be incomplete. This is especially

89325 important when `store` is `false` or when using Zero Data Retention.

89326 

88857 - `status: optional "in_progress" or "completed" or "incomplete"`89327 - `status: optional "in_progress" or "completed" or "incomplete"`

88858 89328 

88859 The status of the item. One of `in_progress`, `completed`, or89329 The status of the item. One of `in_progress`, `completed`, or


89523 Unique identifier for the MCP tool call approval request.89993 Unique identifier for the MCP tool call approval request.

89524 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.89994 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

89525 89995 

89526 - `error: optional string or null`89996 - `error: optional McpToolCallError or null`

89527 89997 

89528 The error from the tool call, if any.89998 The error from the tool call, if any.

89529 89999 

90000 - `McpProtocolError object { code, message, type }`

90001 

90002 - `code: number`

90003 

90004 - `message: string`

90005 

90006 - `type: "mcp_protocol_error"`

90007 

90008 - `"mcp_protocol_error"`

90009 

90010 - `McpToolExecutionError object { content, type }`

90011 

90012 - `content: unknown`

90013 

90014 - `type: "mcp_tool_execution_error"`

90015 

90016 - `"mcp_tool_execution_error"`

90017 

90018 - `HTTPError object { code, message, type }`

90019 

90020 - `code: number`

90021 

90022 - `message: string`

90023 

90024 - `type: "http_error"`

90025 

90026 - `"http_error"`

90027 

89530 - `output: optional string or null`90028 - `output: optional string or null`

89531 90029 

89532 The output from the tool call.90030 The output from the tool call.


90457 for reasoning items returned by `POST /v1/responses` and WebSocket90955 for reasoning items returned by `POST /v1/responses` and WebSocket

90458 `response.create` requests.90956 `response.create` requests.

90459 90957 

90958 When streaming, use the completed reasoning item and its

90959 `encrypted_content` from the `response.output_item.done` event in

90960 subsequent requests. The `encrypted_content` in

90961 `response.output_item.added` may be incomplete. This is especially

90962 important when `store` is `false` or when using Zero Data Retention.

90963 

90460 - `status: optional "in_progress" or "completed" or "incomplete"`90964 - `status: optional "in_progress" or "completed" or "incomplete"`

90461 90965 

90462 The status of the item. One of `in_progress`, `completed`, or90966 The status of the item. One of `in_progress`, `completed`, or


92854 Unique identifier for the MCP tool call approval request.93358 Unique identifier for the MCP tool call approval request.

92855 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.93359 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

92856 93360 

92857 - `error: optional string or null`93361 - `error: optional McpToolCallError or null`

92858 93362 

92859 The error from the tool call, if any.93363 The error from the tool call, if any.

92860 93364 


97956 for reasoning items returned by `POST /v1/responses` and WebSocket98460 for reasoning items returned by `POST /v1/responses` and WebSocket

97957 `response.create` requests.98461 `response.create` requests.

97958 98462 

98463 When streaming, use the completed reasoning item and its

98464 `encrypted_content` from the `response.output_item.done` event in

98465 subsequent requests. The `encrypted_content` in

98466 `response.output_item.added` may be incomplete. This is especially

98467 important when `store` is `false` or when using Zero Data Retention.

98468 

97959 - `status: optional "in_progress" or "completed" or "incomplete"`98469 - `status: optional "in_progress" or "completed" or "incomplete"`

97960 98470 

97961 The status of the item. One of `in_progress`, `completed`, or98471 The status of the item. One of `in_progress`, `completed`, or


98625 Unique identifier for the MCP tool call approval request.99135 Unique identifier for the MCP tool call approval request.

98626 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.99136 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

98627 99137 

98628 - `error: optional string or null`99138 - `error: optional McpToolCallError or null`

98629 99139 

98630 The error from the tool call, if any.99140 The error from the tool call, if any.

98631 99141 

99142 - `McpProtocolError object { code, message, type }`

99143 

99144 - `code: number`

99145 

99146 - `message: string`

99147 

99148 - `type: "mcp_protocol_error"`

99149 

99150 - `"mcp_protocol_error"`

99151 

99152 - `McpToolExecutionError object { content, type }`

99153 

99154 - `content: unknown`

99155 

99156 - `type: "mcp_tool_execution_error"`

99157 

99158 - `"mcp_tool_execution_error"`

99159 

99160 - `HTTPError object { code, message, type }`

99161 

99162 - `code: number`

99163 

99164 - `message: string`

99165 

99166 - `type: "http_error"`

99167 

99168 - `"http_error"`

99169 

98632 - `output: optional string or null`99170 - `output: optional string or null`

98633 99171 

98634 The output from the tool call.99172 The output from the tool call.


99559 for reasoning items returned by `POST /v1/responses` and WebSocket100097 for reasoning items returned by `POST /v1/responses` and WebSocket

99560 `response.create` requests.100098 `response.create` requests.

99561 100099 

100100 When streaming, use the completed reasoning item and its

100101 `encrypted_content` from the `response.output_item.done` event in

100102 subsequent requests. The `encrypted_content` in

100103 `response.output_item.added` may be incomplete. This is especially

100104 important when `store` is `false` or when using Zero Data Retention.

100105 

99562 - `status: optional "in_progress" or "completed" or "incomplete"`100106 - `status: optional "in_progress" or "completed" or "incomplete"`

99563 100107 

99564 The status of the item. One of `in_progress`, `completed`, or100108 The status of the item. One of `in_progress`, `completed`, or


101956 Unique identifier for the MCP tool call approval request.102500 Unique identifier for the MCP tool call approval request.

101957 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.102501 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

101958 102502 

101959 - `error: optional string or null`102503 - `error: optional McpToolCallError or null`

101960 102504 

101961 The error from the tool call, if any.102505 The error from the tool call, if any.

101962 102506 


105645 for reasoning items returned by `POST /v1/responses` and WebSocket106189 for reasoning items returned by `POST /v1/responses` and WebSocket

105646 `response.create` requests.106190 `response.create` requests.

105647 106191 

106192 When streaming, use the completed reasoning item and its

106193 `encrypted_content` from the `response.output_item.done` event in

106194 subsequent requests. The `encrypted_content` in

106195 `response.output_item.added` may be incomplete. This is especially

106196 important when `store` is `false` or when using Zero Data Retention.

106197 

105648 - `status: optional "in_progress" or "completed" or "incomplete"`106198 - `status: optional "in_progress" or "completed" or "incomplete"`

105649 106199 

105650 The status of the item. One of `in_progress`, `completed`, or106200 The status of the item. One of `in_progress`, `completed`, or


108291 Unique identifier for the MCP tool call approval request.108841 Unique identifier for the MCP tool call approval request.

108292 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.108842 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

108293 108843 

108294 - `error: optional string or null`108844 - `error: optional McpToolCallError or null`

108295 108845 

108296 The error from the tool call, if any.108846 The error from the tool call, if any.

108297 108847 

108848 - `McpProtocolError object { code, message, type }`

108849 

108850 - `code: number`

108851 

108852 - `message: string`

108853 

108854 - `type: "mcp_protocol_error"`

108855 

108856 - `"mcp_protocol_error"`

108857 

108858 - `McpToolExecutionError object { content, type }`

108859 

108860 - `content: unknown`

108861 

108862 - `type: "mcp_tool_execution_error"`

108863 

108864 - `"mcp_tool_execution_error"`

108865 

108866 - `HTTPError object { code, message, type }`

108867 

108868 - `code: number`

108869 

108870 - `message: string`

108871 

108872 - `type: "http_error"`

108873 

108874 - `"http_error"`

108875 

108298 - `output: optional string or null`108876 - `output: optional string or null`

108299 108877 

108300 The output from the tool call.108878 The output from the tool call.


108545 109123 

108546 - `item: ResponseOutputItem`109124 - `item: ResponseOutputItem`

108547 109125 

108548 The output item that was added.109126 The output item that was added. For reasoning items, `encrypted_content`

109127 may be incomplete while the item is in progress. Use the reasoning item

109128 from the corresponding `response.output_item.done` event when passing it

109129 as input to a subsequent request.

108549 109130 

108550 - `ResponseOutputMessage object { id, content, role, 3 more }`109131 - `ResponseOutputMessage object { id, content, role, 3 more }`

108551 109132 


109550 for reasoning items returned by `POST /v1/responses` and WebSocket110131 for reasoning items returned by `POST /v1/responses` and WebSocket

109551 `response.create` requests.110132 `response.create` requests.

109552 110133 

110134 When streaming, use the completed reasoning item and its

110135 `encrypted_content` from the `response.output_item.done` event in

110136 subsequent requests. The `encrypted_content` in

110137 `response.output_item.added` may be incomplete. This is especially

110138 important when `store` is `false` or when using Zero Data Retention.

110139 

109553 - `status: optional "in_progress" or "completed" or "incomplete"`110140 - `status: optional "in_progress" or "completed" or "incomplete"`

109554 110141 

109555 The status of the item. One of `in_progress`, `completed`, or110142 The status of the item. One of `in_progress`, `completed`, or


112196 Unique identifier for the MCP tool call approval request.112783 Unique identifier for the MCP tool call approval request.

112197 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.112784 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

112198 112785 

112199 - `error: optional string or null`112786 - `error: optional McpToolCallError or null`

112200 112787 

112201 The error from the tool call, if any.112788 The error from the tool call, if any.

112202 112789 

112790 - `McpProtocolError object { code, message, type }`

112791 

112792 - `code: number`

112793 

112794 - `message: string`

112795 

112796 - `type: "mcp_protocol_error"`

112797 

112798 - `"mcp_protocol_error"`

112799 

112800 - `McpToolExecutionError object { content, type }`

112801 

112802 - `content: unknown`

112803 

112804 - `type: "mcp_tool_execution_error"`

112805 

112806 - `"mcp_tool_execution_error"`

112807 

112808 - `HTTPError object { code, message, type }`

112809 

112810 - `code: number`

112811 

112812 - `message: string`

112813 

112814 - `type: "http_error"`

112815 

112816 - `"http_error"`

112817 

112203 - `output: optional string or null`112818 - `output: optional string or null`

112204 112819 

112205 The output from the tool call.112820 The output from the tool call.


113469 for reasoning items returned by `POST /v1/responses` and WebSocket114084 for reasoning items returned by `POST /v1/responses` and WebSocket

113470 `response.create` requests.114085 `response.create` requests.

113471 114086 

114087 When streaming, use the completed reasoning item and its

114088 `encrypted_content` from the `response.output_item.done` event in

114089 subsequent requests. The `encrypted_content` in

114090 `response.output_item.added` may be incomplete. This is especially

114091 important when `store` is `false` or when using Zero Data Retention.

114092 

113472 - `status: optional "in_progress" or "completed" or "incomplete"`114093 - `status: optional "in_progress" or "completed" or "incomplete"`

113473 114094 

113474 The status of the item. One of `in_progress`, `completed`, or114095 The status of the item. One of `in_progress`, `completed`, or


116115 Unique identifier for the MCP tool call approval request.116736 Unique identifier for the MCP tool call approval request.

116116 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.116737 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

116117 116738 

116118 - `error: optional string or null`116739 - `error: optional McpToolCallError or null`

116119 116740 

116120 The error from the tool call, if any.116741 The error from the tool call, if any.

116121 116742 

116743 - `McpProtocolError object { code, message, type }`

116744 

116745 - `code: number`

116746 

116747 - `message: string`

116748 

116749 - `type: "mcp_protocol_error"`

116750 

116751 - `"mcp_protocol_error"`

116752 

116753 - `McpToolExecutionError object { content, type }`

116754 

116755 - `content: unknown`

116756 

116757 - `type: "mcp_tool_execution_error"`

116758 

116759 - `"mcp_tool_execution_error"`

116760 

116761 - `HTTPError object { code, message, type }`

116762 

116763 - `code: number`

116764 

116765 - `message: string`

116766 

116767 - `type: "http_error"`

116768 

116769 - `"http_error"`

116770 

116122 - `output: optional string or null`116771 - `output: optional string or null`

116123 116772 

116124 The output from the tool call.116773 The output from the tool call.


116720 117369 

116721 Emitted when an annotation is added to output text content.117370 Emitted when an annotation is added to output text content.

116722 117371 

116723 - `annotation: unknown`117372 - `annotation: object { file_id, filename, index, type } or object { end_index, start_index, title, 2 more } or object { container_id, end_index, file_id, 3 more } or object { file_id, index, type } or null`

117373 

117374 An annotation that applies to a span of output text.

117375 

117376 - `FileCitation object { file_id, filename, index, type }`

117377 

117378 A citation to a file.

117379 

117380 - `file_id: string`

117381 

117382 The ID of the file.

117383 

117384 - `filename: string`

117385 

117386 The filename of the file cited.

117387 

117388 - `index: number`

117389 

117390 The index of the file in the list of files.

117391 

117392 - `type: "file_citation"`

117393 

117394 The type of the file citation. Always `file_citation`.

117395 

117396 - `"file_citation"`

117397 

117398 - `URLCitation object { end_index, start_index, title, 2 more }`

117399 

117400 A citation for a web resource used to generate a model response.

117401 

117402 - `end_index: number`

117403 

117404 The index of the last character of the URL citation in the message.

117405 

117406 - `start_index: number`

117407 

117408 The index of the first character of the URL citation in the message.

117409 

117410 - `title: string`

117411 

117412 The title of the web resource.

117413 

117414 - `type: "url_citation"`

117415 

117416 The type of the URL citation. Always `url_citation`.

117417 

117418 - `"url_citation"`

117419 

117420 - `url: string`

117421 

117422 The URL of the web resource.

117423 

117424 - `ContainerFileCitation object { container_id, end_index, file_id, 3 more }`

117425 

117426 A citation for a container file used to generate a model response.

117427 

117428 - `container_id: string`

117429 

117430 The ID of the container file.

117431 

117432 - `end_index: number`

116724 117433 

116725 The annotation object being added. (See annotation schema for details.)117434 The index of the last character of the container file citation in the message.

117435 

117436 - `file_id: string`

117437 

117438 The ID of the file.

117439 

117440 - `filename: string`

117441 

117442 The filename of the container file cited.

117443 

117444 - `start_index: number`

117445 

117446 The index of the first character of the container file citation in the message.

117447 

117448 - `type: "container_file_citation"`

117449 

117450 The type of the container file citation. Always `container_file_citation`.

117451 

117452 - `"container_file_citation"`

117453 

117454 - `FilePath object { file_id, index, type }`

117455 

117456 A path to a file.

117457 

117458 - `file_id: string`

117459 

117460 The ID of the file.

117461 

117462 - `index: number`

117463 

117464 The index of the file in the list of files.

117465 

117466 - `type: "file_path"`

117467 

117468 The type of the file path. Always `file_path`.

117469 

117470 - `"file_path"`

116726 117471 

116727 - `annotation_index: number`117472 - `annotation_index: number`

116728 117473 


120148 for reasoning items returned by `POST /v1/responses` and WebSocket120893 for reasoning items returned by `POST /v1/responses` and WebSocket

120149 `response.create` requests.120894 `response.create` requests.

120150 120895 

120896 When streaming, use the completed reasoning item and its

120897 `encrypted_content` from the `response.output_item.done` event in

120898 subsequent requests. The `encrypted_content` in

120899 `response.output_item.added` may be incomplete. This is especially

120900 important when `store` is `false` or when using Zero Data Retention.

120901 

120151 - `status: optional "in_progress" or "completed" or "incomplete"`120902 - `status: optional "in_progress" or "completed" or "incomplete"`

120152 120903 

120153 The status of the item. One of `in_progress`, `completed`, or120904 The status of the item. One of `in_progress`, `completed`, or


120817 Unique identifier for the MCP tool call approval request.121568 Unique identifier for the MCP tool call approval request.

120818 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.121569 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

120819 121570 

120820 - `error: optional string or null`121571 - `error: optional McpToolCallError or null`

120821 121572 

120822 The error from the tool call, if any.121573 The error from the tool call, if any.

120823 121574 

121575 - `McpProtocolError object { code, message, type }`

121576 

121577 - `code: number`

121578 

121579 - `message: string`

121580 

121581 - `type: "mcp_protocol_error"`

121582 

121583 - `"mcp_protocol_error"`

121584 

121585 - `McpToolExecutionError object { content, type }`

121586 

121587 - `content: unknown`

121588 

121589 - `type: "mcp_tool_execution_error"`

121590 

121591 - `"mcp_tool_execution_error"`

121592 

121593 - `HTTPError object { code, message, type }`

121594 

121595 - `code: number`

121596 

121597 - `message: string`

121598 

121599 - `type: "http_error"`

121600 

121601 - `"http_error"`

121602 

120824 - `output: optional string or null`121603 - `output: optional string or null`

120825 121604 

120826 The output from the tool call.121605 The output from the tool call.


121751 for reasoning items returned by `POST /v1/responses` and WebSocket122530 for reasoning items returned by `POST /v1/responses` and WebSocket

121752 `response.create` requests.122531 `response.create` requests.

121753 122532 

122533 When streaming, use the completed reasoning item and its

122534 `encrypted_content` from the `response.output_item.done` event in

122535 subsequent requests. The `encrypted_content` in

122536 `response.output_item.added` may be incomplete. This is especially

122537 important when `store` is `false` or when using Zero Data Retention.

122538 

121754 - `status: optional "in_progress" or "completed" or "incomplete"`122539 - `status: optional "in_progress" or "completed" or "incomplete"`

121755 122540 

121756 The status of the item. One of `in_progress`, `completed`, or122541 The status of the item. One of `in_progress`, `completed`, or


124148 Unique identifier for the MCP tool call approval request.124933 Unique identifier for the MCP tool call approval request.

124149 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.124934 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

124150 124935 

124151 - `error: optional string or null`124936 - `error: optional McpToolCallError or null`

124152 124937 

124153 The error from the tool call, if any.124938 The error from the tool call, if any.

124154 124939 


129707 for reasoning items returned by `POST /v1/responses` and WebSocket130492 for reasoning items returned by `POST /v1/responses` and WebSocket

129708 `response.create` requests.130493 `response.create` requests.

129709 130494 

130495 When streaming, use the completed reasoning item and its

130496 `encrypted_content` from the `response.output_item.done` event in

130497 subsequent requests. The `encrypted_content` in

130498 `response.output_item.added` may be incomplete. This is especially

130499 important when `store` is `false` or when using Zero Data Retention.

130500 

129710 - `status: optional "in_progress" or "completed" or "incomplete"`130501 - `status: optional "in_progress" or "completed" or "incomplete"`

129711 130502 

129712 The status of the item. One of `in_progress`, `completed`, or130503 The status of the item. One of `in_progress`, `completed`, or


130376 Unique identifier for the MCP tool call approval request.131167 Unique identifier for the MCP tool call approval request.

130377 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.131168 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

130378 131169 

130379 - `error: optional string or null`131170 - `error: optional McpToolCallError or null`

130380 131171 

130381 The error from the tool call, if any.131172 The error from the tool call, if any.

130382 131173 

131174 - `McpProtocolError object { code, message, type }`

131175 

131176 - `code: number`

131177 

131178 - `message: string`

131179 

131180 - `type: "mcp_protocol_error"`

131181 

131182 - `"mcp_protocol_error"`

131183 

131184 - `McpToolExecutionError object { content, type }`

131185 

131186 - `content: unknown`

131187 

131188 - `type: "mcp_tool_execution_error"`

131189 

131190 - `"mcp_tool_execution_error"`

131191 

131192 - `HTTPError object { code, message, type }`

131193 

131194 - `code: number`

131195 

131196 - `message: string`

131197 

131198 - `type: "http_error"`

131199 

131200 - `"http_error"`

131201 

130383 - `output: optional string or null`131202 - `output: optional string or null`

130384 131203 

130385 The output from the tool call.131204 The output from the tool call.


131310 for reasoning items returned by `POST /v1/responses` and WebSocket132129 for reasoning items returned by `POST /v1/responses` and WebSocket

131311 `response.create` requests.132130 `response.create` requests.

131312 132131 

132132 When streaming, use the completed reasoning item and its

132133 `encrypted_content` from the `response.output_item.done` event in

132134 subsequent requests. The `encrypted_content` in

132135 `response.output_item.added` may be incomplete. This is especially

132136 important when `store` is `false` or when using Zero Data Retention.

132137 

131313 - `status: optional "in_progress" or "completed" or "incomplete"`132138 - `status: optional "in_progress" or "completed" or "incomplete"`

131314 132139 

131315 The status of the item. One of `in_progress`, `completed`, or132140 The status of the item. One of `in_progress`, `completed`, or


133707 Unique identifier for the MCP tool call approval request.134532 Unique identifier for the MCP tool call approval request.

133708 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.134533 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

133709 134534 

133710 - `error: optional string or null`134535 - `error: optional McpToolCallError or null`

133711 134536 

133712 The error from the tool call, if any.134537 The error from the tool call, if any.

133713 134538 


135841 136666 

135842 - `item: ResponseOutputItem`136667 - `item: ResponseOutputItem`

135843 136668 

135844 The output item that was added.136669 The output item that was added. For reasoning items, `encrypted_content`

136670 may be incomplete while the item is in progress. Use the reasoning item

136671 from the corresponding `response.output_item.done` event when passing it

136672 as input to a subsequent request.

135845 136673 

135846 - `ResponseOutputMessage object { id, content, role, 3 more }`136674 - `ResponseOutputMessage object { id, content, role, 3 more }`

135847 136675 


136489 137317 

136490 - `"response.image_generation_call.in_progress"`137318 - `"response.image_generation_call.in_progress"`

136491 137319 

136492 - `ResponseImageGenCallPartialImageEvent object { item_id, output_index, partial_image_b64, 3 more }`137320 - `ResponseImageGenCallPartialImageEvent object { item_id, output_index, partial_image_b64, 7 more }`

136493 137321 

136494 Emitted when a partial image is available during image generation streaming.137322 Emitted when a partial image is available during image generation streaming.

136495 137323 


136519 137347 

136520 - `"response.image_generation_call.partial_image"`137348 - `"response.image_generation_call.partial_image"`

136521 137349 

137350 - `background: optional string`

137351 

137352 The background setting that was used.

137353 

137354 - `output_format: optional string`

137355 

137356 The output format that was used.

137357 

137358 - `quality: optional string`

137359 

137360 The image quality that was used.

137361 

137362 - `size: optional string`

137363 

137364 The image size that was used.

137365 

136522 - `ResponseMcpCallArgumentsDeltaEvent object { delta, item_id, output_index, 2 more }`137366 - `ResponseMcpCallArgumentsDeltaEvent object { delta, item_id, output_index, 2 more }`

136523 137367 

136524 Emitted when there is a delta (partial update) to the arguments of an MCP tool call.137368 Emitted when there is a delta (partial update) to the arguments of an MCP tool call.


136707 137551 

136708 Emitted when an annotation is added to output text content.137552 Emitted when an annotation is added to output text content.

136709 137553 

136710 - `annotation: unknown`137554 - `annotation: object { file_id, filename, index, type } or object { end_index, start_index, title, 2 more } or object { container_id, end_index, file_id, 3 more } or object { file_id, index, type } or null`

137555 

137556 An annotation that applies to a span of output text.

137557 

137558 - `FileCitation object { file_id, filename, index, type }`

137559 

137560 A citation to a file.

137561 

137562 - `file_id: string`

137563 

137564 The ID of the file.

137565 

137566 - `filename: string`

137567 

137568 The filename of the file cited.

137569 

137570 - `index: number`

137571 

137572 The index of the file in the list of files.

137573 

137574 - `type: "file_citation"`

137575 

137576 The type of the file citation. Always `file_citation`.

137577 

137578 - `"file_citation"`

137579 

137580 - `URLCitation object { end_index, start_index, title, 2 more }`

137581 

137582 A citation for a web resource used to generate a model response.

137583 

137584 - `end_index: number`

136711 137585 

136712 The annotation object being added. (See annotation schema for details.)137586 The index of the last character of the URL citation in the message.

137587 

137588 - `start_index: number`

137589 

137590 The index of the first character of the URL citation in the message.

137591 

137592 - `title: string`

137593 

137594 The title of the web resource.

137595 

137596 - `type: "url_citation"`

137597 

137598 The type of the URL citation. Always `url_citation`.

137599 

137600 - `"url_citation"`

137601 

137602 - `url: string`

137603 

137604 The URL of the web resource.

137605 

137606 - `ContainerFileCitation object { container_id, end_index, file_id, 3 more }`

137607 

137608 A citation for a container file used to generate a model response.

137609 

137610 - `container_id: string`

137611 

137612 The ID of the container file.

137613 

137614 - `end_index: number`

137615 

137616 The index of the last character of the container file citation in the message.

137617 

137618 - `file_id: string`

137619 

137620 The ID of the file.

137621 

137622 - `filename: string`

137623 

137624 The filename of the container file cited.

137625 

137626 - `start_index: number`

137627 

137628 The index of the first character of the container file citation in the message.

137629 

137630 - `type: "container_file_citation"`

137631 

137632 The type of the container file citation. Always `container_file_citation`.

137633 

137634 - `"container_file_citation"`

137635 

137636 - `FilePath object { file_id, index, type }`

137637 

137638 A path to a file.

137639 

137640 - `file_id: string`

137641 

137642 The ID of the file.

137643 

137644 - `index: number`

137645 

137646 The index of the file in the list of files.

137647 

137648 - `type: "file_path"`

137649 

137650 The type of the file path. Always `file_path`.

137651 

137652 - `"file_path"`

136713 137653 

136714 - `annotation_index: number`137654 - `annotation_index: number`

136715 137655 


140386 for reasoning items returned by `POST /v1/responses` and WebSocket141326 for reasoning items returned by `POST /v1/responses` and WebSocket

140387 `response.create` requests.141327 `response.create` requests.

140388 141328 

141329 When streaming, use the completed reasoning item and its

141330 `encrypted_content` from the `response.output_item.done` event in

141331 subsequent requests. The `encrypted_content` in

141332 `response.output_item.added` may be incomplete. This is especially

141333 important when `store` is `false` or when using Zero Data Retention.

141334 

140389 - `status: optional "in_progress" or "completed" or "incomplete"`141335 - `status: optional "in_progress" or "completed" or "incomplete"`

140390 141336 

140391 The status of the item. One of `in_progress`, `completed`, or141337 The status of the item. One of `in_progress`, `completed`, or


141055 Unique identifier for the MCP tool call approval request.142001 Unique identifier for the MCP tool call approval request.

141056 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.142002 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

141057 142003 

141058 - `error: optional string or null`142004 - `error: optional McpToolCallError or null`

141059 142005 

141060 The error from the tool call, if any.142006 The error from the tool call, if any.

141061 142007 

142008 - `McpProtocolError object { code, message, type }`

142009 

142010 - `code: number`

142011 

142012 - `message: string`

142013 

142014 - `type: "mcp_protocol_error"`

142015 

142016 - `"mcp_protocol_error"`

142017 

142018 - `McpToolExecutionError object { content, type }`

142019 

142020 - `content: unknown`

142021 

142022 - `type: "mcp_tool_execution_error"`

142023 

142024 - `"mcp_tool_execution_error"`

142025 

142026 - `HTTPError object { code, message, type }`

142027 

142028 - `code: number`

142029 

142030 - `message: string`

142031 

142032 - `type: "http_error"`

142033 

142034 - `"http_error"`

142035 

141062 - `output: optional string or null`142036 - `output: optional string or null`

141063 142037 

141064 The output from the tool call.142038 The output from the tool call.


143063 when the originating `response.create` event supplied a144037 when the originating `response.create` event supplied a

143064 `stream_id`.144038 `stream_id`.

143065 144039 

143066 - `ResponseWsError = ResponseErrorEvent`

143067 

143068 Emitted when an error occurs.

143069 

143070 - `stream_id: optional string`

143071 

143072 The WebSocket lane that emitted this event. This field is present

143073 when the originating `response.create` event supplied a

143074 `stream_id`.

143075 

143076 - `ResponseFileSearchCallWsCompleted = ResponseFileSearchCallCompletedEvent`144040 - `ResponseFileSearchCallWsCompleted = ResponseFileSearchCallCompletedEvent`

143077 144041 

143078 Emitted when a file search call is completed (results found).144042 Emitted when a file search call is completed (results found).


143463 when the originating `response.create` event supplied a144427 when the originating `response.create` event supplied a

143464 `stream_id`.144428 `stream_id`.

143465 144429 

144430 - `ResponseWsError object { error, type, sequence_number, 2 more }`

144431 

144432 Emitted when an error occurs while processing a Responses WebSocket request.

144433 

144434 - `error: object { code, message, param, 2 more }`

144435 

144436 Details about the error.

144437 

144438 - `code: string or null`

144439 

144440 The error code that was emitted, if any.

144441 

144442 - `message: string`

144443 

144444 The human-readable error message that was emitted.

144445 

144446 - `param: string or null`

144447 

144448 The parameter name that was associated with the error, if any.

144449 

144450 - `type: string`

144451 

144452 The error type that was emitted.

144453 

144454 - `headers: optional map[string]`

144455 

144456 The response headers that were emitted with the error, if any.

144457 

144458 - `type: "error"`

144459 

144460 The type of the event. Always `error`.

144461 

144462 - `"error"`

144463 

144464 - `sequence_number: optional number`

144465 

144466 The sequence number of an error emitted by the response stream.

144467 

144468 - `status: optional number`

144469 

144470 The HTTP status code associated with a WebSocket protocol error.

144471 

144472 - `stream_id: optional string`

144473 

144474 The WebSocket lane that emitted this event. This field is present when the

144475 originating `response.create` event supplied a `stream_id`.

144476 

143466### Skill Reference144477### Skill Reference

143467 144478 

143468- `SkillReference object { skill_id, type, version }`144479- `SkillReference object { skill_id, type, version }`


146767 for reasoning items returned by `POST /v1/responses` and WebSocket147778 for reasoning items returned by `POST /v1/responses` and WebSocket

146768 `response.create` requests.147779 `response.create` requests.

146769 147780 

147781 When streaming, use the completed reasoning item and its

147782 `encrypted_content` from the `response.output_item.done` event in

147783 subsequent requests. The `encrypted_content` in

147784 `response.output_item.added` may be incomplete. This is especially

147785 important when `store` is `false` or when using Zero Data Retention.

147786 

146770 - `status: optional "in_progress" or "completed" or "incomplete"`147787 - `status: optional "in_progress" or "completed" or "incomplete"`

146771 147788 

146772 The status of the item. One of `in_progress`, `completed`, or147789 The status of the item. One of `in_progress`, `completed`, or


147512 Unique identifier for the MCP tool call approval request.148529 Unique identifier for the MCP tool call approval request.

147513 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.148530 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

147514 148531 

147515 - `error: optional string or null`148532 - `error: optional McpToolCallError or null`

147516 148533 

147517 The error from the tool call, if any.148534 The error from the tool call, if any.

147518 148535 

148536 - `McpProtocolError object { code, message, type }`

148537 

148538 - `code: number`

148539 

148540 - `message: string`

148541 

148542 - `type: "mcp_protocol_error"`

148543 

148544 - `"mcp_protocol_error"`

148545 

148546 - `McpToolExecutionError object { content, type }`

148547 

148548 - `content: unknown`

148549 

148550 - `type: "mcp_tool_execution_error"`

148551 

148552 - `"mcp_tool_execution_error"`

148553 

148554 - `HTTPError object { code, message, type }`

148555 

148556 - `code: number`

148557 

148558 - `message: string`

148559 

148560 - `type: "http_error"`

148561 

148562 - `"http_error"`

148563 

147519 - `output: optional string or null`148564 - `output: optional string or null`

147520 148565 

147521 The output from the tool call.148566 The output from the tool call.


150823 for reasoning items returned by `POST /v1/responses` and WebSocket151868 for reasoning items returned by `POST /v1/responses` and WebSocket

150824 `response.create` requests.151869 `response.create` requests.

150825 151870 

151871 When streaming, use the completed reasoning item and its

151872 `encrypted_content` from the `response.output_item.done` event in

151873 subsequent requests. The `encrypted_content` in

151874 `response.output_item.added` may be incomplete. This is especially

151875 important when `store` is `false` or when using Zero Data Retention.

151876 

150826 - `status: optional "in_progress" or "completed" or "incomplete"`151877 - `status: optional "in_progress" or "completed" or "incomplete"`

150827 151878 

150828 The status of the item. One of `in_progress`, `completed`, or151879 The status of the item. One of `in_progress`, `completed`, or


151568 Unique identifier for the MCP tool call approval request.152619 Unique identifier for the MCP tool call approval request.

151569 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.152620 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

151570 152621 

151571 - `error: optional string or null`152622 - `error: optional McpToolCallError or null`

151572 152623 

151573 The error from the tool call, if any.152624 The error from the tool call, if any.

151574 152625 

152626 - `McpProtocolError object { code, message, type }`

152627 

152628 - `code: number`

152629 

152630 - `message: string`

152631 

152632 - `type: "mcp_protocol_error"`

152633 

152634 - `"mcp_protocol_error"`

152635 

152636 - `McpToolExecutionError object { content, type }`

152637 

152638 - `content: unknown`

152639 

152640 - `type: "mcp_tool_execution_error"`

152641 

152642 - `"mcp_tool_execution_error"`

152643 

152644 - `HTTPError object { code, message, type }`

152645 

152646 - `code: number`

152647 

152648 - `message: string`

152649 

152650 - `type: "http_error"`

152651 

152652 - `"http_error"`

152653 

151575 - `output: optional string or null`152654 - `output: optional string or null`

151576 152655 

151577 The output from the tool call.152656 The output from the tool call.


154957 for reasoning items returned by `POST /v1/responses` and WebSocket156036 for reasoning items returned by `POST /v1/responses` and WebSocket

154958 `response.create` requests.156037 `response.create` requests.

154959 156038 

156039 When streaming, use the completed reasoning item and its

156040 `encrypted_content` from the `response.output_item.done` event in

156041 subsequent requests. The `encrypted_content` in

156042 `response.output_item.added` may be incomplete. This is especially

156043 important when `store` is `false` or when using Zero Data Retention.

156044 

154960 - `status: optional "in_progress" or "completed" or "incomplete"`156045 - `status: optional "in_progress" or "completed" or "incomplete"`

154961 156046 

154962 The status of the item. One of `in_progress`, `completed`, or156047 The status of the item. One of `in_progress`, `completed`, or


155626 Unique identifier for the MCP tool call approval request.156711 Unique identifier for the MCP tool call approval request.

155627 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.156712 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

155628 156713 

155629 - `error: optional string or null`156714 - `error: optional McpToolCallError or null`

155630 156715 

155631 The error from the tool call, if any.156716 The error from the tool call, if any.

155632 156717 

156718 - `McpProtocolError object { code, message, type }`

156719 

156720 - `code: number`

156721 

156722 - `message: string`

156723 

156724 - `type: "mcp_protocol_error"`

156725 

156726 - `"mcp_protocol_error"`

156727 

156728 - `McpToolExecutionError object { content, type }`

156729 

156730 - `content: unknown`

156731 

156732 - `type: "mcp_tool_execution_error"`

156733 

156734 - `"mcp_tool_execution_error"`

156735 

156736 - `HTTPError object { code, message, type }`

156737 

156738 - `code: number`

156739 

156740 - `message: string`

156741 

156742 - `type: "http_error"`

156743 

156744 - `"http_error"`

156745 

155633 - `output: optional string or null`156746 - `output: optional string or null`

155634 156747 

155635 The output from the tool call.156748 The output from the tool call.

Details

3269 for reasoning items returned by `POST /v1/responses` and WebSocket3269 for reasoning items returned by `POST /v1/responses` and WebSocket

3270 `response.create` requests.3270 `response.create` requests.

3271 3271 

3272 When streaming, use the completed reasoning item and its

3273 `encrypted_content` from the `response.output_item.done` event in

3274 subsequent requests. The `encrypted_content` in

3275 `response.output_item.added` may be incomplete. This is especially

3276 important when `store` is `false` or when using Zero Data Retention.

3277 

3272 - `status: optional "in_progress" or "completed" or "incomplete"`3278 - `status: optional "in_progress" or "completed" or "incomplete"`

3273 3279 

3274 The status of the item. One of `in_progress`, `completed`, or3280 The status of the item. One of `in_progress`, `completed`, or


3938 Unique identifier for the MCP tool call approval request.3944 Unique identifier for the MCP tool call approval request.

3939 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.3945 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

3940 3946 

3941 - `error: optional string or null`3947 - `error: optional McpToolCallError or null`

3942 3948 

3943 The error from the tool call, if any.3949 The error from the tool call, if any.

3944 3950 

3951 - `McpProtocolError object { code, message, type }`

3952 

3953 - `code: number`

3954 

3955 - `message: string`

3956 

3957 - `type: "mcp_protocol_error"`

3958 

3959 - `"mcp_protocol_error"`

3960 

3961 - `McpToolExecutionError object { content, type }`

3962 

3963 - `content: unknown`

3964 

3965 - `type: "mcp_tool_execution_error"`

3966 

3967 - `"mcp_tool_execution_error"`

3968 

3969 - `HTTPError object { code, message, type }`

3970 

3971 - `code: number`

3972 

3973 - `message: string`

3974 

3975 - `type: "http_error"`

3976 

3977 - `"http_error"`

3978 

3945 - `output: optional string or null`3979 - `output: optional string or null`

3946 3980 

3947 The output from the tool call.3981 The output from the tool call.


4872 for reasoning items returned by `POST /v1/responses` and WebSocket4906 for reasoning items returned by `POST /v1/responses` and WebSocket

4873 `response.create` requests.4907 `response.create` requests.

4874 4908 

4909 When streaming, use the completed reasoning item and its

4910 `encrypted_content` from the `response.output_item.done` event in

4911 subsequent requests. The `encrypted_content` in

4912 `response.output_item.added` may be incomplete. This is especially

4913 important when `store` is `false` or when using Zero Data Retention.

4914 

4875 - `status: optional "in_progress" or "completed" or "incomplete"`4915 - `status: optional "in_progress" or "completed" or "incomplete"`

4876 4916 

4877 The status of the item. One of `in_progress`, `completed`, or4917 The status of the item. One of `in_progress`, `completed`, or


7269 Unique identifier for the MCP tool call approval request.7309 Unique identifier for the MCP tool call approval request.

7270 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.7310 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

7271 7311 

7272 - `error: optional string or null`7312 - `error: optional McpToolCallError or null`

7273 7313 

7274 The error from the tool call, if any.7314 The error from the tool call, if any.

7275 7315 

Details

3399 for reasoning items returned by `POST /v1/responses` and WebSocket3399 for reasoning items returned by `POST /v1/responses` and WebSocket

3400 `response.create` requests.3400 `response.create` requests.

3401 3401 

3402 When streaming, use the completed reasoning item and its

3403 `encrypted_content` from the `response.output_item.done` event in

3404 subsequent requests. The `encrypted_content` in

3405 `response.output_item.added` may be incomplete. This is especially

3406 important when `store` is `false` or when using Zero Data Retention.

3407 

3402 - `status: optional "in_progress" or "completed" or "incomplete"`3408 - `status: optional "in_progress" or "completed" or "incomplete"`

3403 3409 

3404 The status of the item. One of `in_progress`, `completed`, or3410 The status of the item. One of `in_progress`, `completed`, or


4068 Unique identifier for the MCP tool call approval request.4074 Unique identifier for the MCP tool call approval request.

4069 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.4075 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

4070 4076 

4071 - `error: optional string or null`4077 - `error: optional McpToolCallError or null`

4072 4078 

4073 The error from the tool call, if any.4079 The error from the tool call, if any.

4074 4080 

4081 - `McpProtocolError object { code, message, type }`

4082 

4083 - `code: number`

4084 

4085 - `message: string`

4086 

4087 - `type: "mcp_protocol_error"`

4088 

4089 - `"mcp_protocol_error"`

4090 

4091 - `McpToolExecutionError object { content, type }`

4092 

4093 - `content: unknown`

4094 

4095 - `type: "mcp_tool_execution_error"`

4096 

4097 - `"mcp_tool_execution_error"`

4098 

4099 - `HTTPError object { code, message, type }`

4100 

4101 - `code: number`

4102 

4103 - `message: string`

4104 

4105 - `type: "http_error"`

4106 

4107 - `"http_error"`

4108 

4075 - `output: optional string or null`4109 - `output: optional string or null`

4076 4110 

4077 The output from the tool call.4111 The output from the tool call.


7537 for reasoning items returned by `POST /v1/responses` and WebSocket7571 for reasoning items returned by `POST /v1/responses` and WebSocket

7538 `response.create` requests.7572 `response.create` requests.

7539 7573 

7574 When streaming, use the completed reasoning item and its

7575 `encrypted_content` from the `response.output_item.done` event in

7576 subsequent requests. The `encrypted_content` in

7577 `response.output_item.added` may be incomplete. This is especially

7578 important when `store` is `false` or when using Zero Data Retention.

7579 

7540 - `status: optional "in_progress" or "completed" or "incomplete"`7580 - `status: optional "in_progress" or "completed" or "incomplete"`

7541 7581 

7542 The status of the item. One of `in_progress`, `completed`, or7582 The status of the item. One of `in_progress`, `completed`, or


8200 Unique identifier for the MCP tool call approval request.8240 Unique identifier for the MCP tool call approval request.

8201 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.8241 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

8202 8242 

8203 - `error: optional string or null`8243 - `error: optional McpToolCallError or null`

8204 8244 

8205 The error from the tool call, if any.8245 The error from the tool call, if any.

8206 8246 

8247 - `McpProtocolError object { code, message, type }`

8248 

8249 - `code: number`

8250 

8251 - `message: string`

8252 

8253 - `type: "mcp_protocol_error"`

8254 

8255 - `"mcp_protocol_error"`

8256 

8257 - `McpToolExecutionError object { content, type }`

8258 

8259 - `content: unknown`

8260 

8261 - `type: "mcp_tool_execution_error"`

8262 

8263 - `"mcp_tool_execution_error"`

8264 

8265 - `HTTPError object { code, message, type }`

8266 

8267 - `code: number`

8268 

8269 - `message: string`

8270 

8271 - `type: "http_error"`

8272 

8273 - `"http_error"`

8274 

8207 - `output: optional string or null`8275 - `output: optional string or null`

8208 8276 

8209 The output from the tool call.8277 The output from the tool call.

Details

3261 for reasoning items returned by `POST /v1/responses` and WebSocket3261 for reasoning items returned by `POST /v1/responses` and WebSocket

3262 `response.create` requests.3262 `response.create` requests.

3263 3263 

3264 When streaming, use the completed reasoning item and its

3265 `encrypted_content` from the `response.output_item.done` event in

3266 subsequent requests. The `encrypted_content` in

3267 `response.output_item.added` may be incomplete. This is especially

3268 important when `store` is `false` or when using Zero Data Retention.

3269 

3264 - `status: optional "in_progress" or "completed" or "incomplete"`3270 - `status: optional "in_progress" or "completed" or "incomplete"`

3265 3271 

3266 The status of the item. One of `in_progress`, `completed`, or3272 The status of the item. One of `in_progress`, `completed`, or


3930 Unique identifier for the MCP tool call approval request.3936 Unique identifier for the MCP tool call approval request.

3931 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.3937 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

3932 3938 

3933 - `error: optional string or null`3939 - `error: optional McpToolCallError or null`

3934 3940 

3935 The error from the tool call, if any.3941 The error from the tool call, if any.

3936 3942 

3943 - `McpProtocolError object { code, message, type }`

3944 

3945 - `code: number`

3946 

3947 - `message: string`

3948 

3949 - `type: "mcp_protocol_error"`

3950 

3951 - `"mcp_protocol_error"`

3952 

3953 - `McpToolExecutionError object { content, type }`

3954 

3955 - `content: unknown`

3956 

3957 - `type: "mcp_tool_execution_error"`

3958 

3959 - `"mcp_tool_execution_error"`

3960 

3961 - `HTTPError object { code, message, type }`

3962 

3963 - `code: number`

3964 

3965 - `message: string`

3966 

3967 - `type: "http_error"`

3968 

3969 - `"http_error"`

3970 

3937 - `output: optional string or null`3971 - `output: optional string or null`

3938 3972 

3939 The output from the tool call.3973 The output from the tool call.


9051 for reasoning items returned by `POST /v1/responses` and WebSocket9085 for reasoning items returned by `POST /v1/responses` and WebSocket

9052 `response.create` requests.9086 `response.create` requests.

9053 9087 

9088 When streaming, use the completed reasoning item and its

9089 `encrypted_content` from the `response.output_item.done` event in

9090 subsequent requests. The `encrypted_content` in

9091 `response.output_item.added` may be incomplete. This is especially

9092 important when `store` is `false` or when using Zero Data Retention.

9093 

9054 - `status: optional "in_progress" or "completed" or "incomplete"`9094 - `status: optional "in_progress" or "completed" or "incomplete"`

9055 9095 

9056 The status of the item. One of `in_progress`, `completed`, or9096 The status of the item. One of `in_progress`, `completed`, or


9720 Unique identifier for the MCP tool call approval request.9760 Unique identifier for the MCP tool call approval request.

9721 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.9761 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

9722 9762 

9723 - `error: optional string or null`9763 - `error: optional McpToolCallError or null`

9724 9764 

9725 The error from the tool call, if any.9765 The error from the tool call, if any.

9726 9766 

9767 - `McpProtocolError object { code, message, type }`

9768 

9769 - `code: number`

9770 

9771 - `message: string`

9772 

9773 - `type: "mcp_protocol_error"`

9774 

9775 - `"mcp_protocol_error"`

9776 

9777 - `McpToolExecutionError object { content, type }`

9778 

9779 - `content: unknown`

9780 

9781 - `type: "mcp_tool_execution_error"`

9782 

9783 - `"mcp_tool_execution_error"`

9784 

9785 - `HTTPError object { code, message, type }`

9786 

9787 - `code: number`

9788 

9789 - `message: string`

9790 

9791 - `type: "http_error"`

9792 

9793 - `"http_error"`

9794 

9727 - `output: optional string or null`9795 - `output: optional string or null`

9728 9796 

9729 The output from the tool call.9797 The output from the tool call.


10654 for reasoning items returned by `POST /v1/responses` and WebSocket10722 for reasoning items returned by `POST /v1/responses` and WebSocket

10655 `response.create` requests.10723 `response.create` requests.

10656 10724 

10725 When streaming, use the completed reasoning item and its

10726 `encrypted_content` from the `response.output_item.done` event in

10727 subsequent requests. The `encrypted_content` in

10728 `response.output_item.added` may be incomplete. This is especially

10729 important when `store` is `false` or when using Zero Data Retention.

10730 

10657 - `status: optional "in_progress" or "completed" or "incomplete"`10731 - `status: optional "in_progress" or "completed" or "incomplete"`

10658 10732 

10659 The status of the item. One of `in_progress`, `completed`, or10733 The status of the item. One of `in_progress`, `completed`, or


13051 Unique identifier for the MCP tool call approval request.13125 Unique identifier for the MCP tool call approval request.

13052 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.13126 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

13053 13127 

13054 - `error: optional string or null`13128 - `error: optional McpToolCallError or null`

13055 13129 

13056 The error from the tool call, if any.13130 The error from the tool call, if any.

13057 13131 

Details

3313 for reasoning items returned by `POST /v1/responses` and WebSocket3313 for reasoning items returned by `POST /v1/responses` and WebSocket

3314 `response.create` requests.3314 `response.create` requests.

3315 3315 

3316 When streaming, use the completed reasoning item and its

3317 `encrypted_content` from the `response.output_item.done` event in

3318 subsequent requests. The `encrypted_content` in

3319 `response.output_item.added` may be incomplete. This is especially

3320 important when `store` is `false` or when using Zero Data Retention.

3321 

3316 - `status: optional "in_progress" or "completed" or "incomplete"`3322 - `status: optional "in_progress" or "completed" or "incomplete"`

3317 3323 

3318 The status of the item. One of `in_progress`, `completed`, or3324 The status of the item. One of `in_progress`, `completed`, or


3982 Unique identifier for the MCP tool call approval request.3988 Unique identifier for the MCP tool call approval request.

3983 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.3989 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

3984 3990 

3985 - `error: optional string or null`3991 - `error: optional McpToolCallError or null`

3986 3992 

3987 The error from the tool call, if any.3993 The error from the tool call, if any.

3988 3994 

3995 - `McpProtocolError object { code, message, type }`

3996 

3997 - `code: number`

3998 

3999 - `message: string`

4000 

4001 - `type: "mcp_protocol_error"`

4002 

4003 - `"mcp_protocol_error"`

4004 

4005 - `McpToolExecutionError object { content, type }`

4006 

4007 - `content: unknown`

4008 

4009 - `type: "mcp_tool_execution_error"`

4010 

4011 - `"mcp_tool_execution_error"`

4012 

4013 - `HTTPError object { code, message, type }`

4014 

4015 - `code: number`

4016 

4017 - `message: string`

4018 

4019 - `type: "http_error"`

4020 

4021 - `"http_error"`

4022 

3989 - `output: optional string or null`4023 - `output: optional string or null`

3990 4024 

3991 The output from the tool call.4025 The output from the tool call.


4916 for reasoning items returned by `POST /v1/responses` and WebSocket4950 for reasoning items returned by `POST /v1/responses` and WebSocket

4917 `response.create` requests.4951 `response.create` requests.

4918 4952 

4953 When streaming, use the completed reasoning item and its

4954 `encrypted_content` from the `response.output_item.done` event in

4955 subsequent requests. The `encrypted_content` in

4956 `response.output_item.added` may be incomplete. This is especially

4957 important when `store` is `false` or when using Zero Data Retention.

4958 

4919 - `status: optional "in_progress" or "completed" or "incomplete"`4959 - `status: optional "in_progress" or "completed" or "incomplete"`

4920 4960 

4921 The status of the item. One of `in_progress`, `completed`, or4961 The status of the item. One of `in_progress`, `completed`, or


7313 Unique identifier for the MCP tool call approval request.7353 Unique identifier for the MCP tool call approval request.

7314 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.7354 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

7315 7355 

7316 - `error: optional string or null`7356 - `error: optional McpToolCallError or null`

7317 7357 

7318 The error from the tool call, if any.7358 The error from the tool call, if any.

7319 7359 

Details

10847 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",10847 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",

10848 "deprecated": false,10848 "deprecated": false,

10849 "key": "encrypted_content",10849 "key": "encrypted_content",

10850 "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",10850 "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",

10851 "type": {10851 "type": {

10852 "kind": "HttpTypeString"10852 "kind": "HttpTypeString"

10853 },10853 },


13501 "oasRef": "#/components/schemas/MCPToolCall/properties/error",13501 "oasRef": "#/components/schemas/MCPToolCall/properties/error",

13502 "deprecated": false,13502 "deprecated": false,

13503 "key": "error",13503 "key": "error",

13504 "docstring": "The error from the tool call, if any.\n",13504 "docstring": "The error from the tool call, if any.",

13505 "type": {13505 "type": {

13506 "kind": "HttpTypeString"13506 "kind": "HttpTypeReference",

13507 "ident": "McpToolCallError",

13508 "$ref": "(resource) responses > (model) mcp_tool_call_error > (schema)"

13507 },13509 },

13508 "optional": true,13510 "optional": true,

13509 "nullable": true,13511 "nullable": true,

13510 "schemaType": "string",13512 "modelImplicit": false,

13511 "children": []13513 "schemaType": "union",

13514 "modelPath": "(resource) responses > (model) mcp_tool_call_error",

13515 "childrenParentSchema": "union",

13516 "children": [

13517 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

13518 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

13519 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

13520 ]

13512 },13521 },

13513 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": {13522 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": {

13514 "kind": "HttpDeclProperty",13523 "kind": "HttpDeclProperty",


19395 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",19404 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",

19396 "deprecated": false,19405 "deprecated": false,

19397 "key": "encrypted_content",19406 "key": "encrypted_content",

19398 "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",19407 "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",

19399 "type": {19408 "type": {

19400 "kind": "HttpTypeString"19409 "kind": "HttpTypeString"

19401 },19410 },


21034 "oasRef": "#/components/schemas/MCPToolCall/properties/error",21043 "oasRef": "#/components/schemas/MCPToolCall/properties/error",

21035 "deprecated": false,21044 "deprecated": false,

21036 "key": "error",21045 "key": "error",

21037 "docstring": "The error from the tool call, if any.\n",21046 "docstring": "The error from the tool call, if any.",

21038 "type": {21047 "type": {

21039 "kind": "HttpTypeString"21048 "kind": "HttpTypeReference",

21049 "ident": "McpToolCallError",

21050 "$ref": "(resource) responses > (model) mcp_tool_call_error > (schema)"

21040 },21051 },

21041 "optional": true,21052 "optional": true,

21042 "nullable": true,21053 "nullable": true,

21043 "schemaType": "string",21054 "modelImplicit": false,

21044 "children": []21055 "schemaType": "union",

21056 "modelPath": "(resource) responses > (model) mcp_tool_call_error",

21057 "childrenParentSchema": "union",

21058 "children": [

21059 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

21060 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

21061 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

21062 ]

21045 },21063 },

21046 "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) output": {21064 "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) output": {

21047 "kind": "HttpDeclProperty",21065 "kind": "HttpDeclProperty",


25110 "literal": "mcp_call"25128 "literal": "mcp_call"

25111 }25129 }

25112 },25130 },

25131 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0": {

25132 "kind": "HttpDeclTypeAlias",

25133 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0",

25134 "ident": "McpProtocolError",

25135 "type": {

25136 "kind": "HttpTypeObject",

25137 "members": [

25138 {

25139 "ident": "code"

25140 },

25141 {

25142 "ident": "message"

25143 },

25144 {

25145 "ident": "type"

25146 }

25147 ]

25148 },

25149 "childrenParentSchema": "object",

25150 "children": [

25151 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) code",

25152 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) message",

25153 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type"

25154 ]

25155 },

25156 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1": {

25157 "kind": "HttpDeclTypeAlias",

25158 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1",

25159 "ident": "McpToolExecutionError",

25160 "type": {

25161 "kind": "HttpTypeObject",

25162 "members": [

25163 {

25164 "ident": "content"

25165 },

25166 {

25167 "ident": "type"

25168 }

25169 ]

25170 },

25171 "childrenParentSchema": "object",

25172 "children": [

25173 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) content",

25174 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type"

25175 ]

25176 },

25177 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2": {

25178 "kind": "HttpDeclTypeAlias",

25179 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2",

25180 "ident": "HTTPError",

25181 "type": {

25182 "kind": "HttpTypeObject",

25183 "members": [

25184 {

25185 "ident": "code"

25186 },

25187 {

25188 "ident": "message"

25189 },

25190 {

25191 "ident": "type"

25192 }

25193 ]

25194 },

25195 "childrenParentSchema": "object",

25196 "children": [

25197 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) code",

25198 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) message",

25199 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type"

25200 ]

25201 },

25202 "(resource) responses > (model) mcp_tool_call_error > (schema)": {

25203 "kind": "HttpDeclTypeAlias",

25204 "oasRef": "#/components/schemas/MCPToolCallError",

25205 "ident": "McpToolCallError",

25206 "type": {

25207 "kind": "HttpTypeUnion",

25208 "oasRef": "#/components/schemas/MCPToolCallError",

25209 "types": [

25210 {

25211 "kind": "HttpTypeObject",

25212 "members": [

25213 {

25214 "ident": "code"

25215 },

25216 {

25217 "ident": "message"

25218 },

25219 {

25220 "ident": "type"

25221 }

25222 ]

25223 },

25224 {

25225 "kind": "HttpTypeObject",

25226 "members": [

25227 {

25228 "ident": "content"

25229 },

25230 {

25231 "ident": "type"

25232 }

25233 ]

25234 },

25235 {

25236 "kind": "HttpTypeObject",

25237 "members": [

25238 {

25239 "ident": "code"

25240 },

25241 {

25242 "ident": "message"

25243 },

25244 {

25245 "ident": "type"

25246 }

25247 ]

25248 }

25249 ]

25250 },

25251 "childrenParentSchema": "union",

25252 "children": [

25253 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

25254 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

25255 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

25256 ]

25257 },

25113 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": {25258 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": {

25114 "kind": "HttpDeclReference",25259 "kind": "HttpDeclReference",

25115 "type": {25260 "type": {


36661 "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0"36806 "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0"

36662 ]36807 ]

36663 },36808 },

36809 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) code": {

36810 "kind": "HttpDeclProperty",

36811 "oasRef": "#/components/schemas/MCPProtocolError/properties/code",

36812 "deprecated": false,

36813 "key": "code",

36814 "type": {

36815 "kind": "HttpTypeNumber"

36816 },

36817 "optional": false,

36818 "nullable": false,

36819 "schemaType": "integer",

36820 "children": []

36821 },

36822 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) message": {

36823 "kind": "HttpDeclProperty",

36824 "oasRef": "#/components/schemas/MCPProtocolError/properties/message",

36825 "deprecated": false,

36826 "key": "message",

36827 "type": {

36828 "kind": "HttpTypeString"

36829 },

36830 "optional": false,

36831 "nullable": false,

36832 "schemaType": "string",

36833 "children": []

36834 },

36835 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type": {

36836 "kind": "HttpDeclProperty",

36837 "oasRef": "#/components/schemas/MCPProtocolError/properties/type",

36838 "deprecated": false,

36839 "key": "type",

36840 "type": {

36841 "kind": "HttpTypeUnion",

36842 "oasRef": "#/components/schemas/MCPProtocolError/properties/type",

36843 "types": [

36844 {

36845 "kind": "HttpTypeLiteral",

36846 "literal": "mcp_protocol_error"

36847 }

36848 ]

36849 },

36850 "default": "mcp_protocol_error",

36851 "optional": false,

36852 "nullable": false,

36853 "schemaType": "enum",

36854 "childrenParentSchema": "enum",

36855 "children": [

36856 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0"

36857 ]

36858 },

36859 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) content": {

36860 "kind": "HttpDeclProperty",

36861 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content",

36862 "deprecated": false,

36863 "key": "content",

36864 "type": {

36865 "kind": "HttpTypeUnknown"

36866 },

36867 "optional": false,

36868 "nullable": false,

36869 "schemaType": "unknown",

36870 "children": []

36871 },

36872 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type": {

36873 "kind": "HttpDeclProperty",

36874 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type",

36875 "deprecated": false,

36876 "key": "type",

36877 "type": {

36878 "kind": "HttpTypeUnion",

36879 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type",

36880 "types": [

36881 {

36882 "kind": "HttpTypeLiteral",

36883 "literal": "mcp_tool_execution_error"

36884 }

36885 ]

36886 },

36887 "default": "mcp_tool_execution_error",

36888 "optional": false,

36889 "nullable": false,

36890 "schemaType": "enum",

36891 "childrenParentSchema": "enum",

36892 "children": [

36893 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0"

36894 ]

36895 },

36896 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) code": {

36897 "kind": "HttpDeclProperty",

36898 "oasRef": "#/components/schemas/HTTPError/properties/code",

36899 "deprecated": false,

36900 "key": "code",

36901 "type": {

36902 "kind": "HttpTypeNumber"

36903 },

36904 "optional": false,

36905 "nullable": false,

36906 "schemaType": "integer",

36907 "children": []

36908 },

36909 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) message": {

36910 "kind": "HttpDeclProperty",

36911 "oasRef": "#/components/schemas/HTTPError/properties/message",

36912 "deprecated": false,

36913 "key": "message",

36914 "type": {

36915 "kind": "HttpTypeString"

36916 },

36917 "optional": false,

36918 "nullable": false,

36919 "schemaType": "string",

36920 "children": []

36921 },

36922 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type": {

36923 "kind": "HttpDeclProperty",

36924 "oasRef": "#/components/schemas/HTTPError/properties/type",

36925 "deprecated": false,

36926 "key": "type",

36927 "type": {

36928 "kind": "HttpTypeUnion",

36929 "oasRef": "#/components/schemas/HTTPError/properties/type",

36930 "types": [

36931 {

36932 "kind": "HttpTypeLiteral",

36933 "literal": "http_error"

36934 }

36935 ]

36936 },

36937 "default": "http_error",

36938 "optional": false,

36939 "nullable": false,

36940 "schemaType": "enum",

36941 "childrenParentSchema": "enum",

36942 "children": [

36943 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0"

36944 ]

36945 },

36664 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": {36946 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": {

36665 "kind": "HttpDeclProperty",36947 "kind": "HttpDeclProperty",

36666 "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type",36948 "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type",


46510 "literal": "program"46792 "literal": "program"

46511 }46793 }

46512 },46794 },

46795 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0": {

46796 "kind": "HttpDeclReference",

46797 "type": {

46798 "kind": "HttpTypeLiteral",

46799 "literal": "mcp_protocol_error"

46800 }

46801 },

46802 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0": {

46803 "kind": "HttpDeclReference",

46804 "type": {

46805 "kind": "HttpTypeLiteral",

46806 "literal": "mcp_tool_execution_error"

46807 }

46808 },

46809 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0": {

46810 "kind": "HttpDeclReference",

46811 "type": {

46812 "kind": "HttpTypeLiteral",

46813 "literal": "http_error"

46814 }

46815 },

46513 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": {46816 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": {

46514 "kind": "HttpDeclReference",46817 "kind": "HttpDeclReference",

46515 "type": {46818 "type": {


64661 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",64964 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",

64662 "deprecated": false,64965 "deprecated": false,

64663 "key": "encrypted_content",64966 "key": "encrypted_content",

64664 "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",64967 "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",

64665 "type": {64968 "type": {

64666 "kind": "HttpTypeString"64969 "kind": "HttpTypeString"

64667 },64970 },


67315 "oasRef": "#/components/schemas/MCPToolCall/properties/error",67618 "oasRef": "#/components/schemas/MCPToolCall/properties/error",

67316 "deprecated": false,67619 "deprecated": false,

67317 "key": "error",67620 "key": "error",

67318 "docstring": "The error from the tool call, if any.\n",67621 "docstring": "The error from the tool call, if any.",

67319 "type": {67622 "type": {

67320 "kind": "HttpTypeString"67623 "kind": "HttpTypeReference",

67624 "ident": "McpToolCallError",

67625 "$ref": "(resource) responses > (model) mcp_tool_call_error > (schema)"

67321 },67626 },

67322 "optional": true,67627 "optional": true,

67323 "nullable": true,67628 "nullable": true,

67324 "schemaType": "string",67629 "modelImplicit": false,

67325 "children": []67630 "schemaType": "union",

67631 "modelPath": "(resource) responses > (model) mcp_tool_call_error",

67632 "childrenParentSchema": "union",

67633 "children": [

67634 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

67635 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

67636 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

67637 ]

67326 },67638 },

67327 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": {67639 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": {

67328 "kind": "HttpDeclProperty",67640 "kind": "HttpDeclProperty",


73209 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",73521 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",

73210 "deprecated": false,73522 "deprecated": false,

73211 "key": "encrypted_content",73523 "key": "encrypted_content",

73212 "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",73524 "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",

73213 "type": {73525 "type": {

73214 "kind": "HttpTypeString"73526 "kind": "HttpTypeString"

73215 },73527 },


74848 "oasRef": "#/components/schemas/MCPToolCall/properties/error",75160 "oasRef": "#/components/schemas/MCPToolCall/properties/error",

74849 "deprecated": false,75161 "deprecated": false,

74850 "key": "error",75162 "key": "error",

74851 "docstring": "The error from the tool call, if any.\n",75163 "docstring": "The error from the tool call, if any.",

74852 "type": {75164 "type": {

74853 "kind": "HttpTypeString"75165 "kind": "HttpTypeReference",

75166 "ident": "McpToolCallError",

75167 "$ref": "(resource) responses > (model) mcp_tool_call_error > (schema)"

74854 },75168 },

74855 "optional": true,75169 "optional": true,

74856 "nullable": true,75170 "nullable": true,

74857 "schemaType": "string",75171 "modelImplicit": false,

74858 "children": []75172 "schemaType": "union",

75173 "modelPath": "(resource) responses > (model) mcp_tool_call_error",

75174 "childrenParentSchema": "union",

75175 "children": [

75176 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

75177 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

75178 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

75179 ]

74859 },75180 },

74860 "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) output": {75181 "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) output": {

74861 "kind": "HttpDeclProperty",75182 "kind": "HttpDeclProperty",


78924 "literal": "mcp_call"79245 "literal": "mcp_call"

78925 }79246 }

78926 },79247 },

79248 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0": {

79249 "kind": "HttpDeclTypeAlias",

79250 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0",

79251 "ident": "McpProtocolError",

79252 "type": {

79253 "kind": "HttpTypeObject",

79254 "members": [

79255 {

79256 "ident": "code"

79257 },

79258 {

79259 "ident": "message"

79260 },

79261 {

79262 "ident": "type"

79263 }

79264 ]

79265 },

79266 "childrenParentSchema": "object",

79267 "children": [

79268 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) code",

79269 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) message",

79270 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type"

79271 ]

79272 },

79273 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1": {

79274 "kind": "HttpDeclTypeAlias",

79275 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1",

79276 "ident": "McpToolExecutionError",

79277 "type": {

79278 "kind": "HttpTypeObject",

79279 "members": [

79280 {

79281 "ident": "content"

79282 },

79283 {

79284 "ident": "type"

79285 }

79286 ]

79287 },

79288 "childrenParentSchema": "object",

79289 "children": [

79290 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) content",

79291 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type"

79292 ]

79293 },

79294 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2": {

79295 "kind": "HttpDeclTypeAlias",

79296 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2",

79297 "ident": "HTTPError",

79298 "type": {

79299 "kind": "HttpTypeObject",

79300 "members": [

79301 {

79302 "ident": "code"

79303 },

79304 {

79305 "ident": "message"

79306 },

79307 {

79308 "ident": "type"

79309 }

79310 ]

79311 },

79312 "childrenParentSchema": "object",

79313 "children": [

79314 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) code",

79315 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) message",

79316 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type"

79317 ]

79318 },

79319 "(resource) responses > (model) mcp_tool_call_error > (schema)": {

79320 "kind": "HttpDeclTypeAlias",

79321 "oasRef": "#/components/schemas/MCPToolCallError",

79322 "ident": "McpToolCallError",

79323 "type": {

79324 "kind": "HttpTypeUnion",

79325 "oasRef": "#/components/schemas/MCPToolCallError",

79326 "types": [

79327 {

79328 "kind": "HttpTypeObject",

79329 "members": [

79330 {

79331 "ident": "code"

79332 },

79333 {

79334 "ident": "message"

79335 },

79336 {

79337 "ident": "type"

79338 }

79339 ]

79340 },

79341 {

79342 "kind": "HttpTypeObject",

79343 "members": [

79344 {

79345 "ident": "content"

79346 },

79347 {

79348 "ident": "type"

79349 }

79350 ]

79351 },

79352 {

79353 "kind": "HttpTypeObject",

79354 "members": [

79355 {

79356 "ident": "code"

79357 },

79358 {

79359 "ident": "message"

79360 },

79361 {

79362 "ident": "type"

79363 }

79364 ]

79365 }

79366 ]

79367 },

79368 "childrenParentSchema": "union",

79369 "children": [

79370 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

79371 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

79372 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

79373 ]

79374 },

78927 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": {79375 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": {

78928 "kind": "HttpDeclReference",79376 "kind": "HttpDeclReference",

78929 "type": {79377 "type": {


90475 "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0"90923 "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0"

90476 ]90924 ]

90477 },90925 },

90926 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) code": {

90927 "kind": "HttpDeclProperty",

90928 "oasRef": "#/components/schemas/MCPProtocolError/properties/code",

90929 "deprecated": false,

90930 "key": "code",

90931 "type": {

90932 "kind": "HttpTypeNumber"

90933 },

90934 "optional": false,

90935 "nullable": false,

90936 "schemaType": "integer",

90937 "children": []

90938 },

90939 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) message": {

90940 "kind": "HttpDeclProperty",

90941 "oasRef": "#/components/schemas/MCPProtocolError/properties/message",

90942 "deprecated": false,

90943 "key": "message",

90944 "type": {

90945 "kind": "HttpTypeString"

90946 },

90947 "optional": false,

90948 "nullable": false,

90949 "schemaType": "string",

90950 "children": []

90951 },

90952 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type": {

90953 "kind": "HttpDeclProperty",

90954 "oasRef": "#/components/schemas/MCPProtocolError/properties/type",

90955 "deprecated": false,

90956 "key": "type",

90957 "type": {

90958 "kind": "HttpTypeUnion",

90959 "oasRef": "#/components/schemas/MCPProtocolError/properties/type",

90960 "types": [

90961 {

90962 "kind": "HttpTypeLiteral",

90963 "literal": "mcp_protocol_error"

90964 }

90965 ]

90966 },

90967 "default": "mcp_protocol_error",

90968 "optional": false,

90969 "nullable": false,

90970 "schemaType": "enum",

90971 "childrenParentSchema": "enum",

90972 "children": [

90973 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0"

90974 ]

90975 },

90976 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) content": {

90977 "kind": "HttpDeclProperty",

90978 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content",

90979 "deprecated": false,

90980 "key": "content",

90981 "type": {

90982 "kind": "HttpTypeUnknown"

90983 },

90984 "optional": false,

90985 "nullable": false,

90986 "schemaType": "unknown",

90987 "children": []

90988 },

90989 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type": {

90990 "kind": "HttpDeclProperty",

90991 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type",

90992 "deprecated": false,

90993 "key": "type",

90994 "type": {

90995 "kind": "HttpTypeUnion",

90996 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type",

90997 "types": [

90998 {

90999 "kind": "HttpTypeLiteral",

91000 "literal": "mcp_tool_execution_error"

91001 }

91002 ]

91003 },

91004 "default": "mcp_tool_execution_error",

91005 "optional": false,

91006 "nullable": false,

91007 "schemaType": "enum",

91008 "childrenParentSchema": "enum",

91009 "children": [

91010 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0"

91011 ]

91012 },

91013 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) code": {

91014 "kind": "HttpDeclProperty",

91015 "oasRef": "#/components/schemas/HTTPError/properties/code",

91016 "deprecated": false,

91017 "key": "code",

91018 "type": {

91019 "kind": "HttpTypeNumber"

91020 },

91021 "optional": false,

91022 "nullable": false,

91023 "schemaType": "integer",

91024 "children": []

91025 },

91026 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) message": {

91027 "kind": "HttpDeclProperty",

91028 "oasRef": "#/components/schemas/HTTPError/properties/message",

91029 "deprecated": false,

91030 "key": "message",

91031 "type": {

91032 "kind": "HttpTypeString"

91033 },

91034 "optional": false,

91035 "nullable": false,

91036 "schemaType": "string",

91037 "children": []

91038 },

91039 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type": {

91040 "kind": "HttpDeclProperty",

91041 "oasRef": "#/components/schemas/HTTPError/properties/type",

91042 "deprecated": false,

91043 "key": "type",

91044 "type": {

91045 "kind": "HttpTypeUnion",

91046 "oasRef": "#/components/schemas/HTTPError/properties/type",

91047 "types": [

91048 {

91049 "kind": "HttpTypeLiteral",

91050 "literal": "http_error"

91051 }

91052 ]

91053 },

91054 "default": "http_error",

91055 "optional": false,

91056 "nullable": false,

91057 "schemaType": "enum",

91058 "childrenParentSchema": "enum",

91059 "children": [

91060 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0"

91061 ]

91062 },

90478 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": {91063 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": {

90479 "kind": "HttpDeclProperty",91064 "kind": "HttpDeclProperty",

90480 "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type",91065 "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type",


100324 "literal": "program"100909 "literal": "program"

100325 }100910 }

100326 },100911 },

100912 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0": {

100913 "kind": "HttpDeclReference",

100914 "type": {

100915 "kind": "HttpTypeLiteral",

100916 "literal": "mcp_protocol_error"

100917 }

100918 },

100919 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0": {

100920 "kind": "HttpDeclReference",

100921 "type": {

100922 "kind": "HttpTypeLiteral",

100923 "literal": "mcp_tool_execution_error"

100924 }

100925 },

100926 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0": {

100927 "kind": "HttpDeclReference",

100928 "type": {

100929 "kind": "HttpTypeLiteral",

100930 "literal": "http_error"

100931 }

100932 },

100327 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": {100933 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": {

100328 "kind": "HttpDeclReference",100934 "kind": "HttpDeclReference",

100329 "type": {100935 "type": {


118475 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",119081 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",

118476 "deprecated": false,119082 "deprecated": false,

118477 "key": "encrypted_content",119083 "key": "encrypted_content",

118478 "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",119084 "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",

118479 "type": {119085 "type": {

118480 "kind": "HttpTypeString"119086 "kind": "HttpTypeString"

118481 },119087 },


121129 "oasRef": "#/components/schemas/MCPToolCall/properties/error",121735 "oasRef": "#/components/schemas/MCPToolCall/properties/error",

121130 "deprecated": false,121736 "deprecated": false,

121131 "key": "error",121737 "key": "error",

121132 "docstring": "The error from the tool call, if any.\n",121738 "docstring": "The error from the tool call, if any.",

121133 "type": {121739 "type": {

121134 "kind": "HttpTypeString"121740 "kind": "HttpTypeReference",

121741 "ident": "McpToolCallError",

121742 "$ref": "(resource) responses > (model) mcp_tool_call_error > (schema)"

121135 },121743 },

121136 "optional": true,121744 "optional": true,

121137 "nullable": true,121745 "nullable": true,

121138 "schemaType": "string",121746 "modelImplicit": false,

121139 "children": []121747 "schemaType": "union",

121748 "modelPath": "(resource) responses > (model) mcp_tool_call_error",

121749 "childrenParentSchema": "union",

121750 "children": [

121751 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

121752 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

121753 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

121754 ]

121140 },121755 },

121141 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": {121756 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": {

121142 "kind": "HttpDeclProperty",121757 "kind": "HttpDeclProperty",


127023 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",127638 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",

127024 "deprecated": false,127639 "deprecated": false,

127025 "key": "encrypted_content",127640 "key": "encrypted_content",

127026 "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",127641 "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",

127027 "type": {127642 "type": {

127028 "kind": "HttpTypeString"127643 "kind": "HttpTypeString"

127029 },127644 },


128662 "oasRef": "#/components/schemas/MCPToolCall/properties/error",129277 "oasRef": "#/components/schemas/MCPToolCall/properties/error",

128663 "deprecated": false,129278 "deprecated": false,

128664 "key": "error",129279 "key": "error",

128665 "docstring": "The error from the tool call, if any.\n",129280 "docstring": "The error from the tool call, if any.",

128666 "type": {129281 "type": {

128667 "kind": "HttpTypeString"129282 "kind": "HttpTypeReference",

129283 "ident": "McpToolCallError",

129284 "$ref": "(resource) responses > (model) mcp_tool_call_error > (schema)"

128668 },129285 },

128669 "optional": true,129286 "optional": true,

128670 "nullable": true,129287 "nullable": true,

128671 "schemaType": "string",129288 "modelImplicit": false,

128672 "children": []129289 "schemaType": "union",

129290 "modelPath": "(resource) responses > (model) mcp_tool_call_error",

129291 "childrenParentSchema": "union",

129292 "children": [

129293 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

129294 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

129295 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

129296 ]

128673 },129297 },

128674 "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) output": {129298 "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) output": {

128675 "kind": "HttpDeclProperty",129299 "kind": "HttpDeclProperty",


132738 "literal": "mcp_call"133362 "literal": "mcp_call"

132739 }133363 }

132740 },133364 },

133365 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0": {

133366 "kind": "HttpDeclTypeAlias",

133367 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0",

133368 "ident": "McpProtocolError",

133369 "type": {

133370 "kind": "HttpTypeObject",

133371 "members": [

133372 {

133373 "ident": "code"

133374 },

133375 {

133376 "ident": "message"

133377 },

133378 {

133379 "ident": "type"

133380 }

133381 ]

133382 },

133383 "childrenParentSchema": "object",

133384 "children": [

133385 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) code",

133386 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) message",

133387 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type"

133388 ]

133389 },

133390 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1": {

133391 "kind": "HttpDeclTypeAlias",

133392 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1",

133393 "ident": "McpToolExecutionError",

133394 "type": {

133395 "kind": "HttpTypeObject",

133396 "members": [

133397 {

133398 "ident": "content"

133399 },

133400 {

133401 "ident": "type"

133402 }

133403 ]

133404 },

133405 "childrenParentSchema": "object",

133406 "children": [

133407 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) content",

133408 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type"

133409 ]

133410 },

133411 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2": {

133412 "kind": "HttpDeclTypeAlias",

133413 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2",

133414 "ident": "HTTPError",

133415 "type": {

133416 "kind": "HttpTypeObject",

133417 "members": [

133418 {

133419 "ident": "code"

133420 },

133421 {

133422 "ident": "message"

133423 },

133424 {

133425 "ident": "type"

133426 }

133427 ]

133428 },

133429 "childrenParentSchema": "object",

133430 "children": [

133431 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) code",

133432 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) message",

133433 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type"

133434 ]

133435 },

133436 "(resource) responses > (model) mcp_tool_call_error > (schema)": {

133437 "kind": "HttpDeclTypeAlias",

133438 "oasRef": "#/components/schemas/MCPToolCallError",

133439 "ident": "McpToolCallError",

133440 "type": {

133441 "kind": "HttpTypeUnion",

133442 "oasRef": "#/components/schemas/MCPToolCallError",

133443 "types": [

133444 {

133445 "kind": "HttpTypeObject",

133446 "members": [

133447 {

133448 "ident": "code"

133449 },

133450 {

133451 "ident": "message"

133452 },

133453 {

133454 "ident": "type"

133455 }

133456 ]

133457 },

133458 {

133459 "kind": "HttpTypeObject",

133460 "members": [

133461 {

133462 "ident": "content"

133463 },

133464 {

133465 "ident": "type"

133466 }

133467 ]

133468 },

133469 {

133470 "kind": "HttpTypeObject",

133471 "members": [

133472 {

133473 "ident": "code"

133474 },

133475 {

133476 "ident": "message"

133477 },

133478 {

133479 "ident": "type"

133480 }

133481 ]

133482 }

133483 ]

133484 },

133485 "childrenParentSchema": "union",

133486 "children": [

133487 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

133488 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

133489 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

133490 ]

133491 },

132741 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": {133492 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": {

132742 "kind": "HttpDeclReference",133493 "kind": "HttpDeclReference",

132743 "type": {133494 "type": {


144289 "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0"145040 "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0"

144290 ]145041 ]

144291 },145042 },

145043 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) code": {

145044 "kind": "HttpDeclProperty",

145045 "oasRef": "#/components/schemas/MCPProtocolError/properties/code",

145046 "deprecated": false,

145047 "key": "code",

145048 "type": {

145049 "kind": "HttpTypeNumber"

145050 },

145051 "optional": false,

145052 "nullable": false,

145053 "schemaType": "integer",

145054 "children": []

145055 },

145056 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) message": {

145057 "kind": "HttpDeclProperty",

145058 "oasRef": "#/components/schemas/MCPProtocolError/properties/message",

145059 "deprecated": false,

145060 "key": "message",

145061 "type": {

145062 "kind": "HttpTypeString"

145063 },

145064 "optional": false,

145065 "nullable": false,

145066 "schemaType": "string",

145067 "children": []

145068 },

145069 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type": {

145070 "kind": "HttpDeclProperty",

145071 "oasRef": "#/components/schemas/MCPProtocolError/properties/type",

145072 "deprecated": false,

145073 "key": "type",

145074 "type": {

145075 "kind": "HttpTypeUnion",

145076 "oasRef": "#/components/schemas/MCPProtocolError/properties/type",

145077 "types": [

145078 {

145079 "kind": "HttpTypeLiteral",

145080 "literal": "mcp_protocol_error"

145081 }

145082 ]

145083 },

145084 "default": "mcp_protocol_error",

145085 "optional": false,

145086 "nullable": false,

145087 "schemaType": "enum",

145088 "childrenParentSchema": "enum",

145089 "children": [

145090 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0"

145091 ]

145092 },

145093 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) content": {

145094 "kind": "HttpDeclProperty",

145095 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content",

145096 "deprecated": false,

145097 "key": "content",

145098 "type": {

145099 "kind": "HttpTypeUnknown"

145100 },

145101 "optional": false,

145102 "nullable": false,

145103 "schemaType": "unknown",

145104 "children": []

145105 },

145106 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type": {

145107 "kind": "HttpDeclProperty",

145108 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type",

145109 "deprecated": false,

145110 "key": "type",

145111 "type": {

145112 "kind": "HttpTypeUnion",

145113 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type",

145114 "types": [

145115 {

145116 "kind": "HttpTypeLiteral",

145117 "literal": "mcp_tool_execution_error"

145118 }

145119 ]

145120 },

145121 "default": "mcp_tool_execution_error",

145122 "optional": false,

145123 "nullable": false,

145124 "schemaType": "enum",

145125 "childrenParentSchema": "enum",

145126 "children": [

145127 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0"

145128 ]

145129 },

145130 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) code": {

145131 "kind": "HttpDeclProperty",

145132 "oasRef": "#/components/schemas/HTTPError/properties/code",

145133 "deprecated": false,

145134 "key": "code",

145135 "type": {

145136 "kind": "HttpTypeNumber"

145137 },

145138 "optional": false,

145139 "nullable": false,

145140 "schemaType": "integer",

145141 "children": []

145142 },

145143 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) message": {

145144 "kind": "HttpDeclProperty",

145145 "oasRef": "#/components/schemas/HTTPError/properties/message",

145146 "deprecated": false,

145147 "key": "message",

145148 "type": {

145149 "kind": "HttpTypeString"

145150 },

145151 "optional": false,

145152 "nullable": false,

145153 "schemaType": "string",

145154 "children": []

145155 },

145156 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type": {

145157 "kind": "HttpDeclProperty",

145158 "oasRef": "#/components/schemas/HTTPError/properties/type",

145159 "deprecated": false,

145160 "key": "type",

145161 "type": {

145162 "kind": "HttpTypeUnion",

145163 "oasRef": "#/components/schemas/HTTPError/properties/type",

145164 "types": [

145165 {

145166 "kind": "HttpTypeLiteral",

145167 "literal": "http_error"

145168 }

145169 ]

145170 },

145171 "default": "http_error",

145172 "optional": false,

145173 "nullable": false,

145174 "schemaType": "enum",

145175 "childrenParentSchema": "enum",

145176 "children": [

145177 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0"

145178 ]

145179 },

144292 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": {145180 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": {

144293 "kind": "HttpDeclProperty",145181 "kind": "HttpDeclProperty",

144294 "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type",145182 "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type",


154138 "literal": "program"155026 "literal": "program"

154139 }155027 }

154140 },155028 },

155029 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0": {

155030 "kind": "HttpDeclReference",

155031 "type": {

155032 "kind": "HttpTypeLiteral",

155033 "literal": "mcp_protocol_error"

155034 }

155035 },

155036 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0": {

155037 "kind": "HttpDeclReference",

155038 "type": {

155039 "kind": "HttpTypeLiteral",

155040 "literal": "mcp_tool_execution_error"

155041 }

155042 },

155043 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0": {

155044 "kind": "HttpDeclReference",

155045 "type": {

155046 "kind": "HttpTypeLiteral",

155047 "literal": "http_error"

155048 }

155049 },

154141 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": {155050 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": {

154142 "kind": "HttpDeclReference",155051 "kind": "HttpDeclReference",

154143 "type": {155052 "type": {


172306 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",173215 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",

172307 "deprecated": false,173216 "deprecated": false,

172308 "key": "encrypted_content",173217 "key": "encrypted_content",

172309 "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",173218 "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",

172310 "type": {173219 "type": {

172311 "kind": "HttpTypeString"173220 "kind": "HttpTypeString"

172312 },173221 },


174960 "oasRef": "#/components/schemas/MCPToolCall/properties/error",175869 "oasRef": "#/components/schemas/MCPToolCall/properties/error",

174961 "deprecated": false,175870 "deprecated": false,

174962 "key": "error",175871 "key": "error",

174963 "docstring": "The error from the tool call, if any.\n",175872 "docstring": "The error from the tool call, if any.",

174964 "type": {175873 "type": {

174965 "kind": "HttpTypeString"175874 "kind": "HttpTypeReference",

175875 "ident": "McpToolCallError",

175876 "$ref": "(resource) responses > (model) mcp_tool_call_error > (schema)"

174966 },175877 },

174967 "optional": true,175878 "optional": true,

174968 "nullable": true,175879 "nullable": true,

174969 "schemaType": "string",175880 "modelImplicit": false,

174970 "children": []175881 "schemaType": "union",

175882 "modelPath": "(resource) responses > (model) mcp_tool_call_error",

175883 "childrenParentSchema": "union",

175884 "children": [

175885 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

175886 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

175887 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

175888 ]

174971 },175889 },

174972 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": {175890 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": {

174973 "kind": "HttpDeclProperty",175891 "kind": "HttpDeclProperty",


180854 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",181772 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",

180855 "deprecated": false,181773 "deprecated": false,

180856 "key": "encrypted_content",181774 "key": "encrypted_content",

180857 "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",181775 "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",

180858 "type": {181776 "type": {

180859 "kind": "HttpTypeString"181777 "kind": "HttpTypeString"

180860 },181778 },


182493 "oasRef": "#/components/schemas/MCPToolCall/properties/error",183411 "oasRef": "#/components/schemas/MCPToolCall/properties/error",

182494 "deprecated": false,183412 "deprecated": false,

182495 "key": "error",183413 "key": "error",

182496 "docstring": "The error from the tool call, if any.\n",183414 "docstring": "The error from the tool call, if any.",

182497 "type": {183415 "type": {

182498 "kind": "HttpTypeString"183416 "kind": "HttpTypeReference",

183417 "ident": "McpToolCallError",

183418 "$ref": "(resource) responses > (model) mcp_tool_call_error > (schema)"

182499 },183419 },

182500 "optional": true,183420 "optional": true,

182501 "nullable": true,183421 "nullable": true,

182502 "schemaType": "string",183422 "modelImplicit": false,

182503 "children": []183423 "schemaType": "union",

183424 "modelPath": "(resource) responses > (model) mcp_tool_call_error",

183425 "childrenParentSchema": "union",

183426 "children": [

183427 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

183428 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

183429 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

183430 ]

182504 },183431 },

182505 "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) output": {183432 "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) output": {

182506 "kind": "HttpDeclProperty",183433 "kind": "HttpDeclProperty",


186569 "literal": "mcp_call"187496 "literal": "mcp_call"

186570 }187497 }

186571 },187498 },

187499 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0": {

187500 "kind": "HttpDeclTypeAlias",

187501 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0",

187502 "ident": "McpProtocolError",

187503 "type": {

187504 "kind": "HttpTypeObject",

187505 "members": [

187506 {

187507 "ident": "code"

187508 },

187509 {

187510 "ident": "message"

187511 },

187512 {

187513 "ident": "type"

187514 }

187515 ]

187516 },

187517 "childrenParentSchema": "object",

187518 "children": [

187519 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) code",

187520 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) message",

187521 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type"

187522 ]

187523 },

187524 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1": {

187525 "kind": "HttpDeclTypeAlias",

187526 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1",

187527 "ident": "McpToolExecutionError",

187528 "type": {

187529 "kind": "HttpTypeObject",

187530 "members": [

187531 {

187532 "ident": "content"

187533 },

187534 {

187535 "ident": "type"

187536 }

187537 ]

187538 },

187539 "childrenParentSchema": "object",

187540 "children": [

187541 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) content",

187542 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type"

187543 ]

187544 },

187545 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2": {

187546 "kind": "HttpDeclTypeAlias",

187547 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2",

187548 "ident": "HTTPError",

187549 "type": {

187550 "kind": "HttpTypeObject",

187551 "members": [

187552 {

187553 "ident": "code"

187554 },

187555 {

187556 "ident": "message"

187557 },

187558 {

187559 "ident": "type"

187560 }

187561 ]

187562 },

187563 "childrenParentSchema": "object",

187564 "children": [

187565 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) code",

187566 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) message",

187567 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type"

187568 ]

187569 },

187570 "(resource) responses > (model) mcp_tool_call_error > (schema)": {

187571 "kind": "HttpDeclTypeAlias",

187572 "oasRef": "#/components/schemas/MCPToolCallError",

187573 "ident": "McpToolCallError",

187574 "type": {

187575 "kind": "HttpTypeUnion",

187576 "oasRef": "#/components/schemas/MCPToolCallError",

187577 "types": [

187578 {

187579 "kind": "HttpTypeObject",

187580 "members": [

187581 {

187582 "ident": "code"

187583 },

187584 {

187585 "ident": "message"

187586 },

187587 {

187588 "ident": "type"

187589 }

187590 ]

187591 },

187592 {

187593 "kind": "HttpTypeObject",

187594 "members": [

187595 {

187596 "ident": "content"

187597 },

187598 {

187599 "ident": "type"

187600 }

187601 ]

187602 },

187603 {

187604 "kind": "HttpTypeObject",

187605 "members": [

187606 {

187607 "ident": "code"

187608 },

187609 {

187610 "ident": "message"

187611 },

187612 {

187613 "ident": "type"

187614 }

187615 ]

187616 }

187617 ]

187618 },

187619 "childrenParentSchema": "union",

187620 "children": [

187621 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

187622 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

187623 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

187624 ]

187625 },

186572 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": {187626 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": {

186573 "kind": "HttpDeclReference",187627 "kind": "HttpDeclReference",

186574 "type": {187628 "type": {


198120 "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0"199174 "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0"

198121 ]199175 ]

198122 },199176 },

199177 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) code": {

199178 "kind": "HttpDeclProperty",

199179 "oasRef": "#/components/schemas/MCPProtocolError/properties/code",

199180 "deprecated": false,

199181 "key": "code",

199182 "type": {

199183 "kind": "HttpTypeNumber"

199184 },

199185 "optional": false,

199186 "nullable": false,

199187 "schemaType": "integer",

199188 "children": []

199189 },

199190 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) message": {

199191 "kind": "HttpDeclProperty",

199192 "oasRef": "#/components/schemas/MCPProtocolError/properties/message",

199193 "deprecated": false,

199194 "key": "message",

199195 "type": {

199196 "kind": "HttpTypeString"

199197 },

199198 "optional": false,

199199 "nullable": false,

199200 "schemaType": "string",

199201 "children": []

199202 },

199203 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type": {

199204 "kind": "HttpDeclProperty",

199205 "oasRef": "#/components/schemas/MCPProtocolError/properties/type",

199206 "deprecated": false,

199207 "key": "type",

199208 "type": {

199209 "kind": "HttpTypeUnion",

199210 "oasRef": "#/components/schemas/MCPProtocolError/properties/type",

199211 "types": [

199212 {

199213 "kind": "HttpTypeLiteral",

199214 "literal": "mcp_protocol_error"

199215 }

199216 ]

199217 },

199218 "default": "mcp_protocol_error",

199219 "optional": false,

199220 "nullable": false,

199221 "schemaType": "enum",

199222 "childrenParentSchema": "enum",

199223 "children": [

199224 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0"

199225 ]

199226 },

199227 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) content": {

199228 "kind": "HttpDeclProperty",

199229 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content",

199230 "deprecated": false,

199231 "key": "content",

199232 "type": {

199233 "kind": "HttpTypeUnknown"

199234 },

199235 "optional": false,

199236 "nullable": false,

199237 "schemaType": "unknown",

199238 "children": []

199239 },

199240 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type": {

199241 "kind": "HttpDeclProperty",

199242 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type",

199243 "deprecated": false,

199244 "key": "type",

199245 "type": {

199246 "kind": "HttpTypeUnion",

199247 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type",

199248 "types": [

199249 {

199250 "kind": "HttpTypeLiteral",

199251 "literal": "mcp_tool_execution_error"

199252 }

199253 ]

199254 },

199255 "default": "mcp_tool_execution_error",

199256 "optional": false,

199257 "nullable": false,

199258 "schemaType": "enum",

199259 "childrenParentSchema": "enum",

199260 "children": [

199261 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0"

199262 ]

199263 },

199264 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) code": {

199265 "kind": "HttpDeclProperty",

199266 "oasRef": "#/components/schemas/HTTPError/properties/code",

199267 "deprecated": false,

199268 "key": "code",

199269 "type": {

199270 "kind": "HttpTypeNumber"

199271 },

199272 "optional": false,

199273 "nullable": false,

199274 "schemaType": "integer",

199275 "children": []

199276 },

199277 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) message": {

199278 "kind": "HttpDeclProperty",

199279 "oasRef": "#/components/schemas/HTTPError/properties/message",

199280 "deprecated": false,

199281 "key": "message",

199282 "type": {

199283 "kind": "HttpTypeString"

199284 },

199285 "optional": false,

199286 "nullable": false,

199287 "schemaType": "string",

199288 "children": []

199289 },

199290 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type": {

199291 "kind": "HttpDeclProperty",

199292 "oasRef": "#/components/schemas/HTTPError/properties/type",

199293 "deprecated": false,

199294 "key": "type",

199295 "type": {

199296 "kind": "HttpTypeUnion",

199297 "oasRef": "#/components/schemas/HTTPError/properties/type",

199298 "types": [

199299 {

199300 "kind": "HttpTypeLiteral",

199301 "literal": "http_error"

199302 }

199303 ]

199304 },

199305 "default": "http_error",

199306 "optional": false,

199307 "nullable": false,

199308 "schemaType": "enum",

199309 "childrenParentSchema": "enum",

199310 "children": [

199311 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0"

199312 ]

199313 },

198123 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": {199314 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": {

198124 "kind": "HttpDeclProperty",199315 "kind": "HttpDeclProperty",

198125 "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type",199316 "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type",


207969 "literal": "program"209160 "literal": "program"

207970 }209161 }

207971 },209162 },

209163 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0": {

209164 "kind": "HttpDeclReference",

209165 "type": {

209166 "kind": "HttpTypeLiteral",

209167 "literal": "mcp_protocol_error"

209168 }

209169 },

209170 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0": {

209171 "kind": "HttpDeclReference",

209172 "type": {

209173 "kind": "HttpTypeLiteral",

209174 "literal": "mcp_tool_execution_error"

209175 }

209176 },

209177 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0": {

209178 "kind": "HttpDeclReference",

209179 "type": {

209180 "kind": "HttpTypeLiteral",

209181 "literal": "http_error"

209182 }

209183 },

207972 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": {209184 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": {

207973 "kind": "HttpDeclReference",209185 "kind": "HttpDeclReference",

207974 "type": {209186 "type": {


226118 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",227330 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",

226119 "deprecated": false,227331 "deprecated": false,

226120 "key": "encrypted_content",227332 "key": "encrypted_content",

226121 "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",227333 "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",

226122 "type": {227334 "type": {

226123 "kind": "HttpTypeString"227335 "kind": "HttpTypeString"

226124 },227336 },


228772 "oasRef": "#/components/schemas/MCPToolCall/properties/error",229984 "oasRef": "#/components/schemas/MCPToolCall/properties/error",

228773 "deprecated": false,229985 "deprecated": false,

228774 "key": "error",229986 "key": "error",

228775 "docstring": "The error from the tool call, if any.\n",229987 "docstring": "The error from the tool call, if any.",

228776 "type": {229988 "type": {

228777 "kind": "HttpTypeString"229989 "kind": "HttpTypeReference",

229990 "ident": "McpToolCallError",

229991 "$ref": "(resource) responses > (model) mcp_tool_call_error > (schema)"

228778 },229992 },

228779 "optional": true,229993 "optional": true,

228780 "nullable": true,229994 "nullable": true,

228781 "schemaType": "string",229995 "modelImplicit": false,

228782 "children": []229996 "schemaType": "union",

229997 "modelPath": "(resource) responses > (model) mcp_tool_call_error",

229998 "childrenParentSchema": "union",

229999 "children": [

230000 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

230001 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

230002 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

230003 ]

228783 },230004 },

228784 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": {230005 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": {

228785 "kind": "HttpDeclProperty",230006 "kind": "HttpDeclProperty",


234666 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",235887 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",

234667 "deprecated": false,235888 "deprecated": false,

234668 "key": "encrypted_content",235889 "key": "encrypted_content",

234669 "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",235890 "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",

234670 "type": {235891 "type": {

234671 "kind": "HttpTypeString"235892 "kind": "HttpTypeString"

234672 },235893 },


236305 "oasRef": "#/components/schemas/MCPToolCall/properties/error",237526 "oasRef": "#/components/schemas/MCPToolCall/properties/error",

236306 "deprecated": false,237527 "deprecated": false,

236307 "key": "error",237528 "key": "error",

236308 "docstring": "The error from the tool call, if any.\n",237529 "docstring": "The error from the tool call, if any.",

236309 "type": {237530 "type": {

236310 "kind": "HttpTypeString"237531 "kind": "HttpTypeReference",

237532 "ident": "McpToolCallError",

237533 "$ref": "(resource) responses > (model) mcp_tool_call_error > (schema)"

236311 },237534 },

236312 "optional": true,237535 "optional": true,

236313 "nullable": true,237536 "nullable": true,

236314 "schemaType": "string",237537 "modelImplicit": false,

236315 "children": []237538 "schemaType": "union",

237539 "modelPath": "(resource) responses > (model) mcp_tool_call_error",

237540 "childrenParentSchema": "union",

237541 "children": [

237542 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

237543 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

237544 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

237545 ]

236316 },237546 },

236317 "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) output": {237547 "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) output": {

236318 "kind": "HttpDeclProperty",237548 "kind": "HttpDeclProperty",


240381 "literal": "mcp_call"241611 "literal": "mcp_call"

240382 }241612 }

240383 },241613 },

241614 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0": {

241615 "kind": "HttpDeclTypeAlias",

241616 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0",

241617 "ident": "McpProtocolError",

241618 "type": {

241619 "kind": "HttpTypeObject",

241620 "members": [

241621 {

241622 "ident": "code"

241623 },

241624 {

241625 "ident": "message"

241626 },

241627 {

241628 "ident": "type"

241629 }

241630 ]

241631 },

241632 "childrenParentSchema": "object",

241633 "children": [

241634 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) code",

241635 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) message",

241636 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type"

241637 ]

241638 },

241639 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1": {

241640 "kind": "HttpDeclTypeAlias",

241641 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1",

241642 "ident": "McpToolExecutionError",

241643 "type": {

241644 "kind": "HttpTypeObject",

241645 "members": [

241646 {

241647 "ident": "content"

241648 },

241649 {

241650 "ident": "type"

241651 }

241652 ]

241653 },

241654 "childrenParentSchema": "object",

241655 "children": [

241656 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) content",

241657 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type"

241658 ]

241659 },

241660 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2": {

241661 "kind": "HttpDeclTypeAlias",

241662 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2",

241663 "ident": "HTTPError",

241664 "type": {

241665 "kind": "HttpTypeObject",

241666 "members": [

241667 {

241668 "ident": "code"

241669 },

241670 {

241671 "ident": "message"

241672 },

241673 {

241674 "ident": "type"

241675 }

241676 ]

241677 },

241678 "childrenParentSchema": "object",

241679 "children": [

241680 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) code",

241681 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) message",

241682 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type"

241683 ]

241684 },

241685 "(resource) responses > (model) mcp_tool_call_error > (schema)": {

241686 "kind": "HttpDeclTypeAlias",

241687 "oasRef": "#/components/schemas/MCPToolCallError",

241688 "ident": "McpToolCallError",

241689 "type": {

241690 "kind": "HttpTypeUnion",

241691 "oasRef": "#/components/schemas/MCPToolCallError",

241692 "types": [

241693 {

241694 "kind": "HttpTypeObject",

241695 "members": [

241696 {

241697 "ident": "code"

241698 },

241699 {

241700 "ident": "message"

241701 },

241702 {

241703 "ident": "type"

241704 }

241705 ]

241706 },

241707 {

241708 "kind": "HttpTypeObject",

241709 "members": [

241710 {

241711 "ident": "content"

241712 },

241713 {

241714 "ident": "type"

241715 }

241716 ]

241717 },

241718 {

241719 "kind": "HttpTypeObject",

241720 "members": [

241721 {

241722 "ident": "code"

241723 },

241724 {

241725 "ident": "message"

241726 },

241727 {

241728 "ident": "type"

241729 }

241730 ]

241731 }

241732 ]

241733 },

241734 "childrenParentSchema": "union",

241735 "children": [

241736 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

241737 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

241738 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

241739 ]

241740 },

240384 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": {241741 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": {

240385 "kind": "HttpDeclReference",241742 "kind": "HttpDeclReference",

240386 "type": {241743 "type": {


251932 "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0"253289 "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0"

251933 ]253290 ]

251934 },253291 },

253292 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) code": {

253293 "kind": "HttpDeclProperty",

253294 "oasRef": "#/components/schemas/MCPProtocolError/properties/code",

253295 "deprecated": false,

253296 "key": "code",

253297 "type": {

253298 "kind": "HttpTypeNumber"

253299 },

253300 "optional": false,

253301 "nullable": false,

253302 "schemaType": "integer",

253303 "children": []

253304 },

253305 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) message": {

253306 "kind": "HttpDeclProperty",

253307 "oasRef": "#/components/schemas/MCPProtocolError/properties/message",

253308 "deprecated": false,

253309 "key": "message",

253310 "type": {

253311 "kind": "HttpTypeString"

253312 },

253313 "optional": false,

253314 "nullable": false,

253315 "schemaType": "string",

253316 "children": []

253317 },

253318 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type": {

253319 "kind": "HttpDeclProperty",

253320 "oasRef": "#/components/schemas/MCPProtocolError/properties/type",

253321 "deprecated": false,

253322 "key": "type",

253323 "type": {

253324 "kind": "HttpTypeUnion",

253325 "oasRef": "#/components/schemas/MCPProtocolError/properties/type",

253326 "types": [

253327 {

253328 "kind": "HttpTypeLiteral",

253329 "literal": "mcp_protocol_error"

253330 }

253331 ]

253332 },

253333 "default": "mcp_protocol_error",

253334 "optional": false,

253335 "nullable": false,

253336 "schemaType": "enum",

253337 "childrenParentSchema": "enum",

253338 "children": [

253339 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0"

253340 ]

253341 },

253342 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) content": {

253343 "kind": "HttpDeclProperty",

253344 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content",

253345 "deprecated": false,

253346 "key": "content",

253347 "type": {

253348 "kind": "HttpTypeUnknown"

253349 },

253350 "optional": false,

253351 "nullable": false,

253352 "schemaType": "unknown",

253353 "children": []

253354 },

253355 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type": {

253356 "kind": "HttpDeclProperty",

253357 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type",

253358 "deprecated": false,

253359 "key": "type",

253360 "type": {

253361 "kind": "HttpTypeUnion",

253362 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type",

253363 "types": [

253364 {

253365 "kind": "HttpTypeLiteral",

253366 "literal": "mcp_tool_execution_error"

253367 }

253368 ]

253369 },

253370 "default": "mcp_tool_execution_error",

253371 "optional": false,

253372 "nullable": false,

253373 "schemaType": "enum",

253374 "childrenParentSchema": "enum",

253375 "children": [

253376 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0"

253377 ]

253378 },

253379 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) code": {

253380 "kind": "HttpDeclProperty",

253381 "oasRef": "#/components/schemas/HTTPError/properties/code",

253382 "deprecated": false,

253383 "key": "code",

253384 "type": {

253385 "kind": "HttpTypeNumber"

253386 },

253387 "optional": false,

253388 "nullable": false,

253389 "schemaType": "integer",

253390 "children": []

253391 },

253392 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) message": {

253393 "kind": "HttpDeclProperty",

253394 "oasRef": "#/components/schemas/HTTPError/properties/message",

253395 "deprecated": false,

253396 "key": "message",

253397 "type": {

253398 "kind": "HttpTypeString"

253399 },

253400 "optional": false,

253401 "nullable": false,

253402 "schemaType": "string",

253403 "children": []

253404 },

253405 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type": {

253406 "kind": "HttpDeclProperty",

253407 "oasRef": "#/components/schemas/HTTPError/properties/type",

253408 "deprecated": false,

253409 "key": "type",

253410 "type": {

253411 "kind": "HttpTypeUnion",

253412 "oasRef": "#/components/schemas/HTTPError/properties/type",

253413 "types": [

253414 {

253415 "kind": "HttpTypeLiteral",

253416 "literal": "http_error"

253417 }

253418 ]

253419 },

253420 "default": "http_error",

253421 "optional": false,

253422 "nullable": false,

253423 "schemaType": "enum",

253424 "childrenParentSchema": "enum",

253425 "children": [

253426 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0"

253427 ]

253428 },

251935 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": {253429 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": {

251936 "kind": "HttpDeclProperty",253430 "kind": "HttpDeclProperty",

251937 "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type",253431 "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type",


261781 "literal": "program"263275 "literal": "program"

261782 }263276 }

261783 },263277 },

263278 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0": {

263279 "kind": "HttpDeclReference",

263280 "type": {

263281 "kind": "HttpTypeLiteral",

263282 "literal": "mcp_protocol_error"

263283 }

263284 },

263285 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0": {

263286 "kind": "HttpDeclReference",

263287 "type": {

263288 "kind": "HttpTypeLiteral",

263289 "literal": "mcp_tool_execution_error"

263290 }

263291 },

263292 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0": {

263293 "kind": "HttpDeclReference",

263294 "type": {

263295 "kind": "HttpTypeLiteral",

263296 "literal": "http_error"

263297 }

263298 },

261784 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": {263299 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": {

261785 "kind": "HttpDeclReference",263300 "kind": "HttpDeclReference",

261786 "type": {263301 "type": {


269137 "oasRef": "#/components/schemas/ResponseOutputItemAddedEvent/properties/item",270652 "oasRef": "#/components/schemas/ResponseOutputItemAddedEvent/properties/item",

269138 "deprecated": false,270653 "deprecated": false,

269139 "key": "item",270654 "key": "item",

269140 "docstring": "The output item that was added.\n",270655 "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",

269141 "type": {270656 "type": {

269142 "kind": "HttpTypeReference",270657 "kind": "HttpTypeReference",

269143 "ident": "ResponseOutputItem",270658 "ident": "ResponseOutputItem",


272270 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",273785 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",

272271 "deprecated": false,273786 "deprecated": false,

272272 "key": "encrypted_content",273787 "key": "encrypted_content",

272273 "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",273788 "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",

272274 "type": {273789 "type": {

272275 "kind": "HttpTypeString"273790 "kind": "HttpTypeString"

272276 },273791 },


274924 "oasRef": "#/components/schemas/MCPToolCall/properties/error",276439 "oasRef": "#/components/schemas/MCPToolCall/properties/error",

274925 "deprecated": false,276440 "deprecated": false,

274926 "key": "error",276441 "key": "error",

274927 "docstring": "The error from the tool call, if any.\n",276442 "docstring": "The error from the tool call, if any.",

274928 "type": {276443 "type": {

274929 "kind": "HttpTypeString"276444 "kind": "HttpTypeReference",

276445 "ident": "McpToolCallError",

276446 "$ref": "(resource) responses > (model) mcp_tool_call_error > (schema)"

274930 },276447 },

274931 "optional": true,276448 "optional": true,

274932 "nullable": true,276449 "nullable": true,

274933 "schemaType": "string",276450 "modelImplicit": false,

274934 "children": []276451 "schemaType": "union",

276452 "modelPath": "(resource) responses > (model) mcp_tool_call_error",

276453 "childrenParentSchema": "union",

276454 "children": [

276455 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

276456 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

276457 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

276458 ]

274935 },276459 },

274936 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": {276460 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": {

274937 "kind": "HttpDeclProperty",276461 "kind": "HttpDeclProperty",


279056 "literal": "mcp_call"280580 "literal": "mcp_call"

279057 }280581 }

279058 },280582 },

280583 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0": {

280584 "kind": "HttpDeclTypeAlias",

280585 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0",

280586 "ident": "McpProtocolError",

280587 "type": {

280588 "kind": "HttpTypeObject",

280589 "members": [

280590 {

280591 "ident": "code"

280592 },

280593 {

280594 "ident": "message"

280595 },

280596 {

280597 "ident": "type"

280598 }

280599 ]

280600 },

280601 "childrenParentSchema": "object",

280602 "children": [

280603 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) code",

280604 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) message",

280605 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type"

280606 ]

280607 },

280608 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1": {

280609 "kind": "HttpDeclTypeAlias",

280610 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1",

280611 "ident": "McpToolExecutionError",

280612 "type": {

280613 "kind": "HttpTypeObject",

280614 "members": [

280615 {

280616 "ident": "content"

280617 },

280618 {

280619 "ident": "type"

280620 }

280621 ]

280622 },

280623 "childrenParentSchema": "object",

280624 "children": [

280625 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) content",

280626 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type"

280627 ]

280628 },

280629 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2": {

280630 "kind": "HttpDeclTypeAlias",

280631 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2",

280632 "ident": "HTTPError",

280633 "type": {

280634 "kind": "HttpTypeObject",

280635 "members": [

280636 {

280637 "ident": "code"

280638 },

280639 {

280640 "ident": "message"

280641 },

280642 {

280643 "ident": "type"

280644 }

280645 ]

280646 },

280647 "childrenParentSchema": "object",

280648 "children": [

280649 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) code",

280650 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) message",

280651 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type"

280652 ]

280653 },

280654 "(resource) responses > (model) mcp_tool_call_error > (schema)": {

280655 "kind": "HttpDeclTypeAlias",

280656 "oasRef": "#/components/schemas/MCPToolCallError",

280657 "ident": "McpToolCallError",

280658 "type": {

280659 "kind": "HttpTypeUnion",

280660 "oasRef": "#/components/schemas/MCPToolCallError",

280661 "types": [

280662 {

280663 "kind": "HttpTypeObject",

280664 "members": [

280665 {

280666 "ident": "code"

280667 },

280668 {

280669 "ident": "message"

280670 },

280671 {

280672 "ident": "type"

280673 }

280674 ]

280675 },

280676 {

280677 "kind": "HttpTypeObject",

280678 "members": [

280679 {

280680 "ident": "content"

280681 },

280682 {

280683 "ident": "type"

280684 }

280685 ]

280686 },

280687 {

280688 "kind": "HttpTypeObject",

280689 "members": [

280690 {

280691 "ident": "code"

280692 },

280693 {

280694 "ident": "message"

280695 },

280696 {

280697 "ident": "type"

280698 }

280699 ]

280700 }

280701 ]

280702 },

280703 "childrenParentSchema": "union",

280704 "children": [

280705 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

280706 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

280707 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

280708 ]

280709 },

279059 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": {280710 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": {

279060 "kind": "HttpDeclReference",280711 "kind": "HttpDeclReference",

279061 "type": {280712 "type": {


285432 "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0"287083 "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0"

285433 ]287084 ]

285434 },287085 },

287086 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) code": {

287087 "kind": "HttpDeclProperty",

287088 "oasRef": "#/components/schemas/MCPProtocolError/properties/code",

287089 "deprecated": false,

287090 "key": "code",

287091 "type": {

287092 "kind": "HttpTypeNumber"

287093 },

287094 "optional": false,

287095 "nullable": false,

287096 "schemaType": "integer",

287097 "children": []

287098 },

287099 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) message": {

287100 "kind": "HttpDeclProperty",

287101 "oasRef": "#/components/schemas/MCPProtocolError/properties/message",

287102 "deprecated": false,

287103 "key": "message",

287104 "type": {

287105 "kind": "HttpTypeString"

287106 },

287107 "optional": false,

287108 "nullable": false,

287109 "schemaType": "string",

287110 "children": []

287111 },

287112 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type": {

287113 "kind": "HttpDeclProperty",

287114 "oasRef": "#/components/schemas/MCPProtocolError/properties/type",

287115 "deprecated": false,

287116 "key": "type",

287117 "type": {

287118 "kind": "HttpTypeUnion",

287119 "oasRef": "#/components/schemas/MCPProtocolError/properties/type",

287120 "types": [

287121 {

287122 "kind": "HttpTypeLiteral",

287123 "literal": "mcp_protocol_error"

287124 }

287125 ]

287126 },

287127 "default": "mcp_protocol_error",

287128 "optional": false,

287129 "nullable": false,

287130 "schemaType": "enum",

287131 "childrenParentSchema": "enum",

287132 "children": [

287133 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0"

287134 ]

287135 },

287136 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) content": {

287137 "kind": "HttpDeclProperty",

287138 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content",

287139 "deprecated": false,

287140 "key": "content",

287141 "type": {

287142 "kind": "HttpTypeUnknown"

287143 },

287144 "optional": false,

287145 "nullable": false,

287146 "schemaType": "unknown",

287147 "children": []

287148 },

287149 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type": {

287150 "kind": "HttpDeclProperty",

287151 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type",

287152 "deprecated": false,

287153 "key": "type",

287154 "type": {

287155 "kind": "HttpTypeUnion",

287156 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type",

287157 "types": [

287158 {

287159 "kind": "HttpTypeLiteral",

287160 "literal": "mcp_tool_execution_error"

287161 }

287162 ]

287163 },

287164 "default": "mcp_tool_execution_error",

287165 "optional": false,

287166 "nullable": false,

287167 "schemaType": "enum",

287168 "childrenParentSchema": "enum",

287169 "children": [

287170 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0"

287171 ]

287172 },

287173 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) code": {

287174 "kind": "HttpDeclProperty",

287175 "oasRef": "#/components/schemas/HTTPError/properties/code",

287176 "deprecated": false,

287177 "key": "code",

287178 "type": {

287179 "kind": "HttpTypeNumber"

287180 },

287181 "optional": false,

287182 "nullable": false,

287183 "schemaType": "integer",

287184 "children": []

287185 },

287186 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) message": {

287187 "kind": "HttpDeclProperty",

287188 "oasRef": "#/components/schemas/HTTPError/properties/message",

287189 "deprecated": false,

287190 "key": "message",

287191 "type": {

287192 "kind": "HttpTypeString"

287193 },

287194 "optional": false,

287195 "nullable": false,

287196 "schemaType": "string",

287197 "children": []

287198 },

287199 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type": {

287200 "kind": "HttpDeclProperty",

287201 "oasRef": "#/components/schemas/HTTPError/properties/type",

287202 "deprecated": false,

287203 "key": "type",

287204 "type": {

287205 "kind": "HttpTypeUnion",

287206 "oasRef": "#/components/schemas/HTTPError/properties/type",

287207 "types": [

287208 {

287209 "kind": "HttpTypeLiteral",

287210 "literal": "http_error"

287211 }

287212 ]

287213 },

287214 "default": "http_error",

287215 "optional": false,

287216 "nullable": false,

287217 "schemaType": "enum",

287218 "childrenParentSchema": "enum",

287219 "children": [

287220 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0"

287221 ]

287222 },

285435 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": {287223 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": {

285436 "kind": "HttpDeclProperty",287224 "kind": "HttpDeclProperty",

285437 "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type",287225 "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type",


288818 "literal": "program"290606 "literal": "program"

288819 }290607 }

288820 },290608 },

290609 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0": {

290610 "kind": "HttpDeclReference",

290611 "type": {

290612 "kind": "HttpTypeLiteral",

290613 "literal": "mcp_protocol_error"

290614 }

290615 },

290616 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0": {

290617 "kind": "HttpDeclReference",

290618 "type": {

290619 "kind": "HttpTypeLiteral",

290620 "literal": "mcp_tool_execution_error"

290621 }

290622 },

290623 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0": {

290624 "kind": "HttpDeclReference",

290625 "type": {

290626 "kind": "HttpTypeLiteral",

290627 "literal": "http_error"

290628 }

290629 },

288821 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": {290630 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": {

288822 "kind": "HttpDeclReference",290631 "kind": "HttpDeclReference",

288823 "type": {290632 "type": {


295394 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",297203 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",

295395 "deprecated": false,297204 "deprecated": false,

295396 "key": "encrypted_content",297205 "key": "encrypted_content",

295397 "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",297206 "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",

295398 "type": {297207 "type": {

295399 "kind": "HttpTypeString"297208 "kind": "HttpTypeString"

295400 },297209 },


298048 "oasRef": "#/components/schemas/MCPToolCall/properties/error",299857 "oasRef": "#/components/schemas/MCPToolCall/properties/error",

298049 "deprecated": false,299858 "deprecated": false,

298050 "key": "error",299859 "key": "error",

298051 "docstring": "The error from the tool call, if any.\n",299860 "docstring": "The error from the tool call, if any.",

298052 "type": {299861 "type": {

298053 "kind": "HttpTypeString"299862 "kind": "HttpTypeReference",

299863 "ident": "McpToolCallError",

299864 "$ref": "(resource) responses > (model) mcp_tool_call_error > (schema)"

298054 },299865 },

298055 "optional": true,299866 "optional": true,

298056 "nullable": true,299867 "nullable": true,

298057 "schemaType": "string",299868 "modelImplicit": false,

298058 "children": []299869 "schemaType": "union",

299870 "modelPath": "(resource) responses > (model) mcp_tool_call_error",

299871 "childrenParentSchema": "union",

299872 "children": [

299873 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

299874 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

299875 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

299876 ]

298059 },299877 },

298060 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": {299878 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": {

298061 "kind": "HttpDeclProperty",299879 "kind": "HttpDeclProperty",


302180 "literal": "mcp_call"303998 "literal": "mcp_call"

302181 }303999 }

302182 },304000 },

304001 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0": {

304002 "kind": "HttpDeclTypeAlias",

304003 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0",

304004 "ident": "McpProtocolError",

304005 "type": {

304006 "kind": "HttpTypeObject",

304007 "members": [

304008 {

304009 "ident": "code"

304010 },

304011 {

304012 "ident": "message"

304013 },

304014 {

304015 "ident": "type"

304016 }

304017 ]

304018 },

304019 "childrenParentSchema": "object",

304020 "children": [

304021 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) code",

304022 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) message",

304023 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type"

304024 ]

304025 },

304026 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1": {

304027 "kind": "HttpDeclTypeAlias",

304028 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1",

304029 "ident": "McpToolExecutionError",

304030 "type": {

304031 "kind": "HttpTypeObject",

304032 "members": [

304033 {

304034 "ident": "content"

304035 },

304036 {

304037 "ident": "type"

304038 }

304039 ]

304040 },

304041 "childrenParentSchema": "object",

304042 "children": [

304043 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) content",

304044 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type"

304045 ]

304046 },

304047 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2": {

304048 "kind": "HttpDeclTypeAlias",

304049 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2",

304050 "ident": "HTTPError",

304051 "type": {

304052 "kind": "HttpTypeObject",

304053 "members": [

304054 {

304055 "ident": "code"

304056 },

304057 {

304058 "ident": "message"

304059 },

304060 {

304061 "ident": "type"

304062 }

304063 ]

304064 },

304065 "childrenParentSchema": "object",

304066 "children": [

304067 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) code",

304068 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) message",

304069 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type"

304070 ]

304071 },

304072 "(resource) responses > (model) mcp_tool_call_error > (schema)": {

304073 "kind": "HttpDeclTypeAlias",

304074 "oasRef": "#/components/schemas/MCPToolCallError",

304075 "ident": "McpToolCallError",

304076 "type": {

304077 "kind": "HttpTypeUnion",

304078 "oasRef": "#/components/schemas/MCPToolCallError",

304079 "types": [

304080 {

304081 "kind": "HttpTypeObject",

304082 "members": [

304083 {

304084 "ident": "code"

304085 },

304086 {

304087 "ident": "message"

304088 },

304089 {

304090 "ident": "type"

304091 }

304092 ]

304093 },

304094 {

304095 "kind": "HttpTypeObject",

304096 "members": [

304097 {

304098 "ident": "content"

304099 },

304100 {

304101 "ident": "type"

304102 }

304103 ]

304104 },

304105 {

304106 "kind": "HttpTypeObject",

304107 "members": [

304108 {

304109 "ident": "code"

304110 },

304111 {

304112 "ident": "message"

304113 },

304114 {

304115 "ident": "type"

304116 }

304117 ]

304118 }

304119 ]

304120 },

304121 "childrenParentSchema": "union",

304122 "children": [

304123 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

304124 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

304125 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

304126 ]

304127 },

302183 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": {304128 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": {

302184 "kind": "HttpDeclReference",304129 "kind": "HttpDeclReference",

302185 "type": {304130 "type": {


308556 "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0"310501 "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0"

308557 ]310502 ]

308558 },310503 },

310504 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) code": {

310505 "kind": "HttpDeclProperty",

310506 "oasRef": "#/components/schemas/MCPProtocolError/properties/code",

310507 "deprecated": false,

310508 "key": "code",

310509 "type": {

310510 "kind": "HttpTypeNumber"

310511 },

310512 "optional": false,

310513 "nullable": false,

310514 "schemaType": "integer",

310515 "children": []

310516 },

310517 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) message": {

310518 "kind": "HttpDeclProperty",

310519 "oasRef": "#/components/schemas/MCPProtocolError/properties/message",

310520 "deprecated": false,

310521 "key": "message",

310522 "type": {

310523 "kind": "HttpTypeString"

310524 },

310525 "optional": false,

310526 "nullable": false,

310527 "schemaType": "string",

310528 "children": []

310529 },

310530 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type": {

310531 "kind": "HttpDeclProperty",

310532 "oasRef": "#/components/schemas/MCPProtocolError/properties/type",

310533 "deprecated": false,

310534 "key": "type",

310535 "type": {

310536 "kind": "HttpTypeUnion",

310537 "oasRef": "#/components/schemas/MCPProtocolError/properties/type",

310538 "types": [

310539 {

310540 "kind": "HttpTypeLiteral",

310541 "literal": "mcp_protocol_error"

310542 }

310543 ]

310544 },

310545 "default": "mcp_protocol_error",

310546 "optional": false,

310547 "nullable": false,

310548 "schemaType": "enum",

310549 "childrenParentSchema": "enum",

310550 "children": [

310551 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0"

310552 ]

310553 },

310554 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) content": {

310555 "kind": "HttpDeclProperty",

310556 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content",

310557 "deprecated": false,

310558 "key": "content",

310559 "type": {

310560 "kind": "HttpTypeUnknown"

310561 },

310562 "optional": false,

310563 "nullable": false,

310564 "schemaType": "unknown",

310565 "children": []

310566 },

310567 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type": {

310568 "kind": "HttpDeclProperty",

310569 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type",

310570 "deprecated": false,

310571 "key": "type",

310572 "type": {

310573 "kind": "HttpTypeUnion",

310574 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type",

310575 "types": [

310576 {

310577 "kind": "HttpTypeLiteral",

310578 "literal": "mcp_tool_execution_error"

310579 }

310580 ]

310581 },

310582 "default": "mcp_tool_execution_error",

310583 "optional": false,

310584 "nullable": false,

310585 "schemaType": "enum",

310586 "childrenParentSchema": "enum",

310587 "children": [

310588 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0"

310589 ]

310590 },

310591 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) code": {

310592 "kind": "HttpDeclProperty",

310593 "oasRef": "#/components/schemas/HTTPError/properties/code",

310594 "deprecated": false,

310595 "key": "code",

310596 "type": {

310597 "kind": "HttpTypeNumber"

310598 },

310599 "optional": false,

310600 "nullable": false,

310601 "schemaType": "integer",

310602 "children": []

310603 },

310604 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) message": {

310605 "kind": "HttpDeclProperty",

310606 "oasRef": "#/components/schemas/HTTPError/properties/message",

310607 "deprecated": false,

310608 "key": "message",

310609 "type": {

310610 "kind": "HttpTypeString"

310611 },

310612 "optional": false,

310613 "nullable": false,

310614 "schemaType": "string",

310615 "children": []

310616 },

310617 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type": {

310618 "kind": "HttpDeclProperty",

310619 "oasRef": "#/components/schemas/HTTPError/properties/type",

310620 "deprecated": false,

310621 "key": "type",

310622 "type": {

310623 "kind": "HttpTypeUnion",

310624 "oasRef": "#/components/schemas/HTTPError/properties/type",

310625 "types": [

310626 {

310627 "kind": "HttpTypeLiteral",

310628 "literal": "http_error"

310629 }

310630 ]

310631 },

310632 "default": "http_error",

310633 "optional": false,

310634 "nullable": false,

310635 "schemaType": "enum",

310636 "childrenParentSchema": "enum",

310637 "children": [

310638 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0"

310639 ]

310640 },

308559 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": {310641 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": {

308560 "kind": "HttpDeclProperty",310642 "kind": "HttpDeclProperty",

308561 "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type",310643 "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type",


311942 "literal": "program"314024 "literal": "program"

311943 }314025 }

311944 },314026 },

314027 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0": {

314028 "kind": "HttpDeclReference",

314029 "type": {

314030 "kind": "HttpTypeLiteral",

314031 "literal": "mcp_protocol_error"

314032 }

314033 },

314034 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0": {

314035 "kind": "HttpDeclReference",

314036 "type": {

314037 "kind": "HttpTypeLiteral",

314038 "literal": "mcp_tool_execution_error"

314039 }

314040 },

314041 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0": {

314042 "kind": "HttpDeclReference",

314043 "type": {

314044 "kind": "HttpTypeLiteral",

314045 "literal": "http_error"

314046 }

314047 },

311945 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": {314048 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": {

311946 "kind": "HttpDeclReference",314049 "kind": "HttpDeclReference",

311947 "type": {314050 "type": {


321185 },323288 },

321186 {323289 {

321187 "ident": "type"323290 "ident": "type"

323291 },

323292 {

323293 "ident": "background"

323294 },

323295 {

323296 "ident": "output_format"

323297 },

323298 {

323299 "ident": "quality"

323300 },

323301 {

323302 "ident": "size"

321188 }323303 }

321189 ]323304 ]

321190 },323305 },


321195 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) partial_image_b64",323310 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) partial_image_b64",

321196 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) partial_image_index",323311 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) partial_image_index",

321197 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) sequence_number",323312 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) sequence_number",

321198 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) type"323313 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) type",

323314 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) background",

323315 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) output_format",

323316 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) quality",

323317 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) size"

321199 ]323318 ]

321200 },323319 },

321201 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) item_id": {323320 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) item_id": {


321292 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) type > (member) 0"323411 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) type > (member) 0"

321293 ]323412 ]

321294 },323413 },

323414 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) background": {

323415 "kind": "HttpDeclProperty",

323416 "oasRef": "#/components/schemas/ResponseImageGenCallPartialImageEvent/properties/background",

323417 "deprecated": false,

323418 "key": "background",

323419 "docstring": "The background setting that was used.",

323420 "type": {

323421 "kind": "HttpTypeString"

323422 },

323423 "optional": true,

323424 "nullable": false,

323425 "schemaType": "string",

323426 "children": []

323427 },

323428 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) output_format": {

323429 "kind": "HttpDeclProperty",

323430 "oasRef": "#/components/schemas/ResponseImageGenCallPartialImageEvent/properties/output_format",

323431 "deprecated": false,

323432 "key": "output_format",

323433 "docstring": "The output format that was used.",

323434 "type": {

323435 "kind": "HttpTypeString"

323436 },

323437 "optional": true,

323438 "nullable": false,

323439 "schemaType": "string",

323440 "children": []

323441 },

323442 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) quality": {

323443 "kind": "HttpDeclProperty",

323444 "oasRef": "#/components/schemas/ResponseImageGenCallPartialImageEvent/properties/quality",

323445 "deprecated": false,

323446 "key": "quality",

323447 "docstring": "The image quality that was used.",

323448 "type": {

323449 "kind": "HttpTypeString"

323450 },

323451 "optional": true,

323452 "nullable": false,

323453 "schemaType": "string",

323454 "children": []

323455 },

323456 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) size": {

323457 "kind": "HttpDeclProperty",

323458 "oasRef": "#/components/schemas/ResponseImageGenCallPartialImageEvent/properties/size",

323459 "deprecated": false,

323460 "key": "size",

323461 "docstring": "The image size that was used.",

323462 "type": {

323463 "kind": "HttpTypeString"

323464 },

323465 "optional": true,

323466 "nullable": false,

323467 "schemaType": "string",

323468 "children": []

323469 },

321295 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) type > (member) 0": {323470 "(resource) responses > (model) response_image_gen_call_partial_image_event > (schema) > (property) type > (member) 0": {

321296 "kind": "HttpDeclReference",323471 "kind": "HttpDeclReference",

321297 "type": {323472 "type": {


323099 "oasRef": "#/components/schemas/ResponseOutputTextAnnotationAddedEvent/properties/annotation",325274 "oasRef": "#/components/schemas/ResponseOutputTextAnnotationAddedEvent/properties/annotation",

323100 "deprecated": false,325275 "deprecated": false,

323101 "key": "annotation",325276 "key": "annotation",

323102 "docstring": "The annotation object being added. (See annotation schema for details.)",325277 "docstring": "An annotation that applies to a span of output text.",

323103 "type": {325278 "type": {

323104 "kind": "HttpTypeUnknown"325279 "kind": "HttpTypeUnion",

325280 "oasRef": "#/components/schemas/ResponseOutputTextAnnotationAddedEvent/properties/annotation",

325281 "types": [

325282 {

325283 "kind": "HttpTypeObject",

325284 "members": [

325285 {

325286 "ident": "file_id"

325287 },

325288 {

325289 "ident": "filename"

325290 },

325291 {

325292 "ident": "index"

325293 },

325294 {

325295 "ident": "type"

325296 }

325297 ]

325298 },

325299 {

325300 "kind": "HttpTypeObject",

325301 "members": [

325302 {

325303 "ident": "end_index"

325304 },

325305 {

325306 "ident": "start_index"

325307 },

325308 {

325309 "ident": "title"

325310 },

325311 {

325312 "ident": "type"

325313 },

325314 {

325315 "ident": "url"

325316 }

325317 ]

325318 },

325319 {

325320 "kind": "HttpTypeObject",

325321 "members": [

325322 {

325323 "ident": "container_id"

325324 },

325325 {

325326 "ident": "end_index"

325327 },

325328 {

325329 "ident": "file_id"

325330 },

325331 {

325332 "ident": "filename"

325333 },

325334 {

325335 "ident": "start_index"

325336 },

325337 {

325338 "ident": "type"

325339 }

325340 ]

325341 },

325342 {

325343 "kind": "HttpTypeObject",

325344 "members": [

325345 {

325346 "ident": "file_id"

325347 },

325348 {

325349 "ident": "index"

325350 },

325351 {

325352 "ident": "type"

325353 }

325354 ]

325355 }

325356 ]

323105 },325357 },

323106 "optional": false,325358 "optional": false,

323107 "nullable": false,325359 "nullable": true,

323108 "schemaType": "unknown",325360 "schemaType": "union",

323109 "children": []325361 "childrenParentSchema": "union",

325362 "children": [

325363 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0",

325364 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1",

325365 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2",

325366 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3"

325367 ]

323110 },325368 },

323111 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation_index": {325369 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation_index": {

323112 "kind": "HttpDeclProperty",325370 "kind": "HttpDeclProperty",


323202 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) type > (member) 0"325460 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) type > (member) 0"

323203 ]325461 ]

323204 },325462 },

325463 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0": {

325464 "kind": "HttpDeclTypeAlias",

325465 "oasRef": "#/components/schemas/Annotation/oneOf/0",

325466 "docstring": "A citation to a file.",

325467 "ident": "FileCitation",

325468 "type": {

325469 "kind": "HttpTypeObject",

325470 "members": [

325471 {

325472 "ident": "file_id"

325473 },

325474 {

325475 "ident": "filename"

325476 },

325477 {

325478 "ident": "index"

325479 },

325480 {

325481 "ident": "type"

325482 }

325483 ]

325484 },

325485 "childrenParentSchema": "object",

325486 "children": [

325487 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) file_id",

325488 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) filename",

325489 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) index",

325490 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) type"

325491 ]

325492 },

325493 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1": {

325494 "kind": "HttpDeclTypeAlias",

325495 "oasRef": "#/components/schemas/Annotation/oneOf/1",

325496 "docstring": "A citation for a web resource used to generate a model response.",

325497 "ident": "URLCitation",

325498 "type": {

325499 "kind": "HttpTypeObject",

325500 "members": [

325501 {

325502 "ident": "end_index"

325503 },

325504 {

325505 "ident": "start_index"

325506 },

325507 {

325508 "ident": "title"

325509 },

325510 {

325511 "ident": "type"

325512 },

325513 {

325514 "ident": "url"

325515 }

325516 ]

325517 },

325518 "childrenParentSchema": "object",

325519 "children": [

325520 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) end_index",

325521 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) start_index",

325522 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) title",

325523 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) type",

325524 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) url"

325525 ]

325526 },

325527 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2": {

325528 "kind": "HttpDeclTypeAlias",

325529 "oasRef": "#/components/schemas/Annotation/oneOf/2",

325530 "docstring": "A citation for a container file used to generate a model response.",

325531 "ident": "ContainerFileCitation",

325532 "type": {

325533 "kind": "HttpTypeObject",

325534 "members": [

325535 {

325536 "ident": "container_id"

325537 },

325538 {

325539 "ident": "end_index"

325540 },

325541 {

325542 "ident": "file_id"

325543 },

325544 {

325545 "ident": "filename"

325546 },

325547 {

325548 "ident": "start_index"

325549 },

325550 {

325551 "ident": "type"

325552 }

325553 ]

325554 },

325555 "childrenParentSchema": "object",

325556 "children": [

325557 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) container_id",

325558 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) end_index",

325559 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) file_id",

325560 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) filename",

325561 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) start_index",

325562 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) type"

325563 ]

325564 },

325565 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3": {

325566 "kind": "HttpDeclTypeAlias",

325567 "oasRef": "#/components/schemas/Annotation/oneOf/3",

325568 "docstring": "A path to a file.\n",

325569 "ident": "FilePath",

325570 "type": {

325571 "kind": "HttpTypeObject",

325572 "members": [

325573 {

325574 "ident": "file_id"

325575 },

325576 {

325577 "ident": "index"

325578 },

325579 {

325580 "ident": "type"

325581 }

325582 ]

325583 },

325584 "childrenParentSchema": "object",

325585 "children": [

325586 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) file_id",

325587 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) index",

325588 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) type"

325589 ]

325590 },

323205 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) type > (member) 0": {325591 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) type > (member) 0": {

323206 "kind": "HttpDeclReference",325592 "kind": "HttpDeclReference",

323207 "type": {325593 "type": {

323208 "kind": "HttpTypeLiteral",325594 "kind": "HttpTypeLiteral",

323209 "literal": "response.output_text.annotation.added"325595 "literal": "response.output_text.annotation.added"

323210 }325596 }

325597 },

325598 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) file_id": {

325599 "kind": "HttpDeclProperty",

325600 "oasRef": "#/components/schemas/FileCitationBody/properties/file_id",

325601 "deprecated": false,

325602 "key": "file_id",

325603 "docstring": "The ID of the file.",

325604 "type": {

325605 "kind": "HttpTypeString"

325606 },

325607 "optional": false,

325608 "nullable": false,

325609 "schemaType": "string",

325610 "children": []

325611 },

325612 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) filename": {

325613 "kind": "HttpDeclProperty",

325614 "oasRef": "#/components/schemas/FileCitationBody/properties/filename",

325615 "deprecated": false,

325616 "key": "filename",

325617 "docstring": "The filename of the file cited.",

325618 "type": {

325619 "kind": "HttpTypeString"

325620 },

325621 "optional": false,

325622 "nullable": false,

325623 "schemaType": "string",

325624 "children": []

325625 },

325626 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) index": {

325627 "kind": "HttpDeclProperty",

325628 "oasRef": "#/components/schemas/FileCitationBody/properties/index",

325629 "deprecated": false,

325630 "key": "index",

325631 "docstring": "The index of the file in the list of files.",

325632 "type": {

325633 "kind": "HttpTypeNumber"

325634 },

325635 "optional": false,

325636 "nullable": false,

325637 "schemaType": "integer",

325638 "children": []

325639 },

325640 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) type": {

325641 "kind": "HttpDeclProperty",

325642 "oasRef": "#/components/schemas/FileCitationBody/properties/type",

325643 "deprecated": false,

325644 "key": "type",

325645 "docstring": "The type of the file citation. Always `file_citation`.",

325646 "type": {

325647 "kind": "HttpTypeUnion",

325648 "oasRef": "#/components/schemas/FileCitationBody/properties/type",

325649 "types": [

325650 {

325651 "kind": "HttpTypeLiteral",

325652 "literal": "file_citation"

325653 }

325654 ]

325655 },

325656 "default": "file_citation",

325657 "optional": false,

325658 "nullable": false,

325659 "schemaType": "enum",

325660 "childrenParentSchema": "enum",

325661 "children": [

325662 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) type > (member) 0"

325663 ]

325664 },

325665 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) end_index": {

325666 "kind": "HttpDeclProperty",

325667 "oasRef": "#/components/schemas/UrlCitationBody/properties/end_index",

325668 "deprecated": false,

325669 "key": "end_index",

325670 "docstring": "The index of the last character of the URL citation in the message.",

325671 "type": {

325672 "kind": "HttpTypeNumber"

325673 },

325674 "optional": false,

325675 "nullable": false,

325676 "schemaType": "integer",

325677 "children": []

325678 },

325679 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) start_index": {

325680 "kind": "HttpDeclProperty",

325681 "oasRef": "#/components/schemas/UrlCitationBody/properties/start_index",

325682 "deprecated": false,

325683 "key": "start_index",

325684 "docstring": "The index of the first character of the URL citation in the message.",

325685 "type": {

325686 "kind": "HttpTypeNumber"

325687 },

325688 "optional": false,

325689 "nullable": false,

325690 "schemaType": "integer",

325691 "children": []

325692 },

325693 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) title": {

325694 "kind": "HttpDeclProperty",

325695 "oasRef": "#/components/schemas/UrlCitationBody/properties/title",

325696 "deprecated": false,

325697 "key": "title",

325698 "docstring": "The title of the web resource.",

325699 "type": {

325700 "kind": "HttpTypeString"

325701 },

325702 "optional": false,

325703 "nullable": false,

325704 "schemaType": "string",

325705 "children": []

325706 },

325707 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) type": {

325708 "kind": "HttpDeclProperty",

325709 "oasRef": "#/components/schemas/UrlCitationBody/properties/type",

325710 "deprecated": false,

325711 "key": "type",

325712 "docstring": "The type of the URL citation. Always `url_citation`.",

325713 "type": {

325714 "kind": "HttpTypeUnion",

325715 "oasRef": "#/components/schemas/UrlCitationBody/properties/type",

325716 "types": [

325717 {

325718 "kind": "HttpTypeLiteral",

325719 "literal": "url_citation"

325720 }

325721 ]

325722 },

325723 "default": "url_citation",

325724 "optional": false,

325725 "nullable": false,

325726 "schemaType": "enum",

325727 "childrenParentSchema": "enum",

325728 "children": [

325729 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) type > (member) 0"

325730 ]

325731 },

325732 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) url": {

325733 "kind": "HttpDeclProperty",

325734 "oasRef": "#/components/schemas/UrlCitationBody/properties/url",

325735 "deprecated": false,

325736 "key": "url",

325737 "docstring": "The URL of the web resource.",

325738 "type": {

325739 "kind": "HttpTypeString"

325740 },

325741 "constraints": {

325742 "format": "uri"

325743 },

325744 "optional": false,

325745 "nullable": false,

325746 "schemaType": "string",

325747 "children": []

325748 },

325749 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) container_id": {

325750 "kind": "HttpDeclProperty",

325751 "oasRef": "#/components/schemas/ContainerFileCitationBody/properties/container_id",

325752 "deprecated": false,

325753 "key": "container_id",

325754 "docstring": "The ID of the container file.",

325755 "type": {

325756 "kind": "HttpTypeString"

325757 },

325758 "optional": false,

325759 "nullable": false,

325760 "schemaType": "string",

325761 "children": []

325762 },

325763 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) end_index": {

325764 "kind": "HttpDeclProperty",

325765 "oasRef": "#/components/schemas/ContainerFileCitationBody/properties/end_index",

325766 "deprecated": false,

325767 "key": "end_index",

325768 "docstring": "The index of the last character of the container file citation in the message.",

325769 "type": {

325770 "kind": "HttpTypeNumber"

325771 },

325772 "optional": false,

325773 "nullable": false,

325774 "schemaType": "integer",

325775 "children": []

325776 },

325777 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) file_id": {

325778 "kind": "HttpDeclProperty",

325779 "oasRef": "#/components/schemas/ContainerFileCitationBody/properties/file_id",

325780 "deprecated": false,

325781 "key": "file_id",

325782 "docstring": "The ID of the file.",

325783 "type": {

325784 "kind": "HttpTypeString"

325785 },

325786 "optional": false,

325787 "nullable": false,

325788 "schemaType": "string",

325789 "children": []

325790 },

325791 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) filename": {

325792 "kind": "HttpDeclProperty",

325793 "oasRef": "#/components/schemas/ContainerFileCitationBody/properties/filename",

325794 "deprecated": false,

325795 "key": "filename",

325796 "docstring": "The filename of the container file cited.",

325797 "type": {

325798 "kind": "HttpTypeString"

325799 },

325800 "optional": false,

325801 "nullable": false,

325802 "schemaType": "string",

325803 "children": []

325804 },

325805 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) start_index": {

325806 "kind": "HttpDeclProperty",

325807 "oasRef": "#/components/schemas/ContainerFileCitationBody/properties/start_index",

325808 "deprecated": false,

325809 "key": "start_index",

325810 "docstring": "The index of the first character of the container file citation in the message.",

325811 "type": {

325812 "kind": "HttpTypeNumber"

325813 },

325814 "optional": false,

325815 "nullable": false,

325816 "schemaType": "integer",

325817 "children": []

325818 },

325819 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) type": {

325820 "kind": "HttpDeclProperty",

325821 "oasRef": "#/components/schemas/ContainerFileCitationBody/properties/type",

325822 "deprecated": false,

325823 "key": "type",

325824 "docstring": "The type of the container file citation. Always `container_file_citation`.",

325825 "type": {

325826 "kind": "HttpTypeUnion",

325827 "oasRef": "#/components/schemas/ContainerFileCitationBody/properties/type",

325828 "types": [

325829 {

325830 "kind": "HttpTypeLiteral",

325831 "literal": "container_file_citation"

325832 }

325833 ]

325834 },

325835 "default": "container_file_citation",

325836 "optional": false,

325837 "nullable": false,

325838 "schemaType": "enum",

325839 "childrenParentSchema": "enum",

325840 "children": [

325841 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) type > (member) 0"

325842 ]

325843 },

325844 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) file_id": {

325845 "kind": "HttpDeclProperty",

325846 "oasRef": "#/components/schemas/FilePath/properties/file_id",

325847 "deprecated": false,

325848 "key": "file_id",

325849 "docstring": "The ID of the file.\n",

325850 "type": {

325851 "kind": "HttpTypeString"

325852 },

325853 "optional": false,

325854 "nullable": false,

325855 "schemaType": "string",

325856 "children": []

325857 },

325858 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) index": {

325859 "kind": "HttpDeclProperty",

325860 "oasRef": "#/components/schemas/FilePath/properties/index",

325861 "deprecated": false,

325862 "key": "index",

325863 "docstring": "The index of the file in the list of files.\n",

325864 "type": {

325865 "kind": "HttpTypeNumber"

325866 },

325867 "optional": false,

325868 "nullable": false,

325869 "schemaType": "integer",

325870 "children": []

325871 },

325872 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) type": {

325873 "kind": "HttpDeclProperty",

325874 "oasRef": "#/components/schemas/FilePath/properties/type",

325875 "deprecated": false,

325876 "key": "type",

325877 "docstring": "The type of the file path. Always `file_path`.\n",

325878 "type": {

325879 "kind": "HttpTypeUnion",

325880 "oasRef": "#/components/schemas/FilePath/properties/type",

325881 "types": [

325882 {

325883 "kind": "HttpTypeLiteral",

325884 "literal": "file_path"

325885 }

325886 ]

325887 },

325888 "optional": false,

325889 "nullable": false,

325890 "schemaType": "enum",

325891 "childrenParentSchema": "enum",

325892 "children": [

325893 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) type > (member) 0"

325894 ]

325895 },

325896 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 0 > (property) type > (member) 0": {

325897 "kind": "HttpDeclReference",

325898 "type": {

325899 "kind": "HttpTypeLiteral",

325900 "literal": "file_citation"

325901 }

325902 },

325903 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 1 > (property) type > (member) 0": {

325904 "kind": "HttpDeclReference",

325905 "type": {

325906 "kind": "HttpTypeLiteral",

325907 "literal": "url_citation"

325908 }

325909 },

325910 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 2 > (property) type > (member) 0": {

325911 "kind": "HttpDeclReference",

325912 "type": {

325913 "kind": "HttpTypeLiteral",

325914 "literal": "container_file_citation"

325915 }

325916 },

325917 "(resource) responses > (model) response_output_text_annotation_added_event > (schema) > (property) annotation > (variant) 3 > (property) type > (member) 0": {

325918 "kind": "HttpDeclReference",

325919 "type": {

325920 "kind": "HttpTypeLiteral",

325921 "literal": "file_path"

325922 }

323211 }325923 }

323212}325924}

323213```325925```


323222 "content_index": 0,325934 "content_index": 0,

323223 "annotation_index": 0,325935 "annotation_index": 0,

323224 "annotation": {325936 "annotation": {

323225 "type": "text_annotation",325937 "type": "file_citation",

323226 "text": "This is a test annotation",325938 "file_id": "file-abc",

323227 "start": 0,325939 "index": 0,

323228 "end": 10325940 "filename": "example.txt"

323229 },325941 },

323230 "sequence_number": 1325942 "sequence_number": 1

323231}325943}


334069 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",336781 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",

334070 "deprecated": false,336782 "deprecated": false,

334071 "key": "encrypted_content",336783 "key": "encrypted_content",

334072 "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",336784 "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",

334073 "type": {336785 "type": {

334074 "kind": "HttpTypeString"336786 "kind": "HttpTypeString"

334075 },336787 },


336723 "oasRef": "#/components/schemas/MCPToolCall/properties/error",339435 "oasRef": "#/components/schemas/MCPToolCall/properties/error",

336724 "deprecated": false,339436 "deprecated": false,

336725 "key": "error",339437 "key": "error",

336726 "docstring": "The error from the tool call, if any.\n",339438 "docstring": "The error from the tool call, if any.",

336727 "type": {339439 "type": {

336728 "kind": "HttpTypeString"339440 "kind": "HttpTypeReference",

339441 "ident": "McpToolCallError",

339442 "$ref": "(resource) responses > (model) mcp_tool_call_error > (schema)"

336729 },339443 },

336730 "optional": true,339444 "optional": true,

336731 "nullable": true,339445 "nullable": true,

336732 "schemaType": "string",339446 "modelImplicit": false,

336733 "children": []339447 "schemaType": "union",

339448 "modelPath": "(resource) responses > (model) mcp_tool_call_error",

339449 "childrenParentSchema": "union",

339450 "children": [

339451 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

339452 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

339453 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

339454 ]

336734 },339455 },

336735 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": {339456 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) output": {

336736 "kind": "HttpDeclProperty",339457 "kind": "HttpDeclProperty",


342617 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",345338 "oasRef": "#/components/schemas/ReasoningItem/properties/encrypted_content",

342618 "deprecated": false,345339 "deprecated": false,

342619 "key": "encrypted_content",345340 "key": "encrypted_content",

342620 "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",345341 "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",

342621 "type": {345342 "type": {

342622 "kind": "HttpTypeString"345343 "kind": "HttpTypeString"

342623 },345344 },


344256 "oasRef": "#/components/schemas/MCPToolCall/properties/error",346977 "oasRef": "#/components/schemas/MCPToolCall/properties/error",

344257 "deprecated": false,346978 "deprecated": false,

344258 "key": "error",346979 "key": "error",

344259 "docstring": "The error from the tool call, if any.\n",346980 "docstring": "The error from the tool call, if any.",

344260 "type": {346981 "type": {

344261 "kind": "HttpTypeString"346982 "kind": "HttpTypeReference",

346983 "ident": "McpToolCallError",

346984 "$ref": "(resource) responses > (model) mcp_tool_call_error > (schema)"

344262 },346985 },

344263 "optional": true,346986 "optional": true,

344264 "nullable": true,346987 "nullable": true,

344265 "schemaType": "string",346988 "modelImplicit": false,

344266 "children": []346989 "schemaType": "union",

346990 "modelPath": "(resource) responses > (model) mcp_tool_call_error",

346991 "childrenParentSchema": "union",

346992 "children": [

346993 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

346994 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

346995 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

346996 ]

344267 },346997 },

344268 "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) output": {346998 "(resource) responses > (model) response > (schema) > (property) instructions > (variant) 1 > (items) > (variant) 25 > (property) output": {

344269 "kind": "HttpDeclProperty",346999 "kind": "HttpDeclProperty",


348332 "literal": "mcp_call"351062 "literal": "mcp_call"

348333 }351063 }

348334 },351064 },

351065 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0": {

351066 "kind": "HttpDeclTypeAlias",

351067 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/0",

351068 "ident": "McpProtocolError",

351069 "type": {

351070 "kind": "HttpTypeObject",

351071 "members": [

351072 {

351073 "ident": "code"

351074 },

351075 {

351076 "ident": "message"

351077 },

351078 {

351079 "ident": "type"

351080 }

351081 ]

351082 },

351083 "childrenParentSchema": "object",

351084 "children": [

351085 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) code",

351086 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) message",

351087 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type"

351088 ]

351089 },

351090 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1": {

351091 "kind": "HttpDeclTypeAlias",

351092 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/1",

351093 "ident": "McpToolExecutionError",

351094 "type": {

351095 "kind": "HttpTypeObject",

351096 "members": [

351097 {

351098 "ident": "content"

351099 },

351100 {

351101 "ident": "type"

351102 }

351103 ]

351104 },

351105 "childrenParentSchema": "object",

351106 "children": [

351107 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) content",

351108 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type"

351109 ]

351110 },

351111 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2": {

351112 "kind": "HttpDeclTypeAlias",

351113 "oasRef": "#/components/schemas/MCPToolCallError/oneOf/2",

351114 "ident": "HTTPError",

351115 "type": {

351116 "kind": "HttpTypeObject",

351117 "members": [

351118 {

351119 "ident": "code"

351120 },

351121 {

351122 "ident": "message"

351123 },

351124 {

351125 "ident": "type"

351126 }

351127 ]

351128 },

351129 "childrenParentSchema": "object",

351130 "children": [

351131 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) code",

351132 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) message",

351133 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type"

351134 ]

351135 },

351136 "(resource) responses > (model) mcp_tool_call_error > (schema)": {

351137 "kind": "HttpDeclTypeAlias",

351138 "oasRef": "#/components/schemas/MCPToolCallError",

351139 "ident": "McpToolCallError",

351140 "type": {

351141 "kind": "HttpTypeUnion",

351142 "oasRef": "#/components/schemas/MCPToolCallError",

351143 "types": [

351144 {

351145 "kind": "HttpTypeObject",

351146 "members": [

351147 {

351148 "ident": "code"

351149 },

351150 {

351151 "ident": "message"

351152 },

351153 {

351154 "ident": "type"

351155 }

351156 ]

351157 },

351158 {

351159 "kind": "HttpTypeObject",

351160 "members": [

351161 {

351162 "ident": "content"

351163 },

351164 {

351165 "ident": "type"

351166 }

351167 ]

351168 },

351169 {

351170 "kind": "HttpTypeObject",

351171 "members": [

351172 {

351173 "ident": "code"

351174 },

351175 {

351176 "ident": "message"

351177 },

351178 {

351179 "ident": "type"

351180 }

351181 ]

351182 }

351183 ]

351184 },

351185 "childrenParentSchema": "union",

351186 "children": [

351187 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0",

351188 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1",

351189 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2"

351190 ]

351191 },

348335 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": {351192 "(resource) responses > (model) response_output_item > (schema) > (variant) 22 > (property) status > (member) 0": {

348336 "kind": "HttpDeclReference",351193 "kind": "HttpDeclReference",

348337 "type": {351194 "type": {


359883 "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0"362740 "(resource) responses > (model) response_output_item > (schema) > (variant) 21 > (property) caller > (variant) 1 > (property) type > (member) 0"

359884 ]362741 ]

359885 },362742 },

362743 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) code": {

362744 "kind": "HttpDeclProperty",

362745 "oasRef": "#/components/schemas/MCPProtocolError/properties/code",

362746 "deprecated": false,

362747 "key": "code",

362748 "type": {

362749 "kind": "HttpTypeNumber"

362750 },

362751 "optional": false,

362752 "nullable": false,

362753 "schemaType": "integer",

362754 "children": []

362755 },

362756 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) message": {

362757 "kind": "HttpDeclProperty",

362758 "oasRef": "#/components/schemas/MCPProtocolError/properties/message",

362759 "deprecated": false,

362760 "key": "message",

362761 "type": {

362762 "kind": "HttpTypeString"

362763 },

362764 "optional": false,

362765 "nullable": false,

362766 "schemaType": "string",

362767 "children": []

362768 },

362769 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type": {

362770 "kind": "HttpDeclProperty",

362771 "oasRef": "#/components/schemas/MCPProtocolError/properties/type",

362772 "deprecated": false,

362773 "key": "type",

362774 "type": {

362775 "kind": "HttpTypeUnion",

362776 "oasRef": "#/components/schemas/MCPProtocolError/properties/type",

362777 "types": [

362778 {

362779 "kind": "HttpTypeLiteral",

362780 "literal": "mcp_protocol_error"

362781 }

362782 ]

362783 },

362784 "default": "mcp_protocol_error",

362785 "optional": false,

362786 "nullable": false,

362787 "schemaType": "enum",

362788 "childrenParentSchema": "enum",

362789 "children": [

362790 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0"

362791 ]

362792 },

362793 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) content": {

362794 "kind": "HttpDeclProperty",

362795 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/content",

362796 "deprecated": false,

362797 "key": "content",

362798 "type": {

362799 "kind": "HttpTypeUnknown"

362800 },

362801 "optional": false,

362802 "nullable": false,

362803 "schemaType": "unknown",

362804 "children": []

362805 },

362806 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type": {

362807 "kind": "HttpDeclProperty",

362808 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type",

362809 "deprecated": false,

362810 "key": "type",

362811 "type": {

362812 "kind": "HttpTypeUnion",

362813 "oasRef": "#/components/schemas/MCPToolExecutionError/properties/type",

362814 "types": [

362815 {

362816 "kind": "HttpTypeLiteral",

362817 "literal": "mcp_tool_execution_error"

362818 }

362819 ]

362820 },

362821 "default": "mcp_tool_execution_error",

362822 "optional": false,

362823 "nullable": false,

362824 "schemaType": "enum",

362825 "childrenParentSchema": "enum",

362826 "children": [

362827 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0"

362828 ]

362829 },

362830 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) code": {

362831 "kind": "HttpDeclProperty",

362832 "oasRef": "#/components/schemas/HTTPError/properties/code",

362833 "deprecated": false,

362834 "key": "code",

362835 "type": {

362836 "kind": "HttpTypeNumber"

362837 },

362838 "optional": false,

362839 "nullable": false,

362840 "schemaType": "integer",

362841 "children": []

362842 },

362843 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) message": {

362844 "kind": "HttpDeclProperty",

362845 "oasRef": "#/components/schemas/HTTPError/properties/message",

362846 "deprecated": false,

362847 "key": "message",

362848 "type": {

362849 "kind": "HttpTypeString"

362850 },

362851 "optional": false,

362852 "nullable": false,

362853 "schemaType": "string",

362854 "children": []

362855 },

362856 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type": {

362857 "kind": "HttpDeclProperty",

362858 "oasRef": "#/components/schemas/HTTPError/properties/type",

362859 "deprecated": false,

362860 "key": "type",

362861 "type": {

362862 "kind": "HttpTypeUnion",

362863 "oasRef": "#/components/schemas/HTTPError/properties/type",

362864 "types": [

362865 {

362866 "kind": "HttpTypeLiteral",

362867 "literal": "http_error"

362868 }

362869 ]

362870 },

362871 "default": "http_error",

362872 "optional": false,

362873 "nullable": false,

362874 "schemaType": "enum",

362875 "childrenParentSchema": "enum",

362876 "children": [

362877 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0"

362878 ]

362879 },

359886 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": {362880 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type": {

359887 "kind": "HttpDeclProperty",362881 "kind": "HttpDeclProperty",

359888 "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type",362882 "oasRef": "#/components/schemas/DirectToolCallCaller/properties/type",


369732 "literal": "program"372726 "literal": "program"

369733 }372727 }

369734 },372728 },

372729 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 0 > (property) type > (member) 0": {

372730 "kind": "HttpDeclReference",

372731 "type": {

372732 "kind": "HttpTypeLiteral",

372733 "literal": "mcp_protocol_error"

372734 }

372735 },

372736 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 1 > (property) type > (member) 0": {

372737 "kind": "HttpDeclReference",

372738 "type": {

372739 "kind": "HttpTypeLiteral",

372740 "literal": "mcp_tool_execution_error"

372741 }

372742 },

372743 "(resource) responses > (model) mcp_tool_call_error > (schema) > (variant) 2 > (property) type > (member) 0": {

372744 "kind": "HttpDeclReference",

372745 "type": {

372746 "kind": "HttpTypeLiteral",

372747 "literal": "http_error"

372748 }

372749 },

369735 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": {372750 "(resource) responses > (model) response_output_item > (schema) > (variant) 26 > (property) caller > (variant) 0 > (property) type > (member) 0": {

369736 "kind": "HttpDeclReference",372751 "kind": "HttpDeclReference",

369737 "type": {372752 "type": {

Details

3112 for reasoning items returned by `POST /v1/responses` and WebSocket3112 for reasoning items returned by `POST /v1/responses` and WebSocket

3113 `response.create` requests.3113 `response.create` requests.

3114 3114 

3115 When streaming, use the completed reasoning item and its

3116 `encrypted_content` from the `response.output_item.done` event in

3117 subsequent requests. The `encrypted_content` in

3118 `response.output_item.added` may be incomplete. This is especially

3119 important when `store` is `false` or when using Zero Data Retention.

3120 

3115 - `status: optional "in_progress" or "completed" or "incomplete"`3121 - `status: optional "in_progress" or "completed" or "incomplete"`

3116 3122 

3117 The status of the item. One of `in_progress`, `completed`, or3123 The status of the item. One of `in_progress`, `completed`, or


3857 Unique identifier for the MCP tool call approval request.3863 Unique identifier for the MCP tool call approval request.

3858 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.3864 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

3859 3865 

3860 - `error: optional string or null`3866 - `error: optional McpToolCallError or null`

3861 3867 

3862 The error from the tool call, if any.3868 The error from the tool call, if any.

3863 3869 

3870 - `McpProtocolError object { code, message, type }`

3871 

3872 - `code: number`

3873 

3874 - `message: string`

3875 

3876 - `type: "mcp_protocol_error"`

3877 

3878 - `"mcp_protocol_error"`

3879 

3880 - `McpToolExecutionError object { content, type }`

3881 

3882 - `content: unknown`

3883 

3884 - `type: "mcp_tool_execution_error"`

3885 

3886 - `"mcp_tool_execution_error"`

3887 

3888 - `HTTPError object { code, message, type }`

3889 

3890 - `code: number`

3891 

3892 - `message: string`

3893 

3894 - `type: "http_error"`

3895 

3896 - `"http_error"`

3897 

3864 - `output: optional string or null`3898 - `output: optional string or null`

3865 3899 

3866 The output from the tool call.3900 The output from the tool call.


7168 for reasoning items returned by `POST /v1/responses` and WebSocket7202 for reasoning items returned by `POST /v1/responses` and WebSocket

7169 `response.create` requests.7203 `response.create` requests.

7170 7204 

7205 When streaming, use the completed reasoning item and its

7206 `encrypted_content` from the `response.output_item.done` event in

7207 subsequent requests. The `encrypted_content` in

7208 `response.output_item.added` may be incomplete. This is especially

7209 important when `store` is `false` or when using Zero Data Retention.

7210 

7171 - `status: optional "in_progress" or "completed" or "incomplete"`7211 - `status: optional "in_progress" or "completed" or "incomplete"`

7172 7212 

7173 The status of the item. One of `in_progress`, `completed`, or7213 The status of the item. One of `in_progress`, `completed`, or


7913 Unique identifier for the MCP tool call approval request.7953 Unique identifier for the MCP tool call approval request.

7914 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.7954 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

7915 7955 

7916 - `error: optional string or null`7956 - `error: optional McpToolCallError or null`

7917 7957 

7918 The error from the tool call, if any.7958 The error from the tool call, if any.

7919 7959 

7960 - `McpProtocolError object { code, message, type }`

7961 

7962 - `code: number`

7963 

7964 - `message: string`

7965 

7966 - `type: "mcp_protocol_error"`

7967 

7968 - `"mcp_protocol_error"`

7969 

7970 - `McpToolExecutionError object { content, type }`

7971 

7972 - `content: unknown`

7973 

7974 - `type: "mcp_tool_execution_error"`

7975 

7976 - `"mcp_tool_execution_error"`

7977 

7978 - `HTTPError object { code, message, type }`

7979 

7980 - `code: number`

7981 

7982 - `message: string`

7983 

7984 - `type: "http_error"`

7985 

7986 - `"http_error"`

7987 

7920 - `output: optional string or null`7988 - `output: optional string or null`

7921 7989 

7922 The output from the tool call.7990 The output from the tool call.

Details

3110 for reasoning items returned by `POST /v1/responses` and WebSocket3110 for reasoning items returned by `POST /v1/responses` and WebSocket

3111 `response.create` requests.3111 `response.create` requests.

3112 3112 

3113 When streaming, use the completed reasoning item and its

3114 `encrypted_content` from the `response.output_item.done` event in

3115 subsequent requests. The `encrypted_content` in

3116 `response.output_item.added` may be incomplete. This is especially

3117 important when `store` is `false` or when using Zero Data Retention.

3118 

3113 - `status: optional "in_progress" or "completed" or "incomplete"`3119 - `status: optional "in_progress" or "completed" or "incomplete"`

3114 3120 

3115 The status of the item. One of `in_progress`, `completed`, or3121 The status of the item. One of `in_progress`, `completed`, or


3855 Unique identifier for the MCP tool call approval request.3861 Unique identifier for the MCP tool call approval request.

3856 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.3862 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

3857 3863 

3858 - `error: optional string or null`3864 - `error: optional McpToolCallError or null`

3859 3865 

3860 The error from the tool call, if any.3866 The error from the tool call, if any.

3861 3867 

3868 - `McpProtocolError object { code, message, type }`

3869 

3870 - `code: number`

3871 

3872 - `message: string`

3873 

3874 - `type: "mcp_protocol_error"`

3875 

3876 - `"mcp_protocol_error"`

3877 

3878 - `McpToolExecutionError object { content, type }`

3879 

3880 - `content: unknown`

3881 

3882 - `type: "mcp_tool_execution_error"`

3883 

3884 - `"mcp_tool_execution_error"`

3885 

3886 - `HTTPError object { code, message, type }`

3887 

3888 - `code: number`

3889 

3890 - `message: string`

3891 

3892 - `type: "http_error"`

3893 

3894 - `"http_error"`

3895 

3862 - `output: optional string or null`3896 - `output: optional string or null`

3863 3897 

3864 The output from the tool call.3898 The output from the tool call.

Details

3204 for reasoning items returned by `POST /v1/responses` and WebSocket3204 for reasoning items returned by `POST /v1/responses` and WebSocket

3205 `response.create` requests.3205 `response.create` requests.

3206 3206 

3207 When streaming, use the completed reasoning item and its

3208 `encrypted_content` from the `response.output_item.done` event in

3209 subsequent requests. The `encrypted_content` in

3210 `response.output_item.added` may be incomplete. This is especially

3211 important when `store` is `false` or when using Zero Data Retention.

3212 

3207 - `status: optional "in_progress" or "completed" or "incomplete"`3213 - `status: optional "in_progress" or "completed" or "incomplete"`

3208 3214 

3209 The status of the item. One of `in_progress`, `completed`, or3215 The status of the item. One of `in_progress`, `completed`, or


3873 Unique identifier for the MCP tool call approval request.3879 Unique identifier for the MCP tool call approval request.

3874 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.3880 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

3875 3881 

3876 - `error: optional string or null`3882 - `error: optional McpToolCallError or null`

3877 3883 

3878 The error from the tool call, if any.3884 The error from the tool call, if any.

3879 3885 

3886 - `McpProtocolError object { code, message, type }`

3887 

3888 - `code: number`

3889 

3890 - `message: string`

3891 

3892 - `type: "mcp_protocol_error"`

3893 

3894 - `"mcp_protocol_error"`

3895 

3896 - `McpToolExecutionError object { content, type }`

3897 

3898 - `content: unknown`

3899 

3900 - `type: "mcp_tool_execution_error"`

3901 

3902 - `"mcp_tool_execution_error"`

3903 

3904 - `HTTPError object { code, message, type }`

3905 

3906 - `code: number`

3907 

3908 - `message: string`

3909 

3910 - `type: "http_error"`

3911 

3912 - `"http_error"`

3913 

3880 - `output: optional string or null`3914 - `output: optional string or null`

3881 3915 

3882 The output from the tool call.3916 The output from the tool call.

Details

3202 for reasoning items returned by `POST /v1/responses` and WebSocket3202 for reasoning items returned by `POST /v1/responses` and WebSocket

3203 `response.create` requests.3203 `response.create` requests.

3204 3204 

3205 When streaming, use the completed reasoning item and its

3206 `encrypted_content` from the `response.output_item.done` event in

3207 subsequent requests. The `encrypted_content` in

3208 `response.output_item.added` may be incomplete. This is especially

3209 important when `store` is `false` or when using Zero Data Retention.

3210 

3205 - `status: optional "in_progress" or "completed" or "incomplete"`3211 - `status: optional "in_progress" or "completed" or "incomplete"`

3206 3212 

3207 The status of the item. One of `in_progress`, `completed`, or3213 The status of the item. One of `in_progress`, `completed`, or


3871 Unique identifier for the MCP tool call approval request.3877 Unique identifier for the MCP tool call approval request.

3872 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.3878 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.

3873 3879 

3874 - `error: optional string or null`3880 - `error: optional McpToolCallError or null`

3875 3881 

3876 The error from the tool call, if any.3882 The error from the tool call, if any.

3877 3883 

3884 - `McpProtocolError object { code, message, type }`

3885 

3886 - `code: number`

3887 

3888 - `message: string`

3889 

3890 - `type: "mcp_protocol_error"`

3891 

3892 - `"mcp_protocol_error"`

3893 

3894 - `McpToolExecutionError object { content, type }`

3895 

3896 - `content: unknown`

3897 

3898 - `type: "mcp_tool_execution_error"`

3899 

3900 - `"mcp_tool_execution_error"`

3901 

3902 - `HTTPError object { code, message, type }`

3903 

3904 - `code: number`

3905 

3906 - `message: string`

3907 

3908 - `type: "http_error"`

3909 

3910 - `"http_error"`

3911 

3878 - `output: optional string or null`3912 - `output: optional string or null`

3879 3913 

3880 The output from the tool call.3914 The output from the tool call.

ruby/index.md +10 −10

Details

15<!-- x-release-please-start-version -->15<!-- x-release-please-start-version -->

16 16 

17```ruby17```ruby

18gem "openai", "~> 0.78.0"18gem "openai", "~> 0.79.0"

19```19```

20 20 

21<!-- x-release-please-end -->21<!-- x-release-please-end -->


669| `:error` | Terminal request failures after retries are exhausted |669| `:error` | Terminal request failures after retries are exhausted |

670| `:warn` | Error events plus retry reason and delay |670| `:warn` | Error events plus retry reason and delay |

671| `:info` | Safe request completion summaries |671| `:info` | Safe request completion summaries |

672| `:debug` | Per-attempt headers and bounded body diagnostics |672| `:debug` | Per-attempt headers and bounded structural body diagnostics |

673 673 

674Info, warning, and error logs include operational fields such as the HTTP674Info, warning, and error logs include operational fields such as the HTTP

675method, sanitized path, status, request ID, duration, and attempt count. They675method, sanitized path, status, request ID, duration, and attempt count. They


677and query parameters, including authorization, API-key, cookie, token,677and query parameters, including authorization, API-key, cookie, token,

678credential, and signature values.678credential, and signature values.

679 679 

680Debug logging can still disclose sensitive prompts, model responses, and tool680Debug body diagnostics never include customer-controlled object keys, string

681arguments. Do not enable it in production unless your log destination and data681values, prompts, model responses, tool arguments, form fields, or signed URLs.

682retention policy are appropriate. The built-in logger omits uploaded file682JSON bodies report only their byte size, top-level type, and object-field or

683contents, multipart bodies, binary bodies, large opaque/base64-like values, and683array-item count; form bodies report only their byte size and field count. The

684server-sent event contents. Text bodies are truncated to a fixed bound;684built-in logger omits uploaded file contents, multipart bodies, binary bodies,

685oversized JSON and incomplete bodies are marked as omitted. Response bodies are685server-sent event contents, unsupported text bodies, oversized bodies, and

686observed only as the application consumes them and are never read eagerly for686incomplete bodies. Response bodies are observed only as the application consumes

687logging.687them and are never read eagerly for logging.

688 688 

689SDK log messages are intended for human diagnostics. Their text format is not689SDK log messages are intended for human diagnostics. Their text format is not

690a stable structured-event API and may change between releases. Exceptions from690a stable structured-event API and may change between releases. Exceptions from