diff --git a/en/resources/live/primary-websocket/index.md b/en/resources/live/primary-websocket/index.md
index 13ee61b1d85127736108ec27a906094e85d2d73d..aaaeae7edce505eb7e29cd6382206c9635999355 100644
--- a/en/resources/live/primary-websocket/index.md
+++ b/en/resources/live/primary-websocket/index.md
@@ -898,39 +898,47 @@ Schema name: `LiveSessionStartEvent`
- `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"`
@@ -938,7 +946,7 @@ Schema name: `LiveSessionStartEvent`
- `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"`
@@ -948,13 +956,11 @@ Schema name: `LiveSessionStartEvent`
- `"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]`
@@ -962,75 +968,105 @@ Schema name: `LiveSessionStartEvent`
- `"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.
- - `DecisionQuestionInputText object { text, type }`
+ - `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 }`
- - `DecisionQuestionInputImage object { image_url, type, detail }`
+ - `data: map[unknown] or array of map[unknown]`
+
+ - `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 }`
@@ -1040,8 +1076,6 @@ Schema name: `LiveSessionStartEvent`
- `type: "score"`
- The type of the object. Always `score`.
-
- `"score"`
- `name: optional string`
@@ -1210,7 +1244,7 @@ Schema name: `LiveSessionStartEvent`
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.
@@ -1218,114 +1252,16 @@ Schema name: `LiveSessionStartEvent`
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"`
@@ -2027,35 +1963,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`
- Estimate how likely it is that a statement about the input is true.
+ - `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"`
@@ -2063,7 +2007,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"`
@@ -2073,13 +2017,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]`
@@ -2087,75 +2029,105 @@ Schema name: `LiveSessionUpdateParam`
- `"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 }`
@@ -2165,13 +2137,11 @@ Schema name: `LiveSessionUpdateParam`
- `type: "score"`
- The type of the object. Always `score`.
-
- `"score"`
- `name: optional string`
- - `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.
@@ -2179,121 +2149,23 @@ Schema name: `LiveSessionUpdateParam`
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 }`
- - `instructions: string or array of DecisionQuestionInputPart`
+ - `event_type: "session.input_transcript.delta" or "session.output_transcript.delta"`
- - `string`
+ - `"session.input_transcript.delta"`
- - `array of DecisionQuestionInputPart`
+ - `"session.output_transcript.delta"`
- - `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`
-
- - `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"`
-
- - `"session.output_transcript.delta"`
-
- - `type: "decisions"`
+ - `type: "decisions"`
- `"decisions"`
@@ -2600,9 +2472,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`
- - `content: string or array of DecisionInputText or InputImage { image_url, type, detail }`
+ - `Message object { content, role, id, type }`
+
+ - `content: string or array of InputText { text, type } or InputImage { image_url, type, detail } or InputJSON { data, type }`
The text input to the model.
@@ -2610,9 +2484,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`
@@ -2620,20 +2494,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`
@@ -2648,6 +2518,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`.
@@ -2662,565 +2544,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.
- - `text: string`
+ - `ResponseInputMessageContentList = array of ResponseInputContent`
- The text output from the model.
+ A list of one or many input items to the model, containing different content
+ types.
- - `type: "output_text"`
+ - `ResponseInputText object { text, type, prompt_cache_breakpoint }`
- The type of the output text. Always `output_text`.
+ A text input to the model.
- - `"output_text"`
+ - `text: string`
- - `ResponseOutputRefusal object { refusal, type }`
+ The text input to the model.
- A refusal from the model.
+ - `type: "input_text"`
- - `refusal: string`
+ The type of the input item. Always `input_text`.
- The refusal explanation from the model.
+ - `"input_text"`
- - `type: "refusal"`
+ - `prompt_cache_breakpoint: optional object { mode }`
- The type of the refusal. Always `refusal`.
+ 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"`
+ - `mode: "explicit"`
- - `role: "assistant"`
+ The breakpoint mode. Always `explicit`.
- The role of the output message. Always `assistant`.
+ - `"explicit"`
- - `"assistant"`
+ - `ResponseInputImage object { detail, type, file_id, 2 more }`
- - `status: "in_progress" or "completed" or "incomplete"`
+ An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).
- The status of the message input. One of `in_progress`, `completed`, or
- `incomplete`. Populated when input items are returned via API.
+ - `detail: ImageDetail`
- - `"in_progress"`
+ The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.
- - `"completed"`
+ - `"low"`
- - `"incomplete"`
+ - `"high"`
- - `type: "message"`
+ - `"auto"`
- The type of the output message. Always `message`.
+ - `"original"`
- - `"message"`
+ - `type: "input_image"`
- - `phase: optional "commentary" or "final_answer" or null`
+ The type of the input item. Always `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.
+ - `"input_image"`
- - `"commentary"`
+ - `file_id: optional string or null`
- - `"final_answer"`
+ The ID of the file to be sent to the model.
- - `FileSearchCall object { id, queries, status, 2 more }`
+ - `image_url: optional string or null`
- 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 URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.
- - `id: string`
+ - `prompt_cache_breakpoint: optional object { mode }`
- The unique ID of the file search tool call.
+ 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.
- - `queries: array of string`
+ - `mode: "explicit"`
- The queries used to search for files.
+ The breakpoint mode. Always `explicit`.
- - `status: "in_progress" or "searching" or "completed" or 2 more`
+ - `"explicit"`
- The status of the file search tool call. One of `in_progress`,
- `searching`, `incomplete` or `failed`,
+ - `ResponseInputFile object { type, detail, file_data, 4 more }`
- - `"in_progress"`
+ A file input to the model.
- - `"searching"`
+ - `type: "input_file"`
- - `"completed"`
+ The type of the input item. Always `input_file`.
- - `"incomplete"`
+ - `"input_file"`
- - `"failed"`
+ - `detail: optional "auto" or "low" or "high"`
- - `type: "file_search_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`.
- The type of the file search tool call. Always `file_search_call`.
+ - `"auto"`
- - `"file_search_call"`
+ - `"low"`
- - `results: optional array of object { attributes, file_id, filename, 2 more } or null`
+ - `"high"`
- The results of the file search tool call.
+ - `file_data: optional string`
- - `attributes: optional map[string or number or boolean] or null`
+ The content 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.
+ - `file_id: optional string or null`
- - `string`
+ The ID of the file to be sent to the model.
- - `number`
+ - `file_url: optional string`
- - `boolean`
+ The URL of the file to be sent to the model.
- - `file_id: optional string`
+ - `filename: optional string`
- The unique ID of the file.
+ The name of the file to be sent to the model.
- - `filename: optional string`
+ - `prompt_cache_breakpoint: optional object { mode }`
- The name of the file.
+ 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.
- - `score: optional number`
+ - `mode: "explicit"`
- The relevance score of the file - a value between 0 and 1.
+ The breakpoint mode. Always `explicit`.
- - `text: optional string`
+ - `"explicit"`
- The text that was retrieved from the file.
+ - `role: "user" or "assistant" or "system" or "developer"`
- - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`
+ The role of the message input. One of `user`, `assistant`, `system`, or
+ `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.
+ - `"user"`
- - `id: string`
+ - `"assistant"`
- The unique ID of the computer call.
+ - `"system"`
- - `call_id: string`
+ - `"developer"`
- An identifier used when responding to the tool call with output.
+ - `phase: optional "commentary" or "final_answer" or null`
- - `pending_safety_checks: array of object { id, code, message }`
+ 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 pending safety checks for the computer call.
+ - `"commentary"`
- - `id: string`
+ - `"final_answer"`
- The ID of the pending safety check.
+ - `type: optional "message"`
- - `code: optional string or null`
+ The type of the message input. Always `message`.
- The type of the pending safety check.
+ - `"message"`
- - `message: optional string or null`
+ - `Message object { content, role, status, type }`
- Details about 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.
- - `status: "in_progress" or "completed" or "incomplete"`
+ - `content: ResponseInputMessageContentList`
- The status of the item. One of `in_progress`, `completed`, or
+ A list of one or many input items to the model, containing different content
+ types.
+
+ - `role: "user" or "system" or "developer"`
+
+ The role of the message input. One of `user`, `system`, or `developer`.
+
+ - `"user"`
+
+ - `"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"`
@@ -3229,288 +3112,285 @@ 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.
-
- - `Keypress object { keys, type }`
-
- A collection of keypresses the model would like to perform.
-
- - `keys: array of string`
+ - `start_index: number`
- The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key.
+ The index of the first character of the container file citation in the message.
- - `type: "keypress"`
+ - `type: "container_file_citation"`
- Specifies the event type. For a keypress action, this property is always set to `keypress`.
+ The type of the container file citation. Always `container_file_citation`.
- - `"keypress"`
+ - `"container_file_citation"`
- - `Move object { type, x, y, keys }`
+ - `FilePath object { file_id, index, type }`
- A mouse move action.
+ A path to a file.
- - `type: "move"`
+ - `file_id: string`
- Specifies the event type. For a move action, this property is always set to `move`.
+ The ID of the file.
- - `"move"`
+ - `index: number`
- - `x: number`
+ The index of the file in the list of files.
- The x-coordinate to move to.
+ - `type: "file_path"`
- - `y: number`
+ The type of the file path. Always `file_path`.
- The y-coordinate to move to.
+ - `"file_path"`
- - `keys: optional array of string or null`
+ - `logprobs: array of object { token, bytes, logprob, top_logprobs }`
- The keys being held while moving the mouse.
+ - `token: string`
- - `Screenshot object { type }`
+ - `bytes: array of number`
- A screenshot action.
+ - `logprob: number`
- - `type: "screenshot"`
+ - `top_logprobs: array of object { token, bytes, logprob }`
- Specifies the event type. For a screenshot action, this property is always set to `screenshot`.
+ - `token: string`
- - `"screenshot"`
+ - `bytes: array of number`
- - `Scroll object { scroll_x, scroll_y, type, 3 more }`
+ - `logprob: number`
- A scroll action.
+ - `text: string`
- - `scroll_x: number`
+ The text output from the model.
- The horizontal scroll distance.
+ - `type: "output_text"`
- - `scroll_y: number`
+ The type of the output text. Always `output_text`.
- The vertical scroll distance.
+ - `"output_text"`
- - `type: "scroll"`
+ - `ResponseOutputRefusal object { refusal, type }`
- Specifies the event type. For a scroll action, this property is always set to `scroll`.
+ A refusal from the model.
- - `"scroll"`
+ - `refusal: string`
- - `x: number`
+ The refusal explanation from the model.
- The x-coordinate where the scroll occurred.
+ - `type: "refusal"`
- - `y: number`
+ The type of the refusal. Always `refusal`.
- The y-coordinate where the scroll occurred.
+ - `"refusal"`
- - `keys: optional array of string or null`
+ - `role: "assistant"`
- The keys being held while scrolling.
+ The role of the output message. Always `assistant`.
- - `Type object { text, type }`
+ - `"assistant"`
- An action to type in text.
+ - `status: "in_progress" or "completed" or "incomplete"`
- - `text: string`
+ The status of the message input. One of `in_progress`, `completed`, or
+ `incomplete`. Populated when input items are returned via API.
- The text to type.
+ - `"in_progress"`
- - `type: "type"`
+ - `"completed"`
- Specifies the event type. For a type action, this property is always set to `type`.
+ - `"incomplete"`
- - `"type"`
+ - `type: "message"`
- - `Wait object { type }`
+ The type of the output message. Always `message`.
- A wait action.
+ - `"message"`
- - `type: "wait"`
+ - `phase: optional "commentary" or "final_answer" or null`
- Specifies the event type. For a wait action, this property is always set to `wait`.
+ 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.
- - `"wait"`
+ - `"commentary"`
- - `actions: optional ComputerActionList`
+ - `"final_answer"`
- Flattened batched actions for `computer_use`. Each action includes an
- `type` discriminator and action-specific fields.
+ - `FileSearchCall object { id, queries, status, 2 more }`
- - `Click object { button, type, x, 2 more }`
+ 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.
- A click action.
+ - `id: string`
- - `DoubleClick object { keys, type, x, y }`
+ The unique ID of the file search tool call.
- A double click action.
+ - `queries: array of string`
- - `Drag object { path, type, keys }`
+ The queries used to search for files.
- A drag action.
+ - `status: "in_progress" or "searching" or "completed" or 2 more`
- - `Keypress object { keys, type }`
+ The status of the file search tool call. One of `in_progress`,
+ `searching`, `incomplete` or `failed`,
- A collection of keypresses the model would like to perform.
+ - `"in_progress"`
- - `Move object { type, x, y, keys }`
+ - `"searching"`
- A mouse move action.
+ - `"completed"`
- - `Screenshot object { type }`
+ - `"incomplete"`
- A screenshot action.
+ - `"failed"`
- - `Scroll object { scroll_x, scroll_y, type, 3 more }`
+ - `type: "file_search_call"`
- A scroll action.
+ The type of the file search tool call. Always `file_search_call`.
- - `Type object { text, type }`
+ - `"file_search_call"`
- An action to type in text.
+ - `results: optional array of object { attributes, file_id, filename, 2 more } or null`
- - `Wait object { type }`
+ The results of the file search tool call.
- A wait action.
+ - `attributes: optional map[string or number or boolean] or null`
- - `ComputerCallOutput object { call_id, output, type, 3 more }`
+ 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.
- The output of a computer tool call.
+ - `string`
- - `call_id: string`
+ - `number`
- The ID of the computer tool call that produced the output.
+ - `boolean`
- - `output: ResponseComputerToolCallOutputScreenshot`
+ - `file_id: optional string`
- A computer screenshot image used with the computer use tool.
+ The unique ID of the file.
- - `type: "computer_screenshot"`
+ - `filename: optional string`
- Specifies the event type. For a computer screenshot, this property is
- always set to `computer_screenshot`.
+ The name of the file.
- - `"computer_screenshot"`
+ - `score: optional number`
- - `file_id: optional string`
+ The relevance score of the file - a value between 0 and 1.
- The identifier of an uploaded file that contains the screenshot.
+ - `text: optional string`
- - `image_url: optional string`
+ The text that was retrieved from the file.
- The URL of the screenshot image.
+ - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`
- - `type: "computer_call_output"`
+ 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.
- The type of the computer tool call output. Always `computer_call_output`.
+ - `id: string`
- - `"computer_call_output"`
+ The unique ID of the computer call.
- - `id: optional string or null`
+ - `call_id: string`
- The ID of the computer tool call output.
+ An identifier used when responding to the tool call with output.
- - `acknowledged_safety_checks: optional array of object { id, code, message } or null`
+ - `pending_safety_checks: array of object { id, code, message }`
- The safety checks reported by the API that have been acknowledged by the developer.
+ The pending safety checks for the computer call.
- `id: string`
@@ -3524,9 +3404,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"`
@@ -3534,1602 +3415,1589 @@ Schema name: `LiveResponseItemCreateParam`
- `"incomplete"`
- - `WebSearchCall object { id, status, type, action }`
+ - `type: "computer_call"`
- 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.
+ The type of the computer call. Always `computer_call`.
- - `id: string`
+ - `"computer_call"`
- The unique ID of the web search tool call.
+ - `action: optional ComputerAction`
- - `status: "in_progress" or "searching" or "completed" or 2 more`
+ A click action.
- The status of the web search tool call.
+ - `Click object { button, type, x, 2 more }`
- - `"in_progress"`
+ A click action.
- - `"searching"`
+ - `button: "left" or "right" or "wheel" or 2 more`
- - `"completed"`
+ Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.
- - `"failed"`
+ - `"left"`
- - `"incomplete"`
+ - `"right"`
- - `type: "web_search_call"`
+ - `"wheel"`
- The type of the web search tool call. Always `web_search_call`.
+ - `"back"`
- - `"web_search_call"`
+ - `"forward"`
- - `action: optional Search { type, queries, query, sources } or OpenPage { type, url } or FindInPage { pattern, type, url }`
+ - `type: "click"`
- 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).
+ Specifies the event type. For a click action, this property is always `click`.
- - `Search object { type, queries, query, sources }`
+ - `"click"`
- Action type "search" - Performs a web search query.
+ - `x: number`
- - `type: "search"`
+ The x-coordinate where the click occurred.
- The action type.
+ - `y: number`
- - `"search"`
+ The y-coordinate where the click occurred.
- - `queries: optional array of string`
+ - `keys: optional array of string or null`
- The search queries.
+ The keys being held while clicking.
- - `query: optional string`
+ - `DoubleClick object { keys, type, x, y }`
- The search query.
+ A double click action.
- - `sources: optional array of object { type, url }`
+ - `keys: array of string or null`
- The sources used in the search.
+ The keys being held while double-clicking.
- - `type: "url"`
-
- The type of source. Always `url`.
-
- - `"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`
+ - `"function"`
- - `"connector_dropbox"`
+ - `allowed_callers: optional array of "direct" or "programmatic" or null`
- - `"connector_gmail"`
+ The tool invocation context(s).
- - `"connector_googlecalendar"`
+ - `"direct"`
- - `"connector_googledrive"`
+ - `"programmatic"`
- - `"connector_microsoftteams"`
+ - `async: optional boolean`
- - `"connector_outlookcalendar"`
+ - `defer_loading: optional boolean`
- - `"connector_outlookemail"`
+ Whether this function is deferred and loaded via tool search.
- - `"connector_sharepoint"`
+ - `description: optional string or null`
- - `defer_loading: optional boolean`
+ A description of the function. Used by the model to determine whether or not to call the function.
- Whether this MCP tool is deferred and discovered via tool search.
+ - `output_schema: optional map[unknown] or null`
- - `headers: optional map[string] or null`
+ A JSON schema object describing the JSON value encoded in string outputs for this function.
- Optional HTTP headers to send to the MCP server. Use for authentication
- or other purposes.
+ - `FileSearch object { type, vector_store_ids, filters, 2 more }`
- - `require_approval: optional McpToolApprovalFilter { always, never } or "always" or "never" or null`
+ 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).
- Specify which of the MCP server's tools require approval.
+ - `type: "file_search"`
- - `McpToolApprovalFilter object { always, never }`
+ The type of the file search tool. Always `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.
+ - `"file_search"`
- - `always: optional object { read_only, tool_names }`
+ - `vector_store_ids: array of string`
- A filter object to specify which tools are allowed.
+ The IDs of the vector stores to search.
- - `read_only: optional boolean`
+ - `filters: optional ComparisonFilter or CompoundFilter or null`
- 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.
+ A filter to apply.
- - `tool_names: optional array of string`
+ - `ComparisonFilter object { key, type, value }`
- List of allowed tool names.
+ A filter used to compare a specified attribute key to a given value using a defined comparison operation.
- - `never: optional object { read_only, tool_names }`
+ - `key: string`
- A filter object to specify which tools are allowed.
+ The key to compare against the value.
- - `read_only: optional boolean`
+ - `type: "eq" or "ne" or "gt" or 5 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.
+ Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `in`, `nin`.
- - `tool_names: optional array of string`
-
- 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"`
- - `image_url: optional string`
+ - `user_location: optional object { city, country, region, 2 more } or null`
- Base64-encoded mask image.
+ 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.
- - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`
+ - `city: optional string or null`
- The image generation model to use. One of `gpt-image-1-mini`,
- `gpt-image-1.5`, `gpt-image-2`,
- `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
- `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
- `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
- `gpt-image-2`.
+ Free text input for the city of the user, e.g. `San Francisco`.
- `gpt-image-1` was shut down on October 23, 2026. Use
- `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead.
+ - `country: optional string or null`
- - `string`
+ The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.
- - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`
+ - `region: optional string or null`
- The image generation model to use. One of `gpt-image-1-mini`,
- `gpt-image-1.5`, `gpt-image-2`,
- `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
- `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
- `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
- `gpt-image-2`.
+ Free text input for the region of the user, e.g. `California`.
- `gpt-image-1` was shut down on October 23, 2026. Use
- `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead.
+ - `timezone: optional string or null`
- - `"gpt-image-1"`
+ The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.
- - `"gpt-image-1-mini"`
+ - `type: optional "approximate"`
- - `"gpt-image-1.5"`
+ The type of location approximation. Always `approximate`.
- - `"gpt-image-2"`
+ - `"approximate"`
- - `"gpt-image-2-2026-04-21"`
+ - `Mcp object { server_label, type, allowed_callers, 9 more }`
- - `"gpt-image-2.5-sunburst"`
+ 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).
- - `"gpt-image-2.5-sunburst-2026-09-08"`
+ - `server_label: string`
- - `"gpt-image-2.5-flare"`
+ A label for this MCP server, used to identify it in tool calls.
- - `"gpt-image-2.5-flare-2026-09-08"`
+ - `type: "mcp"`
- - `moderation: optional "auto" or "low"`
+ The type of the MCP tool. Always `mcp`.
- Moderation level for the generated image. Default: `auto`.
+ - `"mcp"`
- - `"auto"`
+ - `allowed_callers: optional array of "direct" or "programmatic" or null`
- - `"low"`
+ The tool invocation context(s).
- - `output_compression: optional number`
+ - `"direct"`
- Compression level for the output image. Default: 100.
+ - `"programmatic"`
- - `output_format: optional "png" or "webp" or "jpeg"`
+ - `allowed_tools: optional array of string or McpToolFilter { read_only, tool_names } or null`
- The output format of the generated image. One of `png`, `webp`, or
- `jpeg`. Default: `png`.
-
- - `"png"`
+ List of allowed tool names or a filter object.
- - `"webp"`
+ - `McpAllowedTools = array of string`
- - `"jpeg"`
+ A string array of allowed tool names
- - `partial_images: optional number`
+ - `McpToolFilter object { read_only, tool_names }`
- Number of partial images to generate in streaming mode, from 0 (default value) to 3.
+ A filter object to specify which tools are allowed.
- - `quality: optional "low" or "medium" or "high" or 3 more`
+ - `read_only: optional boolean`
- The quality of the generated image. The GPT image models support `low`,
- `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,
- including their `2026-09-08` snapshots, also support `xhigh` and `max`.
- Default: `auto`.
+ 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.
- - `"low"`
+ - `tool_names: optional array of string`
- - `"medium"`
+ List of allowed tool names.
- - `"high"`
+ - `authorization: optional string`
- - `"xhigh"`
+ 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.
- - `"max"`
+ - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`
- - `"auto"`
+ 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).
- - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`
+ 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.
- The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`. Width and height must both be divisible by 16 and the requested aspect ratio must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and the maximum supported resolution is `3840x2160`. The requested size must also satisfy the model's current pixel and edge limits. The standard sizes `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing.
+ Currently supported `connector_id` values are:
- - `string`
+ - 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`
- - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`
+ - `"connector_dropbox"`
- The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`. Width and height must both be divisible by 16 and the requested aspect ratio must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and the maximum supported resolution is `3840x2160`. The requested size must also satisfy the model's current pixel and edge limits. The standard sizes `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing.
+ - `"connector_gmail"`
- - `"1024x1024"`
+ - `"connector_googlecalendar"`
- - `"1024x1536"`
+ - `"connector_googledrive"`
- - `"1536x1024"`
+ - `"connector_microsoftteams"`
- - `"auto"`
+ - `"connector_outlookcalendar"`
- - `LocalShell object { type }`
+ - `"connector_outlookemail"`
- A tool that allows the model to execute shell commands in a local environment.
+ - `"connector_sharepoint"`
- - `type: "local_shell"`
+ - `defer_loading: optional boolean`
- The type of the local shell tool. Always `local_shell`.
+ Whether this MCP tool is deferred and discovered via tool search.
- - `"local_shell"`
+ - `headers: optional map[string] or null`
- - `Shell object { type, allowed_callers, environment }`
+ Optional HTTP headers to send to the MCP server. Use for authentication
+ or other purposes.
- A tool that allows the model to execute shell commands.
+ - `require_approval: optional McpToolApprovalFilter { always, never } or "always" or "never" or null`
- - `type: "shell"`
+ Specify which of the MCP server's tools require approval.
- The type of the shell tool. Always `shell`.
+ - `McpToolApprovalFilter object { always, never }`
- - `"shell"`
+ Specify which of the MCP server's tools require approval. Can be
+ `always`, `never`, or a filter object associated with tools
+ that require approval.
- - `allowed_callers: optional array of "direct" or "programmatic" or null`
+ - `always: optional object { read_only, tool_names }`
- The tool invocation context(s).
+ A filter object to specify which tools are allowed.
- - `"direct"`
+ - `read_only: optional boolean`
- - `"programmatic"`
+ 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.
- - `environment: optional ContainerAuto or LocalEnvironment or ContainerReference or null`
+ - `tool_names: optional array of string`
- - `ContainerAuto object { type, file_ids, memory_limit, 2 more }`
+ List of allowed tool names.
- - `type: "container_auto"`
+ - `never: optional object { read_only, tool_names }`
- Automatically creates a container for this request
+ A filter object to specify which tools are allowed.
- - `"container_auto"`
+ - `read_only: optional boolean`
- - `file_ids: optional array of string`
+ 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.
- An optional list of uploaded files to make available to your code.
+ - `tool_names: optional array of string`
- - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`
+ List of allowed tool names.
- The memory limit for the container.
+ - `McpToolApprovalSetting = "always" or "never"`
- - `"1g"`
+ 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.
- - `"4g"`
+ - `"always"`
- - `"16g"`
+ - `"never"`
- - `"64g"`
+ - `server_description: optional string`
- - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`
+ Optional description of the MCP server, used to provide more context.
- Network access policy for the container.
+ - `server_url: optional string`
- - `ContainerNetworkPolicyDisabled object { type }`
+ The URL for the MCP server. One of `server_url`, `connector_id`, or
+ `tunnel_id` must be provided.
- - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`
+ - `tunnel_id: optional string`
- - `skills: optional array of SkillReference or InlineSkill`
+ 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.
- An optional list of skills referenced by id or inline data.
+ - `CodeInterpreter object { container, type, allowed_callers }`
- - `SkillReference object { skill_id, type, version }`
+ A tool that runs Python code to help generate a response to a prompt.
- - `skill_id: string`
+ - `container: string or CodeInterpreterToolAuto { type, file_ids, memory_limit, network_policy }`
- The ID of the referenced skill.
+ 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.
- - `type: "skill_reference"`
+ - `string`
- References a skill created with the /v1/skills endpoint.
+ The container ID.
- - `"skill_reference"`
+ - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }`
- - `version: optional string`
+ Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.
- Optional skill version. Use a positive integer or 'latest'. Omit for default.
+ - `type: "auto"`
- - `InlineSkill object { description, name, source, type }`
+ Always `auto`.
- - `description: string`
+ - `"auto"`
- The description of the skill.
+ - `file_ids: optional array of string`
- - `name: string`
+ An optional list of uploaded files to make available to your code.
- The name of the skill.
+ - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`
- - `source: InlineSkillSource`
+ The memory limit for the code interpreter container.
- Inline skill payload
+ - `"1g"`
- - `data: string`
+ - `"4g"`
- Base64-encoded skill zip bundle.
+ - `"16g"`
- - `media_type: "application/zip"`
+ - `"64g"`
- The media type of the inline skill payload. Must be `application/zip`.
+ - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`
- - `"application/zip"`
+ Network access policy for the container.
- - `type: "base64"`
+ - `ContainerNetworkPolicyDisabled object { type }`
- The type of the inline skill source. Must be `base64`.
+ - `type: "disabled"`
- - `"base64"`
+ Disable outbound network access. Always `disabled`.
- - `type: "inline"`
+ - `"disabled"`
- Defines an inline skill for this request.
+ - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`
- - `"inline"`
+ - `allowed_domains: array of string`
- - `LocalEnvironment object { type, skills }`
+ A list of allowed domains when type is `allowlist`.
- - `type: "local"`
+ - `type: "allowlist"`
- Use a local computer environment.
+ Allow outbound network access only to specified domains. Always `allowlist`.
- - `"local"`
+ - `"allowlist"`
- - `skills: optional array of LocalSkill`
+ - `domain_secrets: optional array of ContainerNetworkPolicyDomainSecret`
- An optional list of skills.
+ Optional domain-scoped secrets for allowlisted domains.
- - `description: string`
+ - `domain: string`
- The description of the skill.
+ The domain associated with the secret.
- `name: string`
- The name of the skill.
+ The name of the secret to inject for the domain.
- - `path: string`
+ - `value: string`
- The path to the directory containing the skill.
+ The secret value to inject for the domain.
- - `ContainerReference object { container_id, type }`
+ - `type: "code_interpreter"`
- - `container_id: string`
+ The type of the code interpreter tool. Always `code_interpreter`.
- The ID of the referenced container.
+ - `"code_interpreter"`
- - `type: "container_reference"`
+ - `allowed_callers: optional array of "direct" or "programmatic" or null`
- References a container created with the /v1/containers endpoint
+ The tool invocation context(s).
- - `"container_reference"`
+ - `"direct"`
- - `Custom object { name, type, allowed_callers, 4 more }`
+ - `"programmatic"`
- A custom tool that processes input using a specified format. Learn more about [custom tools](https://developers.openai.com/api/docs/guides/function-calling#custom-tools)
+ - `ProgrammaticToolCalling object { type }`
- - `name: string`
+ - `type: "programmatic_tool_calling"`
- The name of the custom tool, used to identify it in tool calls.
+ The type of the tool. Always `programmatic_tool_calling`.
- - `type: "custom"`
+ - `"programmatic_tool_calling"`
- The type of the custom tool. Always `custom`.
+ - `ImageGeneration object { type, action, background, 9 more }`
- - `"custom"`
+ A tool that generates images using the GPT image models.
- - `allowed_callers: optional array of "direct" or "programmatic" or null`
+ - `type: "image_generation"`
- The tool invocation context(s).
+ The type of the image generation tool. Always `image_generation`.
- - `"direct"`
+ - `"image_generation"`
- - `"programmatic"`
+ - `action: optional "generate" or "edit" or "auto"`
- - `async: optional boolean`
+ Whether to generate a new image or edit an existing image. Default: `auto`.
- Whether the tool response can be returned asynchronously versus immediately returned on next response creation.
+ - `"generate"`
- - `defer_loading: optional boolean`
+ - `"edit"`
- Whether this tool should be deferred and discovered via tool search.
+ - `"auto"`
- - `description: optional string`
+ - `background: optional "transparent" or "opaque" or "auto"`
- Optional description of the custom tool, used to provide more context.
+ 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`.
- - `format: optional CustomToolInputFormat`
+ - `"transparent"`
- The input format for the custom tool. Default is unconstrained text.
+ - `"opaque"`
- - `Text object { type }`
+ - `"auto"`
- Unconstrained free-form text.
+ - `input_fidelity: optional "high" or "low" or null`
- - `type: "text"`
+ 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.
- Unconstrained text format. Always `text`.
+ - `"high"`
- - `"text"`
+ - `"low"`
- - `Grammar object { definition, syntax, type }`
+ - `input_image_mask: optional object { file_id, image_url }`
- A grammar defined by the user.
+ Optional mask for inpainting. Contains `image_url`
+ (string, optional) and `file_id` (string, optional).
- - `definition: string`
+ - `file_id: optional string`
- The grammar definition.
+ File ID for the mask image.
- - `syntax: "lark" or "regex"`
+ - `image_url: optional string`
- The syntax of the grammar definition. One of `lark` or `regex`.
+ Base64-encoded mask image.
- - `"lark"`
+ - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`
- - `"regex"`
+ The image generation model to use. One of `gpt-image-1-mini`,
+ `gpt-image-1.5`, `gpt-image-2`,
+ `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
+ `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
+ `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
+ `gpt-image-2`.
- - `type: "grammar"`
+ `gpt-image-1` was shut down on October 23, 2026. Use
+ `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead.
- Grammar format. Always `grammar`.
+ - `string`
- - `"grammar"`
+ - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`
- - `ToolSearchOutputNamespaceTool object { description, name, tools, type }`
+ The image generation model to use. One of `gpt-image-1-mini`,
+ `gpt-image-1.5`, `gpt-image-2`,
+ `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
+ `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
+ `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
+ `gpt-image-2`.
- Groups function/custom tools under a shared namespace.
+ `gpt-image-1` was shut down on October 23, 2026. Use
+ `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead.
- - `description: string`
+ - `"gpt-image-1"`
- A description of the namespace shown to the model.
+ - `"gpt-image-1-mini"`
- - `name: string`
+ - `"gpt-image-1.5"`
- The namespace name used in tool calls (for example, `crm`).
+ - `"gpt-image-2"`
- - `tools: array of Function { name, type, allowed_callers, 6 more } or Custom { name, type, allowed_callers, 4 more }`
+ - `"gpt-image-2-2026-04-21"`
- The function/custom tools loaded inside this namespace.
+ - `"gpt-image-2.5-sunburst"`
- - `Function object { name, type, allowed_callers, 6 more }`
+ - `"gpt-image-2.5-sunburst-2026-09-08"`
- - `name: string`
+ - `"gpt-image-2.5-flare"`
- The name of the loaded function tool.
+ - `"gpt-image-2.5-flare-2026-09-08"`
- - `type: "function"`
+ - `moderation: optional "auto" or "low"`
- - `"function"`
+ Moderation level for the generated image. Default: `auto`.
- - `allowed_callers: optional array of "direct" or "programmatic" or null`
+ - `"auto"`
- The tool invocation context(s).
+ - `"low"`
- - `"direct"`
+ - `output_compression: optional number`
- - `"programmatic"`
+ Compression level for the output image. Default: 100.
- - `async: optional boolean`
+ - `output_format: optional "png" or "webp" or "jpeg"`
- Whether the tool response can be returned asynchronously versus immediately returned on next response creation.
+ The output format of the generated image. One of `png`, `webp`, or
+ `jpeg`. Default: `png`.
- - `defer_loading: optional boolean`
+ - `"png"`
- Whether this function should be deferred and discovered via tool search.
+ - `"webp"`
- - `description: optional string or null`
+ - `"jpeg"`
- - `output_schema: optional map[unknown] or null`
+ - `partial_images: optional number`
- A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.
+ Number of partial images to generate in streaming mode, from 0 (default value) to 3.
- - `parameters: optional unknown or null`
+ - `quality: optional "low" or "medium" or "high" or 3 more`
- - `strict: optional boolean or null`
+ The quality of the generated image. The GPT image models support `low`,
+ `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,
+ including their `2026-09-08` snapshots, also support `xhigh` and `max`.
+ Default: `auto`.
- Whether to enforce strict parameter validation. If omitted, Responses attempts to use strict validation when the schema is compatible, and falls back to non-strict validation otherwise.
+ - `"low"`
- - `Custom object { name, type, allowed_callers, 4 more }`
+ - `"medium"`
- A custom tool that processes input using a specified format. Learn more about [custom tools](https://developers.openai.com/api/docs/guides/function-calling#custom-tools)
+ - `"high"`
- - `name: string`
+ - `"xhigh"`
- The name of the custom tool, used to identify it in tool calls.
+ - `"max"`
- - `type: "custom"`
+ - `"auto"`
- The type of the custom tool. Always `custom`.
+ - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`
- - `"custom"`
+ The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`. Width and height must both be divisible by 16 and the requested aspect ratio must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and the maximum supported resolution is `3840x2160`. The requested size must also satisfy the model's current pixel and edge limits. The standard sizes `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing.
- - `allowed_callers: optional array of "direct" or "programmatic" or null`
+ - `string`
- The tool invocation context(s).
+ - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`
- - `"direct"`
+ The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`. Width and height must both be divisible by 16 and the requested aspect ratio must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and the maximum supported resolution is `3840x2160`. The requested size must also satisfy the model's current pixel and edge limits. The standard sizes `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing.
- - `"programmatic"`
+ - `"1024x1024"`
- - `async: optional boolean`
+ - `"1024x1536"`
- Whether the tool response can be returned asynchronously versus immediately returned on next response creation.
+ - `"1536x1024"`
- - `defer_loading: optional boolean`
+ - `"auto"`
- Whether this tool should be deferred and discovered via tool search.
+ - `LocalShell object { type }`
- - `description: optional string`
+ A tool that allows the model to execute shell commands in a local environment.
- Optional description of the custom tool, used to provide more context.
+ - `type: "local_shell"`
- - `format: optional CustomToolInputFormat`
+ The type of the local shell tool. Always `local_shell`.
- The input format for the custom tool. Default is unconstrained text.
+ - `"local_shell"`
- - `type: "namespace"`
+ - `Shell object { type, allowed_callers, environment }`
- The type of the tool. Always `namespace`.
+ A tool that allows the model to execute shell commands.
- - `"namespace"`
+ - `type: "shell"`
- - `ToolSearch object { type, description, execution, parameters }`
+ The type of the shell tool. Always `shell`.
- Hosted or BYOT tool search configuration for deferred tools.
+ - `"shell"`
- - `type: "tool_search"`
+ - `allowed_callers: optional array of "direct" or "programmatic" or null`
- The type of the tool. Always `tool_search`.
+ The tool invocation context(s).
- - `"tool_search"`
+ - `"direct"`
- - `description: optional string or null`
+ - `"programmatic"`
- Description shown to the model for a client-executed tool search tool.
+ - `environment: optional ContainerAuto or LocalEnvironment or ContainerReference or null`
- - `execution: optional "server" or "client"`
+ - `ContainerAuto object { type, file_ids, memory_limit, 2 more }`
- Whether tool search is executed by the server or by the client.
+ - `type: "container_auto"`
- - `"server"`
+ Automatically creates a container for this request
- - `"client"`
+ - `"container_auto"`
- - `parameters: optional unknown or null`
+ - `file_ids: optional array of string`
- Parameter schema for a client-executed tool search tool.
+ An optional list of uploaded files to make available to your code.
- - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`
+ - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`
- This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://developers.openai.com/api/docs/guides/tools-web-search).
+ The memory limit for the container.
- - `type: "web_search_preview" or "web_search_preview_2025_03_11"`
+ - `"1g"`
- The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.
+ - `"4g"`
- - `"web_search_preview"`
+ - `"16g"`
- - `"web_search_preview_2025_03_11"`
+ - `"64g"`
- - `search_content_types: optional array of "text" or "image"`
+ - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`
- - `"text"`
+ Network access policy for the container.
- - `"image"`
+ - `ContainerNetworkPolicyDisabled object { type }`
- - `search_context_size: optional "low" or "medium" or "high"`
+ - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`
- 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.
+ - `skills: optional array of SkillReference or InlineSkill`
- - `"low"`
+ An optional list of skills referenced by id or inline data.
- - `"medium"`
+ - `SkillReference object { skill_id, type, version }`
- - `"high"`
+ - `skill_id: string`
- - `user_location: optional object { type, city, country, 2 more } or null`
+ The ID of the referenced skill.
- 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.
+ - `type: "skill_reference"`
- - `type: "approximate"`
+ References a skill created with the /v1/skills endpoint.
- The type of location approximation. Always `approximate`.
+ - `"skill_reference"`
- - `"approximate"`
+ - `version: optional string`
- - `city: optional string or null`
+ Optional skill version. Use a positive integer or 'latest'. Omit for default.
- Free text input for the city of the user, e.g. `San Francisco`.
+ - `InlineSkill object { description, name, source, type }`
- - `country: optional string or null`
+ - `description: string`
- The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.
+ The description of the skill.
- - `region: optional string or null`
+ - `name: string`
- Free text input for the region of the user, e.g. `California`.
+ The name of the skill.
- - `timezone: optional string or null`
+ - `source: InlineSkillSource`
- The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.
+ Inline skill payload
- - `ApplyPatch object { type, allowed_callers }`
+ - `data: string`
- Allows the assistant to create, delete, or update files using unified diffs.
+ Base64-encoded skill zip bundle.
- - `type: "apply_patch"`
+ - `media_type: "application/zip"`
- The type of the tool. Always `apply_patch`.
+ The media type of the inline skill payload. Must be `application/zip`.
- - `"apply_patch"`
+ - `"application/zip"`
- - `allowed_callers: optional array of "direct" or "programmatic" or null`
+ - `type: "base64"`
- The tool invocation context(s).
-
- - `"direct"`
-
- - `"programmatic"`
+ The type of the inline skill source. Must be `base64`.
- - `type: "tool_search_output"`
+ - `"base64"`
- The item type. Always `tool_search_output`.
+ - `type: "inline"`
- - `"tool_search_output"`
+ Defines an inline skill for this request.
- - `id: optional string or null`
+ - `"inline"`
- The unique ID of this tool search output.
+ - `LocalEnvironment object { type, skills }`
- - `call_id: optional string or null`
+ - `type: "local"`
- The unique ID of the tool search call generated by the model.
+ Use a local computer environment.
- - `execution: optional "server" or "client"`
+ - `"local"`
- Whether tool search was executed by the server or by the client.
+ - `skills: optional array of LocalSkill`
- - `"server"`
+ An optional list of skills.
- - `"client"`
+ - `description: string`
- - `status: optional "in_progress" or "completed" or "incomplete" or null`
+ The description of the skill.
- The status of the tool search output.
+ - `name: string`
- - `"in_progress"`
+ The name of the skill.
- - `"completed"`
+ - `path: string`
- - `"incomplete"`
+ The path to the directory containing the skill.
- - `AdditionalTools object { role, tools, type, id }`
+ - `ContainerReference object { container_id, type }`
- - `role: "developer"`
+ - `container_id: string`
- The role that provided the additional tools. Only `developer` is supported.
+ The ID of the referenced container.
- - `"developer"`
+ - `type: "container_reference"`
- - `tools: array of Function { name, parameters, strict, 6 more } or FileSearch { type, vector_store_ids, filters, 2 more } or Computer { type } or 13 more`
+ References a container created with the /v1/containers endpoint
- A list of additional tools made available at this item.
+ - `"container_reference"`
- - `Function object { name, parameters, strict, 6 more }`
+ - `Custom object { name, type, allowed_callers, 4 more }`
- 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 custom tool that processes input using a specified format. Learn more about [custom tools](https://developers.openai.com/api/docs/guides/function-calling#custom-tools)
- `name: string`
- The name of the function to call.
-
- - `parameters: map[unknown] or null`
-
- A JSON schema object describing the parameters of the function.
-
- - `strict: boolean or null`
-
- Whether strict parameter validation is enforced for this function tool.
+ The name of the custom tool, used to identify it in tool calls.
- - `type: "function"`
+ - `type: "custom"`
- The type of the function tool. Always `function`.
+ The type of the custom tool. Always `custom`.
- - `"function"`
+ - `"custom"`
- `allowed_callers: optional array of "direct" or "programmatic" or null`
@@ -5141,448 +5009,766 @@ Schema name: `LiveResponseItemCreateParam`
- `async: optional boolean`
+ Whether the tool response can be returned asynchronously versus immediately returned on next response creation.
+
- `defer_loading: optional boolean`
- Whether this function is deferred and loaded via tool search.
+ Whether this tool should be deferred and discovered via tool search.
- - `description: optional string or null`
+ - `description: optional string`
- A description of the function. Used by the model to determine whether or not to call the function.
+ Optional description of the custom tool, used to provide more context.
- - `output_schema: optional map[unknown] or null`
+ - `format: optional CustomToolInputFormat`
- A JSON schema object describing the JSON value encoded in string outputs for this function.
+ The input format for the custom tool. Default is unconstrained text.
- - `FileSearch object { type, vector_store_ids, filters, 2 more }`
+ - `Text object { type }`
- 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).
+ Unconstrained free-form text.
- - `type: "file_search"`
+ - `type: "text"`
- The type of the file search tool. Always `file_search`.
+ Unconstrained text format. Always `text`.
- - `"file_search"`
+ - `"text"`
- - `vector_store_ids: array of string`
+ - `Grammar object { definition, syntax, type }`
- The IDs of the vector stores to search.
+ A grammar defined by the user.
- - `filters: optional ComparisonFilter or CompoundFilter or null`
+ - `definition: string`
- A filter to apply.
+ The grammar definition.
- - `ComparisonFilter object { key, type, value }`
+ - `syntax: "lark" or "regex"`
- A filter used to compare a specified attribute key to a given value using a defined comparison operation.
+ The syntax of the grammar definition. One of `lark` or `regex`.
- - `CompoundFilter object { filters, type }`
+ - `"lark"`
- Combine multiple filters using `and` or `or`.
+ - `"regex"`
- - `max_num_results: optional number`
+ - `type: "grammar"`
- The maximum number of results to return. This number should be between 1 and 50 inclusive.
+ Grammar format. Always `grammar`.
- - `ranking_options: optional object { hybrid_search, ranker, score_threshold }`
+ - `"grammar"`
- Ranking options for search.
+ - `ToolSearchOutputNamespaceTool object { description, name, tools, type }`
- - `hybrid_search: optional object { embedding_weight, text_weight }`
+ Groups function/custom tools under a shared namespace.
- Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.
+ - `description: string`
- - `embedding_weight: number`
+ A description of the namespace shown to the model.
- The weight of the embedding in the reciprocal ranking fusion.
+ - `name: string`
- - `text_weight: number`
+ The namespace name used in tool calls (for example, `crm`).
- The weight of the text in the reciprocal ranking fusion.
+ - `tools: array of Function { name, type, allowed_callers, 6 more } or Custom { name, type, allowed_callers, 4 more }`
- - `ranker: optional "auto" or "default-2024-11-15"`
+ The function/custom tools loaded inside this namespace.
- The ranker to use for the file search.
+ - `Function object { name, type, allowed_callers, 6 more }`
- - `"auto"`
+ - `name: string`
- - `"default-2024-11-15"`
+ The name of the loaded function tool.
- - `score_threshold: optional number`
+ - `type: "function"`
- 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.
+ - `"function"`
- - `Computer object { type }`
+ - `allowed_callers: optional array of "direct" or "programmatic" or null`
- A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use).
+ The tool invocation context(s).
- - `type: "computer"`
+ - `"direct"`
- The type of the computer tool. Always `computer`.
+ - `"programmatic"`
- - `"computer"`
+ - `async: optional boolean`
- - `ComputerUsePreview object { display_height, display_width, environment, type }`
+ Whether the tool response can be returned asynchronously versus immediately returned on next response creation.
- A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use).
+ - `defer_loading: optional boolean`
- - `display_height: number`
+ Whether this function should be deferred and discovered via tool search.
- The height of the computer display.
+ - `description: optional string or null`
- - `display_width: number`
+ - `output_schema: optional map[unknown] or null`
- The width of the computer display.
+ A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.
- - `environment: "windows" or "mac" or "linux" or 2 more`
+ - `parameters: optional unknown or null`
- The type of computer environment to control.
+ - `strict: optional boolean or null`
- - `"windows"`
+ Whether to enforce strict parameter validation. If omitted, Responses attempts to use strict validation when the schema is compatible, and falls back to non-strict validation otherwise.
- - `"mac"`
+ - `Custom object { name, type, allowed_callers, 4 more }`
- - `"linux"`
+ A custom tool that processes input using a specified format. Learn more about [custom tools](https://developers.openai.com/api/docs/guides/function-calling#custom-tools)
- - `"ubuntu"`
+ - `name: string`
- - `"browser"`
+ The name of the custom tool, used to identify it in tool calls.
- - `type: "computer_use_preview"`
+ - `type: "custom"`
- The type of the computer use tool. Always `computer_use_preview`.
+ The type of the custom tool. Always `custom`.
- - `"computer_use_preview"`
+ - `"custom"`
- - `WebSearch object { type, external_web_access, filters, 2 more }`
+ - `allowed_callers: optional array of "direct" or "programmatic" or null`
- 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).
+ The tool invocation context(s).
- - `type: "web_search" or "web_search_2025_08_26"`
+ - `"direct"`
- The type of the web search tool. One of `web_search` or `web_search_2025_08_26`.
+ - `"programmatic"`
- - `"web_search"`
+ - `async: optional boolean`
- - `"web_search_2025_08_26"`
+ Whether the tool response can be returned asynchronously versus immediately returned on next response creation.
- - `external_web_access: optional boolean`
+ - `defer_loading: optional boolean`
- 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.
+ Whether this tool should be deferred and discovered via tool search.
- - `filters: optional object { allowed_domains } or null`
+ - `description: optional string`
- Filters for the search.
+ Optional description of the custom tool, used to provide more context.
- - `allowed_domains: optional array of string or null`
+ - `format: optional CustomToolInputFormat`
- Allowed domains for the search. If not provided, all domains are allowed.
- Subdomains of the provided domains are allowed as well.
+ The input format for the custom tool. Default is unconstrained text.
- Example: `["pubmed.ncbi.nlm.nih.gov"]`
+ - `type: "namespace"`
- - `search_context_size: optional "low" or "medium" or "high"`
+ The type of the tool. Always `namespace`.
- 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.
+ - `"namespace"`
- - `"low"`
+ - `ToolSearch object { type, description, execution, parameters }`
- - `"medium"`
+ Hosted or BYOT tool search configuration for deferred tools.
- - `"high"`
+ - `type: "tool_search"`
- - `user_location: optional object { city, country, region, 2 more } or null`
+ The type of the tool. Always `tool_search`.
- 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.
+ - `"tool_search"`
- - `city: optional string or null`
+ - `description: optional string or null`
- Free text input for the city of the user, e.g. `San Francisco`.
+ Description shown to the model for a client-executed tool search tool.
- - `country: optional string or null`
+ - `execution: optional "server" or "client"`
- The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.
+ Whether tool search is executed by the server or by the client.
- - `region: optional string or null`
+ - `"server"`
- Free text input for the region of the user, e.g. `California`.
+ - `"client"`
- - `timezone: optional string or null`
+ - `parameters: optional unknown or null`
- The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.
+ Parameter schema for a client-executed tool search tool.
- - `type: optional "approximate"`
+ - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`
- The type of location approximation. Always `approximate`.
+ This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://developers.openai.com/api/docs/guides/tools-web-search).
- - `"approximate"`
+ - `type: "web_search_preview" or "web_search_preview_2025_03_11"`
- - `Mcp object { server_label, type, allowed_callers, 9 more }`
+ The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.
- 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).
+ - `"web_search_preview"`
- - `server_label: string`
+ - `"web_search_preview_2025_03_11"`
- A label for this MCP server, used to identify it in tool calls.
+ - `search_content_types: optional array of "text" or "image"`
- - `type: "mcp"`
+ - `"text"`
- The type of the MCP tool. Always `mcp`.
+ - `"image"`
- - `"mcp"`
+ - `search_context_size: optional "low" or "medium" or "high"`
- - `allowed_callers: optional array of "direct" or "programmatic" or null`
+ 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.
- The tool invocation context(s).
+ - `"low"`
- - `"direct"`
+ - `"medium"`
- - `"programmatic"`
+ - `"high"`
- - `allowed_tools: optional array of string or McpToolFilter { read_only, tool_names } or null`
+ - `user_location: optional object { type, city, country, 2 more } or null`
- List of allowed tool names or a filter object.
+ 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.
- - `McpAllowedTools = array of string`
+ - `type: "approximate"`
- A string array of allowed tool names
+ The type of location approximation. Always `approximate`.
- - `McpToolFilter object { read_only, tool_names }`
+ - `"approximate"`
- A filter object to specify which tools are allowed.
+ - `city: optional string or null`
- - `read_only: optional boolean`
+ Free text input for the city of the user, e.g. `San Francisco`.
- 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.
+ - `country: optional string or null`
- - `tool_names: optional array of string`
+ The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.
- List of allowed tool names.
+ - `region: optional string or null`
- - `authorization: optional string`
+ Free text input for the region of the user, e.g. `California`.
- 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.
+ - `timezone: optional string or null`
- - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`
+ The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.
- 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).
+ - `ApplyPatch object { type, allowed_callers }`
- 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.
+ Allows the assistant to create, delete, or update files using unified diffs.
- Currently supported `connector_id` values are:
+ - `type: "apply_patch"`
- - 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`
+ The type of the tool. Always `apply_patch`.
- - `"connector_dropbox"`
+ - `"apply_patch"`
- - `"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"`
+ - `type: "tool_search_output"`
- - `"connector_outlookemail"`
+ The item type. Always `tool_search_output`.
- - `"connector_sharepoint"`
+ - `"tool_search_output"`
- - `defer_loading: optional boolean`
+ - `id: optional string or null`
- Whether this MCP tool is deferred and discovered via tool search.
+ The unique ID of this tool search output.
- - `headers: optional map[string] or null`
+ - `call_id: optional string or null`
- Optional HTTP headers to send to the MCP server. Use for authentication
- or other purposes.
+ The unique ID of the tool search call generated by the model.
- - `require_approval: optional McpToolApprovalFilter { always, never } or "always" or "never" or null`
+ - `execution: optional "server" or "client"`
- Specify which of the MCP server's tools require approval.
+ Whether tool search was executed by the server or by the client.
- - `McpToolApprovalFilter object { always, never }`
+ - `"server"`
- Specify which of the MCP server's tools require approval. Can be
- `always`, `never`, or a filter object associated with tools
- that require approval.
+ - `"client"`
- - `always: optional object { read_only, tool_names }`
+ - `status: optional "in_progress" or "completed" or "incomplete" or null`
- A filter object to specify which tools are allowed.
+ The status of the tool search output.
- - `read_only: optional boolean`
+ - `"in_progress"`
- 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.
+ - `"completed"`
- - `tool_names: optional array of string`
+ - `"incomplete"`
- List of allowed tool names.
+ - `AdditionalTools object { role, tools, type, id }`
- - `never: optional object { read_only, tool_names }`
+ - `role: "developer"`
- A filter object to specify which tools are allowed.
+ The role that provided the additional tools. Only `developer` is supported.
- - `read_only: optional boolean`
+ - `"developer"`
- 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.
+ - `tools: array of Function { name, parameters, strict, 6 more } or FileSearch { type, vector_store_ids, filters, 2 more } or Computer { type } or 13 more`
- - `tool_names: optional array of string`
+ A list of additional tools made available at this item.
- List of allowed tool names.
+ - `Function object { name, parameters, strict, 6 more }`
- - `McpToolApprovalSetting = "always" or "never"`
+ 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).
- 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.
+ - `name: string`
- - `"always"`
+ The name of the function to call.
- - `"never"`
+ - `parameters: map[unknown] or null`
- - `server_description: optional string`
+ A JSON schema object describing the parameters of the function.
- Optional description of the MCP server, used to provide more context.
+ - `strict: boolean or null`
- - `server_url: optional string`
+ Whether strict parameter validation is enforced for this function tool.
- The URL for the MCP server. One of `server_url`, `connector_id`, or
- `tunnel_id` must be provided.
+ - `type: "function"`
- - `tunnel_id: optional string`
+ The type of the function tool. Always `function`.
- 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.
+ - `"function"`
- - `CodeInterpreter object { container, type, allowed_callers }`
+ - `allowed_callers: optional array of "direct" or "programmatic" or null`
- A tool that runs Python code to help generate a response to a prompt.
+ The tool invocation context(s).
- - `container: string or CodeInterpreterToolAuto { type, file_ids, memory_limit, network_policy }`
+ - `"direct"`
- 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.
+ - `"programmatic"`
- - `string`
+ - `async: optional boolean`
- The container ID.
+ - `defer_loading: optional boolean`
- - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }`
+ Whether this function is deferred and loaded via tool search.
- Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.
+ - `description: optional string or null`
- - `type: "auto"`
+ A description of the function. Used by the model to determine whether or not to call the function.
- Always `auto`.
+ - `output_schema: optional map[unknown] or null`
- - `"auto"`
+ A JSON schema object describing the JSON value encoded in string outputs for this function.
- - `file_ids: optional array of string`
+ - `FileSearch object { type, vector_store_ids, filters, 2 more }`
- An optional list of uploaded files to make available to your code.
+ 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).
- - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`
+ - `type: "file_search"`
- The memory limit for the code interpreter container.
+ The type of the file search tool. Always `file_search`.
- - `"1g"`
+ - `"file_search"`
- - `"4g"`
+ - `vector_store_ids: array of string`
- - `"16g"`
+ The IDs of the vector stores to search.
- - `"64g"`
+ - `filters: optional ComparisonFilter or CompoundFilter or null`
- - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`
+ A filter to apply.
- Network access policy for the container.
+ - `ComparisonFilter object { key, type, value }`
- - `ContainerNetworkPolicyDisabled object { type }`
+ A filter used to compare a specified attribute key to a given value using a defined comparison operation.
- - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`
+ - `CompoundFilter object { filters, type }`
- - `type: "code_interpreter"`
+ Combine multiple filters using `and` or `or`.
- The type of the code interpreter tool. Always `code_interpreter`.
+ - `max_num_results: optional number`
- - `"code_interpreter"`
+ The maximum number of results to return. This number should be between 1 and 50 inclusive.
- - `allowed_callers: optional array of "direct" or "programmatic" or null`
+ - `ranking_options: optional object { hybrid_search, ranker, score_threshold }`
- The tool invocation context(s).
+ Ranking options for search.
- - `"direct"`
+ - `hybrid_search: optional object { embedding_weight, text_weight }`
- - `"programmatic"`
+ Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.
- - `ProgrammaticToolCalling object { type }`
+ - `embedding_weight: number`
- - `type: "programmatic_tool_calling"`
+ The weight of the embedding in the reciprocal ranking fusion.
- The type of the tool. Always `programmatic_tool_calling`.
+ - `text_weight: number`
- - `"programmatic_tool_calling"`
+ The weight of the text in the reciprocal ranking fusion.
- - `ImageGeneration object { type, action, background, 9 more }`
+ - `ranker: optional "auto" or "default-2024-11-15"`
- A tool that generates images using the GPT image models.
+ The ranker to use for the file search.
- - `type: "image_generation"`
+ - `"auto"`
- The type of the image generation tool. Always `image_generation`.
+ - `"default-2024-11-15"`
- - `"image_generation"`
+ - `score_threshold: optional number`
- - `action: optional "generate" or "edit" or "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.
- Whether to generate a new image or edit an existing image. Default: `auto`.
+ - `Computer object { type }`
- - `"generate"`
+ A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use).
- - `"edit"`
+ - `type: "computer"`
- - `"auto"`
+ The type of the computer tool. Always `computer`.
- - `background: optional "transparent" or "opaque" or "auto"`
+ - `"computer"`
- 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`.
+ - `ComputerUsePreview object { display_height, display_width, environment, type }`
- - `"transparent"`
+ A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use).
- - `"opaque"`
+ - `display_height: number`
- - `"auto"`
+ The height of the computer display.
+
+ - `display_width: number`
+
+ The width of the computer display.
+
+ - `environment: "windows" or "mac" or "linux" or 2 more`
+
+ The type of computer environment to control.
+
+ - `"windows"`
+
+ - `"mac"`
+
+ - `"linux"`
+
+ - `"ubuntu"`
+
+ - `"browser"`
+
+ - `type: "computer_use_preview"`
+
+ The type of the computer use tool. Always `computer_use_preview`.
+
+ - `"computer_use_preview"`
+
+ - `WebSearch object { type, external_web_access, filters, 2 more }`
+
+ 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).
+
+ - `type: "web_search" or "web_search_2025_08_26"`
+
+ The type of the web search tool. One of `web_search` or `web_search_2025_08_26`.
+
+ - `"web_search"`
+
+ - `"web_search_2025_08_26"`
+
+ - `external_web_access: optional boolean`
+
+ 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.
+
+ - `filters: optional object { allowed_domains } or null`
+
+ Filters for the search.
+
+ - `allowed_domains: optional array of string or null`
+
+ Allowed domains for the search. If not provided, all domains are allowed.
+ Subdomains of the provided domains are allowed as well.
+
+ Example: `["pubmed.ncbi.nlm.nih.gov"]`
+
+ - `search_context_size: optional "low" or "medium" or "high"`
+
+ 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.
+
+ - `"low"`
+
+ - `"medium"`
+
+ - `"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 }`
+
+ - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`
+
+ - `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`
@@ -8158,39 +8344,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"`
@@ -8198,7 +8392,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"`
@@ -8208,13 +8402,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]`
@@ -8222,75 +8414,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 }`
@@ -8300,8 +8522,6 @@ Schema name: `LiveSessionStarted`
- `type: "score"`
- The type of the object. Always `score`.
-
- `"score"`
- `name: optional string`
@@ -8470,7 +8690,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.
@@ -8478,114 +8698,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"`
@@ -9480,39 +9602,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"`
@@ -9520,7 +9650,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"`
@@ -9530,13 +9660,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]`
@@ -9546,73 +9724,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 }`
@@ -9622,8 +9780,6 @@ Schema name: `LiveSessionUpdated`
- `type: "score"`
- The type of the object. Always `score`.
-
- `"score"`
- `name: optional string`
@@ -9792,7 +9948,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.
@@ -9800,189 +9956,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`
@@ -9992,31 +10365,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`
@@ -10026,61 +10413,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`
@@ -10090,567 +10485,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.
@@ -10662,26 +11028,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`
@@ -10696,15 +11050,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"`
@@ -11738,39 +12094,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"`
@@ -11778,7 +12142,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"`
@@ -11788,13 +12152,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]`
@@ -11802,75 +12164,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 }`
@@ -11880,8 +12272,6 @@ Schema name: `LiveSessionClosed`
- `type: "score"`
- The type of the object. Always `score`.
-
- `"score"`
- `name: optional string`
@@ -12050,7 +12440,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.
@@ -12058,114 +12448,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"`