diff --git a/en/resources/live/fork-websocket/index.md b/en/resources/live/fork-websocket/index.md index fa6ba36d3c1d09685fb79e27013084306e2d8b8d..81bb95a454f9318e88d5b0980c91938ac730cf54 100644 --- a/en/resources/live/fork-websocket/index.md +++ b/en/resources/live/fork-websocket/index.md @@ -94,7 +94,7 @@ Schema name: `LiveForkSessionStartEvent` - `24000` - - `type: "audio/pcm"` + - `type: "audio/pcm" (default: "audio/pcm")` The audio encoding. Always `audio/pcm`. @@ -104,13 +104,13 @@ Schema name: `LiveForkSessionStartEvent` Raw, mono G.711 μ-law audio for a Live WebSocket connection. - - `rate: number` + - `rate: integer` Audio sample rate in hertz. G.711 audio uses 8000 Hz. `minimum: 8000`, `maximum: 8000` - - `type: "audio/pcmu"` + - `type: "audio/pcmu" (default: "audio/pcmu")` The audio encoding. Always `audio/pcmu`. @@ -120,13 +120,13 @@ Schema name: `LiveForkSessionStartEvent` Raw, mono G.711 A-law audio for a Live WebSocket connection. - - `rate: number` + - `rate: integer` Audio sample rate in hertz. G.711 audio uses 8000 Hz. `minimum: 8000`, `maximum: 8000` - - `type: "audio/pcma"` + - `type: "audio/pcma" (default: "audio/pcma")` The audio encoding. Always `audio/pcma`. @@ -150,6 +150,8 @@ Schema name: `LiveForkSessionStartEvent` - `array of string` + `maxItems: 256` + - `allowed_server_events: optional "all" or array of ServerEventSelector` Server events that may be sent to the frontend data channel. Use 'all' to allow every server event; an empty array allows none. Omission preserves the existing allow-all behavior. Responses events use an object with type 'response.event' and a response_event selector. @@ -160,6 +162,8 @@ Schema name: `LiveForkSessionStartEvent` - `array of ServerEventSelector` + `maxItems: 256` + - `type: string` The outer Live server event type. Use 'response.event' for Responses events. @@ -176,13 +180,13 @@ Schema name: `LiveForkSessionStartEvent` Overrides for the stored session’s Responses backend. Only supported when the stored session already uses Responses delegation; the delegation type cannot change. - - `type: "responses"` + - `type: "responses" (default: "responses")` The delegation owner. Always `responses` for tasks handled by the Responses API. - `"responses"` - - `acknowledgement_delay_ms: optional number` + - `acknowledgement_delay_ms: optional integer` Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations. @@ -196,7 +200,7 @@ Schema name: `LiveForkSessionStartEvent` Instructions for the delegated Responses model, separate from Live instructions. See [backend prompting](https://developers.openai.com/api/docs/guides/live-delegation#start-with-your-existing-backend-prompt). - - `max_output_tokens: optional number or null` + - `max_output_tokens: optional integer or null` Maximum number of output tokens for each delegated response. @@ -288,7 +292,7 @@ Schema name: `LiveForkSessionStartEvent` The name of the function tool to call. - - `type: "function"` + - `type: "function" (default: "function")` The tool to call. Always `function`. @@ -300,7 +304,7 @@ Schema name: `LiveForkSessionStartEvent` The label of the MCP server to call. - - `type: "mcp"` + - `type: "mcp" (default: "mcp")` The tool to call. Always `mcp`. @@ -312,7 +316,7 @@ Schema name: `LiveForkSessionStartEvent` - `FileSearch object { type }` - - `type: "file_search"` + - `type: "file_search" (default: "file_search")` The tool to call. Always `file_search`. @@ -320,7 +324,7 @@ Schema name: `LiveForkSessionStartEvent` - `WebSearch object { type }` - - `type: "web_search"` + - `type: "web_search" (default: "web_search")` The tool to call. Always `web_search`. @@ -328,7 +332,7 @@ Schema name: `LiveForkSessionStartEvent` - `WebSearchPreview object { type }` - - `type: "web_search_preview"` + - `type: "web_search_preview" (default: "web_search_preview")` The tool to call. Always `web_search_preview`. @@ -336,7 +340,7 @@ Schema name: `LiveForkSessionStartEvent` - `ImageGeneration object { type }` - - `type: "image_generation"` + - `type: "image_generation" (default: "image_generation")` The tool to call. Always `image_generation`. @@ -344,7 +348,7 @@ Schema name: `LiveForkSessionStartEvent` - `Computer object { type }` - - `type: "computer"` + - `type: "computer" (default: "computer")` The tool to call. Always `computer`. @@ -352,7 +356,7 @@ Schema name: `LiveForkSessionStartEvent` - `CodeInterpreter object { type }` - - `type: "code_interpreter"` + - `type: "code_interpreter" (default: "code_interpreter")` The tool to call. Always `code_interpreter`. @@ -360,7 +364,7 @@ Schema name: `LiveForkSessionStartEvent` - `ProgrammaticToolCalling object { type }` - - `type: "programmatic_tool_calling"` + - `type: "programmatic_tool_calling" (default: "programmatic_tool_calling")` The tool to call. Always `programmatic_tool_calling`. @@ -370,7 +374,7 @@ Schema name: `LiveForkSessionStartEvent` Forces the model to call the shell tool when a tool call is required. - - `type: "shell"` + - `type: "shell" (default: "shell")` The tool to call. Always `shell`. @@ -382,7 +386,7 @@ Schema name: `LiveForkSessionStartEvent` The name of the custom tool to call. - - `type: "custom"` + - `type: "custom" (default: "custom")` The tool to call. Always `custom`. @@ -392,7 +396,7 @@ Schema name: `LiveForkSessionStartEvent` Forces the model to call the apply_patch tool when executing a tool call. - - `type: "apply_patch"` + - `type: "apply_patch" (default: "apply_patch")` The tool to call. Always `apply_patch`. @@ -412,7 +416,7 @@ Schema name: `LiveForkSessionStartEvent` The name of the function tool to call. - - `type: "function"` + - `type: "function" (default: "function")` The tool to call. Always `function`. @@ -424,7 +428,7 @@ Schema name: `LiveForkSessionStartEvent` The label of the MCP server to call. - - `type: "mcp"` + - `type: "mcp" (default: "mcp")` The tool to call. Always `mcp`. @@ -436,7 +440,7 @@ Schema name: `LiveForkSessionStartEvent` - `FileSearch object { type }` - - `type: "file_search"` + - `type: "file_search" (default: "file_search")` The tool to call. Always `file_search`. @@ -444,7 +448,7 @@ Schema name: `LiveForkSessionStartEvent` - `WebSearch object { type }` - - `type: "web_search"` + - `type: "web_search" (default: "web_search")` The tool to call. Always `web_search`. @@ -452,7 +456,7 @@ Schema name: `LiveForkSessionStartEvent` - `WebSearchPreview object { type }` - - `type: "web_search_preview"` + - `type: "web_search_preview" (default: "web_search_preview")` The tool to call. Always `web_search_preview`. @@ -460,7 +464,7 @@ Schema name: `LiveForkSessionStartEvent` - `ImageGeneration object { type }` - - `type: "image_generation"` + - `type: "image_generation" (default: "image_generation")` The tool to call. Always `image_generation`. @@ -468,7 +472,7 @@ Schema name: `LiveForkSessionStartEvent` - `Computer object { type }` - - `type: "computer"` + - `type: "computer" (default: "computer")` The tool to call. Always `computer`. @@ -476,7 +480,7 @@ Schema name: `LiveForkSessionStartEvent` - `CodeInterpreter object { type }` - - `type: "code_interpreter"` + - `type: "code_interpreter" (default: "code_interpreter")` The tool to call. Always `code_interpreter`. @@ -484,7 +488,7 @@ Schema name: `LiveForkSessionStartEvent` - `ProgrammaticToolCalling object { type }` - - `type: "programmatic_tool_calling"` + - `type: "programmatic_tool_calling" (default: "programmatic_tool_calling")` The tool to call. Always `programmatic_tool_calling`. @@ -494,7 +498,7 @@ Schema name: `LiveForkSessionStartEvent` Forces the model to call the shell tool when a tool call is required. - - `type: "shell"` + - `type: "shell" (default: "shell")` The tool to call. Always `shell`. @@ -506,7 +510,7 @@ Schema name: `LiveForkSessionStartEvent` The name of the custom tool to call. - - `type: "custom"` + - `type: "custom" (default: "custom")` The tool to call. Always `custom`. @@ -516,13 +520,13 @@ Schema name: `LiveForkSessionStartEvent` Forces the model to call the apply_patch tool when executing a tool call. - - `type: "apply_patch"` + - `type: "apply_patch" (default: "apply_patch")` The tool to call. Always `apply_patch`. - `"apply_patch"` - - `type: "allowed_tools"` + - `type: "allowed_tools" (default: "allowed_tools")` The tool choice type. Always `allowed_tools`. @@ -550,7 +554,7 @@ Schema name: `LiveForkSessionStartEvent` The name the delegated Responses model uses when calling this function. - - `type: "function"` + - `type: "function" (default: "function")` The tool type. Always `function`. @@ -572,7 +576,7 @@ Schema name: `LiveForkSessionStartEvent` A web search tool available to the Live session’s Responses backend. - - `type: "web_search"` + - `type: "web_search" (default: "web_search")` The tool type. Always `web_search`. @@ -580,13 +584,13 @@ Schema name: `LiveForkSessionStartEvent` - `FileSearch object { type }` - - `type: "file_search"` + - `type: "file_search" (default: "file_search")` - `"file_search"` - `CodeInterpreter object { type }` - - `type: "code_interpreter"` + - `type: "code_interpreter" (default: "code_interpreter")` - `"code_interpreter"` @@ -594,7 +598,7 @@ Schema name: `LiveForkSessionStartEvent` A Responses shell tool. Use a hosted container or return local shell results with response.item.create. Domain secrets are not supported. - - `type: "shell"` + - `type: "shell" (default: "shell")` - `"shell"` @@ -602,7 +606,7 @@ Schema name: `LiveForkSessionStartEvent` - `ContainerAuto object { type, file_ids, memory_limit, 2 more }` - - `type: "container_auto"` + - `type: "container_auto" (default: "container_auto")` Automatically creates a container for this request @@ -632,7 +636,7 @@ Schema name: `LiveForkSessionStartEvent` - `Disabled object { type }` - - `type: "disabled"` + - `type: "disabled" (default: "disabled")` Disable outbound network access. Always `disabled`. @@ -646,7 +650,7 @@ Schema name: `LiveForkSessionStartEvent` `minItems: 1` - - `type: "allowlist"` + - `type: "allowlist" (default: "allowlist")` Allow outbound network access only to specified domains. Always `allowlist`. @@ -666,7 +670,7 @@ Schema name: `LiveForkSessionStartEvent` `minLength: 1`, `maxLength: 64` - - `type: "skill_reference"` + - `type: "skill_reference" (default: "skill_reference")` References a skill created with the /v1/skills endpoint. @@ -696,19 +700,19 @@ Schema name: `LiveForkSessionStartEvent` `minLength: 1`, `maxLength: 70254592` - - `media_type: "application/zip"` + - `media_type: "application/zip" (default: "application/zip")` The media type of the inline skill payload. Must be `application/zip`. - `"application/zip"` - - `type: "base64"` + - `type: "base64" (default: "base64")` The type of the inline skill source. Must be `base64`. - `"base64"` - - `type: "inline"` + - `type: "inline" (default: "inline")` Defines an inline skill for this request. @@ -720,7 +724,7 @@ Schema name: `LiveForkSessionStartEvent` The ID of the referenced container. - - `type: "container_reference"` + - `type: "container_reference" (default: "container_reference")` References a container created with the /v1/containers endpoint @@ -728,7 +732,7 @@ Schema name: `LiveForkSessionStartEvent` - `Local object { type, skills }` - - `type: "local"` + - `type: "local" (default: "local")` Use a local computer environment. @@ -754,49 +758,49 @@ Schema name: `LiveForkSessionStartEvent` - `ImageGeneration object { type }` - - `type: "image_generation"` + - `type: "image_generation" (default: "image_generation")` - `"image_generation"` - `Mcp object { type }` - - `type: "mcp"` + - `type: "mcp" (default: "mcp")` - `"mcp"` - `Custom object { type }` - - `type: "custom"` + - `type: "custom" (default: "custom")` - `"custom"` - `Namespace object { type }` - - `type: "namespace"` + - `type: "namespace" (default: "namespace")` - `"namespace"` - `ToolSearch object { type }` - - `type: "tool_search"` + - `type: "tool_search" (default: "tool_search")` - `"tool_search"` - `ProgrammaticToolCalling object { type }` - - `type: "programmatic_tool_calling"` + - `type: "programmatic_tool_calling" (default: "programmatic_tool_calling")` - `"programmatic_tool_calling"` - `Computer object { type }` - - `type: "computer"` + - `type: "computer" (default: "computer")` - `"computer"` - `ApplyPatch object { type }` - - `type: "apply_patch"` + - `type: "apply_patch" (default: "apply_patch")` - `"apply_patch"` @@ -804,7 +808,7 @@ Schema name: `LiveForkSessionStartEvent` Whether to store the forked session. Omission inherits the stored session's setting. -- `type: "session.start"` +- `type: "session.start" (default: "session.start")` The Live client event type. Always `session.start`. @@ -847,13 +851,13 @@ Schema name: `LiveSessionUpdateParam` Delegate tasks to your application. The Live session emits delegation events that your backend handles. - - `type: "client"` + - `type: "client" (default: "client")` The delegation owner. Always `client` for tasks handled by your application. - `"client"` - - `acknowledgement_delay_ms: optional number` + - `acknowledgement_delay_ms: optional integer` Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations. @@ -863,13 +867,13 @@ Schema name: `LiveSessionUpdateParam` Update the Responses backend for an existing Live session without changing delegation ownership. - - `type: "responses"` + - `type: "responses" (default: "responses")` The delegation owner. Always `responses` for tasks handled by the Responses API. - `"responses"` - - `acknowledgement_delay_ms: optional number` + - `acknowledgement_delay_ms: optional integer` Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations. @@ -883,7 +887,7 @@ Schema name: `LiveSessionUpdateParam` Instructions for the delegated Responses model, separate from Live instructions. See [backend prompting](https://developers.openai.com/api/docs/guides/live-delegation#start-with-your-existing-backend-prompt). - - `max_output_tokens: optional number or null` + - `max_output_tokens: optional integer or null` Maximum number of output tokens for each delegated response. @@ -975,7 +979,7 @@ Schema name: `LiveSessionUpdateParam` The name of the function tool to call. - - `type: "function"` + - `type: "function" (default: "function")` The tool to call. Always `function`. @@ -987,7 +991,7 @@ Schema name: `LiveSessionUpdateParam` The label of the MCP server to call. - - `type: "mcp"` + - `type: "mcp" (default: "mcp")` The tool to call. Always `mcp`. @@ -999,7 +1003,7 @@ Schema name: `LiveSessionUpdateParam` - `FileSearch object { type }` - - `type: "file_search"` + - `type: "file_search" (default: "file_search")` The tool to call. Always `file_search`. @@ -1007,7 +1011,7 @@ Schema name: `LiveSessionUpdateParam` - `WebSearch object { type }` - - `type: "web_search"` + - `type: "web_search" (default: "web_search")` The tool to call. Always `web_search`. @@ -1015,7 +1019,7 @@ Schema name: `LiveSessionUpdateParam` - `WebSearchPreview object { type }` - - `type: "web_search_preview"` + - `type: "web_search_preview" (default: "web_search_preview")` The tool to call. Always `web_search_preview`. @@ -1023,7 +1027,7 @@ Schema name: `LiveSessionUpdateParam` - `ImageGeneration object { type }` - - `type: "image_generation"` + - `type: "image_generation" (default: "image_generation")` The tool to call. Always `image_generation`. @@ -1031,7 +1035,7 @@ Schema name: `LiveSessionUpdateParam` - `Computer object { type }` - - `type: "computer"` + - `type: "computer" (default: "computer")` The tool to call. Always `computer`. @@ -1039,7 +1043,7 @@ Schema name: `LiveSessionUpdateParam` - `CodeInterpreter object { type }` - - `type: "code_interpreter"` + - `type: "code_interpreter" (default: "code_interpreter")` The tool to call. Always `code_interpreter`. @@ -1047,7 +1051,7 @@ Schema name: `LiveSessionUpdateParam` - `ProgrammaticToolCalling object { type }` - - `type: "programmatic_tool_calling"` + - `type: "programmatic_tool_calling" (default: "programmatic_tool_calling")` The tool to call. Always `programmatic_tool_calling`. @@ -1057,7 +1061,7 @@ Schema name: `LiveSessionUpdateParam` Forces the model to call the shell tool when a tool call is required. - - `type: "shell"` + - `type: "shell" (default: "shell")` The tool to call. Always `shell`. @@ -1069,7 +1073,7 @@ Schema name: `LiveSessionUpdateParam` The name of the custom tool to call. - - `type: "custom"` + - `type: "custom" (default: "custom")` The tool to call. Always `custom`. @@ -1079,7 +1083,7 @@ Schema name: `LiveSessionUpdateParam` Forces the model to call the apply_patch tool when executing a tool call. - - `type: "apply_patch"` + - `type: "apply_patch" (default: "apply_patch")` The tool to call. Always `apply_patch`. @@ -1099,7 +1103,7 @@ Schema name: `LiveSessionUpdateParam` The name of the function tool to call. - - `type: "function"` + - `type: "function" (default: "function")` The tool to call. Always `function`. @@ -1111,7 +1115,7 @@ Schema name: `LiveSessionUpdateParam` The label of the MCP server to call. - - `type: "mcp"` + - `type: "mcp" (default: "mcp")` The tool to call. Always `mcp`. @@ -1123,7 +1127,7 @@ Schema name: `LiveSessionUpdateParam` - `FileSearch object { type }` - - `type: "file_search"` + - `type: "file_search" (default: "file_search")` The tool to call. Always `file_search`. @@ -1131,7 +1135,7 @@ Schema name: `LiveSessionUpdateParam` - `WebSearch object { type }` - - `type: "web_search"` + - `type: "web_search" (default: "web_search")` The tool to call. Always `web_search`. @@ -1139,7 +1143,7 @@ Schema name: `LiveSessionUpdateParam` - `WebSearchPreview object { type }` - - `type: "web_search_preview"` + - `type: "web_search_preview" (default: "web_search_preview")` The tool to call. Always `web_search_preview`. @@ -1147,7 +1151,7 @@ Schema name: `LiveSessionUpdateParam` - `ImageGeneration object { type }` - - `type: "image_generation"` + - `type: "image_generation" (default: "image_generation")` The tool to call. Always `image_generation`. @@ -1155,7 +1159,7 @@ Schema name: `LiveSessionUpdateParam` - `Computer object { type }` - - `type: "computer"` + - `type: "computer" (default: "computer")` The tool to call. Always `computer`. @@ -1163,7 +1167,7 @@ Schema name: `LiveSessionUpdateParam` - `CodeInterpreter object { type }` - - `type: "code_interpreter"` + - `type: "code_interpreter" (default: "code_interpreter")` The tool to call. Always `code_interpreter`. @@ -1171,7 +1175,7 @@ Schema name: `LiveSessionUpdateParam` - `ProgrammaticToolCalling object { type }` - - `type: "programmatic_tool_calling"` + - `type: "programmatic_tool_calling" (default: "programmatic_tool_calling")` The tool to call. Always `programmatic_tool_calling`. @@ -1181,7 +1185,7 @@ Schema name: `LiveSessionUpdateParam` Forces the model to call the shell tool when a tool call is required. - - `type: "shell"` + - `type: "shell" (default: "shell")` The tool to call. Always `shell`. @@ -1193,7 +1197,7 @@ Schema name: `LiveSessionUpdateParam` The name of the custom tool to call. - - `type: "custom"` + - `type: "custom" (default: "custom")` The tool to call. Always `custom`. @@ -1203,13 +1207,13 @@ Schema name: `LiveSessionUpdateParam` Forces the model to call the apply_patch tool when executing a tool call. - - `type: "apply_patch"` + - `type: "apply_patch" (default: "apply_patch")` The tool to call. Always `apply_patch`. - `"apply_patch"` - - `type: "allowed_tools"` + - `type: "allowed_tools" (default: "allowed_tools")` The tool choice type. Always `allowed_tools`. @@ -1237,7 +1241,7 @@ Schema name: `LiveSessionUpdateParam` The name the delegated Responses model uses when calling this function. - - `type: "function"` + - `type: "function" (default: "function")` The tool type. Always `function`. @@ -1259,7 +1263,7 @@ Schema name: `LiveSessionUpdateParam` A web search tool available to the Live session’s Responses backend. - - `type: "web_search"` + - `type: "web_search" (default: "web_search")` The tool type. Always `web_search`. @@ -1267,13 +1271,13 @@ Schema name: `LiveSessionUpdateParam` - `FileSearch object { type }` - - `type: "file_search"` + - `type: "file_search" (default: "file_search")` - `"file_search"` - `CodeInterpreter object { type }` - - `type: "code_interpreter"` + - `type: "code_interpreter" (default: "code_interpreter")` - `"code_interpreter"` @@ -1281,7 +1285,7 @@ Schema name: `LiveSessionUpdateParam` A Responses shell tool. Use a hosted container or return local shell results with response.item.create. Domain secrets are not supported. - - `type: "shell"` + - `type: "shell" (default: "shell")` - `"shell"` @@ -1289,7 +1293,7 @@ Schema name: `LiveSessionUpdateParam` - `ContainerAuto object { type, file_ids, memory_limit, 2 more }` - - `type: "container_auto"` + - `type: "container_auto" (default: "container_auto")` Automatically creates a container for this request @@ -1319,7 +1323,7 @@ Schema name: `LiveSessionUpdateParam` - `Disabled object { type }` - - `type: "disabled"` + - `type: "disabled" (default: "disabled")` Disable outbound network access. Always `disabled`. @@ -1333,7 +1337,7 @@ Schema name: `LiveSessionUpdateParam` `minItems: 1` - - `type: "allowlist"` + - `type: "allowlist" (default: "allowlist")` Allow outbound network access only to specified domains. Always `allowlist`. @@ -1353,7 +1357,7 @@ Schema name: `LiveSessionUpdateParam` `minLength: 1`, `maxLength: 64` - - `type: "skill_reference"` + - `type: "skill_reference" (default: "skill_reference")` References a skill created with the /v1/skills endpoint. @@ -1383,19 +1387,19 @@ Schema name: `LiveSessionUpdateParam` `minLength: 1`, `maxLength: 70254592` - - `media_type: "application/zip"` + - `media_type: "application/zip" (default: "application/zip")` The media type of the inline skill payload. Must be `application/zip`. - `"application/zip"` - - `type: "base64"` + - `type: "base64" (default: "base64")` The type of the inline skill source. Must be `base64`. - `"base64"` - - `type: "inline"` + - `type: "inline" (default: "inline")` Defines an inline skill for this request. @@ -1407,7 +1411,7 @@ Schema name: `LiveSessionUpdateParam` The ID of the referenced container. - - `type: "container_reference"` + - `type: "container_reference" (default: "container_reference")` References a container created with the /v1/containers endpoint @@ -1415,7 +1419,7 @@ Schema name: `LiveSessionUpdateParam` - `Local object { type, skills }` - - `type: "local"` + - `type: "local" (default: "local")` Use a local computer environment. @@ -1441,59 +1445,59 @@ Schema name: `LiveSessionUpdateParam` - `ImageGeneration object { type }` - - `type: "image_generation"` + - `type: "image_generation" (default: "image_generation")` - `"image_generation"` - `Mcp object { type }` - - `type: "mcp"` + - `type: "mcp" (default: "mcp")` - `"mcp"` - `Custom object { type }` - - `type: "custom"` + - `type: "custom" (default: "custom")` - `"custom"` - `Namespace object { type }` - - `type: "namespace"` + - `type: "namespace" (default: "namespace")` - `"namespace"` - `ToolSearch object { type }` - - `type: "tool_search"` + - `type: "tool_search" (default: "tool_search")` - `"tool_search"` - `ProgrammaticToolCalling object { type }` - - `type: "programmatic_tool_calling"` + - `type: "programmatic_tool_calling" (default: "programmatic_tool_calling")` - `"programmatic_tool_calling"` - `Computer object { type }` - - `type: "computer"` + - `type: "computer" (default: "computer")` - `"computer"` - `ApplyPatch object { type }` - - `type: "apply_patch"` + - `type: "apply_patch" (default: "apply_patch")` - `"apply_patch"` - `Decisions object { type, acknowledgement_delay_ms, decisions }` - - `type: "decisions"` + - `type: "decisions" (default: "decisions")` - `"decisions"` - - `acknowledgement_delay_ms: optional number` + - `acknowledgement_delay_ms: optional integer` Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations. @@ -1531,6 +1535,8 @@ Schema name: `LiveSessionUpdateParam` - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` + `minItems: 1` + - `DecisionInputText object { text, type }` - `text: string` @@ -1539,7 +1545,7 @@ Schema name: `LiveSessionUpdateParam` `maxLength: 10485760` - - `type: "input_text"` + - `type: "input_text" (default: "input_text")` - `"input_text"` @@ -1549,9 +1555,9 @@ Schema name: `LiveSessionUpdateParam` A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `maxLength: 20971520` + `pattern: ^(data:|https?://)`, `maxLength: 20971520` - - `type: "input_image"` + - `type: "input_image" (default: "input_image")` - `"input_image"` @@ -1575,11 +1581,11 @@ Schema name: `LiveSessionUpdateParam` - `array of map[unknown]` - - `type: "input_json"` + - `type: "input_json" (default: "input_json")` - `"input_json"` - - `type: "choice"` + - `type: "choice" (default: "choice")` - `"choice"` @@ -1593,6 +1599,8 @@ Schema name: `LiveSessionUpdateParam` - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` + `minItems: 1` + - `DecisionInputText object { text, type }` - `InputImage object { image_url, type, detail }` @@ -1601,9 +1609,9 @@ Schema name: `LiveSessionUpdateParam` A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `maxLength: 20971520` + `pattern: ^(data:|https?://)`, `maxLength: 20971520` - - `type: "input_image"` + - `type: "input_image" (default: "input_image")` - `"input_image"` @@ -1627,11 +1635,11 @@ Schema name: `LiveSessionUpdateParam` - `array of map[unknown]` - - `type: "input_json"` + - `type: "input_json" (default: "input_json")` - `"input_json"` - - `type: "predicate"` + - `type: "predicate" (default: "predicate")` - `"predicate"` @@ -1645,6 +1653,8 @@ Schema name: `LiveSessionUpdateParam` - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` + `minItems: 1` + - `DecisionInputText object { text, type }` - `InputImage object { image_url, type, detail }` @@ -1653,9 +1663,9 @@ Schema name: `LiveSessionUpdateParam` A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `maxLength: 20971520` + `pattern: ^(data:|https?://)`, `maxLength: 20971520` - - `type: "input_image"` + - `type: "input_image" (default: "input_image")` - `"input_image"` @@ -1679,7 +1689,7 @@ Schema name: `LiveSessionUpdateParam` - `array of map[unknown]` - - `type: "input_json"` + - `type: "input_json" (default: "input_json")` - `"input_json"` @@ -1691,7 +1701,7 @@ Schema name: `LiveSessionUpdateParam` - `description: optional string` - - `type: "score"` + - `type: "score" (default: "score")` - `"score"` @@ -1725,11 +1735,11 @@ Schema name: `LiveSessionUpdateParam` - `"session.output_transcript.delta"` - - `type: "decisions"` + - `type: "decisions" (default: "decisions")` - `"decisions"` -- `type: "session.update"` +- `type: "session.update" (default: "session.update")` The Live client event type. Always `session.update`. @@ -1775,7 +1785,7 @@ Schema name: `LiveInputAudioAppendEvent` `minLength: 1` -- `type: "session.input_audio.append"` +- `type: "session.input_audio.append" (default: "session.input_audio.append")` The Live client event type. Always `session.input_audio.append`. @@ -1806,7 +1816,7 @@ Mute audio input to the Live model without closing the session. The server ackno Schema name: `LiveInputAudioMuteParam` -- `type: "session.input_audio.mute"` +- `type: "session.input_audio.mute" (default: "session.input_audio.mute")` The Live client event type. Always `session.input_audio.mute`. @@ -1837,7 +1847,7 @@ Resume audio input to a Live model after muting it. The server acknowledges with Schema name: `LiveInputAudioUnmuteParam` -- `type: "session.input_audio.unmute"` +- `type: "session.input_audio.unmute" (default: "session.input_audio.unmute")` The Live client event type. Always `session.input_audio.unmute`. @@ -1874,7 +1884,7 @@ Schema name: `LiveOutputAudioFixturePlayParam` `minLength: 1`, `maxLength: 1920000` -- `type: "session.output_audio.fixture.play"` +- `type: "session.output_audio.fixture.play" (default: "session.output_audio.fixture.play")` - `"session.output_audio.fixture.play"` @@ -1914,7 +1924,7 @@ Schema name: `LiveInstructionsAppendParam` `minLength: 1` -- `type: "session.instructions.append"` +- `type: "session.instructions.append" (default: "session.instructions.append")` The Live client event type. Always `session.instructions.append`. @@ -1957,7 +1967,7 @@ Schema name: `LiveThinkingAppendParam` `minLength: 1` -- `type: "session.thinking.append"` +- `type: "session.thinking.append" (default: "session.thinking.append")` The Live client event type. Always `session.thinking.append`. @@ -2000,7 +2010,7 @@ Schema name: `LiveCommentaryAppendParam` `minLength: 1` -- `type: "session.commentary.append"` +- `type: "session.commentary.append" (default: "session.commentary.append")` The Live client event type. Always `session.commentary.append`. @@ -2037,7 +2047,7 @@ Schema name: `LiveDecisionCreateParam` `minLength: 1`, `maxLength: 256` -- `type: "decision.create"` +- `type: "decision.create" (default: "decision.create")` - `"decision.create"` @@ -2072,6 +2082,8 @@ Schema name: `LiveDecisionItemCreateParam` The text input to the model. + `maxLength: 10485760` + - `array of InputText { text, type } or InputImage { image_url, type, detail } or InputJSON { data, type }` - `InputText object { text, type }` @@ -2082,7 +2094,7 @@ Schema name: `LiveDecisionItemCreateParam` `maxLength: 10485760` - - `type: "input_text"` + - `type: "input_text" (default: "input_text")` - `"input_text"` @@ -2092,9 +2104,9 @@ Schema name: `LiveDecisionItemCreateParam` A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `maxLength: 20971520` + `pattern: ^(data:|https?://)`, `maxLength: 20971520` - - `type: "input_image"` + - `type: "input_image" (default: "input_image")` - `"input_image"` @@ -2118,11 +2130,11 @@ Schema name: `LiveDecisionItemCreateParam` - `array of map[unknown]` - - `type: "input_json"` + - `type: "input_json" (default: "input_json")` - `"input_json"` - - `role: "user"` + - `role: "user" (default: "user")` The message role. Always `user`. @@ -2132,7 +2144,7 @@ Schema name: `LiveDecisionItemCreateParam` The unique ID of this message item. - - `type: optional "message"` + - `type: optional "message" (default: "message")` - `"message"` @@ -2146,6 +2158,8 @@ Schema name: `LiveDecisionItemCreateParam` The text input to the model. + `maxLength: 10485760` + - `array of DecisionInputText` - `text: string` @@ -2154,11 +2168,11 @@ Schema name: `LiveDecisionItemCreateParam` `maxLength: 10485760` - - `type: "input_text"` + - `type: "input_text" (default: "input_text")` - `"input_text"` - - `role: "developer"` + - `role: "developer" (default: "developer")` - `"developer"` @@ -2166,7 +2180,7 @@ Schema name: `LiveDecisionItemCreateParam` The unique ID of this message item. - - `type: optional "message"` + - `type: optional "message" (default: "message")` - `"message"` @@ -2180,6 +2194,8 @@ Schema name: `LiveDecisionItemCreateParam` The text input to the model. + `maxLength: 10485760` + - `array of DecisionInputText` - `text: string` @@ -2188,9 +2204,9 @@ Schema name: `LiveDecisionItemCreateParam` `maxLength: 10485760` - - `type: "input_text"` + - `type: "input_text" (default: "input_text")` - - `role: "system"` + - `role: "system" (default: "system")` - `"system"` @@ -2198,7 +2214,7 @@ Schema name: `LiveDecisionItemCreateParam` The unique ID of this message item. - - `type: optional "message"` + - `type: optional "message" (default: "message")` - `"message"` @@ -2212,6 +2228,8 @@ Schema name: `LiveDecisionItemCreateParam` The text input to the model. + `maxLength: 10485760` + - `array of OutputText { text, type } or Refusal { refusal, type }` - `OutputText object { text, type }` @@ -2222,7 +2240,7 @@ Schema name: `LiveDecisionItemCreateParam` `maxLength: 10485760` - - `type: "output_text"` + - `type: "output_text" (default: "output_text")` - `"output_text"` @@ -2234,11 +2252,11 @@ Schema name: `LiveDecisionItemCreateParam` `maxLength: 10485760` - - `type: "refusal"` + - `type: "refusal" (default: "refusal")` - `"refusal"` - - `role: "assistant"` + - `role: "assistant" (default: "assistant")` - `"assistant"` @@ -2254,7 +2272,7 @@ Schema name: `LiveDecisionItemCreateParam` - `"final_answer"` - - `type: optional "message"` + - `type: optional "message" (default: "message")` - `"message"` @@ -2272,9 +2290,9 @@ Schema name: `LiveDecisionItemCreateParam` - `name: string` - `minLength: 1`, `maxLength: 128` + `pattern: ^[a-zA-Z0-9_.-]+$`, `minLength: 1`, `maxLength: 128` - - `type: "function_call"` + - `type: "function_call" (default: "function_call")` The item type. Always `function_call`. @@ -2288,7 +2306,7 @@ Schema name: `LiveDecisionItemCreateParam` The namespace of the function to call. - `minLength: 1`, `maxLength: 64` + `pattern: ^[a-zA-Z0-9_-]+$`, `minLength: 1`, `maxLength: 64` - `status: optional "in_progress" or "completed" or "incomplete" or null` @@ -2314,6 +2332,8 @@ Schema name: `LiveDecisionItemCreateParam` The text input to the model. + `maxLength: 10485760` + - `array of DecisionInputText or InputImage { image_url, type, detail }` - `DecisionInputText object { text, type }` @@ -2324,7 +2344,7 @@ Schema name: `LiveDecisionItemCreateParam` `maxLength: 10485760` - - `type: "input_text"` + - `type: "input_text" (default: "input_text")` - `InputImage object { image_url, type, detail }` @@ -2332,9 +2352,9 @@ Schema name: `LiveDecisionItemCreateParam` A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `maxLength: 20971520` + `pattern: ^(data:|https?://)`, `maxLength: 20971520` - - `type: "input_image"` + - `type: "input_image" (default: "input_image")` - `"input_image"` @@ -2350,7 +2370,7 @@ Schema name: `LiveDecisionItemCreateParam` - `"original"` - - `type: "function_call_output"` + - `type: "function_call_output" (default: "function_call_output")` The type of the function tool call output. Always `function_call_output`. @@ -2384,9 +2404,9 @@ Schema name: `LiveDecisionItemCreateParam` The name of the custom tool to call. - `minLength: 1`, `maxLength: 64` + `pattern: ^[a-zA-Z0-9_-]+$`, `minLength: 1`, `maxLength: 64` - - `type: "custom_tool_call"` + - `type: "custom_tool_call" (default: "custom_tool_call")` The item type. Always `custom_tool_call`. @@ -2400,7 +2420,7 @@ Schema name: `LiveDecisionItemCreateParam` The namespace of the function to call. - `minLength: 1`, `maxLength: 64` + `pattern: ^[a-zA-Z0-9_-]+$`, `minLength: 1`, `maxLength: 64` - `status: optional "in_progress" or "completed" or "incomplete" or null` @@ -2426,6 +2446,8 @@ Schema name: `LiveDecisionItemCreateParam` The text input to the model. + `maxLength: 10485760` + - `array of DecisionInputText or InputImage { image_url, type, detail }` - `DecisionInputText object { text, type }` @@ -2436,9 +2458,9 @@ Schema name: `LiveDecisionItemCreateParam` A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `maxLength: 20971520` + `pattern: ^(data:|https?://)`, `maxLength: 20971520` - - `type: "input_image"` + - `type: "input_image" (default: "input_image")` - `"input_image"` @@ -2454,7 +2476,7 @@ Schema name: `LiveDecisionItemCreateParam` - `"original"` - - `type: "custom_tool_call_output"` + - `type: "custom_tool_call_output" (default: "custom_tool_call_output")` - `"custom_tool_call_output"` @@ -2470,7 +2492,7 @@ Schema name: `LiveDecisionItemCreateParam` - `"incomplete"` -- `type: "decision.item.create"` +- `type: "decision.item.create" (default: "decision.item.create")` - `"decision.item.create"` @@ -2513,7 +2535,7 @@ Schema name: `LiveDecisionItemDeleteParam` `minLength: 1` -- `type: "decision.item.delete"` +- `type: "decision.item.delete" (default: "decision.item.delete")` - `"decision.item.delete"` @@ -2577,7 +2599,7 @@ Schema name: `LiveResponseItemCreateParam` The text input to the model. - - `type: "input_text"` + - `type: "input_text" (default: "input_text")` The type of the input item. Always `input_text`. @@ -2587,7 +2609,7 @@ Schema name: `LiveResponseItemCreateParam` Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. - - `mode: "explicit"` + - `mode: "explicit" (default: "explicit")` The breakpoint mode. Always `explicit`. @@ -2617,7 +2639,7 @@ Schema name: `LiveResponseItemCreateParam` - `"original"` - - `type: "input_image"` + - `type: "input_image" (default: "input_image")` The type of the input item. Always `input_image`. @@ -2637,7 +2659,7 @@ Schema name: `LiveResponseItemCreateParam` Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. - - `mode: "explicit"` + - `mode: "explicit" (default: "explicit")` The breakpoint mode. Always `explicit`. @@ -2655,7 +2677,7 @@ Schema name: `LiveResponseItemCreateParam` A file input to the model. - - `type: "input_file"` + - `type: "input_file" (default: "input_file")` The type of the input item. Always `input_file`. @@ -2693,7 +2715,7 @@ Schema name: `LiveResponseItemCreateParam` Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. - - `mode: "explicit"` + - `mode: "explicit" (default: "explicit")` The breakpoint mode. Always `explicit`. @@ -2806,11 +2828,11 @@ Schema name: `LiveResponseItemCreateParam` The filename of the file cited. - - `index: number` + - `index: integer` The index in the output text at which to insert the file citation. - - `type: "file_citation"` + - `type: "file_citation" (default: "file_citation")` The type of the file citation. Always `file_citation`. @@ -2820,11 +2842,11 @@ Schema name: `LiveResponseItemCreateParam` A citation for a web resource used to generate a model response. - - `end_index: number` + - `end_index: integer` The index of the last character of the URL citation in the message. - - `start_index: number` + - `start_index: integer` The index of the first character of the URL citation in the message. @@ -2832,7 +2854,7 @@ Schema name: `LiveResponseItemCreateParam` The title of the web resource. - - `type: "url_citation"` + - `type: "url_citation" (default: "url_citation")` The type of the URL citation. Always `url_citation`. @@ -2852,7 +2874,7 @@ Schema name: `LiveResponseItemCreateParam` The ID of the container file. - - `end_index: number` + - `end_index: integer` The index of the last character of the container file citation in the message. @@ -2864,11 +2886,11 @@ Schema name: `LiveResponseItemCreateParam` The filename of the container file cited. - - `start_index: number` + - `start_index: integer` The index of the first character of the container file citation in the message. - - `type: "container_file_citation"` + - `type: "container_file_citation" (default: "container_file_citation")` The type of the container file citation. Always `container_file_citation`. @@ -2882,7 +2904,7 @@ Schema name: `LiveResponseItemCreateParam` The ID of the file. - - `index: number` + - `index: integer` The index of the file in the list of files. @@ -2912,7 +2934,7 @@ Schema name: `LiveResponseItemCreateParam` The text output from the model. - - `type: "output_text"` + - `type: "output_text" (default: "output_text")` The type of the output text. Always `output_text`. @@ -2926,7 +2948,7 @@ Schema name: `LiveResponseItemCreateParam` The refusal explanation from the model. - - `type: "refusal"` + - `type: "refusal" (default: "refusal")` The type of the refusal. Always `refusal`. @@ -3013,6 +3035,8 @@ Schema name: `LiveResponseItemCreateParam` - `string` + `maxLength: 512` + - `number` - `boolean` @@ -3075,7 +3099,7 @@ Schema name: `LiveResponseItemCreateParam` - `"incomplete"` - - `type: "computer_call"` + - `type: "computer_call" (default: "computer_call")` The type of the computer call. Always `computer_call`. @@ -3103,17 +3127,17 @@ Schema name: `LiveResponseItemCreateParam` - `"forward"` - - `type: "click"` + - `type: "click" (default: "click")` Specifies the event type. For a click action, this property is always `click`. - `"click"` - - `x: number` + - `x: integer` The x-coordinate where the click occurred. - - `y: number` + - `y: integer` The y-coordinate where the click occurred. @@ -3129,17 +3153,17 @@ Schema name: `LiveResponseItemCreateParam` The keys being held while double-clicking. - - `type: "double_click"` + - `type: "double_click" (default: "double_click")` Specifies the event type. For a double click action, this property is always set to `double_click`. - `"double_click"` - - `x: number` + - `x: integer` The x-coordinate where the double click occurred. - - `y: number` + - `y: integer` The y-coordinate where the double click occurred. @@ -3158,15 +3182,15 @@ Schema name: `LiveResponseItemCreateParam` ] ``` - - `x: number` + - `x: integer` The x-coordinate. - - `y: number` + - `y: integer` The y-coordinate. - - `type: "drag"` + - `type: "drag" (default: "drag")` Specifies the event type. For a drag action, this property is always set to `drag`. @@ -3184,7 +3208,7 @@ Schema name: `LiveResponseItemCreateParam` The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key. - - `type: "keypress"` + - `type: "keypress" (default: "keypress")` Specifies the event type. For a keypress action, this property is always set to `keypress`. @@ -3194,17 +3218,17 @@ Schema name: `LiveResponseItemCreateParam` A mouse move action. - - `type: "move"` + - `type: "move" (default: "move")` Specifies the event type. For a move action, this property is always set to `move`. - `"move"` - - `x: number` + - `x: integer` The x-coordinate to move to. - - `y: number` + - `y: integer` The y-coordinate to move to. @@ -3216,7 +3240,7 @@ Schema name: `LiveResponseItemCreateParam` A screenshot action. - - `type: "screenshot"` + - `type: "screenshot" (default: "screenshot")` Specifies the event type. For a screenshot action, this property is always set to `screenshot`. @@ -3226,25 +3250,25 @@ Schema name: `LiveResponseItemCreateParam` A scroll action. - - `scroll_x: number` + - `scroll_x: integer` The horizontal scroll distance. - - `scroll_y: number` + - `scroll_y: integer` The vertical scroll distance. - - `type: "scroll"` + - `type: "scroll" (default: "scroll")` Specifies the event type. For a scroll action, this property is always set to `scroll`. - `"scroll"` - - `x: number` + - `x: integer` The x-coordinate where the scroll occurred. - - `y: number` + - `y: integer` The y-coordinate where the scroll occurred. @@ -3260,7 +3284,7 @@ Schema name: `LiveResponseItemCreateParam` The text to type. - - `type: "type"` + - `type: "type" (default: "type")` Specifies the event type. For a type action, this property is always set to `type`. @@ -3270,7 +3294,7 @@ Schema name: `LiveResponseItemCreateParam` A wait action. - - `type: "wait"` + - `type: "wait" (default: "wait")` Specifies the event type. For a wait action, this property is always set to `wait`. @@ -3331,7 +3355,7 @@ Schema name: `LiveResponseItemCreateParam` A computer screenshot image used with the computer use tool. - - `type: "computer_screenshot"` + - `type: "computer_screenshot" (default: "computer_screenshot")` Specifies the event type. For a computer screenshot, this property is always set to `computer_screenshot`. @@ -3348,7 +3372,7 @@ Schema name: `LiveResponseItemCreateParam` `format: uri` - - `type: "computer_call_output"` + - `type: "computer_call_output" (default: "computer_call_output")` The type of the computer tool call output. Always `computer_call_output`. @@ -3525,7 +3549,7 @@ Schema name: `LiveResponseItemCreateParam` - `Direct object { type }` - - `type: "direct"` + - `type: "direct" (default: "direct")` - `"direct"` @@ -3535,7 +3559,7 @@ Schema name: `LiveResponseItemCreateParam` The call ID of the program item that produced this tool call. - - `type: "program"` + - `type: "program" (default: "program")` - `"program"` @@ -3566,6 +3590,8 @@ Schema name: `LiveResponseItemCreateParam` A JSON string of the output of the function tool call. + `maxLength: 10485760` + - `array of ResponseInputTextContent or ResponseInputImageContent or ResponseInputFileContent` An array of content outputs (text, image, file) for the function tool call. @@ -3580,7 +3606,7 @@ Schema name: `LiveResponseItemCreateParam` `maxLength: 10485760` - - `type: "input_text"` + - `type: "input_text" (default: "input_text")` The type of the input item. Always `input_text`. @@ -3590,7 +3616,7 @@ Schema name: `LiveResponseItemCreateParam` Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. - - `mode: "explicit"` + - `mode: "explicit" (default: "explicit")` The breakpoint mode. Always `explicit`. @@ -3608,7 +3634,7 @@ Schema name: `LiveResponseItemCreateParam` An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision) - - `type: "input_image"` + - `type: "input_image" (default: "input_image")` The type of the input item. Always `input_image`. @@ -3632,7 +3658,7 @@ Schema name: `LiveResponseItemCreateParam` Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. - - `mode: "explicit"` + - `mode: "explicit" (default: "explicit")` The breakpoint mode. Always `explicit`. @@ -3650,7 +3676,7 @@ Schema name: `LiveResponseItemCreateParam` A file input to the model. - - `type: "input_file"` + - `type: "input_file" (default: "input_file")` The type of the input item. Always `input_file`. @@ -3690,7 +3716,7 @@ Schema name: `LiveResponseItemCreateParam` Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. - - `mode: "explicit"` + - `mode: "explicit" (default: "explicit")` The breakpoint mode. Always `explicit`. @@ -3704,7 +3730,7 @@ Schema name: `LiveResponseItemCreateParam` - `"12h"` - - `type: "function_call_output"` + - `type: "function_call_output" (default: "function_call_output")` The type of the function tool call output. Always `function_call_output`. @@ -3726,7 +3752,7 @@ Schema name: `LiveResponseItemCreateParam` - `Direct object { type }` - - `type: "direct"` + - `type: "direct" (default: "direct")` The caller type. Always `direct`. @@ -3740,7 +3766,7 @@ Schema name: `LiveResponseItemCreateParam` `minLength: 1`, `maxLength: 64` - - `type: "program"` + - `type: "program" (default: "program")` The caller type. Always `program`. @@ -3756,7 +3782,7 @@ Schema name: `LiveResponseItemCreateParam` The namespace of the tool that produced the output. - `minLength: 1`, `maxLength: 64` + `pattern: ^[a-zA-Z0-9_-]+$`, `minLength: 1`, `maxLength: 64` - `status: optional "in_progress" or "completed" or "incomplete" or null` @@ -3774,7 +3800,7 @@ Schema name: `LiveResponseItemCreateParam` The arguments supplied to the tool search call. - - `type: "tool_search_call"` + - `type: "tool_search_call" (default: "tool_search_call")` The item type. Always `tool_search_call`. @@ -3830,7 +3856,7 @@ Schema name: `LiveResponseItemCreateParam` Whether strict parameter validation is enforced for this function tool. - - `type: "function"` + - `type: "function" (default: "function")` The type of the function tool. Always `function`. @@ -3862,7 +3888,7 @@ Schema name: `LiveResponseItemCreateParam` 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). - - `type: "file_search"` + - `type: "file_search" (default: "file_search")` The type of the file search tool. Always `file_search`. @@ -3884,7 +3910,7 @@ Schema name: `LiveResponseItemCreateParam` The key to compare against the value. - - `type: "eq" or "ne" or "gt" or 5 more` + - `type: "eq" or "ne" or "gt" or 5 more (default: "eq")` Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `in`, `nin`. @@ -3953,7 +3979,7 @@ Schema name: `LiveResponseItemCreateParam` - `"or"` - - `max_num_results: optional number` + - `max_num_results: optional integer` The maximum number of results to return. This number should be between 1 and 50 inclusive. @@ -3989,7 +4015,7 @@ Schema name: `LiveResponseItemCreateParam` A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use). - - `type: "computer"` + - `type: "computer" (default: "computer")` The type of the computer tool. Always `computer`. @@ -3999,11 +4025,11 @@ Schema name: `LiveResponseItemCreateParam` A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use). - - `display_height: number` + - `display_height: integer` The height of the computer display. - - `display_width: number` + - `display_width: integer` The width of the computer display. @@ -4021,7 +4047,7 @@ Schema name: `LiveResponseItemCreateParam` - `"browser"` - - `type: "computer_use_preview"` + - `type: "computer_use_preview" (default: "computer_use_preview")` The type of the computer use tool. Always `computer_use_preview`. @@ -4032,7 +4058,7 @@ Schema name: `LiveResponseItemCreateParam` 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"` + - `type: "web_search" or "web_search_2025_08_26" (default: "web_search")` The type of the web search tool. One of `web_search` or `web_search_2025_08_26`. @@ -4040,7 +4066,7 @@ Schema name: `LiveResponseItemCreateParam` - `"web_search_2025_08_26"` - - `external_web_access: optional boolean` + - `external_web_access: optional boolean (default: true)` 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. @@ -4048,14 +4074,14 @@ Schema name: `LiveResponseItemCreateParam` Filters for the search. - - `allowed_domains: optional array of string or null` + - `allowed_domains: optional array of string or null (default: [])` 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"` + - `search_context_size: optional "low" or "medium" or "high" (default: "medium")` 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. @@ -4087,7 +4113,7 @@ Schema name: `LiveResponseItemCreateParam` The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`. - - `type: optional "approximate"` + - `type: optional "approximate" (default: "approximate")` The type of location approximation. Always `approximate`. @@ -4192,7 +4218,7 @@ Schema name: `LiveResponseItemCreateParam` 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` + - `require_approval: optional McpToolApprovalFilter { always, never } or "always" or "never" or null (default: "always")` Specify which of the MCP server's tools require approval. @@ -4256,6 +4282,8 @@ Schema name: `LiveResponseItemCreateParam` 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. + `pattern: ^tunnel_[a-z0-9]{32}$` + - `CodeInterpreter object { container, type, allowed_callers }` A tool that runs Python code to help generate a response to a prompt. @@ -4274,7 +4302,7 @@ Schema name: `LiveResponseItemCreateParam` Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on. - - `type: "auto"` + - `type: "auto" (default: "auto")` Always `auto`. @@ -4304,7 +4332,7 @@ Schema name: `LiveResponseItemCreateParam` - `ContainerNetworkPolicyDisabled object { type }` - - `type: "disabled"` + - `type: "disabled" (default: "disabled")` Disable outbound network access. Always `disabled`. @@ -4318,7 +4346,7 @@ Schema name: `LiveResponseItemCreateParam` `minItems: 1` - - `type: "allowlist"` + - `type: "allowlist" (default: "allowlist")` Allow outbound network access only to specified domains. Always `allowlist`. @@ -4366,7 +4394,7 @@ Schema name: `LiveResponseItemCreateParam` - `ProgrammaticToolCalling object { type }` - - `type: "programmatic_tool_calling"` + - `type: "programmatic_tool_calling" (default: "programmatic_tool_calling")` The type of the tool. Always `programmatic_tool_calling`. @@ -4392,7 +4420,7 @@ Schema name: `LiveResponseItemCreateParam` - `"auto"` - - `background: optional "transparent" or "opaque" or "auto"` + - `background: optional "transparent" or "opaque" or "auto" (default: "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 @@ -4473,7 +4501,7 @@ Schema name: `LiveResponseItemCreateParam` - `"gpt-image-2.5-flare-2026-09-08"` - - `moderation: optional "auto" or "low"` + - `moderation: optional "auto" or "low" (default: "auto")` Moderation level for the generated image. Default: `auto`. @@ -4481,13 +4509,13 @@ Schema name: `LiveResponseItemCreateParam` - `"low"` - - `output_compression: optional number` + - `output_compression: optional integer (default: 100)` Compression level for the output image. Default: 100. `minimum: 0`, `maximum: 100` - - `output_format: optional "png" or "webp" or "jpeg"` + - `output_format: optional "png" or "webp" or "jpeg" (default: "png")` The output format of the generated image. One of `png`, `webp`, or `jpeg`. Default: `png`. @@ -4498,13 +4526,13 @@ Schema name: `LiveResponseItemCreateParam` - `"jpeg"` - - `partial_images: optional number` + - `partial_images: optional integer (default: 0)` Number of partial images to generate in streaming mode, from 0 (default value) to 3. `minimum: 0`, `maximum: 3` - - `quality: optional "low" or "medium" or "high" or 3 more` + - `quality: optional "low" or "medium" or "high" or 3 more (default: "auto")` 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`, @@ -4523,7 +4551,7 @@ Schema name: `LiveResponseItemCreateParam` - `"auto"` - - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"` + - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto" (default: "auto")` 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. @@ -4545,7 +4573,7 @@ Schema name: `LiveResponseItemCreateParam` A tool that allows the model to execute shell commands in a local environment. - - `type: "local_shell"` + - `type: "local_shell" (default: "local_shell")` The type of the local shell tool. Always `local_shell`. @@ -4555,7 +4583,7 @@ Schema name: `LiveResponseItemCreateParam` A tool that allows the model to execute shell commands. - - `type: "shell"` + - `type: "shell" (default: "shell")` The type of the shell tool. Always `shell`. @@ -4575,7 +4603,7 @@ Schema name: `LiveResponseItemCreateParam` - `ContainerAuto object { type, file_ids, memory_limit, 2 more }` - - `type: "container_auto"` + - `type: "container_auto" (default: "container_auto")` Automatically creates a container for this request @@ -4621,7 +4649,7 @@ Schema name: `LiveResponseItemCreateParam` `minLength: 1`, `maxLength: 64` - - `type: "skill_reference"` + - `type: "skill_reference" (default: "skill_reference")` References a skill created with the /v1/skills endpoint. @@ -4651,19 +4679,19 @@ Schema name: `LiveResponseItemCreateParam` `minLength: 1`, `maxLength: 70254592` - - `media_type: "application/zip"` + - `media_type: "application/zip" (default: "application/zip")` The media type of the inline skill payload. Must be `application/zip`. - `"application/zip"` - - `type: "base64"` + - `type: "base64" (default: "base64")` The type of the inline skill source. Must be `base64`. - `"base64"` - - `type: "inline"` + - `type: "inline" (default: "inline")` Defines an inline skill for this request. @@ -4671,7 +4699,7 @@ Schema name: `LiveResponseItemCreateParam` - `LocalEnvironment object { type, skills }` - - `type: "local"` + - `type: "local" (default: "local")` Use a local computer environment. @@ -4701,7 +4729,7 @@ Schema name: `LiveResponseItemCreateParam` The ID of the referenced container. - - `type: "container_reference"` + - `type: "container_reference" (default: "container_reference")` References a container created with the /v1/containers endpoint @@ -4715,7 +4743,7 @@ Schema name: `LiveResponseItemCreateParam` The name of the custom tool, used to identify it in tool calls. - - `type: "custom"` + - `type: "custom" (default: "custom")` The type of the custom tool. Always `custom`. @@ -4751,7 +4779,7 @@ Schema name: `LiveResponseItemCreateParam` Unconstrained free-form text. - - `type: "text"` + - `type: "text" (default: "text")` Unconstrained text format. Always `text`. @@ -4773,7 +4801,7 @@ Schema name: `LiveResponseItemCreateParam` - `"regex"` - - `type: "grammar"` + - `type: "grammar" (default: "grammar")` Grammar format. Always `grammar`. @@ -4805,9 +4833,9 @@ Schema name: `LiveResponseItemCreateParam` The name of the loaded function tool. - `minLength: 1`, `maxLength: 128` + `pattern: ^(?![\s\S]*[\r\n])[a-zA-Z0-9_.-]+$`, `minLength: 1`, `maxLength: 128` - - `type: "function"` + - `type: "function" (default: "function")` - `"function"` @@ -4849,7 +4877,7 @@ Schema name: `LiveResponseItemCreateParam` The name of the custom tool, used to identify it in tool calls. - - `type: "custom"` + - `type: "custom" (default: "custom")` The type of the custom tool. Always `custom`. @@ -4881,7 +4909,7 @@ Schema name: `LiveResponseItemCreateParam` The input format for the custom tool. Default is unconstrained text. - - `type: "namespace"` + - `type: "namespace" (default: "namespace")` The type of the tool. Always `namespace`. @@ -4891,7 +4919,7 @@ Schema name: `LiveResponseItemCreateParam` Hosted or BYOT tool search configuration for deferred tools. - - `type: "tool_search"` + - `type: "tool_search" (default: "tool_search")` The type of the tool. Always `tool_search`. @@ -4917,7 +4945,7 @@ Schema name: `LiveResponseItemCreateParam` 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). - - `type: "web_search_preview" or "web_search_preview_2025_03_11"` + - `type: "web_search_preview" or "web_search_preview_2025_03_11" (default: "web_search_preview")` The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`. @@ -4945,7 +4973,7 @@ Schema name: `LiveResponseItemCreateParam` 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: "approximate"` + - `type: "approximate" (default: "approximate")` The type of location approximation. Always `approximate`. @@ -4971,7 +4999,7 @@ Schema name: `LiveResponseItemCreateParam` Allows the assistant to create, delete, or update files using unified diffs. - - `type: "apply_patch"` + - `type: "apply_patch" (default: "apply_patch")` The type of the tool. Always `apply_patch`. @@ -4987,7 +5015,7 @@ Schema name: `LiveResponseItemCreateParam` - `"programmatic"` - - `type: "tool_search_output"` + - `type: "tool_search_output" (default: "tool_search_output")` The item type. Always `tool_search_output`. @@ -5023,7 +5051,7 @@ Schema name: `LiveResponseItemCreateParam` - `AdditionalTools object { role, tools, type, id }` - - `role: "developer"` + - `role: "developer" (default: "developer")` The role that provided the additional tools. Only `developer` is supported. @@ -5049,7 +5077,7 @@ Schema name: `LiveResponseItemCreateParam` Whether strict parameter validation is enforced for this function tool. - - `type: "function"` + - `type: "function" (default: "function")` The type of the function tool. Always `function`. @@ -5081,7 +5109,7 @@ Schema name: `LiveResponseItemCreateParam` 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). - - `type: "file_search"` + - `type: "file_search" (default: "file_search")` The type of the file search tool. Always `file_search`. @@ -5103,7 +5131,7 @@ Schema name: `LiveResponseItemCreateParam` Combine multiple filters using `and` or `or`. - - `max_num_results: optional number` + - `max_num_results: optional integer` The maximum number of results to return. This number should be between 1 and 50 inclusive. @@ -5139,7 +5167,7 @@ Schema name: `LiveResponseItemCreateParam` A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use). - - `type: "computer"` + - `type: "computer" (default: "computer")` The type of the computer tool. Always `computer`. @@ -5149,11 +5177,11 @@ Schema name: `LiveResponseItemCreateParam` A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use). - - `display_height: number` + - `display_height: integer` The height of the computer display. - - `display_width: number` + - `display_width: integer` The width of the computer display. @@ -5171,7 +5199,7 @@ Schema name: `LiveResponseItemCreateParam` - `"browser"` - - `type: "computer_use_preview"` + - `type: "computer_use_preview" (default: "computer_use_preview")` The type of the computer use tool. Always `computer_use_preview`. @@ -5182,7 +5210,7 @@ Schema name: `LiveResponseItemCreateParam` 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"` + - `type: "web_search" or "web_search_2025_08_26" (default: "web_search")` The type of the web search tool. One of `web_search` or `web_search_2025_08_26`. @@ -5190,7 +5218,7 @@ Schema name: `LiveResponseItemCreateParam` - `"web_search_2025_08_26"` - - `external_web_access: optional boolean` + - `external_web_access: optional boolean (default: true)` 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. @@ -5198,14 +5226,14 @@ Schema name: `LiveResponseItemCreateParam` Filters for the search. - - `allowed_domains: optional array of string or null` + - `allowed_domains: optional array of string or null (default: [])` 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"` + - `search_context_size: optional "low" or "medium" or "high" (default: "medium")` 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. @@ -5237,7 +5265,7 @@ Schema name: `LiveResponseItemCreateParam` The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`. - - `type: optional "approximate"` + - `type: optional "approximate" (default: "approximate")` The type of location approximation. Always `approximate`. @@ -5342,7 +5370,7 @@ Schema name: `LiveResponseItemCreateParam` 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` + - `require_approval: optional McpToolApprovalFilter { always, never } or "always" or "never" or null (default: "always")` Specify which of the MCP server's tools require approval. @@ -5406,6 +5434,8 @@ Schema name: `LiveResponseItemCreateParam` 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. + `pattern: ^tunnel_[a-z0-9]{32}$` + - `CodeInterpreter object { container, type, allowed_callers }` A tool that runs Python code to help generate a response to a prompt. @@ -5424,7 +5454,7 @@ Schema name: `LiveResponseItemCreateParam` Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on. - - `type: "auto"` + - `type: "auto" (default: "auto")` Always `auto`. @@ -5474,7 +5504,7 @@ Schema name: `LiveResponseItemCreateParam` - `ProgrammaticToolCalling object { type }` - - `type: "programmatic_tool_calling"` + - `type: "programmatic_tool_calling" (default: "programmatic_tool_calling")` The type of the tool. Always `programmatic_tool_calling`. @@ -5500,7 +5530,7 @@ Schema name: `LiveResponseItemCreateParam` - `"auto"` - - `background: optional "transparent" or "opaque" or "auto"` + - `background: optional "transparent" or "opaque" or "auto" (default: "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 @@ -5581,7 +5611,7 @@ Schema name: `LiveResponseItemCreateParam` - `"gpt-image-2.5-flare-2026-09-08"` - - `moderation: optional "auto" or "low"` + - `moderation: optional "auto" or "low" (default: "auto")` Moderation level for the generated image. Default: `auto`. @@ -5589,13 +5619,13 @@ Schema name: `LiveResponseItemCreateParam` - `"low"` - - `output_compression: optional number` + - `output_compression: optional integer (default: 100)` Compression level for the output image. Default: 100. `minimum: 0`, `maximum: 100` - - `output_format: optional "png" or "webp" or "jpeg"` + - `output_format: optional "png" or "webp" or "jpeg" (default: "png")` The output format of the generated image. One of `png`, `webp`, or `jpeg`. Default: `png`. @@ -5606,13 +5636,13 @@ Schema name: `LiveResponseItemCreateParam` - `"jpeg"` - - `partial_images: optional number` + - `partial_images: optional integer (default: 0)` Number of partial images to generate in streaming mode, from 0 (default value) to 3. `minimum: 0`, `maximum: 3` - - `quality: optional "low" or "medium" or "high" or 3 more` + - `quality: optional "low" or "medium" or "high" or 3 more (default: "auto")` 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`, @@ -5631,7 +5661,7 @@ Schema name: `LiveResponseItemCreateParam` - `"auto"` - - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"` + - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto" (default: "auto")` 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. @@ -5653,7 +5683,7 @@ Schema name: `LiveResponseItemCreateParam` A tool that allows the model to execute shell commands in a local environment. - - `type: "local_shell"` + - `type: "local_shell" (default: "local_shell")` The type of the local shell tool. Always `local_shell`. @@ -5663,7 +5693,7 @@ Schema name: `LiveResponseItemCreateParam` A tool that allows the model to execute shell commands. - - `type: "shell"` + - `type: "shell" (default: "shell")` The type of the shell tool. Always `shell`. @@ -5695,7 +5725,7 @@ Schema name: `LiveResponseItemCreateParam` The name of the custom tool, used to identify it in tool calls. - - `type: "custom"` + - `type: "custom" (default: "custom")` The type of the custom tool. Always `custom`. @@ -5751,9 +5781,9 @@ Schema name: `LiveResponseItemCreateParam` - `name: string` - `minLength: 1`, `maxLength: 128` + `pattern: ^[a-zA-Z0-9_-]+$`, `minLength: 1`, `maxLength: 128` - - `type: "function"` + - `type: "function" (default: "function")` - `"function"` @@ -5795,7 +5825,7 @@ Schema name: `LiveResponseItemCreateParam` The name of the custom tool, used to identify it in tool calls. - - `type: "custom"` + - `type: "custom" (default: "custom")` The type of the custom tool. Always `custom`. @@ -5827,7 +5857,7 @@ Schema name: `LiveResponseItemCreateParam` The input format for the custom tool. Default is unconstrained text. - - `type: "namespace"` + - `type: "namespace" (default: "namespace")` The type of the tool. Always `namespace`. @@ -5837,7 +5867,7 @@ Schema name: `LiveResponseItemCreateParam` Hosted or BYOT tool search configuration for deferred tools. - - `type: "tool_search"` + - `type: "tool_search" (default: "tool_search")` The type of the tool. Always `tool_search`. @@ -5863,7 +5893,7 @@ Schema name: `LiveResponseItemCreateParam` 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). - - `type: "web_search_preview" or "web_search_preview_2025_03_11"` + - `type: "web_search_preview" or "web_search_preview_2025_03_11" (default: "web_search_preview")` The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`. @@ -5891,7 +5921,7 @@ Schema name: `LiveResponseItemCreateParam` 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: "approximate"` + - `type: "approximate" (default: "approximate")` The type of location approximation. Always `approximate`. @@ -5917,7 +5947,7 @@ Schema name: `LiveResponseItemCreateParam` Allows the assistant to create, delete, or update files using unified diffs. - - `type: "apply_patch"` + - `type: "apply_patch" (default: "apply_patch")` The type of the tool. Always `apply_patch`. @@ -5933,7 +5963,7 @@ Schema name: `LiveResponseItemCreateParam` - `"programmatic"` - - `type: "additional_tools"` + - `type: "additional_tools" (default: "additional_tools")` The item type. Always `additional_tools`. @@ -5943,13 +5973,12 @@ Schema name: `LiveResponseItemCreateParam` The unique ID of this additional tools item. - - `ConfigurationUpdate object { type, id, reasoning }` + - `ConfigurationUpdate object { type, id, reasoning, text }` - An update to the conversation's response configuration. The configuration - remains in effect for subsequent responses until it is replaced by another - configuration update. + An update to the conversation's response configuration. Supply reasoning, + text, or both. Each setting stays in effect until a later update replaces it. - - `type: "configuration_update"` + - `type: "configuration_update" (default: "configuration_update")` The item type. Always `configuration_update`. @@ -5963,7 +5992,7 @@ Schema name: `LiveResponseItemCreateParam` Updates to reasoning configuration. Only effort is supported. - - `effort: optional ReasoningEffort or null` + - `effort: optional ReasoningEffort or null (default: "medium")` The reasoning effort to use for subsequent responses until another configuration update replaces it. @@ -5982,6 +6011,58 @@ Schema name: `LiveResponseItemCreateParam` - `"max"` + - `text: optional object { format }` + + The text output configuration for subsequent responses. + + - `format: ResponseFormatText or ResponseFormatTextJSONSchemaConfig` + + Use a JSON schema for structured output or text to return to plain text. + + - `ResponseFormatText object { type }` + + Default response format. Used to generate text responses. + + - `type: "text"` + + The type of response format being defined. Always `text`. + + - `"text"` + + - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }` + + JSON Schema response format. Used to generate structured JSON responses. + Learn more about [Structured Outputs](https://developers.openai.com/api/docs/guides/structured-outputs). + + - `name: string` + + The name of the response format. Must be a-z, A-Z, 0-9, or contain + underscores and dashes, with a maximum length of 64. + + - `schema: map[unknown]` + + The schema for the response format, described as a JSON Schema object. + Learn how to build JSON schemas [here](https://json-schema.org/). + + - `type: "json_schema"` + + The type of response format being defined. Always `json_schema`. + + - `"json_schema"` + + - `description: optional string` + + A description of what the response format is for, used by the model to + determine how to respond in the format. + + - `strict: optional boolean or null (default: false)` + + Whether to enable strict schema adherence when generating the output. + If set to true, the model will always follow the exact schema defined + in the `schema` field. Only a subset of JSON Schema is supported when + `strict` is `true`. To learn more, read the [Structured Outputs + guide](https://developers.openai.com/api/docs/guides/structured-outputs). + - `Reasoning object { id, summary, type, 3 more }` A description of the chain of thought used by a reasoning model while generating @@ -6001,7 +6082,7 @@ Schema name: `LiveResponseItemCreateParam` A summary of the reasoning output from the model so far. - - `type: "summary_text"` + - `type: "summary_text" (default: "summary_text")` The type of the object. Always `summary_text`. @@ -6021,7 +6102,7 @@ Schema name: `LiveResponseItemCreateParam` The reasoning text from the model. - - `type: "reasoning_text"` + - `type: "reasoning_text" (default: "reasoning_text")` The type of the reasoning text. Always `reasoning_text`. @@ -6060,7 +6141,7 @@ Schema name: `LiveResponseItemCreateParam` `maxLength: 104857600` - - `type: "compaction"` + - `type: "compaction" (default: "compaction")` The type of the item. Always `compaction`. @@ -6233,7 +6314,7 @@ Schema name: `LiveResponseItemCreateParam` The logs output from the code interpreter. - - `type: "logs"` + - `type: "logs" (default: "logs")` The type of the output. Always `logs`. @@ -6243,7 +6324,7 @@ Schema name: `LiveResponseItemCreateParam` The image output from the code interpreter. - - `type: "image"` + - `type: "image" (default: "image")` The type of the output. Always `image`. @@ -6269,7 +6350,7 @@ Schema name: `LiveResponseItemCreateParam` - `"failed"` - - `type: "code_interpreter_call"` + - `type: "code_interpreter_call" (default: "code_interpreter_call")` The type of the code interpreter tool call. Always `code_interpreter_call`. @@ -6295,13 +6376,13 @@ Schema name: `LiveResponseItemCreateParam` Environment variables to set for the command. - - `type: "exec"` + - `type: "exec" (default: "exec")` The type of the local shell action. Always `exec`. - `"exec"` - - `timeout_ms: optional number or null` + - `timeout_ms: optional integer or null` Optional timeout in milliseconds for the command. @@ -6373,11 +6454,11 @@ Schema name: `LiveResponseItemCreateParam` Ordered shell commands for the execution environment to run. - - `max_output_length: optional number or null` + - `max_output_length: optional integer or null` Maximum number of UTF-8 characters to capture from combined stdout and stderr output. - - `timeout_ms: optional number or null` + - `timeout_ms: optional integer or null` Maximum wall-clock time in milliseconds to allow the shell commands to run. @@ -6387,7 +6468,7 @@ Schema name: `LiveResponseItemCreateParam` `minLength: 1`, `maxLength: 64` - - `type: "shell_call"` + - `type: "shell_call" (default: "shell_call")` The type of the item. Always `shell_call`. @@ -6403,7 +6484,7 @@ Schema name: `LiveResponseItemCreateParam` - `Direct object { type }` - - `type: "direct"` + - `type: "direct" (default: "direct")` The caller type. Always `direct`. @@ -6417,7 +6498,7 @@ Schema name: `LiveResponseItemCreateParam` `minLength: 1`, `maxLength: 64` - - `type: "program"` + - `type: "program" (default: "program")` The caller type. Always `program`. @@ -6463,7 +6544,7 @@ Schema name: `LiveResponseItemCreateParam` Indicates that the shell call exceeded its configured time limit. - - `type: "timeout"` + - `type: "timeout" (default: "timeout")` The outcome type. Always `timeout`. @@ -6473,11 +6554,11 @@ Schema name: `LiveResponseItemCreateParam` Indicates that the shell commands finished and returned an exit code. - - `exit_code: number` + - `exit_code: integer` The exit code returned by the shell process. - - `type: "exit"` + - `type: "exit" (default: "exit")` The outcome type. Always `exit`. @@ -6495,7 +6576,7 @@ Schema name: `LiveResponseItemCreateParam` `maxLength: 10485760` - - `type: "shell_call_output"` + - `type: "shell_call_output" (default: "shell_call_output")` The type of the item. Always `shell_call_output`. @@ -6511,7 +6592,7 @@ Schema name: `LiveResponseItemCreateParam` - `Direct object { type }` - - `type: "direct"` + - `type: "direct" (default: "direct")` The caller type. Always `direct`. @@ -6525,13 +6606,13 @@ Schema name: `LiveResponseItemCreateParam` `minLength: 1`, `maxLength: 64` - - `type: "program"` + - `type: "program" (default: "program")` The caller type. Always `program`. - `"program"` - - `max_output_length: optional number or null` + - `max_output_length: optional integer or null` The maximum number of UTF-8 characters captured for this shell call's combined output. @@ -6575,7 +6656,7 @@ Schema name: `LiveResponseItemCreateParam` `minLength: 1` - - `type: "create_file"` + - `type: "create_file" (default: "create_file")` The operation type. Always `create_file`. @@ -6591,7 +6672,7 @@ Schema name: `LiveResponseItemCreateParam` `minLength: 1` - - `type: "delete_file"` + - `type: "delete_file" (default: "delete_file")` The operation type. Always `delete_file`. @@ -6613,7 +6694,7 @@ Schema name: `LiveResponseItemCreateParam` `minLength: 1` - - `type: "update_file"` + - `type: "update_file" (default: "update_file")` The operation type. Always `update_file`. @@ -6627,7 +6708,7 @@ Schema name: `LiveResponseItemCreateParam` - `"completed"` - - `type: "apply_patch_call"` + - `type: "apply_patch_call" (default: "apply_patch_call")` The type of the item. Always `apply_patch_call`. @@ -6643,7 +6724,7 @@ Schema name: `LiveResponseItemCreateParam` - `Direct object { type }` - - `type: "direct"` + - `type: "direct" (default: "direct")` The caller type. Always `direct`. @@ -6657,7 +6738,7 @@ Schema name: `LiveResponseItemCreateParam` `minLength: 1`, `maxLength: 64` - - `type: "program"` + - `type: "program" (default: "program")` The caller type. Always `program`. @@ -6681,7 +6762,7 @@ Schema name: `LiveResponseItemCreateParam` - `"failed"` - - `type: "apply_patch_call_output"` + - `type: "apply_patch_call_output" (default: "apply_patch_call_output")` The type of the item. Always `apply_patch_call_output`. @@ -6697,7 +6778,7 @@ Schema name: `LiveResponseItemCreateParam` - `Direct object { type }` - - `type: "direct"` + - `type: "direct" (default: "direct")` The caller type. Always `direct`. @@ -6711,7 +6792,7 @@ Schema name: `LiveResponseItemCreateParam` `minLength: 1`, `maxLength: 64` - - `type: "program"` + - `type: "program" (default: "program")` The caller type. Always `program`. @@ -6854,11 +6935,11 @@ Schema name: `LiveResponseItemCreateParam` - `McpProtocolError object { code, message, type }` - - `code: number` + - `code: integer` - `message: string` - - `type: "mcp_protocol_error"` + - `type: "mcp_protocol_error" (default: "mcp_protocol_error")` - `"mcp_protocol_error"` @@ -6866,17 +6947,17 @@ Schema name: `LiveResponseItemCreateParam` - `content: unknown` - - `type: "mcp_tool_execution_error"` + - `type: "mcp_tool_execution_error" (default: "mcp_tool_execution_error")` - `"mcp_tool_execution_error"` - `HTTPError object { code, message, type }` - - `code: number` + - `code: integer` - `message: string` - - `type: "http_error"` + - `type: "http_error" (default: "http_error")` - `"http_error"` @@ -6947,7 +7028,7 @@ Schema name: `LiveResponseItemCreateParam` - `Direct object { type }` - - `type: "direct"` + - `type: "direct" (default: "direct")` The caller type. Always `direct`. @@ -6961,7 +7042,7 @@ Schema name: `LiveResponseItemCreateParam` `minLength: 1`, `maxLength: 64` - - `type: "program"` + - `type: "program" (default: "program")` The caller type. Always `program`. @@ -7003,7 +7084,7 @@ Schema name: `LiveResponseItemCreateParam` - `Direct object { type }` - - `type: "direct"` + - `type: "direct" (default: "direct")` - `"direct"` @@ -7013,7 +7094,7 @@ Schema name: `LiveResponseItemCreateParam` The call ID of the program item that produced this tool call. - - `type: "program"` + - `type: "program" (default: "program")` - `"program"` @@ -7025,7 +7106,7 @@ Schema name: `LiveResponseItemCreateParam` Compacts the current context. Must be the final input item. - - `type: "compaction_trigger"` + - `type: "compaction_trigger" (default: "compaction_trigger")` The type of the item. Always `compaction_trigger`. @@ -7043,7 +7124,7 @@ Schema name: `LiveResponseItemCreateParam` The ID of the item to reference. - - `type: optional "item_reference" or null` + - `type: optional "item_reference" or null (default: "item_reference")` The type of item to reference. Always `item_reference`. @@ -7073,7 +7154,7 @@ Schema name: `LiveResponseItemCreateParam` `maxLength: 10485760` - - `type: "program"` + - `type: "program" (default: "program")` The item type. Always `program`. @@ -7105,13 +7186,13 @@ Schema name: `LiveResponseItemCreateParam` - `"incomplete"` - - `type: "program_output"` + - `type: "program_output" (default: "program_output")` The item type. Always `program_output`. - `"program_output"` -- `type: "response.item.create"` +- `type: "response.item.create" (default: "response.item.create")` The Live client event type. Always `response.item.create`. @@ -7152,7 +7233,7 @@ Request a response from the Live session’s Responses backend, or continue a de Schema name: `LiveResponseCreateParam` -- `type: "response.create"` +- `type: "response.create" (default: "response.create")` The Live client event type. Always `response.create`. @@ -7183,7 +7264,7 @@ Request that the Live session close. The terminal `session.closed` event contain Schema name: `LiveSessionCloseParam` -- `type: "session.close"` +- `type: "session.close" (default: "session.close")` The Live client event type. Always `session.close`. @@ -7224,7 +7305,7 @@ Schema name: `LiveTransportRinging` The canonical Live session ID. -- `type: "transport.ringing"` +- `type: "transport.ringing" (default: "transport.ringing")` - `"transport.ringing"` @@ -7254,7 +7335,7 @@ Schema name: `LiveTransportAnswered` The canonical Live session ID. -- `type: "transport.answered"` +- `type: "transport.answered" (default: "transport.answered")` - `"transport.answered"` @@ -7286,7 +7367,7 @@ Schema name: `LiveTransportFailed` - `message: string` - - `type: "call_error"` + - `type: "call_error" (default: "call_error")` - `"call_error"` @@ -7300,7 +7381,7 @@ Schema name: `LiveTransportFailed` The canonical Live session ID. -- `type: "transport.failed"` +- `type: "transport.failed" (default: "transport.failed")` - `"transport.failed"` @@ -7342,7 +7423,7 @@ Schema name: `LiveSessionStarted` The unique ID of the Live session. Use this ID for sideband connections, forking, and recording download. - - `expires_at: number` + - `expires_at: integer` The Unix timestamp, in seconds, at which the Live session expires. @@ -7352,13 +7433,15 @@ Schema name: `LiveSessionStarted` - `string` + `minLength: 1` + - `"gpt-live-1"` The Live model. Required in the session configuration for every transport; do not pass it as a URL query parameter. - `"gpt-live-1"` - - `status: "active"` + - `status: "active" (default: "active")` The status of the session snapshot. Always `active`, including the final snapshot in session.closed; use the event type to determine that the session has closed. @@ -7386,7 +7469,7 @@ Schema name: `LiveSessionStarted` - `24000` - - `type: "audio/pcm"` + - `type: "audio/pcm" (default: "audio/pcm")` The audio encoding. Always `audio/pcm`. @@ -7396,13 +7479,13 @@ Schema name: `LiveSessionStarted` Raw, mono G.711 μ-law audio for a Live WebSocket connection. - - `rate: number` + - `rate: integer` Audio sample rate in hertz. G.711 audio uses 8000 Hz. `minimum: 8000`, `maximum: 8000` - - `type: "audio/pcmu"` + - `type: "audio/pcmu" (default: "audio/pcmu")` The audio encoding. Always `audio/pcmu`. @@ -7412,13 +7495,13 @@ Schema name: `LiveSessionStarted` Raw, mono G.711 A-law audio for a Live WebSocket connection. - - `rate: number` + - `rate: integer` Audio sample rate in hertz. G.711 audio uses 8000 Hz. `minimum: 8000`, `maximum: 8000` - - `type: "audio/pcma"` + - `type: "audio/pcma" (default: "audio/pcma")` The audio encoding. Always `audio/pcma`. @@ -7524,6 +7607,8 @@ Schema name: `LiveSessionStarted` - `array of string` + `maxItems: 256` + - `allowed_server_events: optional "all" or array of ServerEventSelector` Server events that may be sent to the frontend data channel. Use 'all' to allow every server event; an empty array allows none. Omission preserves the existing allow-all behavior. Responses events use an object with type 'response.event' and a response_event selector. @@ -7534,6 +7619,8 @@ Schema name: `LiveSessionStarted` - `array of ServerEventSelector` + `maxItems: 256` + - `type: string` The outer Live server event type. Use 'response.event' for Responses events. @@ -7554,13 +7641,13 @@ Schema name: `LiveSessionStarted` Delegate tasks to your application. The Live session emits delegation events that your backend handles. - - `type: "client"` + - `type: "client" (default: "client")` The delegation owner. Always `client` for tasks handled by your application. - `"client"` - - `acknowledgement_delay_ms: optional number` + - `acknowledgement_delay_ms: optional integer` Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations. @@ -7582,7 +7669,7 @@ Schema name: `LiveSessionStarted` Instructions for the delegated Responses model, separate from Live instructions. See [backend prompting](https://developers.openai.com/api/docs/guides/live-delegation#start-with-your-existing-backend-prompt). - - `max_output_tokens: optional number or null` + - `max_output_tokens: optional integer or null` Maximum number of output tokens for each delegated response. @@ -7670,7 +7757,7 @@ Schema name: `LiveSessionStarted` The name of the function tool to call. - - `type: "function"` + - `type: "function" (default: "function")` The tool to call. Always `function`. @@ -7682,7 +7769,7 @@ Schema name: `LiveSessionStarted` The label of the MCP server to call. - - `type: "mcp"` + - `type: "mcp" (default: "mcp")` The tool to call. Always `mcp`. @@ -7694,7 +7781,7 @@ Schema name: `LiveSessionStarted` - `FileSearch object { type }` - - `type: "file_search"` + - `type: "file_search" (default: "file_search")` The tool to call. Always `file_search`. @@ -7702,7 +7789,7 @@ Schema name: `LiveSessionStarted` - `WebSearch object { type }` - - `type: "web_search"` + - `type: "web_search" (default: "web_search")` The tool to call. Always `web_search`. @@ -7710,7 +7797,7 @@ Schema name: `LiveSessionStarted` - `WebSearchPreview object { type }` - - `type: "web_search_preview"` + - `type: "web_search_preview" (default: "web_search_preview")` The tool to call. Always `web_search_preview`. @@ -7718,7 +7805,7 @@ Schema name: `LiveSessionStarted` - `ImageGeneration object { type }` - - `type: "image_generation"` + - `type: "image_generation" (default: "image_generation")` The tool to call. Always `image_generation`. @@ -7726,7 +7813,7 @@ Schema name: `LiveSessionStarted` - `Computer object { type }` - - `type: "computer"` + - `type: "computer" (default: "computer")` The tool to call. Always `computer`. @@ -7734,7 +7821,7 @@ Schema name: `LiveSessionStarted` - `CodeInterpreter object { type }` - - `type: "code_interpreter"` + - `type: "code_interpreter" (default: "code_interpreter")` The tool to call. Always `code_interpreter`. @@ -7742,7 +7829,7 @@ Schema name: `LiveSessionStarted` - `ProgrammaticToolCalling object { type }` - - `type: "programmatic_tool_calling"` + - `type: "programmatic_tool_calling" (default: "programmatic_tool_calling")` The tool to call. Always `programmatic_tool_calling`. @@ -7752,7 +7839,7 @@ Schema name: `LiveSessionStarted` Forces the model to call the shell tool when a tool call is required. - - `type: "shell"` + - `type: "shell" (default: "shell")` The tool to call. Always `shell`. @@ -7764,7 +7851,7 @@ Schema name: `LiveSessionStarted` The name of the custom tool to call. - - `type: "custom"` + - `type: "custom" (default: "custom")` The tool to call. Always `custom`. @@ -7774,7 +7861,7 @@ Schema name: `LiveSessionStarted` Forces the model to call the apply_patch tool when executing a tool call. - - `type: "apply_patch"` + - `type: "apply_patch" (default: "apply_patch")` The tool to call. Always `apply_patch`. @@ -7794,7 +7881,7 @@ Schema name: `LiveSessionStarted` The name of the function tool to call. - - `type: "function"` + - `type: "function" (default: "function")` The tool to call. Always `function`. @@ -7806,7 +7893,7 @@ Schema name: `LiveSessionStarted` The label of the MCP server to call. - - `type: "mcp"` + - `type: "mcp" (default: "mcp")` The tool to call. Always `mcp`. @@ -7818,7 +7905,7 @@ Schema name: `LiveSessionStarted` - `FileSearch object { type }` - - `type: "file_search"` + - `type: "file_search" (default: "file_search")` The tool to call. Always `file_search`. @@ -7826,7 +7913,7 @@ Schema name: `LiveSessionStarted` - `WebSearch object { type }` - - `type: "web_search"` + - `type: "web_search" (default: "web_search")` The tool to call. Always `web_search`. @@ -7834,7 +7921,7 @@ Schema name: `LiveSessionStarted` - `WebSearchPreview object { type }` - - `type: "web_search_preview"` + - `type: "web_search_preview" (default: "web_search_preview")` The tool to call. Always `web_search_preview`. @@ -7842,7 +7929,7 @@ Schema name: `LiveSessionStarted` - `ImageGeneration object { type }` - - `type: "image_generation"` + - `type: "image_generation" (default: "image_generation")` The tool to call. Always `image_generation`. @@ -7850,7 +7937,7 @@ Schema name: `LiveSessionStarted` - `Computer object { type }` - - `type: "computer"` + - `type: "computer" (default: "computer")` The tool to call. Always `computer`. @@ -7858,7 +7945,7 @@ Schema name: `LiveSessionStarted` - `CodeInterpreter object { type }` - - `type: "code_interpreter"` + - `type: "code_interpreter" (default: "code_interpreter")` The tool to call. Always `code_interpreter`. @@ -7866,7 +7953,7 @@ Schema name: `LiveSessionStarted` - `ProgrammaticToolCalling object { type }` - - `type: "programmatic_tool_calling"` + - `type: "programmatic_tool_calling" (default: "programmatic_tool_calling")` The tool to call. Always `programmatic_tool_calling`. @@ -7876,7 +7963,7 @@ Schema name: `LiveSessionStarted` Forces the model to call the shell tool when a tool call is required. - - `type: "shell"` + - `type: "shell" (default: "shell")` The tool to call. Always `shell`. @@ -7888,7 +7975,7 @@ Schema name: `LiveSessionStarted` The name of the custom tool to call. - - `type: "custom"` + - `type: "custom" (default: "custom")` The tool to call. Always `custom`. @@ -7898,13 +7985,13 @@ Schema name: `LiveSessionStarted` Forces the model to call the apply_patch tool when executing a tool call. - - `type: "apply_patch"` + - `type: "apply_patch" (default: "apply_patch")` The tool to call. Always `apply_patch`. - `"apply_patch"` - - `type: "allowed_tools"` + - `type: "allowed_tools" (default: "allowed_tools")` The tool choice type. Always `allowed_tools`. @@ -7932,7 +8019,7 @@ Schema name: `LiveSessionStarted` The name the delegated Responses model uses when calling this function. - - `type: "function"` + - `type: "function" (default: "function")` The tool type. Always `function`. @@ -7954,7 +8041,7 @@ Schema name: `LiveSessionStarted` A web search tool available to the Live session’s Responses backend. - - `type: "web_search"` + - `type: "web_search" (default: "web_search")` The tool type. Always `web_search`. @@ -7962,13 +8049,13 @@ Schema name: `LiveSessionStarted` - `FileSearch object { type }` - - `type: "file_search"` + - `type: "file_search" (default: "file_search")` - `"file_search"` - `CodeInterpreter object { type }` - - `type: "code_interpreter"` + - `type: "code_interpreter" (default: "code_interpreter")` - `"code_interpreter"` @@ -7976,7 +8063,7 @@ Schema name: `LiveSessionStarted` A Responses shell tool. Use a hosted container or return local shell results with response.item.create. Domain secrets are not supported. - - `type: "shell"` + - `type: "shell" (default: "shell")` - `"shell"` @@ -7984,7 +8071,7 @@ Schema name: `LiveSessionStarted` - `ContainerAuto object { type, file_ids, memory_limit, 2 more }` - - `type: "container_auto"` + - `type: "container_auto" (default: "container_auto")` Automatically creates a container for this request @@ -8014,7 +8101,7 @@ Schema name: `LiveSessionStarted` - `Disabled object { type }` - - `type: "disabled"` + - `type: "disabled" (default: "disabled")` Disable outbound network access. Always `disabled`. @@ -8028,7 +8115,7 @@ Schema name: `LiveSessionStarted` `minItems: 1` - - `type: "allowlist"` + - `type: "allowlist" (default: "allowlist")` Allow outbound network access only to specified domains. Always `allowlist`. @@ -8048,7 +8135,7 @@ Schema name: `LiveSessionStarted` `minLength: 1`, `maxLength: 64` - - `type: "skill_reference"` + - `type: "skill_reference" (default: "skill_reference")` References a skill created with the /v1/skills endpoint. @@ -8078,19 +8165,19 @@ Schema name: `LiveSessionStarted` `minLength: 1`, `maxLength: 70254592` - - `media_type: "application/zip"` + - `media_type: "application/zip" (default: "application/zip")` The media type of the inline skill payload. Must be `application/zip`. - `"application/zip"` - - `type: "base64"` + - `type: "base64" (default: "base64")` The type of the inline skill source. Must be `base64`. - `"base64"` - - `type: "inline"` + - `type: "inline" (default: "inline")` Defines an inline skill for this request. @@ -8102,7 +8189,7 @@ Schema name: `LiveSessionStarted` The ID of the referenced container. - - `type: "container_reference"` + - `type: "container_reference" (default: "container_reference")` References a container created with the /v1/containers endpoint @@ -8110,7 +8197,7 @@ Schema name: `LiveSessionStarted` - `Local object { type, skills }` - - `type: "local"` + - `type: "local" (default: "local")` Use a local computer environment. @@ -8136,59 +8223,59 @@ Schema name: `LiveSessionStarted` - `ImageGeneration object { type }` - - `type: "image_generation"` + - `type: "image_generation" (default: "image_generation")` - `"image_generation"` - `Mcp object { type }` - - `type: "mcp"` + - `type: "mcp" (default: "mcp")` - `"mcp"` - `Custom object { type }` - - `type: "custom"` + - `type: "custom" (default: "custom")` - `"custom"` - `Namespace object { type }` - - `type: "namespace"` + - `type: "namespace" (default: "namespace")` - `"namespace"` - `ToolSearch object { type }` - - `type: "tool_search"` + - `type: "tool_search" (default: "tool_search")` - `"tool_search"` - `ProgrammaticToolCalling object { type }` - - `type: "programmatic_tool_calling"` + - `type: "programmatic_tool_calling" (default: "programmatic_tool_calling")` - `"programmatic_tool_calling"` - `Computer object { type }` - - `type: "computer"` + - `type: "computer" (default: "computer")` - `"computer"` - `ApplyPatch object { type }` - - `type: "apply_patch"` + - `type: "apply_patch" (default: "apply_patch")` - `"apply_patch"` - - `type: "responses"` + - `type: "responses" (default: "responses")` The delegation owner. Always `responses` for tasks handled by the Responses API. - `"responses"` - - `acknowledgement_delay_ms: optional number` + - `acknowledgement_delay_ms: optional integer` Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations. @@ -8228,6 +8315,8 @@ Schema name: `LiveSessionStarted` - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` + `minItems: 1` + - `DecisionInputText object { text, type }` - `text: string` @@ -8236,7 +8325,7 @@ Schema name: `LiveSessionStarted` `maxLength: 10485760` - - `type: "input_text"` + - `type: "input_text" (default: "input_text")` - `"input_text"` @@ -8246,9 +8335,9 @@ Schema name: `LiveSessionStarted` A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `maxLength: 20971520` + `pattern: ^(data:|https?://)`, `maxLength: 20971520` - - `type: "input_image"` + - `type: "input_image" (default: "input_image")` - `"input_image"` @@ -8272,11 +8361,11 @@ Schema name: `LiveSessionStarted` - `array of map[unknown]` - - `type: "input_json"` + - `type: "input_json" (default: "input_json")` - `"input_json"` - - `type: "choice"` + - `type: "choice" (default: "choice")` - `"choice"` @@ -8290,6 +8379,8 @@ Schema name: `LiveSessionStarted` - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` + `minItems: 1` + - `DecisionInputText object { text, type }` - `InputImage object { image_url, type, detail }` @@ -8298,9 +8389,9 @@ Schema name: `LiveSessionStarted` A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `maxLength: 20971520` + `pattern: ^(data:|https?://)`, `maxLength: 20971520` - - `type: "input_image"` + - `type: "input_image" (default: "input_image")` - `"input_image"` @@ -8324,11 +8415,11 @@ Schema name: `LiveSessionStarted` - `array of map[unknown]` - - `type: "input_json"` + - `type: "input_json" (default: "input_json")` - `"input_json"` - - `type: "predicate"` + - `type: "predicate" (default: "predicate")` - `"predicate"` @@ -8342,6 +8433,8 @@ Schema name: `LiveSessionStarted` - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` + `minItems: 1` + - `DecisionInputText object { text, type }` - `InputImage object { image_url, type, detail }` @@ -8350,9 +8443,9 @@ Schema name: `LiveSessionStarted` A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `maxLength: 20971520` + `pattern: ^(data:|https?://)`, `maxLength: 20971520` - - `type: "input_image"` + - `type: "input_image" (default: "input_image")` - `"input_image"` @@ -8376,7 +8469,7 @@ Schema name: `LiveSessionStarted` - `array of map[unknown]` - - `type: "input_json"` + - `type: "input_json" (default: "input_json")` - `"input_json"` @@ -8388,17 +8481,17 @@ Schema name: `LiveSessionStarted` - `description: optional string` - - `type: "score"` + - `type: "score" (default: "score")` - `"score"` - `name: optional string` - - `type: "decisions"` + - `type: "decisions" (default: "decisions")` - `"decisions"` - - `acknowledgement_delay_ms: optional number` + - `acknowledgement_delay_ms: optional integer` Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400. Updates apply to subsequent delegations. @@ -8424,13 +8517,13 @@ Schema name: `LiveSessionStarted` The message text to include in the Live session’s initial conversation history. - - `type: optional "input_text"` + - `type: optional "input_text" (default: "input_text")` The text content type. Always `input_text`. - `"input_text"` - - `role: "developer"` + - `role: "developer" (default: "developer")` The author of this history message. Always `developer`. @@ -8448,7 +8541,7 @@ Schema name: `LiveSessionStarted` - `"completed"` - - `type: optional "message"` + - `type: optional "message" (default: "message")` The history item type. Always `message`. @@ -8468,13 +8561,13 @@ Schema name: `LiveSessionStarted` The message text to include in the Live session’s initial conversation history. - - `type: optional "input_text"` + - `type: optional "input_text" (default: "input_text")` The text content type. Always `input_text`. - `"input_text"` - - `role: "user"` + - `role: "user" (default: "user")` The author of this history message. Always `user`. @@ -8492,7 +8585,7 @@ Schema name: `LiveSessionStarted` - `"completed"` - - `type: optional "message"` + - `type: optional "message" (default: "message")` The history item type. Always `message`. @@ -8516,7 +8609,7 @@ Schema name: `LiveSessionStarted` The message text to include in the Live session’s initial conversation history. - - `type: optional "text"` + - `type: optional "text" (default: "text")` The text content type. Always `text`. @@ -8530,13 +8623,13 @@ Schema name: `LiveSessionStarted` The message text to include in the Live session’s initial conversation history. - - `type: "output_text"` + - `type: "output_text" (default: "output_text")` The text content type. Always `output_text`. - `"output_text"` - - `role: "assistant"` + - `role: "assistant" (default: "assistant")` The author of this history message. Always `assistant`. @@ -8554,7 +8647,7 @@ Schema name: `LiveSessionStarted` - `"completed"` - - `type: optional "message"` + - `type: optional "message" (default: "message")` The history item type. Always `message`. @@ -8596,11 +8689,11 @@ Schema name: `LiveSessionStarted` - `"session.output_transcript.delta"` - - `type: "decisions"` + - `type: "decisions" (default: "decisions")` - `"decisions"` -- `type: "session.started"` +- `type: "session.started" (default: "session.started")` The event type, always `session.started`. @@ -8662,7 +8755,7 @@ Schema name: `LiveSessionUpdated` The unique ID of the Live session. Use this ID for sideband connections, forking, and recording download. - - `expires_at: number` + - `expires_at: integer` The Unix timestamp, in seconds, at which the Live session expires. @@ -8672,13 +8765,15 @@ Schema name: `LiveSessionUpdated` - `string` + `minLength: 1` + - `"gpt-live-1"` The Live model. Required in the session configuration for every transport; do not pass it as a URL query parameter. - `"gpt-live-1"` - - `status: "active"` + - `status: "active" (default: "active")` The status of the session snapshot. Always `active`, including the final snapshot in session.closed; use the event type to determine that the session has closed. @@ -8706,7 +8801,7 @@ Schema name: `LiveSessionUpdated` - `24000` - - `type: "audio/pcm"` + - `type: "audio/pcm" (default: "audio/pcm")` The audio encoding. Always `audio/pcm`. @@ -8716,13 +8811,13 @@ Schema name: `LiveSessionUpdated` Raw, mono G.711 μ-law audio for a Live WebSocket connection. - - `rate: number` + - `rate: integer` Audio sample rate in hertz. G.711 audio uses 8000 Hz. `minimum: 8000`, `maximum: 8000` - - `type: "audio/pcmu"` + - `type: "audio/pcmu" (default: "audio/pcmu")` The audio encoding. Always `audio/pcmu`. @@ -8732,13 +8827,13 @@ Schema name: `LiveSessionUpdated` Raw, mono G.711 A-law audio for a Live WebSocket connection. - - `rate: number` + - `rate: integer` Audio sample rate in hertz. G.711 audio uses 8000 Hz. `minimum: 8000`, `maximum: 8000` - - `type: "audio/pcma"` + - `type: "audio/pcma" (default: "audio/pcma")` The audio encoding. Always `audio/pcma`. @@ -8844,6 +8939,8 @@ Schema name: `LiveSessionUpdated` - `array of string` + `maxItems: 256` + - `allowed_server_events: optional "all" or array of ServerEventSelector` Server events that may be sent to the frontend data channel. Use 'all' to allow every server event; an empty array allows none. Omission preserves the existing allow-all behavior. Responses events use an object with type 'response.event' and a response_event selector. @@ -8854,6 +8951,8 @@ Schema name: `LiveSessionUpdated` - `array of ServerEventSelector` + `maxItems: 256` + - `type: string` The outer Live server event type. Use 'response.event' for Responses events. @@ -8874,13 +8973,13 @@ Schema name: `LiveSessionUpdated` Delegate tasks to your application. The Live session emits delegation events that your backend handles. - - `type: "client"` + - `type: "client" (default: "client")` The delegation owner. Always `client` for tasks handled by your application. - `"client"` - - `acknowledgement_delay_ms: optional number` + - `acknowledgement_delay_ms: optional integer` Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations. @@ -8902,7 +9001,7 @@ Schema name: `LiveSessionUpdated` Instructions for the delegated Responses model, separate from Live instructions. See [backend prompting](https://developers.openai.com/api/docs/guides/live-delegation#start-with-your-existing-backend-prompt). - - `max_output_tokens: optional number or null` + - `max_output_tokens: optional integer or null` Maximum number of output tokens for each delegated response. @@ -8990,7 +9089,7 @@ Schema name: `LiveSessionUpdated` The name of the function tool to call. - - `type: "function"` + - `type: "function" (default: "function")` The tool to call. Always `function`. @@ -9002,7 +9101,7 @@ Schema name: `LiveSessionUpdated` The label of the MCP server to call. - - `type: "mcp"` + - `type: "mcp" (default: "mcp")` The tool to call. Always `mcp`. @@ -9014,7 +9113,7 @@ Schema name: `LiveSessionUpdated` - `FileSearch object { type }` - - `type: "file_search"` + - `type: "file_search" (default: "file_search")` The tool to call. Always `file_search`. @@ -9022,7 +9121,7 @@ Schema name: `LiveSessionUpdated` - `WebSearch object { type }` - - `type: "web_search"` + - `type: "web_search" (default: "web_search")` The tool to call. Always `web_search`. @@ -9030,7 +9129,7 @@ Schema name: `LiveSessionUpdated` - `WebSearchPreview object { type }` - - `type: "web_search_preview"` + - `type: "web_search_preview" (default: "web_search_preview")` The tool to call. Always `web_search_preview`. @@ -9038,7 +9137,7 @@ Schema name: `LiveSessionUpdated` - `ImageGeneration object { type }` - - `type: "image_generation"` + - `type: "image_generation" (default: "image_generation")` The tool to call. Always `image_generation`. @@ -9046,7 +9145,7 @@ Schema name: `LiveSessionUpdated` - `Computer object { type }` - - `type: "computer"` + - `type: "computer" (default: "computer")` The tool to call. Always `computer`. @@ -9054,7 +9153,7 @@ Schema name: `LiveSessionUpdated` - `CodeInterpreter object { type }` - - `type: "code_interpreter"` + - `type: "code_interpreter" (default: "code_interpreter")` The tool to call. Always `code_interpreter`. @@ -9062,7 +9161,7 @@ Schema name: `LiveSessionUpdated` - `ProgrammaticToolCalling object { type }` - - `type: "programmatic_tool_calling"` + - `type: "programmatic_tool_calling" (default: "programmatic_tool_calling")` The tool to call. Always `programmatic_tool_calling`. @@ -9072,7 +9171,7 @@ Schema name: `LiveSessionUpdated` Forces the model to call the shell tool when a tool call is required. - - `type: "shell"` + - `type: "shell" (default: "shell")` The tool to call. Always `shell`. @@ -9084,7 +9183,7 @@ Schema name: `LiveSessionUpdated` The name of the custom tool to call. - - `type: "custom"` + - `type: "custom" (default: "custom")` The tool to call. Always `custom`. @@ -9094,7 +9193,7 @@ Schema name: `LiveSessionUpdated` Forces the model to call the apply_patch tool when executing a tool call. - - `type: "apply_patch"` + - `type: "apply_patch" (default: "apply_patch")` The tool to call. Always `apply_patch`. @@ -9114,7 +9213,7 @@ Schema name: `LiveSessionUpdated` The name of the function tool to call. - - `type: "function"` + - `type: "function" (default: "function")` The tool to call. Always `function`. @@ -9126,7 +9225,7 @@ Schema name: `LiveSessionUpdated` The label of the MCP server to call. - - `type: "mcp"` + - `type: "mcp" (default: "mcp")` The tool to call. Always `mcp`. @@ -9138,7 +9237,7 @@ Schema name: `LiveSessionUpdated` - `FileSearch object { type }` - - `type: "file_search"` + - `type: "file_search" (default: "file_search")` The tool to call. Always `file_search`. @@ -9146,7 +9245,7 @@ Schema name: `LiveSessionUpdated` - `WebSearch object { type }` - - `type: "web_search"` + - `type: "web_search" (default: "web_search")` The tool to call. Always `web_search`. @@ -9154,7 +9253,7 @@ Schema name: `LiveSessionUpdated` - `WebSearchPreview object { type }` - - `type: "web_search_preview"` + - `type: "web_search_preview" (default: "web_search_preview")` The tool to call. Always `web_search_preview`. @@ -9162,7 +9261,7 @@ Schema name: `LiveSessionUpdated` - `ImageGeneration object { type }` - - `type: "image_generation"` + - `type: "image_generation" (default: "image_generation")` The tool to call. Always `image_generation`. @@ -9170,7 +9269,7 @@ Schema name: `LiveSessionUpdated` - `Computer object { type }` - - `type: "computer"` + - `type: "computer" (default: "computer")` The tool to call. Always `computer`. @@ -9178,7 +9277,7 @@ Schema name: `LiveSessionUpdated` - `CodeInterpreter object { type }` - - `type: "code_interpreter"` + - `type: "code_interpreter" (default: "code_interpreter")` The tool to call. Always `code_interpreter`. @@ -9186,7 +9285,7 @@ Schema name: `LiveSessionUpdated` - `ProgrammaticToolCalling object { type }` - - `type: "programmatic_tool_calling"` + - `type: "programmatic_tool_calling" (default: "programmatic_tool_calling")` The tool to call. Always `programmatic_tool_calling`. @@ -9196,7 +9295,7 @@ Schema name: `LiveSessionUpdated` Forces the model to call the shell tool when a tool call is required. - - `type: "shell"` + - `type: "shell" (default: "shell")` The tool to call. Always `shell`. @@ -9208,7 +9307,7 @@ Schema name: `LiveSessionUpdated` The name of the custom tool to call. - - `type: "custom"` + - `type: "custom" (default: "custom")` The tool to call. Always `custom`. @@ -9218,13 +9317,13 @@ Schema name: `LiveSessionUpdated` Forces the model to call the apply_patch tool when executing a tool call. - - `type: "apply_patch"` + - `type: "apply_patch" (default: "apply_patch")` The tool to call. Always `apply_patch`. - `"apply_patch"` - - `type: "allowed_tools"` + - `type: "allowed_tools" (default: "allowed_tools")` The tool choice type. Always `allowed_tools`. @@ -9252,7 +9351,7 @@ Schema name: `LiveSessionUpdated` The name the delegated Responses model uses when calling this function. - - `type: "function"` + - `type: "function" (default: "function")` The tool type. Always `function`. @@ -9274,7 +9373,7 @@ Schema name: `LiveSessionUpdated` A web search tool available to the Live session’s Responses backend. - - `type: "web_search"` + - `type: "web_search" (default: "web_search")` The tool type. Always `web_search`. @@ -9282,13 +9381,13 @@ Schema name: `LiveSessionUpdated` - `FileSearch object { type }` - - `type: "file_search"` + - `type: "file_search" (default: "file_search")` - `"file_search"` - `CodeInterpreter object { type }` - - `type: "code_interpreter"` + - `type: "code_interpreter" (default: "code_interpreter")` - `"code_interpreter"` @@ -9296,7 +9395,7 @@ Schema name: `LiveSessionUpdated` A Responses shell tool. Use a hosted container or return local shell results with response.item.create. Domain secrets are not supported. - - `type: "shell"` + - `type: "shell" (default: "shell")` - `"shell"` @@ -9304,7 +9403,7 @@ Schema name: `LiveSessionUpdated` - `ContainerAuto object { type, file_ids, memory_limit, 2 more }` - - `type: "container_auto"` + - `type: "container_auto" (default: "container_auto")` Automatically creates a container for this request @@ -9334,7 +9433,7 @@ Schema name: `LiveSessionUpdated` - `Disabled object { type }` - - `type: "disabled"` + - `type: "disabled" (default: "disabled")` Disable outbound network access. Always `disabled`. @@ -9348,7 +9447,7 @@ Schema name: `LiveSessionUpdated` `minItems: 1` - - `type: "allowlist"` + - `type: "allowlist" (default: "allowlist")` Allow outbound network access only to specified domains. Always `allowlist`. @@ -9368,7 +9467,7 @@ Schema name: `LiveSessionUpdated` `minLength: 1`, `maxLength: 64` - - `type: "skill_reference"` + - `type: "skill_reference" (default: "skill_reference")` References a skill created with the /v1/skills endpoint. @@ -9398,19 +9497,19 @@ Schema name: `LiveSessionUpdated` `minLength: 1`, `maxLength: 70254592` - - `media_type: "application/zip"` + - `media_type: "application/zip" (default: "application/zip")` The media type of the inline skill payload. Must be `application/zip`. - `"application/zip"` - - `type: "base64"` + - `type: "base64" (default: "base64")` The type of the inline skill source. Must be `base64`. - `"base64"` - - `type: "inline"` + - `type: "inline" (default: "inline")` Defines an inline skill for this request. @@ -9422,7 +9521,7 @@ Schema name: `LiveSessionUpdated` The ID of the referenced container. - - `type: "container_reference"` + - `type: "container_reference" (default: "container_reference")` References a container created with the /v1/containers endpoint @@ -9430,7 +9529,7 @@ Schema name: `LiveSessionUpdated` - `Local object { type, skills }` - - `type: "local"` + - `type: "local" (default: "local")` Use a local computer environment. @@ -9456,59 +9555,59 @@ Schema name: `LiveSessionUpdated` - `ImageGeneration object { type }` - - `type: "image_generation"` + - `type: "image_generation" (default: "image_generation")` - `"image_generation"` - `Mcp object { type }` - - `type: "mcp"` + - `type: "mcp" (default: "mcp")` - `"mcp"` - `Custom object { type }` - - `type: "custom"` + - `type: "custom" (default: "custom")` - `"custom"` - `Namespace object { type }` - - `type: "namespace"` + - `type: "namespace" (default: "namespace")` - `"namespace"` - `ToolSearch object { type }` - - `type: "tool_search"` + - `type: "tool_search" (default: "tool_search")` - `"tool_search"` - `ProgrammaticToolCalling object { type }` - - `type: "programmatic_tool_calling"` + - `type: "programmatic_tool_calling" (default: "programmatic_tool_calling")` - `"programmatic_tool_calling"` - `Computer object { type }` - - `type: "computer"` + - `type: "computer" (default: "computer")` - `"computer"` - `ApplyPatch object { type }` - - `type: "apply_patch"` + - `type: "apply_patch" (default: "apply_patch")` - `"apply_patch"` - - `type: "responses"` + - `type: "responses" (default: "responses")` The delegation owner. Always `responses` for tasks handled by the Responses API. - `"responses"` - - `acknowledgement_delay_ms: optional number` + - `acknowledgement_delay_ms: optional integer` Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations. @@ -9548,6 +9647,8 @@ Schema name: `LiveSessionUpdated` - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` + `minItems: 1` + - `DecisionInputText object { text, type }` - `text: string` @@ -9556,7 +9657,7 @@ Schema name: `LiveSessionUpdated` `maxLength: 10485760` - - `type: "input_text"` + - `type: "input_text" (default: "input_text")` - `"input_text"` @@ -9566,9 +9667,9 @@ Schema name: `LiveSessionUpdated` A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `maxLength: 20971520` + `pattern: ^(data:|https?://)`, `maxLength: 20971520` - - `type: "input_image"` + - `type: "input_image" (default: "input_image")` - `"input_image"` @@ -9592,11 +9693,11 @@ Schema name: `LiveSessionUpdated` - `array of map[unknown]` - - `type: "input_json"` + - `type: "input_json" (default: "input_json")` - `"input_json"` - - `type: "choice"` + - `type: "choice" (default: "choice")` - `"choice"` @@ -9610,6 +9711,8 @@ Schema name: `LiveSessionUpdated` - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` + `minItems: 1` + - `DecisionInputText object { text, type }` - `InputImage object { image_url, type, detail }` @@ -9618,9 +9721,9 @@ Schema name: `LiveSessionUpdated` A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `maxLength: 20971520` + `pattern: ^(data:|https?://)`, `maxLength: 20971520` - - `type: "input_image"` + - `type: "input_image" (default: "input_image")` - `"input_image"` @@ -9644,11 +9747,11 @@ Schema name: `LiveSessionUpdated` - `array of map[unknown]` - - `type: "input_json"` + - `type: "input_json" (default: "input_json")` - `"input_json"` - - `type: "predicate"` + - `type: "predicate" (default: "predicate")` - `"predicate"` @@ -9662,6 +9765,8 @@ Schema name: `LiveSessionUpdated` - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` + `minItems: 1` + - `DecisionInputText object { text, type }` - `InputImage object { image_url, type, detail }` @@ -9670,9 +9775,9 @@ Schema name: `LiveSessionUpdated` A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `maxLength: 20971520` + `pattern: ^(data:|https?://)`, `maxLength: 20971520` - - `type: "input_image"` + - `type: "input_image" (default: "input_image")` - `"input_image"` @@ -9696,7 +9801,7 @@ Schema name: `LiveSessionUpdated` - `array of map[unknown]` - - `type: "input_json"` + - `type: "input_json" (default: "input_json")` - `"input_json"` @@ -9708,17 +9813,17 @@ Schema name: `LiveSessionUpdated` - `description: optional string` - - `type: "score"` + - `type: "score" (default: "score")` - `"score"` - `name: optional string` - - `type: "decisions"` + - `type: "decisions" (default: "decisions")` - `"decisions"` - - `acknowledgement_delay_ms: optional number` + - `acknowledgement_delay_ms: optional integer` Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400. Updates apply to subsequent delegations. @@ -9744,13 +9849,13 @@ Schema name: `LiveSessionUpdated` The message text to include in the Live session’s initial conversation history. - - `type: optional "input_text"` + - `type: optional "input_text" (default: "input_text")` The text content type. Always `input_text`. - `"input_text"` - - `role: "developer"` + - `role: "developer" (default: "developer")` The author of this history message. Always `developer`. @@ -9768,7 +9873,7 @@ Schema name: `LiveSessionUpdated` - `"completed"` - - `type: optional "message"` + - `type: optional "message" (default: "message")` The history item type. Always `message`. @@ -9788,13 +9893,13 @@ Schema name: `LiveSessionUpdated` The message text to include in the Live session’s initial conversation history. - - `type: optional "input_text"` + - `type: optional "input_text" (default: "input_text")` The text content type. Always `input_text`. - `"input_text"` - - `role: "user"` + - `role: "user" (default: "user")` The author of this history message. Always `user`. @@ -9812,7 +9917,7 @@ Schema name: `LiveSessionUpdated` - `"completed"` - - `type: optional "message"` + - `type: optional "message" (default: "message")` The history item type. Always `message`. @@ -9836,7 +9941,7 @@ Schema name: `LiveSessionUpdated` The message text to include in the Live session’s initial conversation history. - - `type: optional "text"` + - `type: optional "text" (default: "text")` The text content type. Always `text`. @@ -9850,13 +9955,13 @@ Schema name: `LiveSessionUpdated` The message text to include in the Live session’s initial conversation history. - - `type: "output_text"` + - `type: "output_text" (default: "output_text")` The text content type. Always `output_text`. - `"output_text"` - - `role: "assistant"` + - `role: "assistant" (default: "assistant")` The author of this history message. Always `assistant`. @@ -9874,7 +9979,7 @@ Schema name: `LiveSessionUpdated` - `"completed"` - - `type: optional "message"` + - `type: optional "message" (default: "message")` The history item type. Always `message`. @@ -9916,11 +10021,11 @@ Schema name: `LiveSessionUpdated` - `"session.output_transcript.delta"` - - `type: "decisions"` + - `type: "decisions" (default: "decisions")` - `"decisions"` -- `type: "session.updated"` +- `type: "session.updated" (default: "session.updated")` The event type, always `session.updated`. @@ -9980,7 +10085,7 @@ Schema name: `LiveInputAudioMuted` The unique ID of the Live server event. -- `type: "session.input_audio.muted"` +- `type: "session.input_audio.muted" (default: "session.input_audio.muted")` The event type, always `session.input_audio.muted`. @@ -10014,7 +10119,7 @@ Schema name: `LiveInputAudioUnmuted` The unique ID of the Live server event. -- `type: "session.input_audio.unmuted"` +- `type: "session.input_audio.unmuted" (default: "session.input_audio.unmuted")` The event type, always `session.input_audio.unmuted`. @@ -10048,7 +10153,7 @@ Schema name: `LiveOutputAudioFixturePlaying` The unique ID of the Live server event. -- `type: "session.output_audio.fixture.playing"` +- `type: "session.output_audio.fixture.playing" (default: "session.output_audio.fixture.playing")` - `"session.output_audio.fixture.playing"` @@ -10080,7 +10185,7 @@ Schema name: `LiveOutputAudioFixturePlayed` The unique ID of the Live server event. -- `type: "session.output_audio.fixture.played"` +- `type: "session.output_audio.fixture.played" (default: "session.output_audio.fixture.played")` - `"session.output_audio.fixture.played"` @@ -10108,7 +10213,7 @@ Returned when a session.instructions.append command is accepted into the Live se Schema name: `LiveInstructionsAppended` -- `end_ms: number` +- `end_ms: integer` 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. @@ -10116,11 +10221,11 @@ Schema name: `LiveInstructionsAppended` The unique ID of the Live server event. -- `start_ms: number` +- `start_ms: integer` The start of this event on the Live session timeline, in milliseconds from the beginning of the session. -- `type: "session.instructions.appended"` +- `type: "session.instructions.appended" (default: "session.instructions.appended")` The event type, always `session.instructions.appended`. @@ -10152,7 +10257,7 @@ Returned when a session.thinking.append command is accepted into the Live sessio Schema name: `LiveThinkingAppended` -- `end_ms: number` +- `end_ms: integer` 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. @@ -10160,11 +10265,11 @@ Schema name: `LiveThinkingAppended` The unique ID of the Live server event. -- `start_ms: number` +- `start_ms: integer` The start of this event on the Live session timeline, in milliseconds from the beginning of the session. -- `type: "session.thinking.appended"` +- `type: "session.thinking.appended" (default: "session.thinking.appended")` The event type, always `session.thinking.appended`. @@ -10196,7 +10301,7 @@ Returned when a session.commentary.append command is accepted into the Live sess Schema name: `LiveCommentaryAppended` -- `end_ms: number` +- `end_ms: integer` 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. @@ -10204,11 +10309,11 @@ Schema name: `LiveCommentaryAppended` The unique ID of the Live server event. -- `start_ms: number` +- `start_ms: integer` The start of this event on the Live session timeline, in milliseconds from the beginning of the session. -- `type: "session.commentary.appended"` +- `type: "session.commentary.appended" (default: "session.commentary.appended")` The event type, always `session.commentary.appended`. @@ -10244,17 +10349,17 @@ Schema name: `LiveOutputAudioDelta` Base64-encoded raw audio. Primary WebSocket events use the session's configured format; reflected sideband events use mono PCM16LE at 24 kHz. -- `type: "session.output_audio.delta"` +- `type: "session.output_audio.delta" (default: "session.output_audio.delta")` The event type, always `session.output_audio.delta`. - `"session.output_audio.delta"` -- `end_ms: optional number` +- `end_ms: optional integer` Exclusive session-relative end in milliseconds. Required on reflected sideband events; omitted on the primary WebSocket. Dropped output frames leave gaps between reflected ranges. -- `start_ms: optional number` +- `start_ms: optional integer` Inclusive session-relative start in milliseconds. Required on reflected sideband events; omitted on the primary WebSocket. @@ -10283,7 +10388,7 @@ Schema name: `LiveInputTranscriptDelta` The transcript text fragment for the audio in this time range. Append fragments in delivery order to build the transcript. -- `end_ms: number` +- `end_ms: integer` 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. @@ -10291,11 +10396,11 @@ Schema name: `LiveInputTranscriptDelta` The unique ID of the Live server event. -- `start_ms: number` +- `start_ms: integer` The start of this event on the Live session timeline, in milliseconds from the beginning of the session. -- `type: "session.input_transcript.delta"` +- `type: "session.input_transcript.delta" (default: "session.input_transcript.delta")` The event type, always `session.input_transcript.delta`. @@ -10331,7 +10436,7 @@ Schema name: `LiveOutputTranscriptDelta` The transcript text fragment for the audio in this time range. Append fragments in delivery order to build the transcript. -- `end_ms: number` +- `end_ms: integer` 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. @@ -10339,11 +10444,11 @@ Schema name: `LiveOutputTranscriptDelta` The unique ID of the Live server event. -- `start_ms: number` +- `start_ms: integer` The start of this event on the Live session timeline, in milliseconds from the beginning of the session. -- `type: "session.output_transcript.delta"` +- `type: "session.output_transcript.delta" (default: "session.output_transcript.delta")` The event type, always `session.output_transcript.delta`. @@ -10397,7 +10502,7 @@ Schema name: `LiveDelegationCreated` - `"decisions"` - - `type: "delegation"` + - `type: "delegation" (default: "delegation")` The object type, always `delegation`. @@ -10411,11 +10516,11 @@ Schema name: `LiveDelegationCreated` The unique ID of the Live server event. -- `offset_ms: number` +- `offset_ms: integer` The position on the Live session timeline where the delegation was created, in milliseconds from the beginning of the session. -- `type: "session.delegation.created"` +- `type: "session.delegation.created" (default: "session.delegation.created")` The event type, always `session.delegation.created`. @@ -10474,7 +10579,7 @@ Schema name: `LiveDecisionEvent` - `probability: number` - - `type: "predicate"` + - `type: "predicate" (default: "predicate")` The type of the object. Always `predicate`. @@ -10488,6 +10593,8 @@ Schema name: `LiveDecisionEvent` - `string` + `minLength: 0` + - `boolean` - `confidence: number` @@ -10508,9 +10615,11 @@ Schema name: `LiveDecisionEvent` - `string` + `minLength: 0` + - `boolean` - - `type: "choice"` + - `type: "choice" (default: "choice")` The type of the object. Always `choice`. @@ -10534,13 +10643,13 @@ Schema name: `LiveDecisionEvent` - `probability: number` - - `value: number` + - `value: integer` `format: int64` - `score: number` - - `type: "score"` + - `type: "score" (default: "score")` The type of the object. Always `score`. @@ -10554,7 +10663,7 @@ Schema name: `LiveDecisionEvent` `minLength: 0` - - `type: "refusal"` + - `type: "refusal" (default: "refusal")` The type of the object. Always `refusal`. @@ -10570,35 +10679,35 @@ Schema name: `LiveDecisionEvent` Token usage for the request. - - `input_tokens: number` + - `input_tokens: integer` `format: int64`, `minimum: -2147483648`, `maximum: 2147483647` - `input_tokens_details: object { cache_write_tokens, cached_tokens }` - - `cache_write_tokens: number` + - `cache_write_tokens: integer` `format: int64`, `minimum: -2147483648`, `maximum: 2147483647` - - `cached_tokens: number` + - `cached_tokens: integer` `format: int64`, `minimum: -2147483648`, `maximum: 2147483647` - - `output_tokens: number` + - `output_tokens: integer` `format: int64`, `minimum: -2147483648`, `maximum: 2147483647` - `output_tokens_details: object { reasoning_tokens }` - - `reasoning_tokens: number` + - `reasoning_tokens: integer` `format: int64`, `minimum: -2147483648`, `maximum: 2147483647` - - `total_tokens: number` + - `total_tokens: integer` `format: int64`, `minimum: -2147483648`, `maximum: 2147483647` - - `type: "decision.completed"` + - `type: "decision.completed" (default: "decision.completed")` - `"decision.completed"` @@ -10622,7 +10731,7 @@ Schema name: `LiveDecisionEvent` The Live-assigned ID of this trigger firing, or null for a delegation. -- `type: "decision.event"` +- `type: "decision.event" (default: "decision.event")` - `"decision.event"` @@ -10692,6 +10801,8 @@ Schema name: `LiveDecisionItemCreated` The text input to the model. + `maxLength: 10485760` + - `array of InputText { text, type } or InputImage { image_url, type, detail } or InputJSON { data, type }` - `InputText object { text, type }` @@ -10702,7 +10813,7 @@ Schema name: `LiveDecisionItemCreated` `maxLength: 10485760` - - `type: "input_text"` + - `type: "input_text" (default: "input_text")` - `"input_text"` @@ -10712,9 +10823,9 @@ Schema name: `LiveDecisionItemCreated` A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `maxLength: 20971520` + `pattern: ^(data:|https?://)`, `maxLength: 20971520` - - `type: "input_image"` + - `type: "input_image" (default: "input_image")` - `"input_image"` @@ -10738,17 +10849,17 @@ Schema name: `LiveDecisionItemCreated` - `array of map[unknown]` - - `type: "input_json"` + - `type: "input_json" (default: "input_json")` - `"input_json"` - - `role: "user"` + - `role: "user" (default: "user")` The message role. Always `user`. - `"user"` - - `type: optional "message"` + - `type: optional "message" (default: "message")` - `"message"` @@ -10764,6 +10875,8 @@ Schema name: `LiveDecisionItemCreated` The text input to the model. + `maxLength: 10485760` + - `array of DecisionInputText` - `text: string` @@ -10772,15 +10885,15 @@ Schema name: `LiveDecisionItemCreated` `maxLength: 10485760` - - `type: "input_text"` + - `type: "input_text" (default: "input_text")` - `"input_text"` - - `role: "developer"` + - `role: "developer" (default: "developer")` - `"developer"` - - `type: optional "message"` + - `type: optional "message" (default: "message")` - `"message"` @@ -10796,6 +10909,8 @@ Schema name: `LiveDecisionItemCreated` The text input to the model. + `maxLength: 10485760` + - `array of DecisionInputText` - `text: string` @@ -10804,13 +10919,13 @@ Schema name: `LiveDecisionItemCreated` `maxLength: 10485760` - - `type: "input_text"` + - `type: "input_text" (default: "input_text")` - - `role: "system"` + - `role: "system" (default: "system")` - `"system"` - - `type: optional "message"` + - `type: optional "message" (default: "message")` - `"message"` @@ -10826,6 +10941,8 @@ Schema name: `LiveDecisionItemCreated` The text input to the model. + `maxLength: 10485760` + - `array of OutputText { text, type } or Refusal { refusal, type }` - `OutputText object { text, type }` @@ -10836,7 +10953,7 @@ Schema name: `LiveDecisionItemCreated` `maxLength: 10485760` - - `type: "output_text"` + - `type: "output_text" (default: "output_text")` - `"output_text"` @@ -10848,11 +10965,11 @@ Schema name: `LiveDecisionItemCreated` `maxLength: 10485760` - - `type: "refusal"` + - `type: "refusal" (default: "refusal")` - `"refusal"` - - `role: "assistant"` + - `role: "assistant" (default: "assistant")` - `"assistant"` @@ -10864,7 +10981,7 @@ Schema name: `LiveDecisionItemCreated` - `"final_answer"` - - `type: optional "message"` + - `type: optional "message" (default: "message")` - `"message"` @@ -10884,9 +11001,9 @@ Schema name: `LiveDecisionItemCreated` - `name: string` - `minLength: 1`, `maxLength: 128` + `pattern: ^[a-zA-Z0-9_.-]+$`, `minLength: 1`, `maxLength: 128` - - `type: "function_call"` + - `type: "function_call" (default: "function_call")` The item type. Always `function_call`. @@ -10896,7 +11013,7 @@ Schema name: `LiveDecisionItemCreated` The namespace of the function to call. - `minLength: 1`, `maxLength: 64` + `pattern: ^[a-zA-Z0-9_-]+$`, `minLength: 1`, `maxLength: 64` - `status: optional "in_progress" or "completed" or "incomplete" or null` @@ -10924,6 +11041,8 @@ Schema name: `LiveDecisionItemCreated` The text input to the model. + `maxLength: 10485760` + - `array of DecisionInputText or InputImage { image_url, type, detail }` - `DecisionInputText object { text, type }` @@ -10934,7 +11053,7 @@ Schema name: `LiveDecisionItemCreated` `maxLength: 10485760` - - `type: "input_text"` + - `type: "input_text" (default: "input_text")` - `InputImage object { image_url, type, detail }` @@ -10942,9 +11061,9 @@ Schema name: `LiveDecisionItemCreated` A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `maxLength: 20971520` + `pattern: ^(data:|https?://)`, `maxLength: 20971520` - - `type: "input_image"` + - `type: "input_image" (default: "input_image")` - `"input_image"` @@ -10960,7 +11079,7 @@ Schema name: `LiveDecisionItemCreated` - `"original"` - - `type: "function_call_output"` + - `type: "function_call_output" (default: "function_call_output")` The type of the function tool call output. Always `function_call_output`. @@ -10992,9 +11111,9 @@ Schema name: `LiveDecisionItemCreated` The name of the custom tool to call. - `minLength: 1`, `maxLength: 64` + `pattern: ^[a-zA-Z0-9_-]+$`, `minLength: 1`, `maxLength: 64` - - `type: "custom_tool_call"` + - `type: "custom_tool_call" (default: "custom_tool_call")` The item type. Always `custom_tool_call`. @@ -11004,7 +11123,7 @@ Schema name: `LiveDecisionItemCreated` The namespace of the function to call. - `minLength: 1`, `maxLength: 64` + `pattern: ^[a-zA-Z0-9_-]+$`, `minLength: 1`, `maxLength: 64` - `status: optional "in_progress" or "completed" or "incomplete" or null` @@ -11032,6 +11151,8 @@ Schema name: `LiveDecisionItemCreated` The text input to the model. + `maxLength: 10485760` + - `array of DecisionInputText or InputImage { image_url, type, detail }` - `DecisionInputText object { text, type }` @@ -11042,9 +11163,9 @@ Schema name: `LiveDecisionItemCreated` A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `maxLength: 20971520` + `pattern: ^(data:|https?://)`, `maxLength: 20971520` - - `type: "input_image"` + - `type: "input_image" (default: "input_image")` - `"input_image"` @@ -11060,7 +11181,7 @@ Schema name: `LiveDecisionItemCreated` - `"original"` - - `type: "custom_tool_call_output"` + - `type: "custom_tool_call_output" (default: "custom_tool_call_output")` - `"custom_tool_call_output"` @@ -11072,7 +11193,7 @@ Schema name: `LiveDecisionItemCreated` - `"incomplete"` -- `type: "decision.item.created"` +- `type: "decision.item.created" (default: "decision.item.created")` - `"decision.item.created"` @@ -11117,7 +11238,7 @@ Schema name: `LiveDecisionItemDeleted` - `item_id: string` -- `type: "decision.item.deleted"` +- `type: "decision.item.deleted" (default: "decision.item.deleted")` - `"decision.item.deleted"` @@ -11154,7 +11275,7 @@ Schema name: `LiveResponseEvent` The unique ID of the Live server event. -- `type: "response.event"` +- `type: "response.event" (default: "response.event")` The event type, always `response.event`. @@ -11201,7 +11322,7 @@ Schema name: `LiveSessionUsageUpdated` The unique ID of the Live server event. -- `type: "session.usage.updated"` +- `type: "session.usage.updated" (default: "session.usage.updated")` The event type, always `session.usage.updated`. @@ -11282,7 +11403,7 @@ Schema name: `LiveSessionClosed` The unique ID of the Live session. Use this ID for sideband connections, forking, and recording download. - - `expires_at: number` + - `expires_at: integer` The Unix timestamp, in seconds, at which the Live session expires. @@ -11292,13 +11413,15 @@ Schema name: `LiveSessionClosed` - `string` + `minLength: 1` + - `"gpt-live-1"` The Live model. Required in the session configuration for every transport; do not pass it as a URL query parameter. - `"gpt-live-1"` - - `status: "active"` + - `status: "active" (default: "active")` The status of the session snapshot. Always `active`, including the final snapshot in session.closed; use the event type to determine that the session has closed. @@ -11326,7 +11449,7 @@ Schema name: `LiveSessionClosed` - `24000` - - `type: "audio/pcm"` + - `type: "audio/pcm" (default: "audio/pcm")` The audio encoding. Always `audio/pcm`. @@ -11336,13 +11459,13 @@ Schema name: `LiveSessionClosed` Raw, mono G.711 μ-law audio for a Live WebSocket connection. - - `rate: number` + - `rate: integer` Audio sample rate in hertz. G.711 audio uses 8000 Hz. `minimum: 8000`, `maximum: 8000` - - `type: "audio/pcmu"` + - `type: "audio/pcmu" (default: "audio/pcmu")` The audio encoding. Always `audio/pcmu`. @@ -11352,13 +11475,13 @@ Schema name: `LiveSessionClosed` Raw, mono G.711 A-law audio for a Live WebSocket connection. - - `rate: number` + - `rate: integer` Audio sample rate in hertz. G.711 audio uses 8000 Hz. `minimum: 8000`, `maximum: 8000` - - `type: "audio/pcma"` + - `type: "audio/pcma" (default: "audio/pcma")` The audio encoding. Always `audio/pcma`. @@ -11464,6 +11587,8 @@ Schema name: `LiveSessionClosed` - `array of string` + `maxItems: 256` + - `allowed_server_events: optional "all" or array of ServerEventSelector` Server events that may be sent to the frontend data channel. Use 'all' to allow every server event; an empty array allows none. Omission preserves the existing allow-all behavior. Responses events use an object with type 'response.event' and a response_event selector. @@ -11474,6 +11599,8 @@ Schema name: `LiveSessionClosed` - `array of ServerEventSelector` + `maxItems: 256` + - `type: string` The outer Live server event type. Use 'response.event' for Responses events. @@ -11494,13 +11621,13 @@ Schema name: `LiveSessionClosed` Delegate tasks to your application. The Live session emits delegation events that your backend handles. - - `type: "client"` + - `type: "client" (default: "client")` The delegation owner. Always `client` for tasks handled by your application. - `"client"` - - `acknowledgement_delay_ms: optional number` + - `acknowledgement_delay_ms: optional integer` Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations. @@ -11522,7 +11649,7 @@ Schema name: `LiveSessionClosed` Instructions for the delegated Responses model, separate from Live instructions. See [backend prompting](https://developers.openai.com/api/docs/guides/live-delegation#start-with-your-existing-backend-prompt). - - `max_output_tokens: optional number or null` + - `max_output_tokens: optional integer or null` Maximum number of output tokens for each delegated response. @@ -11610,7 +11737,7 @@ Schema name: `LiveSessionClosed` The name of the function tool to call. - - `type: "function"` + - `type: "function" (default: "function")` The tool to call. Always `function`. @@ -11622,7 +11749,7 @@ Schema name: `LiveSessionClosed` The label of the MCP server to call. - - `type: "mcp"` + - `type: "mcp" (default: "mcp")` The tool to call. Always `mcp`. @@ -11634,7 +11761,7 @@ Schema name: `LiveSessionClosed` - `FileSearch object { type }` - - `type: "file_search"` + - `type: "file_search" (default: "file_search")` The tool to call. Always `file_search`. @@ -11642,7 +11769,7 @@ Schema name: `LiveSessionClosed` - `WebSearch object { type }` - - `type: "web_search"` + - `type: "web_search" (default: "web_search")` The tool to call. Always `web_search`. @@ -11650,7 +11777,7 @@ Schema name: `LiveSessionClosed` - `WebSearchPreview object { type }` - - `type: "web_search_preview"` + - `type: "web_search_preview" (default: "web_search_preview")` The tool to call. Always `web_search_preview`. @@ -11658,7 +11785,7 @@ Schema name: `LiveSessionClosed` - `ImageGeneration object { type }` - - `type: "image_generation"` + - `type: "image_generation" (default: "image_generation")` The tool to call. Always `image_generation`. @@ -11666,7 +11793,7 @@ Schema name: `LiveSessionClosed` - `Computer object { type }` - - `type: "computer"` + - `type: "computer" (default: "computer")` The tool to call. Always `computer`. @@ -11674,7 +11801,7 @@ Schema name: `LiveSessionClosed` - `CodeInterpreter object { type }` - - `type: "code_interpreter"` + - `type: "code_interpreter" (default: "code_interpreter")` The tool to call. Always `code_interpreter`. @@ -11682,7 +11809,7 @@ Schema name: `LiveSessionClosed` - `ProgrammaticToolCalling object { type }` - - `type: "programmatic_tool_calling"` + - `type: "programmatic_tool_calling" (default: "programmatic_tool_calling")` The tool to call. Always `programmatic_tool_calling`. @@ -11692,7 +11819,7 @@ Schema name: `LiveSessionClosed` Forces the model to call the shell tool when a tool call is required. - - `type: "shell"` + - `type: "shell" (default: "shell")` The tool to call. Always `shell`. @@ -11704,7 +11831,7 @@ Schema name: `LiveSessionClosed` The name of the custom tool to call. - - `type: "custom"` + - `type: "custom" (default: "custom")` The tool to call. Always `custom`. @@ -11714,7 +11841,7 @@ Schema name: `LiveSessionClosed` Forces the model to call the apply_patch tool when executing a tool call. - - `type: "apply_patch"` + - `type: "apply_patch" (default: "apply_patch")` The tool to call. Always `apply_patch`. @@ -11734,7 +11861,7 @@ Schema name: `LiveSessionClosed` The name of the function tool to call. - - `type: "function"` + - `type: "function" (default: "function")` The tool to call. Always `function`. @@ -11746,7 +11873,7 @@ Schema name: `LiveSessionClosed` The label of the MCP server to call. - - `type: "mcp"` + - `type: "mcp" (default: "mcp")` The tool to call. Always `mcp`. @@ -11758,7 +11885,7 @@ Schema name: `LiveSessionClosed` - `FileSearch object { type }` - - `type: "file_search"` + - `type: "file_search" (default: "file_search")` The tool to call. Always `file_search`. @@ -11766,7 +11893,7 @@ Schema name: `LiveSessionClosed` - `WebSearch object { type }` - - `type: "web_search"` + - `type: "web_search" (default: "web_search")` The tool to call. Always `web_search`. @@ -11774,7 +11901,7 @@ Schema name: `LiveSessionClosed` - `WebSearchPreview object { type }` - - `type: "web_search_preview"` + - `type: "web_search_preview" (default: "web_search_preview")` The tool to call. Always `web_search_preview`. @@ -11782,7 +11909,7 @@ Schema name: `LiveSessionClosed` - `ImageGeneration object { type }` - - `type: "image_generation"` + - `type: "image_generation" (default: "image_generation")` The tool to call. Always `image_generation`. @@ -11790,7 +11917,7 @@ Schema name: `LiveSessionClosed` - `Computer object { type }` - - `type: "computer"` + - `type: "computer" (default: "computer")` The tool to call. Always `computer`. @@ -11798,7 +11925,7 @@ Schema name: `LiveSessionClosed` - `CodeInterpreter object { type }` - - `type: "code_interpreter"` + - `type: "code_interpreter" (default: "code_interpreter")` The tool to call. Always `code_interpreter`. @@ -11806,7 +11933,7 @@ Schema name: `LiveSessionClosed` - `ProgrammaticToolCalling object { type }` - - `type: "programmatic_tool_calling"` + - `type: "programmatic_tool_calling" (default: "programmatic_tool_calling")` The tool to call. Always `programmatic_tool_calling`. @@ -11816,7 +11943,7 @@ Schema name: `LiveSessionClosed` Forces the model to call the shell tool when a tool call is required. - - `type: "shell"` + - `type: "shell" (default: "shell")` The tool to call. Always `shell`. @@ -11828,7 +11955,7 @@ Schema name: `LiveSessionClosed` The name of the custom tool to call. - - `type: "custom"` + - `type: "custom" (default: "custom")` The tool to call. Always `custom`. @@ -11838,13 +11965,13 @@ Schema name: `LiveSessionClosed` Forces the model to call the apply_patch tool when executing a tool call. - - `type: "apply_patch"` + - `type: "apply_patch" (default: "apply_patch")` The tool to call. Always `apply_patch`. - `"apply_patch"` - - `type: "allowed_tools"` + - `type: "allowed_tools" (default: "allowed_tools")` The tool choice type. Always `allowed_tools`. @@ -11872,7 +11999,7 @@ Schema name: `LiveSessionClosed` The name the delegated Responses model uses when calling this function. - - `type: "function"` + - `type: "function" (default: "function")` The tool type. Always `function`. @@ -11894,7 +12021,7 @@ Schema name: `LiveSessionClosed` A web search tool available to the Live session’s Responses backend. - - `type: "web_search"` + - `type: "web_search" (default: "web_search")` The tool type. Always `web_search`. @@ -11902,13 +12029,13 @@ Schema name: `LiveSessionClosed` - `FileSearch object { type }` - - `type: "file_search"` + - `type: "file_search" (default: "file_search")` - `"file_search"` - `CodeInterpreter object { type }` - - `type: "code_interpreter"` + - `type: "code_interpreter" (default: "code_interpreter")` - `"code_interpreter"` @@ -11916,7 +12043,7 @@ Schema name: `LiveSessionClosed` A Responses shell tool. Use a hosted container or return local shell results with response.item.create. Domain secrets are not supported. - - `type: "shell"` + - `type: "shell" (default: "shell")` - `"shell"` @@ -11924,7 +12051,7 @@ Schema name: `LiveSessionClosed` - `ContainerAuto object { type, file_ids, memory_limit, 2 more }` - - `type: "container_auto"` + - `type: "container_auto" (default: "container_auto")` Automatically creates a container for this request @@ -11954,7 +12081,7 @@ Schema name: `LiveSessionClosed` - `Disabled object { type }` - - `type: "disabled"` + - `type: "disabled" (default: "disabled")` Disable outbound network access. Always `disabled`. @@ -11968,7 +12095,7 @@ Schema name: `LiveSessionClosed` `minItems: 1` - - `type: "allowlist"` + - `type: "allowlist" (default: "allowlist")` Allow outbound network access only to specified domains. Always `allowlist`. @@ -11988,7 +12115,7 @@ Schema name: `LiveSessionClosed` `minLength: 1`, `maxLength: 64` - - `type: "skill_reference"` + - `type: "skill_reference" (default: "skill_reference")` References a skill created with the /v1/skills endpoint. @@ -12018,19 +12145,19 @@ Schema name: `LiveSessionClosed` `minLength: 1`, `maxLength: 70254592` - - `media_type: "application/zip"` + - `media_type: "application/zip" (default: "application/zip")` The media type of the inline skill payload. Must be `application/zip`. - `"application/zip"` - - `type: "base64"` + - `type: "base64" (default: "base64")` The type of the inline skill source. Must be `base64`. - `"base64"` - - `type: "inline"` + - `type: "inline" (default: "inline")` Defines an inline skill for this request. @@ -12042,7 +12169,7 @@ Schema name: `LiveSessionClosed` The ID of the referenced container. - - `type: "container_reference"` + - `type: "container_reference" (default: "container_reference")` References a container created with the /v1/containers endpoint @@ -12050,7 +12177,7 @@ Schema name: `LiveSessionClosed` - `Local object { type, skills }` - - `type: "local"` + - `type: "local" (default: "local")` Use a local computer environment. @@ -12076,59 +12203,59 @@ Schema name: `LiveSessionClosed` - `ImageGeneration object { type }` - - `type: "image_generation"` + - `type: "image_generation" (default: "image_generation")` - `"image_generation"` - `Mcp object { type }` - - `type: "mcp"` + - `type: "mcp" (default: "mcp")` - `"mcp"` - `Custom object { type }` - - `type: "custom"` + - `type: "custom" (default: "custom")` - `"custom"` - `Namespace object { type }` - - `type: "namespace"` + - `type: "namespace" (default: "namespace")` - `"namespace"` - `ToolSearch object { type }` - - `type: "tool_search"` + - `type: "tool_search" (default: "tool_search")` - `"tool_search"` - `ProgrammaticToolCalling object { type }` - - `type: "programmatic_tool_calling"` + - `type: "programmatic_tool_calling" (default: "programmatic_tool_calling")` - `"programmatic_tool_calling"` - `Computer object { type }` - - `type: "computer"` + - `type: "computer" (default: "computer")` - `"computer"` - `ApplyPatch object { type }` - - `type: "apply_patch"` + - `type: "apply_patch" (default: "apply_patch")` - `"apply_patch"` - - `type: "responses"` + - `type: "responses" (default: "responses")` The delegation owner. Always `responses` for tasks handled by the Responses API. - `"responses"` - - `acknowledgement_delay_ms: optional number` + - `acknowledgement_delay_ms: optional integer` Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations. @@ -12168,6 +12295,8 @@ Schema name: `LiveSessionClosed` - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` + `minItems: 1` + - `DecisionInputText object { text, type }` - `text: string` @@ -12176,7 +12305,7 @@ Schema name: `LiveSessionClosed` `maxLength: 10485760` - - `type: "input_text"` + - `type: "input_text" (default: "input_text")` - `"input_text"` @@ -12186,9 +12315,9 @@ Schema name: `LiveSessionClosed` A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `maxLength: 20971520` + `pattern: ^(data:|https?://)`, `maxLength: 20971520` - - `type: "input_image"` + - `type: "input_image" (default: "input_image")` - `"input_image"` @@ -12212,11 +12341,11 @@ Schema name: `LiveSessionClosed` - `array of map[unknown]` - - `type: "input_json"` + - `type: "input_json" (default: "input_json")` - `"input_json"` - - `type: "choice"` + - `type: "choice" (default: "choice")` - `"choice"` @@ -12230,6 +12359,8 @@ Schema name: `LiveSessionClosed` - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` + `minItems: 1` + - `DecisionInputText object { text, type }` - `InputImage object { image_url, type, detail }` @@ -12238,9 +12369,9 @@ Schema name: `LiveSessionClosed` A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `maxLength: 20971520` + `pattern: ^(data:|https?://)`, `maxLength: 20971520` - - `type: "input_image"` + - `type: "input_image" (default: "input_image")` - `"input_image"` @@ -12264,11 +12395,11 @@ Schema name: `LiveSessionClosed` - `array of map[unknown]` - - `type: "input_json"` + - `type: "input_json" (default: "input_json")` - `"input_json"` - - `type: "predicate"` + - `type: "predicate" (default: "predicate")` - `"predicate"` @@ -12282,6 +12413,8 @@ Schema name: `LiveSessionClosed` - `array of DecisionInputText or InputImage { image_url, type, detail } or InputJSON { data, type }` + `minItems: 1` + - `DecisionInputText object { text, type }` - `InputImage object { image_url, type, detail }` @@ -12290,9 +12423,9 @@ Schema name: `LiveSessionClosed` A base64-encoded image data URL or a publicly accessible HTTP(S) image URL. - `maxLength: 20971520` + `pattern: ^(data:|https?://)`, `maxLength: 20971520` - - `type: "input_image"` + - `type: "input_image" (default: "input_image")` - `"input_image"` @@ -12316,7 +12449,7 @@ Schema name: `LiveSessionClosed` - `array of map[unknown]` - - `type: "input_json"` + - `type: "input_json" (default: "input_json")` - `"input_json"` @@ -12328,17 +12461,17 @@ Schema name: `LiveSessionClosed` - `description: optional string` - - `type: "score"` + - `type: "score" (default: "score")` - `"score"` - `name: optional string` - - `type: "decisions"` + - `type: "decisions" (default: "decisions")` - `"decisions"` - - `acknowledgement_delay_ms: optional number` + - `acknowledgement_delay_ms: optional integer` Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400. Updates apply to subsequent delegations. @@ -12364,13 +12497,13 @@ Schema name: `LiveSessionClosed` The message text to include in the Live session’s initial conversation history. - - `type: optional "input_text"` + - `type: optional "input_text" (default: "input_text")` The text content type. Always `input_text`. - `"input_text"` - - `role: "developer"` + - `role: "developer" (default: "developer")` The author of this history message. Always `developer`. @@ -12388,7 +12521,7 @@ Schema name: `LiveSessionClosed` - `"completed"` - - `type: optional "message"` + - `type: optional "message" (default: "message")` The history item type. Always `message`. @@ -12408,13 +12541,13 @@ Schema name: `LiveSessionClosed` The message text to include in the Live session’s initial conversation history. - - `type: optional "input_text"` + - `type: optional "input_text" (default: "input_text")` The text content type. Always `input_text`. - `"input_text"` - - `role: "user"` + - `role: "user" (default: "user")` The author of this history message. Always `user`. @@ -12432,7 +12565,7 @@ Schema name: `LiveSessionClosed` - `"completed"` - - `type: optional "message"` + - `type: optional "message" (default: "message")` The history item type. Always `message`. @@ -12456,7 +12589,7 @@ Schema name: `LiveSessionClosed` The message text to include in the Live session’s initial conversation history. - - `type: optional "text"` + - `type: optional "text" (default: "text")` The text content type. Always `text`. @@ -12470,13 +12603,13 @@ Schema name: `LiveSessionClosed` The message text to include in the Live session’s initial conversation history. - - `type: "output_text"` + - `type: "output_text" (default: "output_text")` The text content type. Always `output_text`. - `"output_text"` - - `role: "assistant"` + - `role: "assistant" (default: "assistant")` The author of this history message. Always `assistant`. @@ -12494,7 +12627,7 @@ Schema name: `LiveSessionClosed` - `"completed"` - - `type: optional "message"` + - `type: optional "message" (default: "message")` The history item type. Always `message`. @@ -12536,11 +12669,11 @@ Schema name: `LiveSessionClosed` - `"session.output_transcript.delta"` - - `type: "decisions"` + - `type: "decisions" (default: "decisions")` - `"decisions"` -- `type: "session.closed"` +- `type: "session.closed" (default: "session.closed")` The event type, always `session.closed`. @@ -12630,7 +12763,7 @@ Schema name: `LiveErrorEvent` The unique ID of the Live server event. -- `type: "error"` +- `type: "error" (default: "error")` The event type, always `error`. @@ -12678,7 +12811,7 @@ Schema name: `LiveInfoEvent` A human-readable explanation of the Live session notice. -- `type: "info"` +- `type: "info" (default: "info")` The event type, always `info`. @@ -12713,7 +12846,7 @@ Schema name: `LiveInputAudioAppend` Base64-encoded raw mono PCM16LE at 24 kHz received from the primary transport, reflected to the sideband before model-input muting. This server event uses the same audio key as the client command, but is not an acknowledgment of it. -- `type: "session.input_audio.append"` +- `type: "session.input_audio.append" (default: "session.input_audio.append")` The event type, always `session.input_audio.append`. @@ -12740,11 +12873,11 @@ Schema name: `LiveTransportDTMFReceived` - `event: string` - `minLength: 1`, `maxLength: 1` + `pattern: ^[0-9A-D*#]$`, `minLength: 1`, `maxLength: 1` - `event_id: string` -- `type: "transport.dtmf.received"` +- `type: "transport.dtmf.received" (default: "transport.dtmf.received")` - `"transport.dtmf.received"` @@ -12770,11 +12903,11 @@ Schema name: `LiveTransportDTMFSent` - `event: string` - `minLength: 1`, `maxLength: 1` + `pattern: ^[0-9A-D*#]$`, `minLength: 1`, `maxLength: 1` - `event_id: string` -- `type: "transport.dtmf.sent"` +- `type: "transport.dtmf.sent" (default: "transport.dtmf.sent")` - `"transport.dtmf.sent"`