diff --git a/en/resources/live/sideband-websocket/index.md b/en/resources/live/sideband-websocket/index.md index 4294d13f2cd31f6e25298740199726ada22c4b4a..64cb4211b2c0157468150b31d4bea364bd175732 100644 --- a/en/resources/live/sideband-websocket/index.md +++ b/en/resources/live/sideband-websocket/index.md @@ -723,35 +723,43 @@ Schema name: `LiveSessionUpdateParam` - `model: optional string` - - `questions: optional array of Predicate { instructions, type, name } or Choice { choices, instructions, type, name } or Score { instructions, levels, type, name }` + - `questions: optional array of DecisionQuestion` Native Decision API questions evaluated together, in order. - - `Predicate object { instructions, type, name }` + - `Choice object { choices, instructions, type, name }` + + - `choices: array of DecisionChoiceOption` + + - `value: string or boolean` + + - `string` + + - `boolean` - Estimate how likely it is that a statement about the input is true. + - `description: optional string` - - `instructions: string or array of DecisionQuestionInputPart` + - `instructions: string or array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` - `string` - - `array of DecisionQuestionInputPart` + - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` - - `DecisionQuestionInputText object { text, type }` + - `DecisionInputText object { text, type }` - `text: string` + The text input to the model. + - `type: "input_text"` - `"input_text"` - - `DecisionQuestionInputImage object { image_url, type, detail }` - - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. + - `InputImage object { image_url, type, detail }` - `image_url: string` - A base64-encoded image in a data URL or a publicly accessible HTTP(S) image URL. + A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `type: "input_image"` @@ -759,7 +767,7 @@ Schema name: `LiveSessionUpdateParam` - `detail: optional "low" or "high" or "auto" or "original" or null` - The image detail level, using the selected model's image profile. Defaults to auto. + The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`. - `"low"` @@ -769,13 +777,11 @@ Schema name: `LiveSessionUpdateParam` - `"original"` - - `DecisionInputJSON object { data, type }` - - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. + - `InputJSON object { data, type }` - `data: map[unknown] or array of map[unknown]` - - `map[unknown]` + - `LiveDecisionJSONObject = map[unknown]` - `array of map[unknown]` @@ -783,205 +789,135 @@ Schema name: `LiveSessionUpdateParam` - `"input_json"` - - `type: "predicate"` - - The type of the object. Always `predicate`. - - - `"predicate"` - - - `name: optional string` - - - `Choice object { choices, instructions, type, name }` - - Choose from the supplied options based on the input. - - - `choices: array of object { value, description }` - - Provide between 2 and 255 choices. Each choice must be unique. - - - `value: string or boolean` - - Choice values are typed: a string and a boolean with the same text are distinct. - - - `string` - - - `boolean` - - - `description: optional string` - - - `instructions: string or array of DecisionQuestionInputPart` - - - `string` - - - `array of DecisionQuestionInputPart` - - - `DecisionQuestionInputText object { text, type }` - - - `DecisionQuestionInputImage object { image_url, type, detail }` - - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. - - - `DecisionInputJSON object { data, type }` - - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. - - `type: "choice"` - The type of the object. Always `choice`. - - `"choice"` - `name: optional string` - - `Score object { instructions, levels, type, name }` - - Rate the input against the supplied ordered levels. + - `Predicate object { instructions, type, name }` - - `instructions: string or array of DecisionQuestionInputPart` + - `instructions: string or array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` - `string` - - `array of DecisionQuestionInputPart` - - - `DecisionQuestionInputText object { text, type }` - - - `DecisionQuestionInputImage object { image_url, type, detail }` - - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. - - - `DecisionInputJSON object { data, type }` - - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. - - - `levels: array of object { label, description }` - - - `label: string` - - - `description: optional string` - - - `type: "score"` - - The type of the object. Always `score`. + - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` - - `"score"` + - `DecisionInputText object { text, type }` - - `name: optional string` + - `InputImage object { image_url, type, detail }` - - `triggers: optional array of object { decisions, event_type, type }` + - `image_url: string` - At most one Decisions trigger per transcript event type. Triggers run independently of delegation. On update, omit triggers to keep the current configuration, send a list to replace it, or send an empty list to disable triggers. + A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - - `decisions: object { questions }` + - `type: "input_image"` - Questions evaluated using the current transcript and the session's shared Decision items. + - `"input_image"` - - `questions: array of Predicate { instructions, type, name } or Choice { choices, instructions, type, name } or Score { instructions, levels, type, name }` + - `detail: optional "low" or "high" or "auto" or "original" or null` - Native Decision API questions evaluated together, in order. + The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`. - - `Predicate object { instructions, type, name }` + - `"low"` - Estimate how likely it is that a statement about the input is true. + - `"high"` - - `instructions: string or array of DecisionQuestionInputPart` + - `"auto"` - - `string` + - `"original"` - - `array of DecisionQuestionInputPart` + - `InputJSON object { data, type }` - - `DecisionQuestionInputText object { text, type }` + - `data: map[unknown] or array of map[unknown]` - - `DecisionQuestionInputImage object { image_url, type, detail }` + - `LiveDecisionJSONObject = map[unknown]` - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. + - `array of map[unknown]` - - `DecisionInputJSON object { data, type }` + - `type: "input_json"` - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. + - `"input_json"` - `type: "predicate"` - The type of the object. Always `predicate`. - - `"predicate"` - `name: optional string` - - `Choice object { choices, instructions, type, name }` - - Choose from the supplied options based on the input. + - `Score object { instructions, levels, type, name }` - - `choices: array of object { value, description }` + - `instructions: string or array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` - Provide between 2 and 255 choices. Each choice must be unique. + - `string` - - `value: string or boolean` + - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` - Choice values are typed: a string and a boolean with the same text are distinct. + - `DecisionInputText object { text, type }` - - `string` + - `InputImage object { image_url, type, detail }` - - `boolean` + - `image_url: string` - - `description: optional string` + A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - - `instructions: string or array of DecisionQuestionInputPart` + - `type: "input_image"` - - `string` + - `"input_image"` - - `array of DecisionQuestionInputPart` + - `detail: optional "low" or "high" or "auto" or "original" or null` - - `DecisionQuestionInputText object { text, type }` + The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`. - - `DecisionQuestionInputImage object { image_url, type, detail }` + - `"low"` - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. + - `"high"` - - `DecisionInputJSON object { data, type }` + - `"auto"` - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. + - `"original"` - - `type: "choice"` + - `InputJSON object { data, type }` - The type of the object. Always `choice`. + - `data: map[unknown] or array of map[unknown]` - - `"choice"` + - `LiveDecisionJSONObject = map[unknown]` - - `name: optional string` + - `array of map[unknown]` - - `Score object { instructions, levels, type, name }` + - `type: "input_json"` - Rate the input against the supplied ordered levels. + - `"input_json"` - - `instructions: string or array of DecisionQuestionInputPart` + - `levels: array of object { label, description }` - - `string` + - `label: string` - - `array of DecisionQuestionInputPart` + - `description: optional string` - - `DecisionQuestionInputText object { text, type }` + - `type: "score"` - - `DecisionQuestionInputImage object { image_url, type, detail }` + - `"score"` - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. + - `name: optional string` - - `DecisionInputJSON object { data, type }` + - `triggers: optional array of DecisionTrigger` - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. + At most one Decisions trigger per transcript event type. Triggers run independently of delegation. On update, omit triggers to keep the current configuration, send a list to replace it, or send an empty list to disable triggers. - - `levels: array of object { label, description }` + - `decisions: object { questions }` - - `label: string` + Questions evaluated using the current transcript and the session's shared Decision items. - - `description: optional string` + - `questions: array of DecisionQuestion` - - `type: "score"` + Native Decision API questions evaluated together, in order. - The type of the object. Always `score`. + - `Choice object { choices, instructions, type, name }` - - `"score"` + - `Predicate object { instructions, type, name }` - - `name: optional string` + - `Score object { instructions, levels, type, name }` - `event_type: "session.input_transcript.delta" or "session.output_transcript.delta"` @@ -1263,9 +1199,11 @@ Append an input item for future decisions without starting an evaluation or chan Schema name: `LiveDecisionItemCreateParam` -- `item: object { content, role, id, type }` +- `item: Message { content, role, id, type } or Message { content, role, id, type } or Message { content, role, id, type } or 5 more` + + - `Message object { content, role, id, type }` - - `content: string or array of DecisionInputText or InputImage { image_url, type, detail }` + - `content: string or array of InputText { text, type } or InputImage { image_url, type, detail } or InputJSON { data, type }` The text input to the model. @@ -1273,9 +1211,9 @@ Schema name: `LiveDecisionItemCreateParam` The text input to the model. - - `array of DecisionInputText or InputImage { image_url, type, detail }` + - `array of InputText { text, type } or InputImage { image_url, type, detail } or InputJSON { data, type }` - - `DecisionInputText object { text, type }` + - `InputText object { text, type }` - `text: string` @@ -1283,20 +1221,16 @@ Schema name: `LiveDecisionItemCreateParam` - `type: "input_text"` - The type of the input item. Always `input_text`. - - `"input_text"` - `InputImage object { image_url, type, detail }` - `image_url: string` - An inline image encoded as a data URL. + A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `type: "input_image"` - The type of the input item. Always `input_image`. - - `"input_image"` - `detail: optional "low" or "high" or "auto" or "original" or null` @@ -1311,6 +1245,18 @@ Schema name: `LiveDecisionItemCreateParam` - `"original"` + - `InputJSON object { data, type }` + + - `data: map[unknown] or array of map[unknown]` + + - `LiveDecisionJSONObject = map[unknown]` + + - `array of map[unknown]` + + - `type: "input_json"` + + - `"input_json"` + - `role: "user"` The message role. Always `user`. @@ -1325,565 +1271,566 @@ Schema name: `LiveDecisionItemCreateParam` - `"message"` -- `type: "decision.item.create"` - - - `"decision.item.create"` + - `Message object { content, role, id, type }` -- `event_id: optional string or null` + - `content: string or array of DecisionInputText` - Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id. + The text input to the model. -#### Example + - `string` -```json -{ - "type": "decision.item.create", - "event_id": "browser_1", - "item": { - "type": "message", - "role": "user", - "content": [ - { - "type": "input_text", - "text": "Wikipedia is open." - } - ] - } -} -``` + The text input to the model. - + - `array of DecisionInputText` -### decision.item.delete + - `text: string` -Delete an input item from future decisions without starting an evaluation or changing Live voice context. + The text input to the model. -#### Schema + - `type: "input_text"` -Schema name: `LiveDecisionItemDeleteParam` + - `"input_text"` -- `item_id: string` + - `role: "developer"` -- `type: "decision.item.delete"` + - `"developer"` - - `"decision.item.delete"` + - `id: optional string or null` -- `event_id: optional string or null` + The unique ID of this message item. - Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id. + - `type: optional "message"` -#### Example + - `"message"` -```json -{ - "type": "decision.item.delete", - "event_id": "remove_browser_1", - "item_id": "msg_browser_1" -} -``` + - `Message object { content, role, id, type }` - + - `content: string or array of DecisionInputText` -### response.item.create + The text input to the model. -Add an input item to the Live session’s Responses backend. Requires Responses delegation; use `response.create` to request a response. + - `string` -#### Schema + The text input to the model. -Schema name: `LiveResponseItemCreateParam` + - `array of DecisionInputText` -- `item: EasyInputMessage or Message { content, role, status, type } or ResponseOutputMessage or 30 more` + - `text: string` - An input item to append to the Responses backend conversation, such as a user message or a function tool result. + The text input to the model. - - `EasyInputMessage object { content, role, phase, type }` + - `type: "input_text"` - A message input to the model with a role indicating instruction following - hierarchy. Instructions given with the `developer` or `system` role take - precedence over instructions given with the `user` role. Messages with the - `assistant` role are presumed to have been generated by the model in previous - interactions. + - `role: "system"` - - `content: string or ResponseInputMessageContentList` + - `"system"` - Text, image, or audio input to the model, used to generate a response. - Can also contain previous assistant responses. + - `id: optional string or null` - - `TextInput = string` + The unique ID of this message item. - A text input to the model. + - `type: optional "message"` - - `ResponseInputMessageContentList = array of ResponseInputContent` + - `"message"` - A list of one or many input items to the model, containing different content - types. + - `Message object { content, role, id, 2 more }` - - `ResponseInputText object { text, type, prompt_cache_breakpoint }` + - `content: string or array of OutputText { text, type } or Refusal { refusal, type }` - A text input to the model. + The text input to the model. - - `text: string` + - `string` The text input to the model. - - `type: "input_text"` + - `array of OutputText { text, type } or Refusal { refusal, type }` - The type of the input item. Always `input_text`. + - `OutputText object { text, type }` - - `"input_text"` + - `text: string` - - `prompt_cache_breakpoint: optional object { mode }` + The text content. - Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. + - `type: "output_text"` - - `mode: "explicit"` + - `"output_text"` - The breakpoint mode. Always `explicit`. + - `Refusal object { refusal, type }` - - `"explicit"` + - `refusal: string` - - `ResponseInputImage object { detail, type, file_id, 2 more }` + The refusal text. - An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision). + - `type: "refusal"` - - `detail: ImageDetail` + - `"refusal"` - The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`. + - `role: "assistant"` - - `"low"` + - `"assistant"` - - `"high"` + - `id: optional string or null` - - `"auto"` + The unique ID of this message item. - - `"original"` + - `phase: optional "commentary" or "final_answer" or null` - - `type: "input_image"` + Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`). For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend phase on all assistant messages — dropping it can degrade performance. Not used for user messages. - The type of the input item. Always `input_image`. + - `"commentary"` - - `"input_image"` + - `"final_answer"` - - `file_id: optional string or null` + - `type: optional "message"` - The ID of the file to be sent to the model. + - `"message"` - - `image_url: optional string or null` + - `FunctionCall object { arguments, call_id, name, 4 more }` - The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL. + - `arguments: string` - - `prompt_cache_breakpoint: optional object { mode }` + The function arguments as a JSON string. - Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. + - `call_id: string` - - `mode: "explicit"` + The unique ID of the function tool call generated by the model. - The breakpoint mode. Always `explicit`. + - `name: string` - - `"explicit"` + - `type: "function_call"` - - `ResponseInputFile object { type, detail, file_data, 4 more }` + The item type. Always `function_call`. - A file input to the model. + - `"function_call"` - - `type: "input_file"` + - `id: optional string or null` - The type of the input item. Always `input_file`. + The local Decision item ID. - - `"input_file"` + - `namespace: optional string or null` - - `detail: optional "auto" or "low" or "high"` + The namespace of the function to call. - The detail level of the file to be sent to the model. Use `auto` to let the system select the detail level; for GPT-5.6 and later models, `auto` uses high-quality rendering, which may increase input token usage. Use `low` for lower-cost rendering, or `high` to render the file at higher quality. Defaults to `auto`. + - `status: optional "in_progress" or "completed" or "incomplete" or null` - - `"auto"` + - `"in_progress"` - - `"low"` + - `"completed"` - - `"high"` + - `"incomplete"` - - `file_data: optional string` + - `FunctionCallOutput object { call_id, output, type, 2 more }` - The content of the file to be sent to the model. + - `call_id: string` - - `file_id: optional string or null` + The unique ID of the function tool call generated by the model. - The ID of the file to be sent to the model. + - `output: string or array of DecisionInputText or InputImage { image_url, type, detail }` - - `file_url: optional string` + The text input to the model. - The URL of the file to be sent to the model. + - `string` - - `filename: optional string` + The text input to the model. - The name of the file to be sent to the model. + - `array of DecisionInputText or InputImage { image_url, type, detail }` - - `prompt_cache_breakpoint: optional object { mode }` + - `DecisionInputText object { text, type }` - Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. + - `text: string` - - `mode: "explicit"` + The text input to the model. - The breakpoint mode. Always `explicit`. + - `type: "input_text"` - - `"explicit"` + - `InputImage object { image_url, type, detail }` - - `role: "user" or "assistant" or "system" or "developer"` + - `image_url: string` - The role of the message input. One of `user`, `assistant`, `system`, or - `developer`. + A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - - `"user"` + - `type: "input_image"` - - `"assistant"` + - `"input_image"` - - `"system"` + - `detail: optional "low" or "high" or "auto" or "original" or null` - - `"developer"` + The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`. - - `phase: optional "commentary" or "final_answer" or null` + - `"low"` - Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`). - For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend - phase on all assistant messages — dropping it can degrade performance. Not used for user messages. + - `"high"` - - `"commentary"` + - `"auto"` - - `"final_answer"` + - `"original"` - - `type: optional "message"` + - `type: "function_call_output"` - The type of the message input. Always `message`. + The type of the function tool call output. Always `function_call_output`. - - `"message"` + - `"function_call_output"` - - `Message object { content, role, status, type }` + - `id: optional string or null` - A message input to the model with a role indicating instruction following - hierarchy. Instructions given with the `developer` or `system` role take - precedence over instructions given with the `user` role. + The local Decision item ID. - - `content: ResponseInputMessageContentList` + - `status: optional "in_progress" or "completed" or "incomplete" or null` - A list of one or many input items to the model, containing different content - types. + - `"in_progress"` - - `role: "user" or "system" or "developer"` + - `"completed"` - The role of the message input. One of `user`, `system`, or `developer`. + - `"incomplete"` - - `"user"` + - `CustomToolCall object { call_id, input, name, 4 more }` - - `"system"` + - `call_id: string` - - `"developer"` + The unique ID of the function tool call generated by the model. - - `status: optional "in_progress" or "completed" or "incomplete"` + - `input: string` - The status of item. One of `in_progress`, `completed`, or - `incomplete`. Populated when items are returned via API. + The input to the custom tool call. - - `"in_progress"` + - `name: string` - - `"completed"` + The name of the custom tool to call. - - `"incomplete"` + - `type: "custom_tool_call"` - - `type: optional "message"` + The item type. Always `custom_tool_call`. - The type of the message input. Always set to `message`. + - `"custom_tool_call"` - - `"message"` + - `id: optional string or null` - - `ResponseOutputMessage object { id, content, role, 3 more }` + The local Decision item ID. - An output message from the model. + - `namespace: optional string or null` - - `id: string` + The namespace of the function to call. - The unique ID of the output message. + - `status: optional "in_progress" or "completed" or "incomplete" or null` - - `content: array of ResponseOutputText or ResponseOutputRefusal` + - `"in_progress"` - The content of the output message. + - `"completed"` - - `ResponseOutputText object { annotations, logprobs, text, type }` + - `"incomplete"` - A text output from the model. + - `CustomToolCallOutput object { call_id, output, type, 2 more }` - - `annotations: array of FileCitation { file_id, filename, index, type } or URLCitation { end_index, start_index, title, 2 more } or ContainerFileCitation { container_id, end_index, file_id, 3 more } or FilePath { file_id, index, type }` + - `call_id: string` - The annotations of the text output. + The unique ID of the function tool call generated by the model. - - `FileCitation object { file_id, filename, index, type }` + - `output: string or array of DecisionInputText or InputImage { image_url, type, detail }` - A citation to a file. + The text input to the model. - - `file_id: string` + - `string` - The ID of the file. + The text input to the model. - - `filename: string` + - `array of DecisionInputText or InputImage { image_url, type, detail }` - The filename of the file cited. + - `DecisionInputText object { text, type }` - - `index: number` + - `InputImage object { image_url, type, detail }` - The index in the output text at which to insert the file citation. + - `image_url: string` - - `type: "file_citation"` + A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - The type of the file citation. Always `file_citation`. + - `type: "input_image"` - - `"file_citation"` + - `"input_image"` - - `URLCitation object { end_index, start_index, title, 2 more }` + - `detail: optional "low" or "high" or "auto" or "original" or null` - A citation for a web resource used to generate a model response. + The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`. - - `end_index: number` + - `"low"` - The index of the last character of the URL citation in the message. + - `"high"` - - `start_index: number` + - `"auto"` - The index of the first character of the URL citation in the message. + - `"original"` - - `title: string` + - `type: "custom_tool_call_output"` - The title of the web resource. + - `"custom_tool_call_output"` - - `type: "url_citation"` + - `id: optional string or null` - The type of the URL citation. Always `url_citation`. + The local Decision item ID. - - `"url_citation"` + - `status: optional "in_progress" or "completed" or "incomplete" or null` - - `url: string` + - `"in_progress"` - The URL of the web resource. + - `"completed"` - - `ContainerFileCitation object { container_id, end_index, file_id, 3 more }` + - `"incomplete"` - A citation for a container file used to generate a model response. +- `type: "decision.item.create"` - - `container_id: string` + - `"decision.item.create"` - The ID of the container file. +- `event_id: optional string or null` - - `end_index: number` + Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id. - The index of the last character of the container file citation in the message. +#### Example - - `file_id: string` +```json +{ + "type": "decision.item.create", + "event_id": "browser_1", + "item": { + "type": "message", + "role": "user", + "content": [ + { + "type": "input_text", + "text": "Wikipedia is open." + } + ] + } +} +``` - The ID of the file. + - - `filename: string` +### decision.item.delete - The filename of the container file cited. +Delete an input item from future decisions without starting an evaluation or changing Live voice context. - - `start_index: number` +#### Schema - The index of the first character of the container file citation in the message. +Schema name: `LiveDecisionItemDeleteParam` - - `type: "container_file_citation"` +- `item_id: string` - The type of the container file citation. Always `container_file_citation`. +- `type: "decision.item.delete"` - - `"container_file_citation"` + - `"decision.item.delete"` - - `FilePath object { file_id, index, type }` +- `event_id: optional string or null` - A path to a file. + Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id. - - `file_id: string` +#### Example - The ID of the file. +```json +{ + "type": "decision.item.delete", + "event_id": "remove_browser_1", + "item_id": "msg_browser_1" +} +``` - - `index: number` + - The index of the file in the list of files. +### response.item.create - - `type: "file_path"` +Add an input item to the Live session’s Responses backend. Requires Responses delegation; use `response.create` to request a response. - The type of the file path. Always `file_path`. +#### Schema - - `"file_path"` +Schema name: `LiveResponseItemCreateParam` - - `logprobs: array of object { token, bytes, logprob, top_logprobs }` +- `item: EasyInputMessage or Message { content, role, status, type } or ResponseOutputMessage or 30 more` - - `token: string` + An input item to append to the Responses backend conversation, such as a user message or a function tool result. - - `bytes: array of number` + - `EasyInputMessage object { content, role, phase, type }` - - `logprob: number` + A message input to the model with a role indicating instruction following + hierarchy. Instructions given with the `developer` or `system` role take + precedence over instructions given with the `user` role. Messages with the + `assistant` role are presumed to have been generated by the model in previous + interactions. - - `top_logprobs: array of object { token, bytes, logprob }` + - `content: string or ResponseInputMessageContentList` - - `token: string` + Text, image, or audio input to the model, used to generate a response. + Can also contain previous assistant responses. - - `bytes: array of number` + - `TextInput = string` - - `logprob: number` + A text input to the model. + + - `ResponseInputMessageContentList = array of ResponseInputContent` + + A list of one or many input items to the model, containing different content + types. + + - `ResponseInputText object { text, type, prompt_cache_breakpoint }` + + A text input to the model. - `text: string` - The text output from the model. + The text input to the model. - - `type: "output_text"` + - `type: "input_text"` - The type of the output text. Always `output_text`. + The type of the input item. Always `input_text`. - - `"output_text"` + - `"input_text"` - - `ResponseOutputRefusal object { refusal, type }` + - `prompt_cache_breakpoint: optional object { mode }` - A refusal from the model. + Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. - - `refusal: string` + - `mode: "explicit"` - The refusal explanation from the model. + The breakpoint mode. Always `explicit`. - - `type: "refusal"` + - `"explicit"` - The type of the refusal. Always `refusal`. + - `ResponseInputImage object { detail, type, file_id, 2 more }` - - `"refusal"` + An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision). - - `role: "assistant"` + - `detail: ImageDetail` - The role of the output message. Always `assistant`. + The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`. - - `"assistant"` + - `"low"` - - `status: "in_progress" or "completed" or "incomplete"` + - `"high"` - The status of the message input. One of `in_progress`, `completed`, or - `incomplete`. Populated when input items are returned via API. + - `"auto"` - - `"in_progress"` + - `"original"` - - `"completed"` + - `type: "input_image"` - - `"incomplete"` + The type of the input item. Always `input_image`. - - `type: "message"` + - `"input_image"` - The type of the output message. Always `message`. + - `file_id: optional string or null` - - `"message"` + The ID of the file to be sent to the model. - - `phase: optional "commentary" or "final_answer" or null` + - `image_url: optional string or null` - Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`). - For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend - phase on all assistant messages — dropping it can degrade performance. Not used for user messages. + The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL. - - `"commentary"` + - `prompt_cache_breakpoint: optional object { mode }` - - `"final_answer"` + Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. - - `FileSearchCall object { id, queries, status, 2 more }` + - `mode: "explicit"` - The results of a file search tool call. See the - [file search guide](https://developers.openai.com/api/docs/guides/tools-file-search) for more information. + The breakpoint mode. Always `explicit`. - - `id: string` + - `"explicit"` - The unique ID of the file search tool call. + - `ResponseInputFile object { type, detail, file_data, 4 more }` - - `queries: array of string` + A file input to the model. - The queries used to search for files. + - `type: "input_file"` - - `status: "in_progress" or "searching" or "completed" or 2 more` + The type of the input item. Always `input_file`. - The status of the file search tool call. One of `in_progress`, - `searching`, `incomplete` or `failed`, + - `"input_file"` - - `"in_progress"` + - `detail: optional "auto" or "low" or "high"` - - `"searching"` + The detail level of the file to be sent to the model. Use `auto` to let the system select the detail level; for GPT-5.6 and later models, `auto` uses high-quality rendering, which may increase input token usage. Use `low` for lower-cost rendering, or `high` to render the file at higher quality. Defaults to `auto`. - - `"completed"` + - `"auto"` - - `"incomplete"` + - `"low"` - - `"failed"` + - `"high"` - - `type: "file_search_call"` + - `file_data: optional string` - The type of the file search tool call. Always `file_search_call`. + The content of the file to be sent to the model. - - `"file_search_call"` + - `file_id: optional string or null` - - `results: optional array of object { attributes, file_id, filename, 2 more } or null` + The ID of the file to be sent to the model. - The results of the file search tool call. + - `file_url: optional string` - - `attributes: optional map[string or number or boolean] or null` + The URL of the file to be sent to the model. - Set of 16 key-value pairs that can be attached to an object. This can be - useful for storing additional information about the object in a structured - format, and querying for objects via API or the dashboard. Keys are strings - with a maximum length of 64 characters. Values are strings with a maximum - length of 512 characters, booleans, or numbers. + - `filename: optional string` - - `string` + The name of the file to be sent to the model. - - `number` + - `prompt_cache_breakpoint: optional object { mode }` - - `boolean` + Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. - - `file_id: optional string` + - `mode: "explicit"` - The unique ID of the file. + The breakpoint mode. Always `explicit`. - - `filename: optional string` + - `"explicit"` - The name of the file. + - `role: "user" or "assistant" or "system" or "developer"` - - `score: optional number` + The role of the message input. One of `user`, `assistant`, `system`, or + `developer`. - The relevance score of the file - a value between 0 and 1. + - `"user"` - - `text: optional string` + - `"assistant"` - The text that was retrieved from the file. + - `"system"` - - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }` + - `"developer"` - A tool call to a computer use tool. See the - [computer use guide](https://developers.openai.com/api/docs/guides/tools-computer-use) for more information. + - `phase: optional "commentary" or "final_answer" or null` - - `id: string` + Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`). + For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend + phase on all assistant messages — dropping it can degrade performance. Not used for user messages. - The unique ID of the computer call. + - `"commentary"` - - `call_id: string` + - `"final_answer"` - An identifier used when responding to the tool call with output. + - `type: optional "message"` - - `pending_safety_checks: array of object { id, code, message }` + The type of the message input. Always `message`. - The pending safety checks for the computer call. + - `"message"` - - `id: string` + - `Message object { content, role, status, type }` - The ID of the pending safety check. + A message input to the model with a role indicating instruction following + hierarchy. Instructions given with the `developer` or `system` role take + precedence over instructions given with the `user` role. - - `code: optional string or null` + - `content: ResponseInputMessageContentList` - The type of the pending safety check. + A list of one or many input items to the model, containing different content + types. - - `message: optional string or null` + - `role: "user" or "system" or "developer"` - Details about the pending safety check. + The role of the message input. One of `user`, `system`, or `developer`. - - `status: "in_progress" or "completed" or "incomplete"` + - `"user"` - The status of the item. One of `in_progress`, `completed`, or + - `"system"` + + - `"developer"` + + - `status: optional "in_progress" or "completed" or "incomplete"` + + The status of item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API. - `"in_progress"` @@ -1892,290 +1839,287 @@ Schema name: `LiveResponseItemCreateParam` - `"incomplete"` - - `type: "computer_call"` + - `type: optional "message"` - The type of the computer call. Always `computer_call`. + The type of the message input. Always set to `message`. - - `"computer_call"` + - `"message"` - - `action: optional ComputerAction` + - `ResponseOutputMessage object { id, content, role, 3 more }` - A click action. + An output message from the model. - - `Click object { button, type, x, 2 more }` + - `id: string` - A click action. + The unique ID of the output message. - - `button: "left" or "right" or "wheel" or 2 more` + - `content: array of ResponseOutputText or ResponseOutputRefusal` - Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`. + The content of the output message. - - `"left"` + - `ResponseOutputText object { annotations, logprobs, text, type }` - - `"right"` + A text output from the model. - - `"wheel"` + - `annotations: array of FileCitation { file_id, filename, index, type } or URLCitation { end_index, start_index, title, 2 more } or ContainerFileCitation { container_id, end_index, file_id, 3 more } or FilePath { file_id, index, type }` - - `"back"` + The annotations of the text output. - - `"forward"` + - `FileCitation object { file_id, filename, index, type }` - - `type: "click"` + A citation to a file. - Specifies the event type. For a click action, this property is always `click`. + - `file_id: string` - - `"click"` + The ID of the file. - - `x: number` + - `filename: string` - The x-coordinate where the click occurred. + The filename of the file cited. - - `y: number` + - `index: number` - The y-coordinate where the click occurred. + The index in the output text at which to insert the file citation. - - `keys: optional array of string or null` + - `type: "file_citation"` - The keys being held while clicking. + The type of the file citation. Always `file_citation`. - - `DoubleClick object { keys, type, x, y }` + - `"file_citation"` - A double click action. + - `URLCitation object { end_index, start_index, title, 2 more }` - - `keys: array of string or null` + A citation for a web resource used to generate a model response. - The keys being held while double-clicking. + - `end_index: number` - - `type: "double_click"` + The index of the last character of the URL citation in the message. - Specifies the event type. For a double click action, this property is always set to `double_click`. + - `start_index: number` - - `"double_click"` + The index of the first character of the URL citation in the message. - - `x: number` + - `title: string` - The x-coordinate where the double click occurred. + The title of the web resource. - - `y: number` + - `type: "url_citation"` - The y-coordinate where the double click occurred. + The type of the URL citation. Always `url_citation`. - - `Drag object { path, type, keys }` + - `"url_citation"` - A drag action. + - `url: string` - - `path: array of object { x, y }` + The URL of the web resource. - An array of coordinates representing the path of the drag action. Coordinates will appear as an array of objects, eg + - `ContainerFileCitation object { container_id, end_index, file_id, 3 more }` - ``` - [ - { x: 100, y: 200 }, - { x: 200, y: 300 } - ] - ``` + A citation for a container file used to generate a model response. - - `x: number` + - `container_id: string` - The x-coordinate. + The ID of the container file. - - `y: number` + - `end_index: number` - The y-coordinate. + The index of the last character of the container file citation in the message. - - `type: "drag"` + - `file_id: string` - Specifies the event type. For a drag action, this property is always set to `drag`. + The ID of the file. - - `"drag"` + - `filename: string` - - `keys: optional array of string or null` + The filename of the container file cited. - The keys being held while dragging the mouse. + - `start_index: number` - - `Keypress object { keys, type }` + The index of the first character of the container file citation in the message. - A collection of keypresses the model would like to perform. + - `type: "container_file_citation"` - - `keys: array of string` + The type of the container file citation. Always `container_file_citation`. - The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key. + - `"container_file_citation"` - - `type: "keypress"` + - `FilePath object { file_id, index, type }` - Specifies the event type. For a keypress action, this property is always set to `keypress`. + A path to a file. - - `"keypress"` + - `file_id: string` - - `Move object { type, x, y, keys }` + The ID of the file. - A mouse move action. + - `index: number` - - `type: "move"` + The index of the file in the list of files. - Specifies the event type. For a move action, this property is always set to `move`. + - `type: "file_path"` - - `"move"` + The type of the file path. Always `file_path`. - - `x: number` + - `"file_path"` - The x-coordinate to move to. + - `logprobs: array of object { token, bytes, logprob, top_logprobs }` - - `y: number` + - `token: string` - The y-coordinate to move to. + - `bytes: array of number` - - `keys: optional array of string or null` + - `logprob: number` - The keys being held while moving the mouse. + - `top_logprobs: array of object { token, bytes, logprob }` - - `Screenshot object { type }` + - `token: string` - A screenshot action. + - `bytes: array of number` - - `type: "screenshot"` + - `logprob: number` - Specifies the event type. For a screenshot action, this property is always set to `screenshot`. + - `text: string` - - `"screenshot"` + The text output from the model. - - `Scroll object { scroll_x, scroll_y, type, 3 more }` + - `type: "output_text"` - A scroll action. + The type of the output text. Always `output_text`. - - `scroll_x: number` + - `"output_text"` - The horizontal scroll distance. + - `ResponseOutputRefusal object { refusal, type }` - - `scroll_y: number` + A refusal from the model. - The vertical scroll distance. + - `refusal: string` - - `type: "scroll"` + The refusal explanation from the model. - Specifies the event type. For a scroll action, this property is always set to `scroll`. + - `type: "refusal"` - - `"scroll"` + The type of the refusal. Always `refusal`. - - `x: number` + - `"refusal"` - The x-coordinate where the scroll occurred. + - `role: "assistant"` - - `y: number` + The role of the output message. Always `assistant`. - The y-coordinate where the scroll occurred. + - `"assistant"` - - `keys: optional array of string or null` + - `status: "in_progress" or "completed" or "incomplete"` - The keys being held while scrolling. + The status of the message input. One of `in_progress`, `completed`, or + `incomplete`. Populated when input items are returned via API. - - `Type object { text, type }` + - `"in_progress"` - An action to type in text. + - `"completed"` - - `text: string` + - `"incomplete"` - The text to type. + - `type: "message"` - - `type: "type"` + The type of the output message. Always `message`. - Specifies the event type. For a type action, this property is always set to `type`. + - `"message"` - - `"type"` + - `phase: optional "commentary" or "final_answer" or null` - - `Wait object { type }` + Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`). + For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend + phase on all assistant messages — dropping it can degrade performance. Not used for user messages. - A wait action. + - `"commentary"` - - `type: "wait"` + - `"final_answer"` - Specifies the event type. For a wait action, this property is always set to `wait`. + - `FileSearchCall object { id, queries, status, 2 more }` - - `"wait"` + The results of a file search tool call. See the + [file search guide](https://developers.openai.com/api/docs/guides/tools-file-search) for more information. - - `actions: optional ComputerActionList` + - `id: string` - Flattened batched actions for `computer_use`. Each action includes an - `type` discriminator and action-specific fields. + The unique ID of the file search tool call. - - `Click object { button, type, x, 2 more }` + - `queries: array of string` - A click action. + The queries used to search for files. - - `DoubleClick object { keys, type, x, y }` + - `status: "in_progress" or "searching" or "completed" or 2 more` - A double click action. + The status of the file search tool call. One of `in_progress`, + `searching`, `incomplete` or `failed`, - - `Drag object { path, type, keys }` + - `"in_progress"` - A drag action. + - `"searching"` - - `Keypress object { keys, type }` + - `"completed"` - A collection of keypresses the model would like to perform. + - `"incomplete"` - - `Move object { type, x, y, keys }` + - `"failed"` - A mouse move action. + - `type: "file_search_call"` - - `Screenshot object { type }` + The type of the file search tool call. Always `file_search_call`. - A screenshot action. + - `"file_search_call"` - - `Scroll object { scroll_x, scroll_y, type, 3 more }` + - `results: optional array of object { attributes, file_id, filename, 2 more } or null` - A scroll action. + The results of the file search tool call. - - `Type object { text, type }` + - `attributes: optional map[string or number or boolean] or null` - An action to type in text. + Set of 16 key-value pairs that can be attached to an object. This can be + useful for storing additional information about the object in a structured + format, and querying for objects via API or the dashboard. Keys are strings + with a maximum length of 64 characters. Values are strings with a maximum + length of 512 characters, booleans, or numbers. - - `Wait object { type }` + - `string` - A wait action. + - `number` - - `ComputerCallOutput object { call_id, output, type, 3 more }` + - `boolean` - The output of a computer tool call. + - `file_id: optional string` - - `call_id: string` + The unique ID of the file. - The ID of the computer tool call that produced the output. + - `filename: optional string` - - `output: ResponseComputerToolCallOutputScreenshot` + The name of the file. - A computer screenshot image used with the computer use tool. + - `score: optional number` - - `type: "computer_screenshot"` + The relevance score of the file - a value between 0 and 1. - Specifies the event type. For a computer screenshot, this property is - always set to `computer_screenshot`. + - `text: optional string` - - `"computer_screenshot"` + The text that was retrieved from the file. - - `file_id: optional string` + - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }` - The identifier of an uploaded file that contains the screenshot. + A tool call to a computer use tool. See the + [computer use guide](https://developers.openai.com/api/docs/guides/tools-computer-use) for more information. - - `image_url: optional string` + - `id: string` - The URL of the screenshot image. + The unique ID of the computer call. - - `type: "computer_call_output"` + - `call_id: string` - The type of the computer tool call output. Always `computer_call_output`. + An identifier used when responding to the tool call with output. - - `"computer_call_output"` + - `pending_safety_checks: array of object { id, code, message }` - - `id: optional string or null` + The pending safety checks for the computer call. - The ID of the computer tool call output. - - - `acknowledged_safety_checks: optional array of object { id, code, message } or null` - - The safety checks reported by the API that have been acknowledged by the developer. - - - `id: string` + - `id: string` The ID of the pending safety check. @@ -2187,9 +2131,10 @@ Schema name: `LiveResponseItemCreateParam` Details about the pending safety check. - - `status: optional "in_progress" or "completed" or "incomplete" or null` + - `status: "in_progress" or "completed" or "incomplete"` - The status of the message input. One of `in_progress`, `completed`, or `incomplete`. Populated when input items are returned via API. + The status of the item. One of `in_progress`, `completed`, or + `incomplete`. Populated when items are returned via API. - `"in_progress"` @@ -2197,1004 +2142,1309 @@ Schema name: `LiveResponseItemCreateParam` - `"incomplete"` - - `WebSearchCall object { id, status, type, action }` - - The results of a web search tool call. See the - [web search guide](https://developers.openai.com/api/docs/guides/tools-web-search) for more information. - - - `id: string` + - `type: "computer_call"` - The unique ID of the web search tool call. + The type of the computer call. Always `computer_call`. - - `status: "in_progress" or "searching" or "completed" or 2 more` + - `"computer_call"` - The status of the web search tool call. + - `action: optional ComputerAction` - - `"in_progress"` + A click action. - - `"searching"` + - `Click object { button, type, x, 2 more }` - - `"completed"` + A click action. - - `"failed"` + - `button: "left" or "right" or "wheel" or 2 more` - - `"incomplete"` + Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`. - - `type: "web_search_call"` + - `"left"` - The type of the web search tool call. Always `web_search_call`. + - `"right"` - - `"web_search_call"` + - `"wheel"` - - `action: optional Search { type, queries, query, sources } or OpenPage { type, url } or FindInPage { pattern, type, url }` + - `"back"` - An object describing the specific action taken in this web search call. - Includes details on how the model used the web (search, open_page, find_in_page). + - `"forward"` - - `Search object { type, queries, query, sources }` + - `type: "click"` - Action type "search" - Performs a web search query. + Specifies the event type. For a click action, this property is always `click`. - - `type: "search"` + - `"click"` - The action type. + - `x: number` - - `"search"` + The x-coordinate where the click occurred. - - `queries: optional array of string` + - `y: number` - The search queries. + The y-coordinate where the click occurred. - - `query: optional string` + - `keys: optional array of string or null` - The search query. + The keys being held while clicking. - - `sources: optional array of object { type, url }` + - `DoubleClick object { keys, type, x, y }` - The sources used in the search. + A double click action. - - `type: "url"` + - `keys: array of string or null` - The type of source. Always `url`. + The keys being held while double-clicking. - - `"url"` + - `type: "double_click"` - - `url: string` + Specifies the event type. For a double click action, this property is always set to `double_click`. - The URL of the source. + - `"double_click"` - - `OpenPage object { type, url }` + - `x: number` - Action type "open_page" - Opens a specific URL from search results. + The x-coordinate where the double click occurred. - - `type: "open_page"` + - `y: number` - The action type. + The y-coordinate where the double click occurred. - - `"open_page"` + - `Drag object { path, type, keys }` - - `url: optional string or null` + A drag action. - The URL opened by the model. + - `path: array of object { x, y }` - - `FindInPage object { pattern, type, url }` + An array of coordinates representing the path of the drag action. Coordinates will appear as an array of objects, eg - Action type "find_in_page": Searches for a pattern within a loaded page. + ``` + [ + { x: 100, y: 200 }, + { x: 200, y: 300 } + ] + ``` - - `pattern: string` + - `x: number` - The pattern or text to search for within the page. + The x-coordinate. - - `type: "find_in_page"` + - `y: number` - The action type. + The y-coordinate. - - `"find_in_page"` + - `type: "drag"` - - `url: optional string or null` + Specifies the event type. For a drag action, this property is always set to `drag`. - The URL of the page searched for the pattern, when available. + - `"drag"` - - `FunctionCall object { arguments, call_id, name, 6 more }` + - `keys: optional array of string or null` - A tool call to run a function. See the - [function calling guide](https://developers.openai.com/api/docs/guides/function-calling) for more information. + The keys being held while dragging the mouse. - - `arguments: string` + - `Keypress object { keys, type }` - A JSON string of the arguments to pass to the function. + A collection of keypresses the model would like to perform. - - `call_id: string` + - `keys: array of string` - The unique ID of the function tool call generated by the model. + The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key. - - `name: string` + - `type: "keypress"` - The name of the function to run. + Specifies the event type. For a keypress action, this property is always set to `keypress`. - - `type: "function_call"` + - `"keypress"` - The type of the function tool call. Always `function_call`. + - `Move object { type, x, y, keys }` - - `"function_call"` + A mouse move action. - - `id: optional string` + - `type: "move"` - The unique ID of the function tool call. + Specifies the event type. For a move action, this property is always set to `move`. - - `async: optional boolean` + - `"move"` - Whether the function tool call runs asynchronously. + - `x: number` - - `caller: optional Direct { type } or Program { caller_id, type } or null` + The x-coordinate to move to. - The execution context that produced this tool call. + - `y: number` - - `Direct object { type }` + The y-coordinate to move to. - - `type: "direct"` + - `keys: optional array of string or null` - - `"direct"` + The keys being held while moving the mouse. - - `Program object { caller_id, type }` + - `Screenshot object { type }` - - `caller_id: string` + A screenshot action. - The call ID of the program item that produced this tool call. + - `type: "screenshot"` - - `type: "program"` + Specifies the event type. For a screenshot action, this property is always set to `screenshot`. - - `"program"` + - `"screenshot"` - - `namespace: optional string` + - `Scroll object { scroll_x, scroll_y, type, 3 more }` - The namespace of the function to run. + A scroll action. - - `status: optional "in_progress" or "completed" or "incomplete"` + - `scroll_x: number` - The status of the item. One of `in_progress`, `completed`, or - `incomplete`. Populated when items are returned via API. + The horizontal scroll distance. - - `"in_progress"` + - `scroll_y: number` - - `"completed"` + The vertical scroll distance. - - `"incomplete"` + - `type: "scroll"` - - `FunctionCallOutput object { output, type, id, 5 more }` + Specifies the event type. For a scroll action, this property is always set to `scroll`. - The output of a function tool call. + - `"scroll"` - - `output: string or array of ResponseInputTextContent or ResponseInputImageContent or ResponseInputFileContent` + - `x: number` - Text, image, or file output of the function tool call. + The x-coordinate where the scroll occurred. - - `string` + - `y: number` - A JSON string of the output of the function tool call. + The y-coordinate where the scroll occurred. - - `array of ResponseInputTextContent or ResponseInputImageContent or ResponseInputFileContent` + - `keys: optional array of string or null` - An array of content outputs (text, image, file) for the function tool call. + The keys being held while scrolling. - - `ResponseInputTextContent object { text, type, prompt_cache_breakpoint }` + - `Type object { text, type }` - A text input to the model. + An action to type in text. - `text: string` - The text input to the model. + The text to type. - - `type: "input_text"` + - `type: "type"` - The type of the input item. Always `input_text`. + Specifies the event type. For a type action, this property is always set to `type`. - - `"input_text"` + - `"type"` - - `prompt_cache_breakpoint: optional object { mode, ttl } or null` + - `Wait object { type }` - Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. + A wait action. - - `mode: "explicit"` + - `type: "wait"` - The breakpoint mode. Always `explicit`. + Specifies the event type. For a wait action, this property is always set to `wait`. - - `"explicit"` + - `"wait"` - - `ttl: optional "30m" or "12h"` + - `actions: optional ComputerActionList` - The minimum lifetime of this cache breakpoint. Defaults to the request TTL. + Flattened batched actions for `computer_use`. Each action includes an + `type` discriminator and action-specific fields. - - `"30m"` + - `Click object { button, type, x, 2 more }` - - `"12h"` + A click action. - - `ResponseInputImageContent object { type, detail, file_id, 2 more }` + - `DoubleClick object { keys, type, x, y }` - An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision) + A double click action. - - `type: "input_image"` + - `Drag object { path, type, keys }` - The type of the input item. Always `input_image`. + A drag action. - - `"input_image"` + - `Keypress object { keys, type }` - - `detail: optional ImageDetail or null` + A collection of keypresses the model would like to perform. - The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`. + - `Move object { type, x, y, keys }` - - `file_id: optional string or null` + A mouse move action. - The ID of the file to be sent to the model. + - `Screenshot object { type }` - - `image_url: optional string or null` + A screenshot action. - The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL. + - `Scroll object { scroll_x, scroll_y, type, 3 more }` - - `prompt_cache_breakpoint: optional object { mode, ttl } or null` + A scroll action. - Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. + - `Type object { text, type }` - - `mode: "explicit"` + An action to type in text. - The breakpoint mode. Always `explicit`. + - `Wait object { type }` - - `"explicit"` + A wait action. - - `ttl: optional "30m" or "12h"` + - `ComputerCallOutput object { call_id, output, type, 3 more }` - The minimum lifetime of this cache breakpoint. Defaults to the request TTL. + The output of a computer tool call. - - `"30m"` + - `call_id: string` - - `"12h"` + The ID of the computer tool call that produced the output. - - `ResponseInputFileContent object { type, detail, file_data, 4 more }` + - `output: ResponseComputerToolCallOutputScreenshot` - A file input to the model. + A computer screenshot image used with the computer use tool. - - `type: "input_file"` + - `type: "computer_screenshot"` - The type of the input item. Always `input_file`. + Specifies the event type. For a computer screenshot, this property is + always set to `computer_screenshot`. - - `"input_file"` + - `"computer_screenshot"` - - `detail: optional "auto" or "low" or "high"` + - `file_id: optional string` - The detail level of the file to be sent to the model. Use `auto` to let the system select the detail level; for GPT-5.6 and later models, `auto` uses high-quality rendering, which may increase input token usage. Use `low` for lower-cost rendering, or `high` to render the file at higher quality. Defaults to `auto`. + The identifier of an uploaded file that contains the screenshot. - - `"auto"` + - `image_url: optional string` - - `"low"` + The URL of the screenshot image. - - `"high"` + - `type: "computer_call_output"` - - `file_data: optional string or null` + The type of the computer tool call output. Always `computer_call_output`. - The base64-encoded data of the file to be sent to the model. + - `"computer_call_output"` - - `file_id: optional string or null` + - `id: optional string or null` - The ID of the file to be sent to the model. + The ID of the computer tool call output. - - `file_url: optional string or null` + - `acknowledged_safety_checks: optional array of object { id, code, message } or null` - The URL of the file to be sent to the model. + The safety checks reported by the API that have been acknowledged by the developer. - - `filename: optional string or null` + - `id: string` - The name of the file to be sent to the model. + The ID of the pending safety check. - - `prompt_cache_breakpoint: optional object { mode, ttl } or null` + - `code: optional string or null` - Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. + The type of the pending safety check. - - `mode: "explicit"` + - `message: optional string or null` - The breakpoint mode. Always `explicit`. + Details about the pending safety check. - - `"explicit"` + - `status: optional "in_progress" or "completed" or "incomplete" or null` - - `ttl: optional "30m" or "12h"` + The status of the message input. One of `in_progress`, `completed`, or `incomplete`. Populated when input items are returned via API. - The minimum lifetime of this cache breakpoint. Defaults to the request TTL. + - `"in_progress"` - - `"30m"` + - `"completed"` - - `"12h"` + - `"incomplete"` - - `type: "function_call_output"` + - `WebSearchCall object { id, status, type, action }` - The type of the function tool call output. Always `function_call_output`. + The results of a web search tool call. See the + [web search guide](https://developers.openai.com/api/docs/guides/tools-web-search) for more information. - - `"function_call_output"` + - `id: string` - - `id: optional string or null` + The unique ID of the web search tool call. - The unique ID of the function tool call output. Populated when this item is returned via API. + - `status: "in_progress" or "searching" or "completed" or 2 more` - - `call_id: optional string or null` + The status of the web search tool call. - The unique ID of the function tool call generated by the model. + - `"in_progress"` - - `caller: optional Direct { type } or Program { caller_id, type } or null` + - `"searching"` - The execution context that produced this tool call. + - `"completed"` - - `Direct object { type }` + - `"failed"` - - `type: "direct"` + - `"incomplete"` - The caller type. Always `direct`. + - `type: "web_search_call"` - - `"direct"` + The type of the web search tool call. Always `web_search_call`. - - `Program object { caller_id, type }` + - `"web_search_call"` - - `caller_id: string` + - `action: optional Search { type, queries, query, sources } or OpenPage { type, url } or FindInPage { pattern, type, url }` - The call ID of the program item that produced this tool call. + An object describing the specific action taken in this web search call. + Includes details on how the model used the web (search, open_page, find_in_page). - - `type: "program"` + - `Search object { type, queries, query, sources }` - The caller type. Always `program`. + Action type "search" - Performs a web search query. - - `"program"` + - `type: "search"` - - `name: optional string or null` + The action type. - The name of the tool that produced the output. + - `"search"` - - `namespace: optional string or null` + - `queries: optional array of string` - The namespace of the tool that produced the output. + The search queries. - - `status: optional "in_progress" or "completed" or "incomplete" or null` + - `query: optional string` - The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API. + The search query. - - `"in_progress"` + - `sources: optional array of object { type, url }` - - `"completed"` + The sources used in the search. - - `"incomplete"` + - `type: "url"` - - `ToolSearchCall object { arguments, type, id, 3 more }` + The type of source. Always `url`. - - `arguments: unknown` + - `"url"` - The arguments supplied to the tool search call. + - `url: string` - - `type: "tool_search_call"` + The URL of the source. - The item type. Always `tool_search_call`. + - `OpenPage object { type, url }` - - `"tool_search_call"` + Action type "open_page" - Opens a specific URL from search results. - - `id: optional string or null` + - `type: "open_page"` - The unique ID of this tool search call. + The action type. - - `call_id: optional string or null` + - `"open_page"` - The unique ID of the tool search call generated by the model. + - `url: optional string or null` - - `execution: optional "server" or "client"` + The URL opened by the model. - Whether tool search was executed by the server or by the client. + - `FindInPage object { pattern, type, url }` - - `"server"` + Action type "find_in_page": Searches for a pattern within a loaded page. - - `"client"` + - `pattern: string` - - `status: optional "in_progress" or "completed" or "incomplete" or null` + The pattern or text to search for within the page. - The status of the tool search call. + - `type: "find_in_page"` - - `"in_progress"` + The action type. - - `"completed"` + - `"find_in_page"` - - `"incomplete"` + - `url: optional string or null` - - `ToolSearchOutput object { tools, type, id, 3 more }` + The URL of the page searched for the pattern, when available. - - `tools: array of Function { name, parameters, strict, 6 more } or FileSearch { type, vector_store_ids, filters, 2 more } or Computer { type } or 13 more` + - `FunctionCall object { arguments, call_id, name, 6 more }` - The loaded tool definitions returned by the tool search output. + A tool call to run a function. See the + [function calling guide](https://developers.openai.com/api/docs/guides/function-calling) for more information. - - `Function object { name, parameters, strict, 6 more }` + - `arguments: string` - Defines a function in your own code the model can choose to call. Learn more about [function calling](https://developers.openai.com/api/docs/guides/function-calling). + A JSON string of the arguments to pass to the function. - - `name: string` + - `call_id: string` - The name of the function to call. + The unique ID of the function tool call generated by the model. - - `parameters: map[unknown] or null` + - `name: string` - A JSON schema object describing the parameters of the function. + The name of the function to run. - - `strict: boolean or null` + - `type: "function_call"` - Whether strict parameter validation is enforced for this function tool. + The type of the function tool call. Always `function_call`. - - `type: "function"` + - `"function_call"` - The type of the function tool. Always `function`. + - `id: optional string` - - `"function"` + The unique ID of the function tool call. - - `allowed_callers: optional array of "direct" or "programmatic" or null` + - `async: optional boolean` - The tool invocation context(s). + Whether the function tool call runs asynchronously. - - `"direct"` + - `caller: optional Direct { type } or Program { caller_id, type } or null` - - `"programmatic"` + The execution context that produced this tool call. - - `async: optional boolean` + - `Direct object { type }` - - `defer_loading: optional boolean` + - `type: "direct"` - Whether this function is deferred and loaded via tool search. + - `"direct"` - - `description: optional string or null` + - `Program object { caller_id, type }` - A description of the function. Used by the model to determine whether or not to call the function. + - `caller_id: string` - - `output_schema: optional map[unknown] or null` + The call ID of the program item that produced this tool call. - A JSON schema object describing the JSON value encoded in string outputs for this function. + - `type: "program"` - - `FileSearch object { type, vector_store_ids, filters, 2 more }` + - `"program"` - A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://developers.openai.com/api/docs/guides/tools-file-search). + - `namespace: optional string` - - `type: "file_search"` + The namespace of the function to run. - The type of the file search tool. Always `file_search`. + - `status: optional "in_progress" or "completed" or "incomplete"` - - `"file_search"` + The status of the item. One of `in_progress`, `completed`, or + `incomplete`. Populated when items are returned via API. - - `vector_store_ids: array of string` + - `"in_progress"` - The IDs of the vector stores to search. + - `"completed"` - - `filters: optional ComparisonFilter or CompoundFilter or null` + - `"incomplete"` - A filter to apply. + - `FunctionCallOutput object { output, type, id, 5 more }` - - `ComparisonFilter object { key, type, value }` + The output of a function tool call. - A filter used to compare a specified attribute key to a given value using a defined comparison operation. + - `output: string or array of ResponseInputTextContent or ResponseInputImageContent or ResponseInputFileContent` - - `key: string` + Text, image, or file output of the function tool call. - The key to compare against the value. + - `string` - - `type: "eq" or "ne" or "gt" or 5 more` + A JSON string of the output of the function tool call. - Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `in`, `nin`. + - `array of ResponseInputTextContent or ResponseInputImageContent or ResponseInputFileContent` - - `eq`: equals - - `ne`: not equal - - `gt`: greater than - - `gte`: greater than or equal - - `lt`: less than - - `lte`: less than or equal - - `in`: in - - `nin`: not in + An array of content outputs (text, image, file) for the function tool call. - - `"eq"` + - `ResponseInputTextContent object { text, type, prompt_cache_breakpoint }` - - `"ne"` + A text input to the model. - - `"gt"` + - `text: string` - - `"gte"` + The text input to the model. - - `"lt"` + - `type: "input_text"` - - `"lte"` + The type of the input item. Always `input_text`. - - `"in"` + - `"input_text"` - - `"nin"` + - `prompt_cache_breakpoint: optional object { mode, ttl } or null` - - `value: string or number or boolean or array of string or number` + Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. - The value to compare against the attribute key; supports string, number, or boolean types. + - `mode: "explicit"` - - `string` + The breakpoint mode. Always `explicit`. - - `number` + - `"explicit"` - - `boolean` + - `ttl: optional "30m" or "12h"` - - `array of string or number` + The minimum lifetime of this cache breakpoint. Defaults to the request TTL. - - `string` + - `"30m"` - - `number` + - `"12h"` - - `CompoundFilter object { filters, type }` + - `ResponseInputImageContent object { type, detail, file_id, 2 more }` - Combine multiple filters using `and` or `or`. + An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision) - - `filters: array of ComparisonFilter or CompoundFilter` + - `type: "input_image"` - Array of filters to combine. Items can be `ComparisonFilter` or `CompoundFilter`. + The type of the input item. Always `input_image`. - - `ComparisonFilter object { key, type, value }` + - `"input_image"` - A filter used to compare a specified attribute key to a given value using a defined comparison operation. + - `detail: optional ImageDetail or null` - - `CompoundFilter object { filters, type }` + The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`. - Combine multiple filters using `and` or `or`. + - `file_id: optional string or null` - - `type: "and" or "or"` + The ID of the file to be sent to the model. - Type of operation: `and` or `or`. + - `image_url: optional string or null` - - `"and"` + The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL. - - `"or"` + - `prompt_cache_breakpoint: optional object { mode, ttl } or null` - - `max_num_results: optional number` + Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. - The maximum number of results to return. This number should be between 1 and 50 inclusive. + - `mode: "explicit"` - - `ranking_options: optional object { hybrid_search, ranker, score_threshold }` + The breakpoint mode. Always `explicit`. - Ranking options for search. + - `"explicit"` - - `hybrid_search: optional object { embedding_weight, text_weight }` + - `ttl: optional "30m" or "12h"` - Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled. + The minimum lifetime of this cache breakpoint. Defaults to the request TTL. - - `embedding_weight: number` + - `"30m"` - The weight of the embedding in the reciprocal ranking fusion. + - `"12h"` - - `text_weight: number` + - `ResponseInputFileContent object { type, detail, file_data, 4 more }` - The weight of the text in the reciprocal ranking fusion. + A file input to the model. - - `ranker: optional "auto" or "default-2024-11-15"` + - `type: "input_file"` - The ranker to use for the file search. + The type of the input item. Always `input_file`. - - `"auto"` + - `"input_file"` - - `"default-2024-11-15"` + - `detail: optional "auto" or "low" or "high"` - - `score_threshold: optional number` + The detail level of the file to be sent to the model. Use `auto` to let the system select the detail level; for GPT-5.6 and later models, `auto` uses high-quality rendering, which may increase input token usage. Use `low` for lower-cost rendering, or `high` to render the file at higher quality. Defaults to `auto`. - The score threshold for the file search, a number between 0 and 1. Numbers closer to 1 will attempt to return only the most relevant results, but may return fewer results. + - `"auto"` - - `Computer object { type }` + - `"low"` - A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use). + - `"high"` - - `type: "computer"` + - `file_data: optional string or null` - The type of the computer tool. Always `computer`. + The base64-encoded data of the file to be sent to the model. - - `"computer"` + - `file_id: optional string or null` - - `ComputerUsePreview object { display_height, display_width, environment, type }` + The ID of the file to be sent to the model. - A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use). + - `file_url: optional string or null` - - `display_height: number` + The URL of the file to be sent to the model. - The height of the computer display. + - `filename: optional string or null` - - `display_width: number` + The name of the file to be sent to the model. - The width of the computer display. + - `prompt_cache_breakpoint: optional object { mode, ttl } or null` - - `environment: "windows" or "mac" or "linux" or 2 more` + Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. - The type of computer environment to control. + - `mode: "explicit"` - - `"windows"` + The breakpoint mode. Always `explicit`. - - `"mac"` + - `"explicit"` - - `"linux"` + - `ttl: optional "30m" or "12h"` - - `"ubuntu"` + The minimum lifetime of this cache breakpoint. Defaults to the request TTL. - - `"browser"` + - `"30m"` - - `type: "computer_use_preview"` + - `"12h"` - The type of the computer use tool. Always `computer_use_preview`. + - `type: "function_call_output"` - - `"computer_use_preview"` + The type of the function tool call output. Always `function_call_output`. - - `WebSearch object { type, external_web_access, filters, 2 more }` + - `"function_call_output"` - Search the Internet for sources related to the prompt. Learn more about the - [web search tool](https://developers.openai.com/api/docs/guides/tools-web-search). + - `id: optional string or null` - - `type: "web_search" or "web_search_2025_08_26"` + The unique ID of the function tool call output. Populated when this item is returned via API. - The type of the web search tool. One of `web_search` or `web_search_2025_08_26`. + - `call_id: optional string or null` - - `"web_search"` + The unique ID of the function tool call generated by the model. - - `"web_search_2025_08_26"` + - `caller: optional Direct { type } or Program { caller_id, type } or null` - - `external_web_access: optional boolean` + The execution context that produced this tool call. - Allow live internet access for web search. Defaults to true when omitted. When false, the web search tool runs in offline/cache-only mode and will not fetch new external content. + - `Direct object { type }` - - `filters: optional object { allowed_domains } or null` + - `type: "direct"` - Filters for the search. + The caller type. Always `direct`. - - `allowed_domains: optional array of string or null` + - `"direct"` - Allowed domains for the search. If not provided, all domains are allowed. - Subdomains of the provided domains are allowed as well. + - `Program object { caller_id, type }` - Example: `["pubmed.ncbi.nlm.nih.gov"]` + - `caller_id: string` - - `search_context_size: optional "low" or "medium" or "high"` + The call ID of the program item that produced this tool call. - High level guidance for the amount of context window space to use for the search. One of `low`, `medium`, or `high`. `medium` is the default. + - `type: "program"` - - `"low"` + The caller type. Always `program`. - - `"medium"` + - `"program"` - - `"high"` + - `name: optional string or null` - - `user_location: optional object { city, country, region, 2 more } or null` + The name of the tool that produced the output. - The approximate location of the user. If omitted or null, defaults to the - United States. To avoid this fallback, pass `{"type": "approximate"}` without - location fields. To localize results, provide the relevant location fields. + - `namespace: optional string or null` - - `city: optional string or null` + The namespace of the tool that produced the output. - Free text input for the city of the user, e.g. `San Francisco`. + - `status: optional "in_progress" or "completed" or "incomplete" or null` - - `country: optional string or null` + The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API. - The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`. + - `"in_progress"` - - `region: optional string or null` + - `"completed"` - Free text input for the region of the user, e.g. `California`. + - `"incomplete"` - - `timezone: optional string or null` + - `ToolSearchCall object { arguments, type, id, 3 more }` - The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`. + - `arguments: unknown` - - `type: optional "approximate"` + The arguments supplied to the tool search call. - The type of location approximation. Always `approximate`. + - `type: "tool_search_call"` - - `"approximate"` + The item type. Always `tool_search_call`. - - `Mcp object { server_label, type, allowed_callers, 9 more }` + - `"tool_search_call"` - Give the model access to additional tools via remote Model Context Protocol - (MCP) servers. [Learn more about MCP](https://developers.openai.com/api/docs/guides/tools-connectors-mcp). + - `id: optional string or null` - - `server_label: string` + The unique ID of this tool search call. - A label for this MCP server, used to identify it in tool calls. + - `call_id: optional string or null` - - `type: "mcp"` + The unique ID of the tool search call generated by the model. - The type of the MCP tool. Always `mcp`. + - `execution: optional "server" or "client"` - - `"mcp"` + Whether tool search was executed by the server or by the client. - - `allowed_callers: optional array of "direct" or "programmatic" or null` + - `"server"` - The tool invocation context(s). + - `"client"` - - `"direct"` + - `status: optional "in_progress" or "completed" or "incomplete" or null` - - `"programmatic"` + The status of the tool search call. - - `allowed_tools: optional array of string or McpToolFilter { read_only, tool_names } or null` + - `"in_progress"` - List of allowed tool names or a filter object. + - `"completed"` - - `McpAllowedTools = array of string` + - `"incomplete"` - A string array of allowed tool names + - `ToolSearchOutput object { tools, type, id, 3 more }` - - `McpToolFilter object { read_only, tool_names }` + - `tools: array of Function { name, parameters, strict, 6 more } or FileSearch { type, vector_store_ids, filters, 2 more } or Computer { type } or 13 more` - A filter object to specify which tools are allowed. + The loaded tool definitions returned by the tool search output. - - `read_only: optional boolean` + - `Function object { name, parameters, strict, 6 more }` - Indicates whether or not a tool modifies data or is read-only. If an - MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint), - it will match this filter. + Defines a function in your own code the model can choose to call. Learn more about [function calling](https://developers.openai.com/api/docs/guides/function-calling). - - `tool_names: optional array of string` + - `name: string` - List of allowed tool names. + The name of the function to call. - - `authorization: optional string` + - `parameters: map[unknown] or null` - An OAuth access token that can be used with a remote MCP server, either - with a custom MCP server URL or a service connector. Your application - must handle the OAuth authorization flow and provide the token here. + A JSON schema object describing the parameters of the function. - - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more` + - `strict: boolean or null` - Identifier for service connectors, like those available in ChatGPT. One of - `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more - about service connectors [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors). + Whether strict parameter validation is enforced for this function tool. - This field is deprecated for models released after September 1, 2026. - Use `server_url` to connect to a remote MCP server, or `tunnel_id` to - connect through a Secure MCP Tunnel. + - `type: "function"` - Currently supported `connector_id` values are: + The type of the function tool. Always `function`. - - Dropbox: `connector_dropbox` - - Gmail: `connector_gmail` - - Google Calendar: `connector_googlecalendar` - - Google Drive: `connector_googledrive` - - Microsoft Teams: `connector_microsoftteams` - - Outlook Calendar: `connector_outlookcalendar` - - Outlook Email: `connector_outlookemail` - - SharePoint: `connector_sharepoint` - - - `"connector_dropbox"` + - `"function"` - - `"connector_gmail"` + - `allowed_callers: optional array of "direct" or "programmatic" or null` - - `"connector_googlecalendar"` + The tool invocation context(s). - - `"connector_googledrive"` + - `"direct"` - - `"connector_microsoftteams"` + - `"programmatic"` - - `"connector_outlookcalendar"` + - `async: optional boolean` - - `"connector_outlookemail"` + - `defer_loading: optional boolean` - - `"connector_sharepoint"` + Whether this function is deferred and loaded via tool search. - - `defer_loading: optional boolean` + - `description: optional string or null` - Whether this MCP tool is deferred and discovered via tool search. + A description of the function. Used by the model to determine whether or not to call the function. - - `headers: optional map[string] or null` + - `output_schema: optional map[unknown] or null` - Optional HTTP headers to send to the MCP server. Use for authentication - or other purposes. + A JSON schema object describing the JSON value encoded in string outputs for this function. - - `require_approval: optional McpToolApprovalFilter { always, never } or "always" or "never" or null` + - `FileSearch object { type, vector_store_ids, filters, 2 more }` - Specify which of the MCP server's tools require approval. + A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://developers.openai.com/api/docs/guides/tools-file-search). - - `McpToolApprovalFilter object { always, never }` + - `type: "file_search"` - Specify which of the MCP server's tools require approval. Can be - `always`, `never`, or a filter object associated with tools - that require approval. + The type of the file search tool. Always `file_search`. - - `always: optional object { read_only, tool_names }` + - `"file_search"` - A filter object to specify which tools are allowed. + - `vector_store_ids: array of string` - - `read_only: optional boolean` + The IDs of the vector stores to search. - Indicates whether or not a tool modifies data or is read-only. If an - MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint), - it will match this filter. + - `filters: optional ComparisonFilter or CompoundFilter or null` - - `tool_names: optional array of string` + A filter to apply. - List of allowed tool names. + - `ComparisonFilter object { key, type, value }` - - `never: optional object { read_only, tool_names }` + A filter used to compare a specified attribute key to a given value using a defined comparison operation. - A filter object to specify which tools are allowed. + - `key: string` - - `read_only: optional boolean` + The key to compare against the value. - Indicates whether or not a tool modifies data or is read-only. If an - MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint), - it will match this filter. + - `type: "eq" or "ne" or "gt" or 5 more` - - `tool_names: optional array of string` + Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `in`, `nin`. - List of allowed tool names. + - `eq`: equals + - `ne`: not equal + - `gt`: greater than + - `gte`: greater than or equal + - `lt`: less than + - `lte`: less than or equal + - `in`: in + - `nin`: not in - - `McpToolApprovalSetting = "always" or "never"` + - `"eq"` - Specify a single approval policy for all tools. One of `always` or - `never`. When set to `always`, all tools will require approval. When - set to `never`, all tools will not require approval. + - `"ne"` - - `"always"` + - `"gt"` - - `"never"` + - `"gte"` - - `server_description: optional string` + - `"lt"` - Optional description of the MCP server, used to provide more context. + - `"lte"` - - `server_url: optional string` + - `"in"` - The URL for the MCP server. One of `server_url`, `connector_id`, or - `tunnel_id` must be provided. + - `"nin"` - - `tunnel_id: optional string` + - `value: string or number or boolean or array of string or number` - The Secure MCP Tunnel ID to use instead of a direct server URL. One of - `server_url`, `connector_id`, or `tunnel_id` must be provided. + The value to compare against the attribute key; supports string, number, or boolean types. - - `CodeInterpreter object { container, type, allowed_callers }` + - `string` - A tool that runs Python code to help generate a response to a prompt. + - `number` - - `container: string or CodeInterpreterToolAuto { type, file_ids, memory_limit, network_policy }` + - `boolean` - The code interpreter container. Can be a container ID or an object that - specifies uploaded file IDs to make available to your code, along with an - optional `memory_limit` setting. + - `array of string or number` - `string` - The container ID. + - `number` - - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }` + - `CompoundFilter object { filters, type }` - Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on. + Combine multiple filters using `and` or `or`. - - `type: "auto"` + - `filters: array of ComparisonFilter or CompoundFilter` - Always `auto`. + Array of filters to combine. Items can be `ComparisonFilter` or `CompoundFilter`. - - `"auto"` + - `ComparisonFilter object { key, type, value }` - - `file_ids: optional array of string` + A filter used to compare a specified attribute key to a given value using a defined comparison operation. - An optional list of uploaded files to make available to your code. + - `CompoundFilter object { filters, type }` - - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null` + Combine multiple filters using `and` or `or`. - The memory limit for the code interpreter container. + - `type: "and" or "or"` - - `"1g"` + Type of operation: `and` or `or`. - - `"4g"` + - `"and"` - - `"16g"` + - `"or"` - - `"64g"` + - `max_num_results: optional number` - - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist` + The maximum number of results to return. This number should be between 1 and 50 inclusive. - Network access policy for the container. + - `ranking_options: optional object { hybrid_search, ranker, score_threshold }` - - `ContainerNetworkPolicyDisabled object { type }` + Ranking options for search. - - `type: "disabled"` + - `hybrid_search: optional object { embedding_weight, text_weight }` - Disable outbound network access. Always `disabled`. + Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled. - - `"disabled"` + - `embedding_weight: number` - - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }` + The weight of the embedding in the reciprocal ranking fusion. - - `allowed_domains: array of string` + - `text_weight: number` - A list of allowed domains when type is `allowlist`. + The weight of the text in the reciprocal ranking fusion. - - `type: "allowlist"` + - `ranker: optional "auto" or "default-2024-11-15"` - Allow outbound network access only to specified domains. Always `allowlist`. + The ranker to use for the file search. - - `"allowlist"` + - `"auto"` - - `domain_secrets: optional array of ContainerNetworkPolicyDomainSecret` + - `"default-2024-11-15"` - Optional domain-scoped secrets for allowlisted domains. + - `score_threshold: optional number` - - `domain: string` + The score threshold for the file search, a number between 0 and 1. Numbers closer to 1 will attempt to return only the most relevant results, but may return fewer results. - The domain associated with the secret. + - `Computer object { type }` - - `name: string` + A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use). - The name of the secret to inject for the domain. + - `type: "computer"` - - `value: string` + The type of the computer tool. Always `computer`. - The secret value to inject for the domain. + - `"computer"` - - `type: "code_interpreter"` + - `ComputerUsePreview object { display_height, display_width, environment, type }` - The type of the code interpreter tool. Always `code_interpreter`. + A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use). - - `"code_interpreter"` + - `display_height: number` - - `allowed_callers: optional array of "direct" or "programmatic" or null` + The height of the computer display. - The tool invocation context(s). + - `display_width: number` - - `"direct"` + The width of the computer display. - - `"programmatic"` + - `environment: "windows" or "mac" or "linux" or 2 more` - - `ProgrammaticToolCalling object { type }` + The type of computer environment to control. - - `type: "programmatic_tool_calling"` + - `"windows"` - The type of the tool. Always `programmatic_tool_calling`. + - `"mac"` - - `"programmatic_tool_calling"` + - `"linux"` - - `ImageGeneration object { type, action, background, 9 more }` + - `"ubuntu"` - A tool that generates images using the GPT image models. + - `"browser"` - - `type: "image_generation"` + - `type: "computer_use_preview"` - The type of the image generation tool. Always `image_generation`. + The type of the computer use tool. Always `computer_use_preview`. - - `"image_generation"` + - `"computer_use_preview"` - - `action: optional "generate" or "edit" or "auto"` + - `WebSearch object { type, external_web_access, filters, 2 more }` - Whether to generate a new image or edit an existing image. Default: `auto`. + Search the Internet for sources related to the prompt. Learn more about the + [web search tool](https://developers.openai.com/api/docs/guides/tools-web-search). - - `"generate"` + - `type: "web_search" or "web_search_2025_08_26"` - - `"edit"` + The type of the web search tool. One of `web_search` or `web_search_2025_08_26`. - - `"auto"` + - `"web_search"` - - `background: optional "transparent" or "opaque" or "auto"` + - `"web_search_2025_08_26"` - Set the background of the generated image. One of `transparent`, `opaque`, - or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including - their `2026-09-08` snapshots, support `opaque` and `transparent` - backgrounds. Transparent backgrounds are available for supported GPT Image - models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in - preview. When using `transparent`, set the output format to `png` or `webp`. - Default: `auto`. + - `external_web_access: optional boolean` - - `"transparent"` + Allow live internet access for web search. Defaults to true when omitted. When false, the web search tool runs in offline/cache-only mode and will not fetch new external content. - - `"opaque"` + - `filters: optional object { allowed_domains } or null` - - `"auto"` + Filters for the search. - - `input_fidelity: optional "high" or "low" or null` + - `allowed_domains: optional array of string or null` - Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models. + Allowed domains for the search. If not provided, all domains are allowed. + Subdomains of the provided domains are allowed as well. - - `"high"` + Example: `["pubmed.ncbi.nlm.nih.gov"]` - - `"low"` + - `search_context_size: optional "low" or "medium" or "high"` - - `input_image_mask: optional object { file_id, image_url }` + High level guidance for the amount of context window space to use for the search. One of `low`, `medium`, or `high`. `medium` is the default. - Optional mask for inpainting. Contains `image_url` - (string, optional) and `file_id` (string, optional). + - `"low"` - - `file_id: optional string` + - `"medium"` - File ID for the mask image. + - `"high"` + + - `user_location: optional object { city, country, region, 2 more } or null` + + The approximate location of the user. If omitted or null, defaults to the + United States. To avoid this fallback, pass `{"type": "approximate"}` without + location fields. To localize results, provide the relevant location fields. + + - `city: optional string or null` + + Free text input for the city of the user, e.g. `San Francisco`. + + - `country: optional string or null` + + The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`. + + - `region: optional string or null` + + Free text input for the region of the user, e.g. `California`. + + - `timezone: optional string or null` + + The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`. + + - `type: optional "approximate"` + + The type of location approximation. Always `approximate`. + + - `"approximate"` + + - `Mcp object { server_label, type, allowed_callers, 9 more }` + + Give the model access to additional tools via remote Model Context Protocol + (MCP) servers. [Learn more about MCP](https://developers.openai.com/api/docs/guides/tools-connectors-mcp). + + - `server_label: string` + + A label for this MCP server, used to identify it in tool calls. + + - `type: "mcp"` + + The type of the MCP tool. Always `mcp`. + + - `"mcp"` + + - `allowed_callers: optional array of "direct" or "programmatic" or null` + + The tool invocation context(s). + + - `"direct"` + + - `"programmatic"` + + - `allowed_tools: optional array of string or McpToolFilter { read_only, tool_names } or null` + + List of allowed tool names or a filter object. + + - `McpAllowedTools = array of string` + + A string array of allowed tool names + + - `McpToolFilter object { read_only, tool_names }` + + A filter object to specify which tools are allowed. + + - `read_only: optional boolean` + + Indicates whether or not a tool modifies data or is read-only. If an + MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint), + it will match this filter. + + - `tool_names: optional array of string` + + List of allowed tool names. + + - `authorization: optional string` + + An OAuth access token that can be used with a remote MCP server, either + with a custom MCP server URL or a service connector. Your application + must handle the OAuth authorization flow and provide the token here. + + - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more` + + Identifier for service connectors, like those available in ChatGPT. One of + `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more + about service connectors [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors). + + This field is deprecated for models released after September 1, 2026. + Use `server_url` to connect to a remote MCP server, or `tunnel_id` to + connect through a Secure MCP Tunnel. + + Currently supported `connector_id` values are: + + - Dropbox: `connector_dropbox` + - Gmail: `connector_gmail` + - Google Calendar: `connector_googlecalendar` + - Google Drive: `connector_googledrive` + - Microsoft Teams: `connector_microsoftteams` + - Outlook Calendar: `connector_outlookcalendar` + - Outlook Email: `connector_outlookemail` + - SharePoint: `connector_sharepoint` + + - `"connector_dropbox"` + + - `"connector_gmail"` + + - `"connector_googlecalendar"` + + - `"connector_googledrive"` + + - `"connector_microsoftteams"` + + - `"connector_outlookcalendar"` + + - `"connector_outlookemail"` + + - `"connector_sharepoint"` + + - `defer_loading: optional boolean` + + Whether this MCP tool is deferred and discovered via tool search. + + - `headers: optional map[string] or null` + + Optional HTTP headers to send to the MCP server. Use for authentication + or other purposes. + + - `require_approval: optional McpToolApprovalFilter { always, never } or "always" or "never" or null` + + Specify which of the MCP server's tools require approval. + + - `McpToolApprovalFilter object { always, never }` + + Specify which of the MCP server's tools require approval. Can be + `always`, `never`, or a filter object associated with tools + that require approval. + + - `always: optional object { read_only, tool_names }` + + A filter object to specify which tools are allowed. + + - `read_only: optional boolean` + + Indicates whether or not a tool modifies data or is read-only. If an + MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint), + it will match this filter. + + - `tool_names: optional array of string` + + List of allowed tool names. + + - `never: optional object { read_only, tool_names }` + + A filter object to specify which tools are allowed. + + - `read_only: optional boolean` + + Indicates whether or not a tool modifies data or is read-only. If an + MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint), + it will match this filter. + + - `tool_names: optional array of string` + + List of allowed tool names. + + - `McpToolApprovalSetting = "always" or "never"` + + Specify a single approval policy for all tools. One of `always` or + `never`. When set to `always`, all tools will require approval. When + set to `never`, all tools will not require approval. + + - `"always"` + + - `"never"` + + - `server_description: optional string` + + Optional description of the MCP server, used to provide more context. + + - `server_url: optional string` + + The URL for the MCP server. One of `server_url`, `connector_id`, or + `tunnel_id` must be provided. + + - `tunnel_id: optional string` + + The Secure MCP Tunnel ID to use instead of a direct server URL. One of + `server_url`, `connector_id`, or `tunnel_id` must be provided. + + - `CodeInterpreter object { container, type, allowed_callers }` + + A tool that runs Python code to help generate a response to a prompt. + + - `container: string or CodeInterpreterToolAuto { type, file_ids, memory_limit, network_policy }` + + The code interpreter container. Can be a container ID or an object that + specifies uploaded file IDs to make available to your code, along with an + optional `memory_limit` setting. + + - `string` + + The container ID. + + - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }` + + Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on. + + - `type: "auto"` + + Always `auto`. + + - `"auto"` + + - `file_ids: optional array of string` + + An optional list of uploaded files to make available to your code. + + - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null` + + The memory limit for the code interpreter container. + + - `"1g"` + + - `"4g"` + + - `"16g"` + + - `"64g"` + + - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist` + + Network access policy for the container. + + - `ContainerNetworkPolicyDisabled object { type }` + + - `type: "disabled"` + + Disable outbound network access. Always `disabled`. + + - `"disabled"` + + - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }` + + - `allowed_domains: array of string` + + A list of allowed domains when type is `allowlist`. + + - `type: "allowlist"` + + Allow outbound network access only to specified domains. Always `allowlist`. + + - `"allowlist"` + + - `domain_secrets: optional array of ContainerNetworkPolicyDomainSecret` + + Optional domain-scoped secrets for allowlisted domains. + + - `domain: string` + + The domain associated with the secret. + + - `name: string` + + The name of the secret to inject for the domain. + + - `value: string` + + The secret value to inject for the domain. + + - `type: "code_interpreter"` + + The type of the code interpreter tool. Always `code_interpreter`. + + - `"code_interpreter"` + + - `allowed_callers: optional array of "direct" or "programmatic" or null` + + The tool invocation context(s). + + - `"direct"` + + - `"programmatic"` + + - `ProgrammaticToolCalling object { type }` + + - `type: "programmatic_tool_calling"` + + The type of the tool. Always `programmatic_tool_calling`. + + - `"programmatic_tool_calling"` + + - `ImageGeneration object { type, action, background, 9 more }` + + A tool that generates images using the GPT image models. + + - `type: "image_generation"` + + The type of the image generation tool. Always `image_generation`. + + - `"image_generation"` + + - `action: optional "generate" or "edit" or "auto"` + + Whether to generate a new image or edit an existing image. Default: `auto`. + + - `"generate"` + + - `"edit"` + + - `"auto"` + + - `background: optional "transparent" or "opaque" or "auto"` + + Set the background of the generated image. One of `transparent`, `opaque`, + or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including + their `2026-09-08` snapshots, support `opaque` and `transparent` + backgrounds. Transparent backgrounds are available for supported GPT Image + models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in + preview. When using `transparent`, set the output format to `png` or `webp`. + Default: `auto`. + + - `"transparent"` + + - `"opaque"` + + - `"auto"` + + - `input_fidelity: optional "high" or "low" or null` + + Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models. + + - `"high"` + + - `"low"` + + - `input_image_mask: optional object { file_id, image_url }` + + Optional mask for inpainting. Contains `image_url` + (string, optional) and `file_id` (string, optional). + + - `file_id: optional string` + + File ID for the mask image. - `image_url: optional string` @@ -6821,39 +7071,47 @@ Schema name: `LiveSessionStarted` - `Decisions object { decisions, type, acknowledgement_delay_ms }` - - `decisions: object { model, questions }` + - `decisions: DecisionsDelegationConfig` - `model: string` - - `questions: array of Predicate { instructions, type, name } or Choice { choices, instructions, type, name } or Score { instructions, levels, type, name }` + - `questions: array of DecisionQuestion` Native Decision API questions evaluated together, in order. - - `Predicate object { instructions, type, name }` + - `Choice object { choices, instructions, type, name }` + + - `choices: array of DecisionChoiceOption` + + - `value: string or boolean` - Estimate how likely it is that a statement about the input is true. + - `string` + + - `boolean` + + - `description: optional string` - - `instructions: string or array of DecisionQuestionInputPart` + - `instructions: string or array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` - `string` - - `array of DecisionQuestionInputPart` + - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` - - `DecisionQuestionInputText object { text, type }` + - `DecisionInputText object { text, type }` - `text: string` + The text input to the model. + - `type: "input_text"` - `"input_text"` - - `DecisionQuestionInputImage object { image_url, type, detail }` - - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. + - `InputImage object { image_url, type, detail }` - `image_url: string` - A base64-encoded image in a data URL or a publicly accessible HTTP(S) image URL. + A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `type: "input_image"` @@ -6861,7 +7119,7 @@ Schema name: `LiveSessionStarted` - `detail: optional "low" or "high" or "auto" or "original" or null` - The image detail level, using the selected model's image profile. Defaults to auto. + The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`. - `"low"` @@ -6871,13 +7129,11 @@ Schema name: `LiveSessionStarted` - `"original"` - - `DecisionInputJSON object { data, type }` - - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. + - `InputJSON object { data, type }` - `data: map[unknown] or array of map[unknown]` - - `map[unknown]` + - `LiveDecisionJSONObject = map[unknown]` - `array of map[unknown]` @@ -6885,75 +7141,105 @@ Schema name: `LiveSessionStarted` - `"input_json"` - - `type: "predicate"` - - The type of the object. Always `predicate`. + - `type: "choice"` - - `"predicate"` + - `"choice"` - `name: optional string` - - `Choice object { choices, instructions, type, name }` + - `Predicate object { instructions, type, name }` - Choose from the supplied options based on the input. + - `instructions: string or array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` - - `choices: array of object { value, description }` + - `string` - Provide between 2 and 255 choices. Each choice must be unique. + - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` - - `value: string or boolean` + - `DecisionInputText object { text, type }` - Choice values are typed: a string and a boolean with the same text are distinct. + - `InputImage object { image_url, type, detail }` - - `string` + - `image_url: string` - - `boolean` + A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - - `description: optional string` + - `type: "input_image"` - - `instructions: string or array of DecisionQuestionInputPart` + - `"input_image"` - - `string` + - `detail: optional "low" or "high" or "auto" or "original" or null` - - `array of DecisionQuestionInputPart` + The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`. - - `DecisionQuestionInputText object { text, type }` + - `"low"` - - `DecisionQuestionInputImage object { image_url, type, detail }` + - `"high"` - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. + - `"auto"` - - `DecisionInputJSON object { data, type }` + - `"original"` - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. + - `InputJSON object { data, type }` - - `type: "choice"` + - `data: map[unknown] or array of map[unknown]` - The type of the object. Always `choice`. + - `LiveDecisionJSONObject = map[unknown]` - - `"choice"` + - `array of map[unknown]` + + - `type: "input_json"` + + - `"input_json"` + + - `type: "predicate"` + + - `"predicate"` - `name: optional string` - `Score object { instructions, levels, type, name }` - Rate the input against the supplied ordered levels. - - - `instructions: string or array of DecisionQuestionInputPart` + - `instructions: string or array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` - `string` - - `array of DecisionQuestionInputPart` + - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` + + - `DecisionInputText object { text, type }` + + - `InputImage object { image_url, type, detail }` + + - `image_url: string` + + A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. + + - `type: "input_image"` + + - `"input_image"` + + - `detail: optional "low" or "high" or "auto" or "original" or null` + + The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`. + + - `"low"` + + - `"high"` + + - `"auto"` + + - `"original"` + + - `InputJSON object { data, type }` - - `DecisionQuestionInputText object { text, type }` + - `data: map[unknown] or array of map[unknown]` - - `DecisionQuestionInputImage object { image_url, type, detail }` + - `LiveDecisionJSONObject = map[unknown]` - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. + - `array of map[unknown]` - - `DecisionInputJSON object { data, type }` + - `type: "input_json"` - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. + - `"input_json"` - `levels: array of object { label, description }` @@ -6963,8 +7249,6 @@ Schema name: `LiveSessionStarted` - `type: "score"` - The type of the object. Always `score`. - - `"score"` - `name: optional string` @@ -7133,7 +7417,7 @@ Schema name: `LiveSessionStarted` Whether to store the session for later forking and recording download. Defaults to false for new sessions. - - `triggers: optional array of object { decisions, event_type, type }` + - `triggers: optional array of DecisionTrigger` At most one Decisions trigger per transcript event type. Triggers run independently of delegation. On update, omit triggers to keep the current configuration, send a list to replace it, or send an empty list to disable triggers. @@ -7141,114 +7425,16 @@ Schema name: `LiveSessionStarted` Questions evaluated using the current transcript and the session's shared Decision items. - - `questions: array of Predicate { instructions, type, name } or Choice { choices, instructions, type, name } or Score { instructions, levels, type, name }` + - `questions: array of DecisionQuestion` Native Decision API questions evaluated together, in order. - - `Predicate object { instructions, type, name }` - - Estimate how likely it is that a statement about the input is true. - - - `instructions: string or array of DecisionQuestionInputPart` - - - `string` - - - `array of DecisionQuestionInputPart` - - - `DecisionQuestionInputText object { text, type }` - - - `DecisionQuestionInputImage object { image_url, type, detail }` - - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. - - - `DecisionInputJSON object { data, type }` - - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. - - - `type: "predicate"` - - The type of the object. Always `predicate`. - - - `"predicate"` - - - `name: optional string` - - `Choice object { choices, instructions, type, name }` - Choose from the supplied options based on the input. - - - `choices: array of object { value, description }` - - Provide between 2 and 255 choices. Each choice must be unique. - - - `value: string or boolean` - - Choice values are typed: a string and a boolean with the same text are distinct. - - - `string` - - - `boolean` - - - `description: optional string` - - - `instructions: string or array of DecisionQuestionInputPart` - - - `string` - - - `array of DecisionQuestionInputPart` - - - `DecisionQuestionInputText object { text, type }` - - - `DecisionQuestionInputImage object { image_url, type, detail }` - - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. - - - `DecisionInputJSON object { data, type }` - - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. - - - `type: "choice"` - - The type of the object. Always `choice`. - - - `"choice"` - - - `name: optional string` + - `Predicate object { instructions, type, name }` - `Score object { instructions, levels, type, name }` - Rate the input against the supplied ordered levels. - - - `instructions: string or array of DecisionQuestionInputPart` - - - `string` - - - `array of DecisionQuestionInputPart` - - - `DecisionQuestionInputText object { text, type }` - - - `DecisionQuestionInputImage object { image_url, type, detail }` - - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. - - - `DecisionInputJSON object { data, type }` - - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. - - - `levels: array of object { label, description }` - - - `label: string` - - - `description: optional string` - - - `type: "score"` - - The type of the object. Always `score`. - - - `"score"` - - - `name: optional string` - - `event_type: "session.input_transcript.delta" or "session.output_transcript.delta"` - `"session.input_transcript.delta"` @@ -8143,39 +8329,47 @@ Schema name: `LiveSessionUpdated` - `Decisions object { decisions, type, acknowledgement_delay_ms }` - - `decisions: object { model, questions }` + - `decisions: DecisionsDelegationConfig` - `model: string` - - `questions: array of Predicate { instructions, type, name } or Choice { choices, instructions, type, name } or Score { instructions, levels, type, name }` + - `questions: array of DecisionQuestion` Native Decision API questions evaluated together, in order. - - `Predicate object { instructions, type, name }` + - `Choice object { choices, instructions, type, name }` + + - `choices: array of DecisionChoiceOption` + + - `value: string or boolean` + + - `string` + + - `boolean` - Estimate how likely it is that a statement about the input is true. + - `description: optional string` - - `instructions: string or array of DecisionQuestionInputPart` + - `instructions: string or array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` - `string` - - `array of DecisionQuestionInputPart` + - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` - - `DecisionQuestionInputText object { text, type }` + - `DecisionInputText object { text, type }` - `text: string` + The text input to the model. + - `type: "input_text"` - `"input_text"` - - `DecisionQuestionInputImage object { image_url, type, detail }` - - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. + - `InputImage object { image_url, type, detail }` - `image_url: string` - A base64-encoded image in a data URL or a publicly accessible HTTP(S) image URL. + A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `type: "input_image"` @@ -8183,7 +8377,7 @@ Schema name: `LiveSessionUpdated` - `detail: optional "low" or "high" or "auto" or "original" or null` - The image detail level, using the selected model's image profile. Defaults to auto. + The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`. - `"low"` @@ -8193,13 +8387,61 @@ Schema name: `LiveSessionUpdated` - `"original"` - - `DecisionInputJSON object { data, type }` + - `InputJSON object { data, type }` + + - `data: map[unknown] or array of map[unknown]` + + - `LiveDecisionJSONObject = map[unknown]` + + - `array of map[unknown]` + + - `type: "input_json"` + + - `"input_json"` + + - `type: "choice"` + + - `"choice"` + + - `name: optional string` + + - `Predicate object { instructions, type, name }` + + - `instructions: string or array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` + + - `string` + + - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` + + - `DecisionInputText object { text, type }` + + - `InputImage object { image_url, type, detail }` + + - `image_url: string` + + A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. + + - `type: "input_image"` + + - `"input_image"` + + - `detail: optional "low" or "high" or "auto" or "original" or null` + + The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`. + + - `"low"` + + - `"high"` + + - `"auto"` + + - `"original"` - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. + - `InputJSON object { data, type }` - `data: map[unknown] or array of map[unknown]` - - `map[unknown]` + - `LiveDecisionJSONObject = map[unknown]` - `array of map[unknown]` @@ -8209,73 +8451,53 @@ Schema name: `LiveSessionUpdated` - `type: "predicate"` - The type of the object. Always `predicate`. - - `"predicate"` - `name: optional string` - - `Choice object { choices, instructions, type, name }` - - Choose from the supplied options based on the input. - - - `choices: array of object { value, description }` - - Provide between 2 and 255 choices. Each choice must be unique. - - - `value: string or boolean` - - Choice values are typed: a string and a boolean with the same text are distinct. - - - `string` - - - `boolean` - - - `description: optional string` + - `Score object { instructions, levels, type, name }` - - `instructions: string or array of DecisionQuestionInputPart` + - `instructions: string or array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` - `string` - - `array of DecisionQuestionInputPart` - - - `DecisionQuestionInputText object { text, type }` + - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` - - `DecisionQuestionInputImage object { image_url, type, detail }` + - `DecisionInputText object { text, type }` - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. + - `InputImage object { image_url, type, detail }` - - `DecisionInputJSON object { data, type }` + - `image_url: string` - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. + A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - - `type: "choice"` + - `type: "input_image"` - The type of the object. Always `choice`. + - `"input_image"` - - `"choice"` + - `detail: optional "low" or "high" or "auto" or "original" or null` - - `name: optional string` + The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`. - - `Score object { instructions, levels, type, name }` + - `"low"` - Rate the input against the supplied ordered levels. + - `"high"` - - `instructions: string or array of DecisionQuestionInputPart` + - `"auto"` - - `string` + - `"original"` - - `array of DecisionQuestionInputPart` + - `InputJSON object { data, type }` - - `DecisionQuestionInputText object { text, type }` + - `data: map[unknown] or array of map[unknown]` - - `DecisionQuestionInputImage object { image_url, type, detail }` + - `LiveDecisionJSONObject = map[unknown]` - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. + - `array of map[unknown]` - - `DecisionInputJSON object { data, type }` + - `type: "input_json"` - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. + - `"input_json"` - `levels: array of object { label, description }` @@ -8285,8 +8507,6 @@ Schema name: `LiveSessionUpdated` - `type: "score"` - The type of the object. Always `score`. - - `"score"` - `name: optional string` @@ -8455,7 +8675,7 @@ Schema name: `LiveSessionUpdated` Whether to store the session for later forking and recording download. Defaults to false for new sessions. - - `triggers: optional array of object { decisions, event_type, type }` + - `triggers: optional array of DecisionTrigger` At most one Decisions trigger per transcript event type. Triggers run independently of delegation. On update, omit triggers to keep the current configuration, send a list to replace it, or send an empty list to disable triggers. @@ -8463,189 +8683,406 @@ Schema name: `LiveSessionUpdated` Questions evaluated using the current transcript and the session's shared Decision items. - - `questions: array of Predicate { instructions, type, name } or Choice { choices, instructions, type, name } or Score { instructions, levels, type, name }` + - `questions: array of DecisionQuestion` Native Decision API questions evaluated together, in order. + - `Choice object { choices, instructions, type, name }` + - `Predicate object { instructions, type, name }` - Estimate how likely it is that a statement about the input is true. + - `Score object { instructions, levels, type, name }` + + - `event_type: "session.input_transcript.delta" or "session.output_transcript.delta"` - - `instructions: string or array of DecisionQuestionInputPart` + - `"session.input_transcript.delta"` - - `string` + - `"session.output_transcript.delta"` + + - `type: "decisions"` + + - `"decisions"` + +- `type: "session.updated"` + + The event type, always `session.updated`. + + - `"session.updated"` + +- `client_event_id: optional string` + + The event_id of the client command associated with this server event, when supplied. + +#### Example + +```json +{ + "type": "session.updated", + "event_id": "evt_updated_001", + "client_event_id": "evt_update_001", + "session": { + "id": "live_def456", + "model": "gpt-live-1", + "status": "active", + "expires_at": 1788555600, + "instructions": "Help the caller plan a restaurant reservation. Confirm details before booking.", + "input": [], + "audio": { + "format": { + "type": "audio/pcm", + "rate": 24000 + }, + "output": { + "voice": "marin" + } + }, + "delegation": { + "type": "responses", + "responses": { + "model": "gpt-6-astra", + "instructions": "Check restaurant availability. Ask before confirming a booking.", + "max_output_tokens": 1024, + "tools": [] + } + } + } +} +``` + + + +### session.input_audio.muted + +Acknowledges a session.input_audio.mute command. An independent input mute sends silence to the model and preserves sideband audio reflection. Fixture playback does not emit this event. + +#### Schema + +Schema name: `LiveInputAudioMuted` + +- `event_id: string` + + The unique ID of the Live server event. + +- `type: "session.input_audio.muted"` + + The event type, always `session.input_audio.muted`. + + - `"session.input_audio.muted"` + +- `client_event_id: optional string` + + The event_id of the client command associated with this server event, when supplied. + +#### Example + +```json +{ + "type": "session.input_audio.muted", + "event_id": "evt_muted_001", + "client_event_id": "evt_mute_001" +} +``` + + + +### session.input_audio.unmuted + +Acknowledges a session.input_audio.unmute command, removing the independent input mute. An active audio fixture still pauses inference until playback finishes. Fixture playback does not emit this event. + +#### Schema + +Schema name: `LiveInputAudioUnmuted` + +- `event_id: string` + + The unique ID of the Live server event. + +- `type: "session.input_audio.unmuted"` + + The event type, always `session.input_audio.unmuted`. + + - `"session.input_audio.unmuted"` + +- `client_event_id: optional string` + + The event_id of the client command associated with this server event, when supplied. + +#### Example + +```json +{ + "type": "session.input_audio.unmuted", + "event_id": "evt_unmuted_001", + "client_event_id": "evt_unmute_001" +} +``` + + + +### session.output_audio.fixture.playing + +The existing playback path has accepted the validated audio fixture. This acknowledgment does not identify when the listener receives the first sample. The optional client_event_id echoes the play command. + +#### Schema + +Schema name: `LiveOutputAudioFixturePlaying` + +- `event_id: string` + + The unique ID of the Live server event. + +- `type: "session.output_audio.fixture.playing"` + + - `"session.output_audio.fixture.playing"` + +- `client_event_id: optional string` + + The event_id of the client command associated with this server event, when supplied. + +#### Example + +```json +{ + "type": "session.output_audio.fixture.playing", + "event_id": "evt_playing_001", + "client_event_id": "evt_play_001" +} +``` + + + +### session.output_audio.fixture.played + +The complete audio fixture has drained from the server mixer and normal inference has resumed. Transport buffers may still contain audio; this event does not prove listener-side completion. The optional client_event_id echoes the play command. This event is not emitted for canceled or failed playback. + +#### Schema + +Schema name: `LiveOutputAudioFixturePlayed` + +- `event_id: string` + + The unique ID of the Live server event. + +- `type: "session.output_audio.fixture.played"` + + - `"session.output_audio.fixture.played"` + +- `client_event_id: optional string` + + The event_id of the client command associated with this server event, when supplied. + +#### Example + +```json +{ + "type": "session.output_audio.fixture.played", + "event_id": "evt_played_001", + "client_event_id": "evt_play_001" +} +``` + + + +### session.instructions.appended + +Returned when a session.instructions.append command is accepted into the Live session timeline. Acknowledges the appended instructions without guaranteeing that the model has acted on them. + +#### Schema + +Schema name: `LiveInstructionsAppended` + +- `end_ms: number` + + The end of this event on the Live session timeline, in milliseconds from the beginning of the session. For appended context, this can equal start_ms. + +- `event_id: string` + + The unique ID of the Live server event. + +- `start_ms: number` - - `array of DecisionQuestionInputPart` + The start of this event on the Live session timeline, in milliseconds from the beginning of the session. - - `DecisionQuestionInputText object { text, type }` +- `type: "session.instructions.appended"` - - `DecisionQuestionInputImage object { image_url, type, detail }` + The event type, always `session.instructions.appended`. - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. + - `"session.instructions.appended"` - - `DecisionInputJSON object { data, type }` +- `client_event_id: optional string` - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. + The event_id of the client command associated with this server event, when supplied. - - `type: "predicate"` +#### Example - The type of the object. Always `predicate`. +```json +{ + "type": "session.instructions.appended", + "event_id": "evt_instructions_002", + "client_event_id": "evt_instructions_001", + "start_ms": 1200, + "end_ms": 1400 +} +``` - - `"predicate"` + - - `name: optional string` +### session.thinking.appended - - `Choice object { choices, instructions, type, name }` +Returned when a session.thinking.append command is accepted into the Live session timeline. Acknowledges the added reasoning context without guaranteeing any spoken output. - Choose from the supplied options based on the input. +#### Schema - - `choices: array of object { value, description }` +Schema name: `LiveThinkingAppended` - Provide between 2 and 255 choices. Each choice must be unique. +- `end_ms: number` - - `value: string or boolean` + The end of this event on the Live session timeline, in milliseconds from the beginning of the session. For appended context, this can equal start_ms. - Choice values are typed: a string and a boolean with the same text are distinct. +- `event_id: string` - - `string` + The unique ID of the Live server event. - - `boolean` +- `start_ms: number` - - `description: optional string` + The start of this event on the Live session timeline, in milliseconds from the beginning of the session. - - `instructions: string or array of DecisionQuestionInputPart` +- `type: "session.thinking.appended"` - - `string` + The event type, always `session.thinking.appended`. - - `array of DecisionQuestionInputPart` + - `"session.thinking.appended"` - - `DecisionQuestionInputText object { text, type }` +- `client_event_id: optional string` - - `DecisionQuestionInputImage object { image_url, type, detail }` + The event_id of the client command associated with this server event, when supplied. - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. +#### Example - - `DecisionInputJSON object { data, type }` +```json +{ + "type": "session.thinking.appended", + "event_id": "evt_thinking_002", + "client_event_id": "evt_thinking_001", + "start_ms": 4600, + "end_ms": 4800 +} +``` - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. + - - `type: "choice"` +### session.commentary.appended - The type of the object. Always `choice`. +Returned when a session.commentary.append command is accepted into the Live session timeline. Acknowledges the added commentary without guaranteeing exact wording or completed audio playback. - - `"choice"` +#### Schema - - `name: optional string` +Schema name: `LiveCommentaryAppended` - - `Score object { instructions, levels, type, name }` +- `end_ms: number` - Rate the input against the supplied ordered levels. + The end of this event on the Live session timeline, in milliseconds from the beginning of the session. For appended context, this can equal start_ms. - - `instructions: string or array of DecisionQuestionInputPart` +- `event_id: string` - - `string` + The unique ID of the Live server event. - - `array of DecisionQuestionInputPart` +- `start_ms: number` - - `DecisionQuestionInputText object { text, type }` + The start of this event on the Live session timeline, in milliseconds from the beginning of the session. - - `DecisionQuestionInputImage object { image_url, type, detail }` +- `type: "session.commentary.appended"` - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. + The event type, always `session.commentary.appended`. - - `DecisionInputJSON object { data, type }` + - `"session.commentary.appended"` - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. +- `client_event_id: optional string` - - `levels: array of object { label, description }` + The event_id of the client command associated with this server event, when supplied. - - `label: string` +#### Example - - `description: optional string` +```json +{ + "type": "session.commentary.appended", + "event_id": "evt_commentary_002", + "client_event_id": "evt_commentary_001", + "start_ms": 5200, + "end_ms": 5400 +} +``` - - `type: "score"` + - The type of the object. Always `score`. +### session.output_audio.delta - - `"score"` +An audio chunk generated by the Live model. Decode and play primary WebSocket chunks in delivery order using the configured session audio format. Sideband connections receive reflected output audio with timestamps. - - `name: optional string` +#### Schema - - `event_type: "session.input_transcript.delta" or "session.output_transcript.delta"` +Schema name: `LiveOutputAudioDelta` - - `"session.input_transcript.delta"` +- `delta: string` - - `"session.output_transcript.delta"` + Base64-encoded raw audio. Primary WebSocket events use the session's configured format; reflected sideband events use mono PCM16LE at 24 kHz. - - `type: "decisions"` +- `type: "session.output_audio.delta"` - - `"decisions"` + The event type, always `session.output_audio.delta`. -- `type: "session.updated"` + - `"session.output_audio.delta"` - The event type, always `session.updated`. +- `end_ms: optional number` - - `"session.updated"` + Exclusive session-relative end in milliseconds. Required on reflected sideband events; omitted on the primary WebSocket. Dropped output frames leave gaps between reflected ranges. -- `client_event_id: optional string` +- `start_ms: optional number` - The event_id of the client command associated with this server event, when supplied. + Inclusive session-relative start in milliseconds. Required on reflected sideband events; omitted on the primary WebSocket. #### Example ```json { - "type": "session.updated", - "event_id": "evt_updated_001", - "client_event_id": "evt_update_001", - "session": { - "id": "live_def456", - "model": "gpt-live-1", - "status": "active", - "expires_at": 1788555600, - "instructions": "Help the caller plan a restaurant reservation. Confirm details before booking.", - "input": [], - "audio": { - "format": { - "type": "audio/pcm", - "rate": 24000 - }, - "output": { - "voice": "marin" - } - }, - "delegation": { - "type": "responses", - "responses": { - "model": "gpt-6-astra", - "instructions": "Check restaurant availability. Ask before confirming a booking.", - "max_output_tokens": 1024, - "tools": [] - } - } - } + "type": "session.output_audio.delta", + "delta": "AACAAIAAAIAAAP9/AIAAgA==", + "start_ms": 1000, + "end_ms": 1200 } ``` - + -### session.input_audio.muted +### session.input_transcript.delta -Acknowledges a session.input_audio.mute command. An independent input mute sends silence to the model and preserves sideband audio reflection. Fixture playback does not emit this event. +A transcript fragment for user input audio in the Live session. Accumulate fragments in delivery order; these events do not define complete turns or include a transcript-done event. #### Schema -Schema name: `LiveInputAudioMuted` +Schema name: `LiveInputTranscriptDelta` + +- `delta: string` + + The transcript text fragment for the audio in this time range. Append fragments in delivery order to build the transcript. + +- `end_ms: number` + + The end of this event on the Live session timeline, in milliseconds from the beginning of the session. For appended context, this can equal start_ms. - `event_id: string` The unique ID of the Live server event. -- `type: "session.input_audio.muted"` +- `start_ms: number` - The event type, always `session.input_audio.muted`. + The start of this event on the Live session timeline, in milliseconds from the beginning of the session. - - `"session.input_audio.muted"` +- `type: "session.input_transcript.delta"` + + The event type, always `session.input_transcript.delta`. + + - `"session.input_transcript.delta"` - `client_event_id: optional string` @@ -8655,31 +9092,45 @@ Schema name: `LiveInputAudioMuted` ```json { - "type": "session.input_audio.muted", - "event_id": "evt_muted_001", - "client_event_id": "evt_mute_001" + "type": "session.input_transcript.delta", + "event_id": "evt_input_transcript_001", + "delta": "A table for two at seven, please.", + "start_ms": 1600, + "end_ms": 3400 } ``` - + -### session.input_audio.unmuted +### session.output_transcript.delta -Acknowledges a session.input_audio.unmute command, removing the independent input mute. An active audio fixture still pauses inference until playback finishes. Fixture playback does not emit this event. +A transcript fragment for assistant output audio in the Live session. Accumulate fragments in delivery order; these events do not define complete turns or include a transcript-done event. #### Schema -Schema name: `LiveInputAudioUnmuted` +Schema name: `LiveOutputTranscriptDelta` + +- `delta: string` + + The transcript text fragment for the audio in this time range. Append fragments in delivery order to build the transcript. + +- `end_ms: number` + + The end of this event on the Live session timeline, in milliseconds from the beginning of the session. For appended context, this can equal start_ms. - `event_id: string` The unique ID of the Live server event. -- `type: "session.input_audio.unmuted"` +- `start_ms: number` - The event type, always `session.input_audio.unmuted`. + The start of this event on the Live session timeline, in milliseconds from the beginning of the session. - - `"session.input_audio.unmuted"` +- `type: "session.output_transcript.delta"` + + The event type, always `session.output_transcript.delta`. + + - `"session.output_transcript.delta"` - `client_event_id: optional string` @@ -8689,61 +9140,69 @@ Schema name: `LiveInputAudioUnmuted` ```json { - "type": "session.input_audio.unmuted", - "event_id": "evt_unmuted_001", - "client_event_id": "evt_unmute_001" + "type": "session.output_transcript.delta", + "event_id": "evt_output_transcript_001", + "delta": "Would you like me to reserve that table?", + "start_ms": 5400, + "end_ms": 7200 } ``` - + -### session.output_audio.fixture.playing +### session.delegation.created -The existing playback path has accepted the validated audio fixture. This acknowledgment does not identify when the listener receives the first sample. The optional client_event_id echoes the play command. +Returned when the Live model delegates work to your application, Responses, or Decisions. Contains delegation metadata and the position on the session timeline where the work was delegated. #### Schema -Schema name: `LiveOutputAudioFixturePlaying` +Schema name: `LiveDelegationCreated` -- `event_id: string` +- `delegation: object { id, target, type, response_id }` - The unique ID of the Live server event. + The delegated work identifier and destination. This object contains metadata, not the task text. -- `type: "session.output_audio.fixture.playing"` + - `id: string` - - `"session.output_audio.fixture.playing"` + The unique ID of the delegation. Use this as delegation_id when replying to client-owned work or correlating backend events. -- `client_event_id: optional string` + - `target: "client" or "responses" or "decisions"` - The event_id of the client command associated with this server event, when supplied. + Where the Live model delegated the work: `client`, `responses`, or `decisions`. -#### Example + - `"client" or "responses" or "decisions"` -```json -{ - "type": "session.output_audio.fixture.playing", - "event_id": "evt_playing_001", - "client_event_id": "evt_play_001" -} -``` + Where the Live model delegated the work: `client`, `responses`, or `decisions`. - + - `"client"` -### session.output_audio.fixture.played + - `"responses"` -The complete audio fixture has drained from the server mixer and normal inference has resumed. Transport buffers may still contain audio; this event does not prove listener-side completion. The optional client_event_id echoes the play command. This event is not emitted for canceled or failed playback. + - `"decisions"` -#### Schema + - `type: "delegation"` + + The object type, always `delegation`. + + - `"delegation"` + + - `response_id: optional string` -Schema name: `LiveOutputAudioFixturePlayed` + The ID of the Responses API response associated with a Responses delegation. Omitted for client delegations. - `event_id: string` The unique ID of the Live server event. -- `type: "session.output_audio.fixture.played"` +- `offset_ms: number` - - `"session.output_audio.fixture.played"` + The position on the Live session timeline where the delegation was created, in milliseconds from the beginning of the session. + +- `type: "session.delegation.created"` + + The event type, always `session.delegation.created`. + + - `"session.delegation.created"` - `client_event_id: optional string` @@ -8753,567 +9212,538 @@ Schema name: `LiveOutputAudioFixturePlayed` ```json { - "type": "session.output_audio.fixture.played", - "event_id": "evt_played_001", - "client_event_id": "evt_play_001" + "type": "session.delegation.created", + "event_id": "evt_delegation_001", + "offset_ms": 3600, + "delegation": { + "id": "del_abc123", + "type": "delegation", + "target": "client" + } } ``` - + -### session.instructions.appended +### decision.event -Returned when a session.instructions.append command is accepted into the Live session timeline. Acknowledges the appended instructions without guaranteeing that the model has acted on them. +A Decision API event for a Live delegation or transcript trigger. For a trigger, source_event_id identifies the transcript delta that caused this evaluation. #### Schema -Schema name: `LiveInstructionsAppended` +Schema name: `LiveDecisionEvent` -- `end_ms: number` +- `delegation_id: string or null` - The end of this event on the Live session timeline, in milliseconds from the beginning of the session. For appended context, this can equal start_ms. + The Live delegation ID, or null for a transcript trigger. -- `event_id: string` +- `event: object { decision, type }` - The unique ID of the Live server event. + - `decision: Decision` -- `start_ms: number` + The native Decision API response, including its model, ordered answers, and token usage. - The start of this event on the Live session timeline, in milliseconds from the beginning of the session. + - `answers: array of Predicate { name, probability, type } or Choice { choice, confidence, name, 2 more } or Score { confidence, name, probabilities, 2 more } or Refusal { name, type }` -- `type: "session.instructions.appended"` + Answers in question order. Any question can return a refusal instead of an answer; other questions can still receive answers. A refusal has `type: "refusal"` and the question's `name`, or `null` if it was unnamed. - The event type, always `session.instructions.appended`. + - `Predicate object { name, probability, type }` - - `"session.instructions.appended"` + - `name: string or null` -- `client_event_id: optional string` + - `probability: number` - The event_id of the client command associated with this server event, when supplied. + - `type: "predicate"` -#### Example + The type of the object. Always `predicate`. -```json -{ - "type": "session.instructions.appended", - "event_id": "evt_instructions_002", - "client_event_id": "evt_instructions_001", - "start_ms": 1200, - "end_ms": 1400 -} -``` + - `"predicate"` - + - `Choice object { choice, confidence, name, 2 more }` -### session.thinking.appended + - `choice: string or boolean` -Returned when a session.thinking.append command is accepted into the Live session timeline. Acknowledges the added reasoning context without guaranteeing any spoken output. + Choice values are typed: a string and a boolean with the same text are distinct. -#### Schema + - `string` -Schema name: `LiveThinkingAppended` + - `boolean` -- `end_ms: number` + - `confidence: number` - The end of this event on the Live session timeline, in milliseconds from the beginning of the session. For appended context, this can equal start_ms. + - `name: string or null` -- `event_id: string` + - `probabilities: array of object { probability, value }` - The unique ID of the Live server event. + - `probability: number` -- `start_ms: number` + - `value: string or boolean` - The start of this event on the Live session timeline, in milliseconds from the beginning of the session. + Choice values are typed: a string and a boolean with the same text are distinct. -- `type: "session.thinking.appended"` + - `string` - The event type, always `session.thinking.appended`. + - `boolean` - - `"session.thinking.appended"` + - `type: "choice"` -- `client_event_id: optional string` + The type of the object. Always `choice`. - The event_id of the client command associated with this server event, when supplied. + - `"choice"` -#### Example + - `Score object { confidence, name, probabilities, 2 more }` -```json -{ - "type": "session.thinking.appended", - "event_id": "evt_thinking_002", - "client_event_id": "evt_thinking_001", - "start_ms": 4600, - "end_ms": 4800 -} -``` + - `confidence: number` - + - `name: string or null` -### session.commentary.appended + - `probabilities: array of object { label, probability, value }` -Returned when a session.commentary.append command is accepted into the Live session timeline. Acknowledges the added commentary without guaranteeing exact wording or completed audio playback. + - `label: string` -#### Schema + - `probability: number` -Schema name: `LiveCommentaryAppended` + - `value: number` -- `end_ms: number` + - `score: number` - The end of this event on the Live session timeline, in milliseconds from the beginning of the session. For appended context, this can equal start_ms. + - `type: "score"` -- `event_id: string` + The type of the object. Always `score`. - The unique ID of the Live server event. + - `"score"` -- `start_ms: number` + - `Refusal object { name, type }` - The start of this event on the Live session timeline, in milliseconds from the beginning of the session. + The model declined to answer this question. Other questions in the same request can still receive answers. -- `type: "session.commentary.appended"` + - `name: string or null` - The event type, always `session.commentary.appended`. + - `type: "refusal"` - - `"session.commentary.appended"` + The type of the object. Always `refusal`. -- `client_event_id: optional string` + - `"refusal"` - The event_id of the client command associated with this server event, when supplied. + - `model: string` -#### Example + The model used. -```json -{ - "type": "session.commentary.appended", - "event_id": "evt_commentary_002", - "client_event_id": "evt_commentary_001", - "start_ms": 5200, - "end_ms": 5400 -} -``` + - `usage: object { input_tokens, input_tokens_details, output_tokens, 2 more }` - + Token usage for the request. -### session.output_audio.delta + - `input_tokens: number` -An audio chunk generated by the Live model. Decode and play primary WebSocket chunks in delivery order using the configured session audio format. Sideband connections receive reflected output audio with timestamps. + - `input_tokens_details: object { cache_write_tokens, cached_tokens }` -#### Schema + - `cache_write_tokens: number` -Schema name: `LiveOutputAudioDelta` + - `cached_tokens: number` -- `delta: string` + - `output_tokens: number` - Base64-encoded raw audio. Primary WebSocket events use the session's configured format; reflected sideband events use mono PCM16LE at 24 kHz. + - `output_tokens_details: object { reasoning_tokens }` -- `type: "session.output_audio.delta"` + - `reasoning_tokens: number` - The event type, always `session.output_audio.delta`. + - `total_tokens: number` - - `"session.output_audio.delta"` + - `type: "decision.completed"` -- `end_ms: optional number` + - `"decision.completed"` - Exclusive session-relative end in milliseconds. Required on reflected sideband events; omitted on the primary WebSocket. Dropped output frames leave gaps between reflected ranges. +- `event_id: string` -- `start_ms: optional number` + The unique ID of this Live server event. - Inclusive session-relative start in milliseconds. Required on reflected sideband events; omitted on the primary WebSocket. +- `source_event_id: string or null` + + The event_id of the transcript delta that fired this trigger, or null for a delegation. + +- `source_event_type: "session.input_transcript.delta" or "session.output_transcript.delta" or null` + + - `"session.input_transcript.delta" or "session.output_transcript.delta"` + + - `"session.input_transcript.delta"` + + - `"session.output_transcript.delta"` + +- `trigger_id: string or null` + + The Live-assigned ID of this trigger firing, or null for a delegation. + +- `type: "decision.event"` + + - `"decision.event"` #### Example ```json { - "type": "session.output_audio.delta", - "delta": "AACAAIAAAIAAAP9/AIAAgA==", - "start_ms": 1000, - "end_ms": 1200 + "type": "decision.event", + "event_id": "evt_decision_1", + "delegation_id": "del_abc123", + "trigger_id": null, + "source_event_type": null, + "source_event_id": null, + "event": { + "type": "decision.completed", + "decision": { + "model": "gpt-6-luna", + "answers": [ + { + "type": "predicate", + "name": "damaged", + "probability": 0.95 + } + ], + "usage": { + "input_tokens": 42, + "input_tokens_details": { + "cached_tokens": 0, + "cache_write_tokens": 0 + }, + "output_tokens": 0, + "output_tokens_details": { + "reasoning_tokens": 0 + }, + "total_tokens": 42 + } + } + } } ``` - + -### session.input_transcript.delta +### decision.item.created -A transcript fragment for user input audio in the Live session. Accumulate fragments in delivery order; these events do not define complete turns or include a transcript-done event. +An input item was appended for future decisions. #### Schema -Schema name: `LiveInputTranscriptDelta` +Schema name: `LiveDecisionItemCreated` -- `delta: string` +- `event_id: string` - The transcript text fragment for the audio in this time range. Append fragments in delivery order to build the transcript. + The unique ID of the Live server event. -- `end_ms: number` +- `item: Message { id, content, role, type } or Message { id, content, role, type } or Message { id, content, role, type } or 5 more` - The end of this event on the Live session timeline, in milliseconds from the beginning of the session. For appended context, this can equal start_ms. + - `Message object { id, content, role, type }` -- `event_id: string` + - `id: string` - The unique ID of the Live server event. + - `content: string or array of InputText { text, type } or InputImage { image_url, type, detail } or InputJSON { data, type }` -- `start_ms: number` + The text input to the model. + + - `string` + + The text input to the model. - The start of this event on the Live session timeline, in milliseconds from the beginning of the session. + - `array of InputText { text, type } or InputImage { image_url, type, detail } or InputJSON { data, type }` -- `type: "session.input_transcript.delta"` + - `InputText object { text, type }` - The event type, always `session.input_transcript.delta`. + - `text: string` - - `"session.input_transcript.delta"` + The text input to the model. -- `client_event_id: optional string` + - `type: "input_text"` - The event_id of the client command associated with this server event, when supplied. + - `"input_text"` -#### Example + - `InputImage object { image_url, type, detail }` -```json -{ - "type": "session.input_transcript.delta", - "event_id": "evt_input_transcript_001", - "delta": "A table for two at seven, please.", - "start_ms": 1600, - "end_ms": 3400 -} -``` + - `image_url: string` - + A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. -### session.output_transcript.delta + - `type: "input_image"` -A transcript fragment for assistant output audio in the Live session. Accumulate fragments in delivery order; these events do not define complete turns or include a transcript-done event. + - `"input_image"` -#### Schema + - `detail: optional "low" or "high" or "auto" or "original" or null` -Schema name: `LiveOutputTranscriptDelta` + The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`. -- `delta: string` + - `"low"` - The transcript text fragment for the audio in this time range. Append fragments in delivery order to build the transcript. + - `"high"` -- `end_ms: number` + - `"auto"` - The end of this event on the Live session timeline, in milliseconds from the beginning of the session. For appended context, this can equal start_ms. + - `"original"` -- `event_id: string` + - `InputJSON object { data, type }` - The unique ID of the Live server event. + - `data: map[unknown] or array of map[unknown]` -- `start_ms: number` + - `LiveDecisionJSONObject = map[unknown]` - The start of this event on the Live session timeline, in milliseconds from the beginning of the session. + - `array of map[unknown]` -- `type: "session.output_transcript.delta"` + - `type: "input_json"` - The event type, always `session.output_transcript.delta`. + - `"input_json"` - - `"session.output_transcript.delta"` + - `role: "user"` -- `client_event_id: optional string` + The message role. Always `user`. - The event_id of the client command associated with this server event, when supplied. + - `"user"` -#### Example + - `type: optional "message"` -```json -{ - "type": "session.output_transcript.delta", - "event_id": "evt_output_transcript_001", - "delta": "Would you like me to reserve that table?", - "start_ms": 5400, - "end_ms": 7200 -} -``` + - `"message"` - + - `Message object { id, content, role, type }` -### session.delegation.created + - `id: string` -Returned when the Live model delegates work to your application, Responses, or Decisions. Contains delegation metadata and the position on the session timeline where the work was delegated. + - `content: string or array of DecisionInputText` -#### Schema + The text input to the model. -Schema name: `LiveDelegationCreated` + - `string` -- `delegation: object { id, target, type, response_id }` + The text input to the model. - The delegated work identifier and destination. This object contains metadata, not the task text. + - `array of DecisionInputText` - - `id: string` + - `text: string` - The unique ID of the delegation. Use this as delegation_id when replying to client-owned work or correlating backend events. + The text input to the model. - - `target: "client" or "responses" or "decisions"` + - `type: "input_text"` - Where the Live model delegated the work: `client`, `responses`, or `decisions`. + - `"input_text"` - - `"client" or "responses" or "decisions"` + - `role: "developer"` - Where the Live model delegated the work: `client`, `responses`, or `decisions`. + - `"developer"` - - `"client"` + - `type: optional "message"` - - `"responses"` + - `"message"` - - `"decisions"` + - `Message object { id, content, role, type }` - - `type: "delegation"` + - `id: string` - The object type, always `delegation`. + - `content: string or array of DecisionInputText` - - `"delegation"` + The text input to the model. - - `response_id: optional string` + - `string` - The ID of the Responses API response associated with a Responses delegation. Omitted for client delegations. + The text input to the model. -- `event_id: string` + - `array of DecisionInputText` - The unique ID of the Live server event. + - `text: string` -- `offset_ms: number` + The text input to the model. - The position on the Live session timeline where the delegation was created, in milliseconds from the beginning of the session. + - `type: "input_text"` -- `type: "session.delegation.created"` + - `role: "system"` - The event type, always `session.delegation.created`. + - `"system"` - - `"session.delegation.created"` + - `type: optional "message"` -- `client_event_id: optional string` + - `"message"` - The event_id of the client command associated with this server event, when supplied. + - `Message object { id, content, role, 2 more }` -#### Example + - `id: string` -```json -{ - "type": "session.delegation.created", - "event_id": "evt_delegation_001", - "offset_ms": 3600, - "delegation": { - "id": "del_abc123", - "type": "delegation", - "target": "client" - } -} -``` + - `content: string or array of OutputText { text, type } or Refusal { refusal, type }` - + The text input to the model. -### decision.event + - `string` -A Decision API event for a Live delegation or transcript trigger. For a trigger, source_event_id identifies the transcript delta that caused this evaluation. + The text input to the model. -#### Schema + - `array of OutputText { text, type } or Refusal { refusal, type }` -Schema name: `LiveDecisionEvent` + - `OutputText object { text, type }` -- `delegation_id: string or null` + - `text: string` - The Live delegation ID, or null for a transcript trigger. + The text content. -- `event: object { decision, type }` + - `type: "output_text"` - - `decision: Decision` + - `"output_text"` - The native Decision API response, including its model, ordered answers, and token usage. + - `Refusal object { refusal, type }` - - `answers: array of Predicate { name, probability, type } or Choice { choice, confidence, name, 2 more } or Score { confidence, name, probabilities, 2 more } or Refusal { name, type }` + - `refusal: string` - Answers in question order. Any question can return a refusal instead of an answer; other questions can still receive answers. A refusal has `type: "refusal"` and the question's `name`, or `null` if it was unnamed. + The refusal text. - - `Predicate object { name, probability, type }` + - `type: "refusal"` - - `name: string or null` + - `"refusal"` - - `probability: number` + - `role: "assistant"` - - `type: "predicate"` + - `"assistant"` - The type of the object. Always `predicate`. + - `phase: optional "commentary" or "final_answer" or null` - - `"predicate"` + Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`). For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend phase on all assistant messages — dropping it can degrade performance. Not used for user messages. - - `Choice object { choice, confidence, name, 2 more }` + - `"commentary"` - - `choice: string or boolean` + - `"final_answer"` - Choice values are typed: a string and a boolean with the same text are distinct. + - `type: optional "message"` - - `string` + - `"message"` - - `boolean` + - `FunctionCall object { id, arguments, call_id, 4 more }` - - `confidence: number` + - `id: string` - - `name: string or null` + - `arguments: string` - - `probabilities: array of object { probability, value }` + The function arguments as a JSON string. - - `probability: number` + - `call_id: string` - - `value: string or boolean` + The unique ID of the function tool call generated by the model. - Choice values are typed: a string and a boolean with the same text are distinct. + - `name: string` - - `string` + - `type: "function_call"` - - `boolean` + The item type. Always `function_call`. - - `type: "choice"` + - `"function_call"` - The type of the object. Always `choice`. + - `namespace: optional string or null` - - `"choice"` + The namespace of the function to call. - - `Score object { confidence, name, probabilities, 2 more }` + - `status: optional "in_progress" or "completed" or "incomplete" or null` - - `confidence: number` + - `"in_progress"` - - `name: string or null` + - `"completed"` - - `probabilities: array of object { label, probability, value }` + - `"incomplete"` - - `label: string` + - `FunctionCallOutput object { id, call_id, output, 2 more }` - - `probability: number` + - `id: string` - - `value: number` + - `call_id: string` - - `score: number` + The unique ID of the function tool call generated by the model. - - `type: "score"` + - `output: string or array of DecisionInputText or InputImage { image_url, type, detail }` - The type of the object. Always `score`. + The text input to the model. - - `"score"` + - `string` - - `Refusal object { name, type }` + The text input to the model. - The model declined to answer this question. Other questions in the same request can still receive answers. + - `array of DecisionInputText or InputImage { image_url, type, detail }` - - `name: string or null` + - `DecisionInputText object { text, type }` - - `type: "refusal"` + - `text: string` - The type of the object. Always `refusal`. + The text input to the model. - - `"refusal"` + - `type: "input_text"` - - `model: string` + - `InputImage object { image_url, type, detail }` - The model used. + - `image_url: string` - - `usage: object { input_tokens, input_tokens_details, output_tokens, 2 more }` + A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - Token usage for the request. + - `type: "input_image"` - - `input_tokens: number` + - `"input_image"` - - `input_tokens_details: object { cache_write_tokens, cached_tokens }` + - `detail: optional "low" or "high" or "auto" or "original" or null` - - `cache_write_tokens: number` + The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`. - - `cached_tokens: number` + - `"low"` - - `output_tokens: number` + - `"high"` - - `output_tokens_details: object { reasoning_tokens }` + - `"auto"` - - `reasoning_tokens: number` + - `"original"` - - `total_tokens: number` + - `type: "function_call_output"` - - `type: "decision.completed"` + The type of the function tool call output. Always `function_call_output`. - - `"decision.completed"` + - `"function_call_output"` -- `event_id: string` + - `status: optional "in_progress" or "completed" or "incomplete" or null` - The unique ID of this Live server event. + - `"in_progress"` -- `source_event_id: string or null` + - `"completed"` - The event_id of the transcript delta that fired this trigger, or null for a delegation. + - `"incomplete"` -- `source_event_type: "session.input_transcript.delta" or "session.output_transcript.delta" or null` + - `CustomToolCall object { id, call_id, input, 4 more }` - - `"session.input_transcript.delta" or "session.output_transcript.delta"` + - `id: string` - - `"session.input_transcript.delta"` + - `call_id: string` - - `"session.output_transcript.delta"` + The unique ID of the function tool call generated by the model. -- `trigger_id: string or null` + - `input: string` - The Live-assigned ID of this trigger firing, or null for a delegation. + The input to the custom tool call. -- `type: "decision.event"` + - `name: string` - - `"decision.event"` + The name of the custom tool to call. -#### Example + - `type: "custom_tool_call"` -```json -{ - "type": "decision.event", - "event_id": "evt_decision_1", - "delegation_id": "del_abc123", - "trigger_id": null, - "source_event_type": null, - "source_event_id": null, - "event": { - "type": "decision.completed", - "decision": { - "model": "gpt-6-luna", - "answers": [ - { - "type": "predicate", - "name": "damaged", - "probability": 0.95 - } - ], - "usage": { - "input_tokens": 42, - "input_tokens_details": { - "cached_tokens": 0, - "cache_write_tokens": 0 - }, - "output_tokens": 0, - "output_tokens_details": { - "reasoning_tokens": 0 - }, - "total_tokens": 42 - } - } - } -} -``` + The item type. Always `custom_tool_call`. - + - `"custom_tool_call"` -### decision.item.created + - `namespace: optional string or null` -An input item was appended for future decisions. + The namespace of the function to call. -#### Schema + - `status: optional "in_progress" or "completed" or "incomplete" or null` -Schema name: `LiveDecisionItemCreated` + - `"in_progress"` -- `event_id: string` + - `"completed"` - The unique ID of the Live server event. + - `"incomplete"` -- `item: object { id, content, role, type }` + - `CustomToolCallOutput object { id, call_id, output, 2 more }` - `id: string` - The ID of the stored Decision input item. + - `call_id: string` + + The unique ID of the function tool call generated by the model. - - `content: string or array of DecisionInputText or InputImage { image_url, type, detail }` + - `output: string or array of DecisionInputText or InputImage { image_url, type, detail }` The text input to the model. @@ -9325,26 +9755,14 @@ Schema name: `LiveDecisionItemCreated` - `DecisionInputText object { text, type }` - - `text: string` - - The text input to the model. - - - `type: "input_text"` - - The type of the input item. Always `input_text`. - - - `"input_text"` - - `InputImage object { image_url, type, detail }` - `image_url: string` - An inline image encoded as a data URL. + A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `type: "input_image"` - The type of the input item. Always `input_image`. - - `"input_image"` - `detail: optional "low" or "high" or "auto" or "original" or null` @@ -9359,15 +9777,17 @@ Schema name: `LiveDecisionItemCreated` - `"original"` - - `role: "user"` + - `type: "custom_tool_call_output"` - The message role. Always `user`. + - `"custom_tool_call_output"` - - `"user"` + - `status: optional "in_progress" or "completed" or "incomplete" or null` - - `type: optional "message"` + - `"in_progress"` - - `"message"` + - `"completed"` + + - `"incomplete"` - `type: "decision.item.created"` @@ -10401,39 +10821,47 @@ Schema name: `LiveSessionClosed` - `Decisions object { decisions, type, acknowledgement_delay_ms }` - - `decisions: object { model, questions }` + - `decisions: DecisionsDelegationConfig` - `model: string` - - `questions: array of Predicate { instructions, type, name } or Choice { choices, instructions, type, name } or Score { instructions, levels, type, name }` + - `questions: array of DecisionQuestion` Native Decision API questions evaluated together, in order. - - `Predicate object { instructions, type, name }` + - `Choice object { choices, instructions, type, name }` + + - `choices: array of DecisionChoiceOption` + + - `value: string or boolean` + + - `string` + + - `boolean` - Estimate how likely it is that a statement about the input is true. + - `description: optional string` - - `instructions: string or array of DecisionQuestionInputPart` + - `instructions: string or array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` - `string` - - `array of DecisionQuestionInputPart` + - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` - - `DecisionQuestionInputText object { text, type }` + - `DecisionInputText object { text, type }` - `text: string` + The text input to the model. + - `type: "input_text"` - `"input_text"` - - `DecisionQuestionInputImage object { image_url, type, detail }` - - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. + - `InputImage object { image_url, type, detail }` - `image_url: string` - A base64-encoded image in a data URL or a publicly accessible HTTP(S) image URL. + A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `type: "input_image"` @@ -10441,7 +10869,7 @@ Schema name: `LiveSessionClosed` - `detail: optional "low" or "high" or "auto" or "original" or null` - The image detail level, using the selected model's image profile. Defaults to auto. + The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`. - `"low"` @@ -10451,13 +10879,11 @@ Schema name: `LiveSessionClosed` - `"original"` - - `DecisionInputJSON object { data, type }` - - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. + - `InputJSON object { data, type }` - `data: map[unknown] or array of map[unknown]` - - `map[unknown]` + - `LiveDecisionJSONObject = map[unknown]` - `array of map[unknown]` @@ -10465,75 +10891,105 @@ Schema name: `LiveSessionClosed` - `"input_json"` - - `type: "predicate"` - - The type of the object. Always `predicate`. + - `type: "choice"` - - `"predicate"` + - `"choice"` - `name: optional string` - - `Choice object { choices, instructions, type, name }` + - `Predicate object { instructions, type, name }` - Choose from the supplied options based on the input. + - `instructions: string or array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` - - `choices: array of object { value, description }` + - `string` - Provide between 2 and 255 choices. Each choice must be unique. + - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` - - `value: string or boolean` + - `DecisionInputText object { text, type }` - Choice values are typed: a string and a boolean with the same text are distinct. + - `InputImage object { image_url, type, detail }` - - `string` + - `image_url: string` - - `boolean` + A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - - `description: optional string` + - `type: "input_image"` - - `instructions: string or array of DecisionQuestionInputPart` + - `"input_image"` - - `string` + - `detail: optional "low" or "high" or "auto" or "original" or null` + + The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`. - - `array of DecisionQuestionInputPart` + - `"low"` - - `DecisionQuestionInputText object { text, type }` + - `"high"` - - `DecisionQuestionInputImage object { image_url, type, detail }` + - `"auto"` - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. + - `"original"` - - `DecisionInputJSON object { data, type }` + - `InputJSON object { data, type }` - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. + - `data: map[unknown] or array of map[unknown]` - - `type: "choice"` + - `LiveDecisionJSONObject = map[unknown]` - The type of the object. Always `choice`. + - `array of map[unknown]` - - `"choice"` + - `type: "input_json"` + + - `"input_json"` + + - `type: "predicate"` + + - `"predicate"` - `name: optional string` - `Score object { instructions, levels, type, name }` - Rate the input against the supplied ordered levels. - - - `instructions: string or array of DecisionQuestionInputPart` + - `instructions: string or array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` - `string` - - `array of DecisionQuestionInputPart` + - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` + + - `DecisionInputText object { text, type }` + + - `InputImage object { image_url, type, detail }` + + - `image_url: string` + + A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. + + - `type: "input_image"` + + - `"input_image"` + + - `detail: optional "low" or "high" or "auto" or "original" or null` + + The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`. + + - `"low"` + + - `"high"` + + - `"auto"` + + - `"original"` + + - `InputJSON object { data, type }` - - `DecisionQuestionInputText object { text, type }` + - `data: map[unknown] or array of map[unknown]` - - `DecisionQuestionInputImage object { image_url, type, detail }` + - `LiveDecisionJSONObject = map[unknown]` - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. + - `array of map[unknown]` - - `DecisionInputJSON object { data, type }` + - `type: "input_json"` - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. + - `"input_json"` - `levels: array of object { label, description }` @@ -10543,8 +10999,6 @@ Schema name: `LiveSessionClosed` - `type: "score"` - The type of the object. Always `score`. - - `"score"` - `name: optional string` @@ -10713,7 +11167,7 @@ Schema name: `LiveSessionClosed` Whether to store the session for later forking and recording download. Defaults to false for new sessions. - - `triggers: optional array of object { decisions, event_type, type }` + - `triggers: optional array of DecisionTrigger` At most one Decisions trigger per transcript event type. Triggers run independently of delegation. On update, omit triggers to keep the current configuration, send a list to replace it, or send an empty list to disable triggers. @@ -10721,114 +11175,16 @@ Schema name: `LiveSessionClosed` Questions evaluated using the current transcript and the session's shared Decision items. - - `questions: array of Predicate { instructions, type, name } or Choice { choices, instructions, type, name } or Score { instructions, levels, type, name }` + - `questions: array of DecisionQuestion` Native Decision API questions evaluated together, in order. - - `Predicate object { instructions, type, name }` - - Estimate how likely it is that a statement about the input is true. - - - `instructions: string or array of DecisionQuestionInputPart` - - - `string` - - - `array of DecisionQuestionInputPart` - - - `DecisionQuestionInputText object { text, type }` - - - `DecisionQuestionInputImage object { image_url, type, detail }` - - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. - - - `DecisionInputJSON object { data, type }` - - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. - - - `type: "predicate"` - - The type of the object. Always `predicate`. - - - `"predicate"` - - - `name: optional string` - - `Choice object { choices, instructions, type, name }` - Choose from the supplied options based on the input. - - - `choices: array of object { value, description }` - - Provide between 2 and 255 choices. Each choice must be unique. - - - `value: string or boolean` - - Choice values are typed: a string and a boolean with the same text are distinct. - - - `string` - - - `boolean` - - - `description: optional string` - - - `instructions: string or array of DecisionQuestionInputPart` - - - `string` - - - `array of DecisionQuestionInputPart` - - - `DecisionQuestionInputText object { text, type }` - - - `DecisionQuestionInputImage object { image_url, type, detail }` - - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. - - - `DecisionInputJSON object { data, type }` - - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. - - - `type: "choice"` - - The type of the object. Always `choice`. - - - `"choice"` - - - `name: optional string` + - `Predicate object { instructions, type, name }` - `Score object { instructions, levels, type, name }` - Rate the input against the supplied ordered levels. - - - `instructions: string or array of DecisionQuestionInputPart` - - - `string` - - - `array of DecisionQuestionInputPart` - - - `DecisionQuestionInputText object { text, type }` - - - `DecisionQuestionInputImage object { image_url, type, detail }` - - An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported. - - - `DecisionInputJSON object { data, type }` - - A JSON object or an array of objects rendered as text. Nested values may be any JSON value. Limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON. - - - `levels: array of object { label, description }` - - - `label: string` - - - `description: optional string` - - - `type: "score"` - - The type of the object. Always `score`. - - - `"score"` - - - `name: optional string` - - `event_type: "session.input_transcript.delta" or "session.output_transcript.delta"` - `"session.input_transcript.delta"`