diff --git a/en/resources/beta/subresources/agents/streaming-events/index.md b/en/resources/beta/subresources/agents/streaming-events/index.md index c73d6ce5933f59d79caf50c52e30755b73a4beff..57f6c480981bce8cb867fd39f6775ce556efcef7 100644 --- a/en/resources/beta/subresources/agents/streaming-events/index.md +++ b/en/resources/beta/subresources/agents/streaming-events/index.md @@ -20,6 +20,8 @@ Schema name: `SessionEventAgentSessionEnvironmentReady` The public ID of the environment. + `minLength: 0` + - `error: object { code, message, type } or null` The error reported while preparing the environment, if any. @@ -28,14 +30,20 @@ Schema name: `SessionEventAgentSessionEnvironmentReady` A machine-readable error code. + `minLength: 0` + - `message: string` A human-readable error message. + `minLength: 0` + - `type: string` The error type. + `minLength: 0` + - `status: "pending" or "ready" or "connected" or 4 more` The environment's connection status. @@ -72,18 +80,26 @@ Schema name: `SessionEventAgentSessionEnvironmentReady` The environment type. + `minLength: 0` + - `event_id: string` The unique ID of the event. + `minLength: 0` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `turn_id: string or null` The ID of the turn associated with the event, when applicable. + `minLength: 0` + - `type: "agent.session.environment.ready"` The type of the object. Always `agent.session.environment.ready`. @@ -129,6 +145,8 @@ Schema name: `SessionEventAgentSessionEnvironmentSuspended` The public ID of the environment. + `minLength: 0` + - `error: object { code, message, type } or null` The error reported while preparing the environment, if any. @@ -137,14 +155,20 @@ Schema name: `SessionEventAgentSessionEnvironmentSuspended` A machine-readable error code. + `minLength: 0` + - `message: string` A human-readable error message. + `minLength: 0` + - `type: string` The error type. + `minLength: 0` + - `status: "pending" or "ready" or "connected" or 4 more` The environment's connection status. @@ -181,18 +205,26 @@ Schema name: `SessionEventAgentSessionEnvironmentSuspended` The environment type. + `minLength: 0` + - `event_id: string` The unique ID of the event. + `minLength: 0` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `turn_id: string or null` The ID of the turn associated with the event, when applicable. + `minLength: 0` + - `type: "agent.session.environment.suspended"` The type of the object. Always `agent.session.environment.suspended`. @@ -238,6 +270,8 @@ Schema name: `SessionEventAgentSessionEnvironmentExpired` The public ID of the environment. + `minLength: 0` + - `error: object { code, message, type } or null` The error reported while preparing the environment, if any. @@ -246,14 +280,20 @@ Schema name: `SessionEventAgentSessionEnvironmentExpired` A machine-readable error code. + `minLength: 0` + - `message: string` A human-readable error message. + `minLength: 0` + - `type: string` The error type. + `minLength: 0` + - `status: "pending" or "ready" or "connected" or 4 more` The environment's connection status. @@ -290,18 +330,26 @@ Schema name: `SessionEventAgentSessionEnvironmentExpired` The environment type. + `minLength: 0` + - `event_id: string` The unique ID of the event. + `minLength: 0` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `turn_id: string or null` The ID of the turn associated with the event, when applicable. + `minLength: 0` + - `type: "agent.session.environment.expired"` The type of the object. Always `agent.session.environment.expired`. @@ -343,22 +391,32 @@ Schema name: `SessionEventAgentSessionEnvironmentReset` The stable environment ID, retained across sandbox replacements. + `minLength: 0` + - `event_id: string` The unique ID of the event. + `minLength: 0` + - `reset_count: number` Monotonically increasing reset number. Repeated notifications share this number. + `format: int64`, `minimum: 0` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `turn_id: string or null` The associated turn, when applicable. + `minLength: 0` + - `type: "agent.session.environment.reset"` The type of the object. Always `agent.session.environment.reset`. @@ -392,26 +450,38 @@ Schema name: `SessionEventAgentOutputCommandExecutionOutputDelta` The output text that was appended. + `minLength: 0` + - `event_id: string` The unique ID of the event. + `minLength: 0` + - `item_id: string` The ID of the command execution item. + `minLength: 0` + - `output_index: number` The index of the item in the turn output. + `format: int64`, `minimum: 0`, `maximum: 4294967295` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `turn_id: string or null` The ID of the turn associated with the event, when applicable. + `minLength: 0` + - `type: "agent.output.command_execution_output.delta"` The type of the object. Always `agent.output.command_execution_output.delta`. @@ -446,6 +516,8 @@ Schema name: `SessionEventAgentSessionCreated` The unique ID of the event. + `minLength: 0` + - `session: AgentSession` The session that was created. @@ -454,7 +526,9 @@ Schema name: `SessionEventAgentSessionCreated` The ID of the session. - - `agent: object { id, instructions, model, 6 more }` + `minLength: 0` + + - `agent: object { id, instructions, model, 7 more }` The agent running in the session. @@ -462,14 +536,20 @@ Schema name: `SessionEventAgentSessionCreated` The ID of the agent. + `minLength: 0` + - `instructions: string or null` Custom instructions appended to the agent's default base instructions. + `minLength: 0` + - `model: string` The model used by the agent. + `minLength: 0` + - `multi_agent: MultiAgentConfig` Configuration for creating and coordinating subagents. @@ -482,10 +562,14 @@ Schema name: `SessionEventAgentSessionCreated` Maximum number of subagents that may run concurrently, or null when disabled. Defaults to 6 when enabled. + `format: int64`, `minimum: 1`, `maximum: 4294967295` + - `name: string or null` The reusable agent's name when the session was created, or null if no name was saved. Later changes to the agent's name do not affect this value. + `minLength: 0` + - `reasoning: AgentReasoning` The agent's reasoning configuration. @@ -586,6 +670,8 @@ Schema name: `SessionEventAgentSessionCreated` Tools available to the agent. + `minItems: 0`, `maxItems: 2000` + - `Function object { defer_loading, description, name, 2 more }` A function defined by the application. @@ -598,10 +684,14 @@ Schema name: `SessionEventAgentSessionCreated` A description of what the function does. + `minLength: 0` + - `name: string` The name of the function. + `minLength: 0` + - `parameters: map[unknown]` A JSON Schema object describing the function's arguments. @@ -634,6 +724,8 @@ Schema name: `SessionEventAgentSessionCreated` The MCP tools the agent may call. + `minItems: 0`, `maxItems: 2000` + - `connection_origin: "service" or "environment"` Where outbound MCP HTTP connections originate. @@ -646,6 +738,8 @@ Schema name: `SessionEventAgentSessionCreated` The attached vault credential selected for this MCP server, if any. Optional when exactly one attached credential matches the server URL. + `minLength: 0` + - `request_metadata: map[unknown]` Metadata included with requests to this MCP server. @@ -658,6 +752,8 @@ Schema name: `SessionEventAgentSessionCreated` A label used to identify the MCP server in tool calls. + `minLength: 0` + - `transport: McpTransport` The transport used to connect to the MCP server. @@ -670,6 +766,8 @@ Schema name: `SessionEventAgentSessionCreated` The URL of the MCP server. + `minLength: 0` + - `type: "http"` The type of the object. Always `http`. @@ -684,18 +782,26 @@ Schema name: `SessionEventAgentSessionCreated` Arguments passed to the MCP server command. + `minItems: 0`, `maxItems: 2000` + - `command: string` The command used to start the MCP server. + `minLength: 0` + - `cwd: string` The working directory used to start the MCP server. + `minLength: 0` + - `env_vars: array of string` Environment variable names inherited from the execution environment. + `minItems: 0`, `maxItems: 2000` + - `type: "stdio"` The type of the object. Always `stdio`. @@ -716,6 +822,8 @@ Schema name: `SessionEventAgentSessionCreated` Allowed search domains, or `null` when the search is unrestricted. + `minItems: 0`, `maxItems: 2000` + - `context_size: "low" or "medium" or "high"` The amount of search context made available to the model. Defaults to `medium`. @@ -734,18 +842,26 @@ Schema name: `SessionEventAgentSessionCreated` The city name. + `minLength: 0` + - `country: string or null` The two-letter ISO country code, such as `US`. + `minLength: 0` + - `region: string or null` The region or state name. + `minLength: 0` + - `timezone: string or null` The IANA timezone, such as `America/Los_Angeles`. + `minLength: 0` + - `mode: "disabled" or "cached" or "live"` The source used for web search results. @@ -786,10 +902,20 @@ Schema name: `SessionEventAgentSessionCreated` - `"automations"` + - `compaction: optional object { async }` + + The effective context compaction settings. + + - `async: boolean` + + Whether context is compacted in the background. Defaults to true. + - `created_at: number` The Unix timestamp, in seconds, when the session was created. + `format: int64` + - `environment: Environment` The execution environment for the session. @@ -812,10 +938,14 @@ Schema name: `SessionEventAgentSessionCreated` The public ID of the environment. + `minLength: 0` + - `capability_directories: array of string` Directories that contain capabilities exposed to the agent. + `minItems: 0`, `maxItems: 2000` + - `desktop: object { enabled }` The effective desktop configuration. @@ -828,6 +958,8 @@ Schema name: `SessionEventAgentSessionCreated` Files available in the environment, excluding their contents. + `minItems: 0`, `maxItems: 50` + - `HostedEnvironmentFileID object { id, file_id, path, 2 more }` A file copied from the OpenAI Files API. @@ -836,18 +968,26 @@ Schema name: `SessionEventAgentSessionCreated` The session-scoped ID of the file in the execution environment. + `minLength: 0` + - `file_id: string` The ID of the uploaded file. + `minLength: 0` + - `path: string` The file's absolute path inside the environment. + `minLength: 0` + - `size_bytes: number` The decoded file size in bytes. + `format: int64`, `minimum: 0` + - `type: "file_id"` The type of the object. Always `file_id`. @@ -862,14 +1002,20 @@ Schema name: `SessionEventAgentSessionCreated` The session-scoped ID of the file in the execution environment. + `minLength: 0` + - `path: string` The file's absolute path inside the environment. + `minLength: 0` + - `size_bytes: number` The decoded file size in bytes. + `format: int64`, `minimum: 0` + - `type: "inline"` The type of the object. Always `inline`. @@ -900,6 +1046,8 @@ Schema name: `SessionEventAgentSessionCreated` Domains the environment may access when network access is restricted. + `minItems: 0`, `maxItems: 2000` + - `packages: object { npm, python, system }` Packages installed in the environment. @@ -908,26 +1056,38 @@ Schema name: `SessionEventAgentSessionCreated` npm packages installed globally in the environment. + `minItems: 0`, `maxItems: 16384` + - `python: array of string` Python packages installed in the environment. + `minItems: 0`, `maxItems: 16384` + - `system: array of string` System packages installed in the environment. + `minItems: 0`, `maxItems: 16384` + - `plugins: array of HostedPlugin` Plugins installed in the environment, excluding their archive contents. + `minItems: 0`, `maxItems: 2000` + - `description: string` The installed plugin description. + `minLength: 0` + - `name: string` The installed plugin name. + `minLength: 0` + - `type: "inline"` The type of the object. Always `inline`. @@ -938,6 +1098,8 @@ Schema name: `SessionEventAgentSessionCreated` Skills installed in the environment, excluding their archive contents. + `minItems: 0`, `maxItems: 2000` + - `HostedSkillReference object { description, name, skill_id, 2 more }` A skill installed from the Skills API. @@ -946,14 +1108,20 @@ Schema name: `SessionEventAgentSessionCreated` The installed skill description. + `minLength: 0` + - `name: string` The installed skill name. + `minLength: 0` + - `skill_id: string` The referenced skill ID. + `minLength: 0` + - `type: "skill_reference"` The type of the object. Always `skill_reference`. @@ -964,6 +1132,8 @@ Schema name: `SessionEventAgentSessionCreated` The concrete skill version installed for this session. + `minLength: 0` + - `Inline object { description, name, type }` A skill installed from an inline ZIP archive. @@ -972,10 +1142,14 @@ Schema name: `SessionEventAgentSessionCreated` The installed skill description. + `minLength: 0` + - `name: string` The installed skill name. + `minLength: 0` + - `type: "inline"` The type of the object. Always `inline`. @@ -1006,14 +1180,20 @@ Schema name: `SessionEventAgentSessionCreated` The public ID of the environment. + `minLength: 0` + - `capability_directories: array of string` Directories that contain capabilities exposed to the agent. + `minItems: 0`, `maxItems: 2000` + - `remote_url: string` Pass this URL unchanged to `codex exec-server --remote` when connecting this environment. + `minLength: 0` + - `type: "self_hosted"` The type of the object. Always `self_hosted`. @@ -1024,14 +1204,20 @@ Schema name: `SessionEventAgentSessionCreated` The absolute project directory inside the environment. Defaults to `/workspace`. + `minLength: 0` + - `error: string or null` The error that caused the session to fail, if any. + `minLength: 0` + - `last_active_at: number` The Unix timestamp, in seconds, when the session was last active. + `format: int64` + - `metadata: map[string]` Custom string key-value pairs attached to the session. @@ -1046,6 +1232,8 @@ Schema name: `SessionEventAgentSessionCreated` Actions that must be completed before the session can continue. + `minItems: 0`, `maxItems: 2000` + - `ComputerUseApprovalRequest object { request, request_id, turn_id, type }` Respond to a computer-use request. @@ -1062,18 +1250,26 @@ Schema name: `SessionEventAgentSessionCreated` The registered form or frame origin where values will be entered. + `minLength: 0` + - `fields: array of object { id, label, required, type }` Controls to render. All submitted values are sensitive. + `minItems: 0`, `maxItems: 2000` + - `id: string` The field ID to submit as field_id in a fields entry. + `minLength: 0` + - `label: string` The label to display beside the control. + `minLength: 0` + - `required: boolean` Whether this control requires a nonempty value. @@ -1082,26 +1278,38 @@ Schema name: `SessionEventAgentSessionCreated` The rendering type, such as email, password, or text. + `minLength: 0` + - `options: array of object { id, field_ids, label }` Sign-in methods. Empty for a plain form. + `minItems: 0`, `maxItems: 2000` + - `id: string` The option ID to submit as selected_option. + `minLength: 0` + - `field_ids: array of string` IDs from the registered fields that this method accepts. + `minItems: 0`, `maxItems: 2000` + - `label: string` The method label to display. + `minLength: 0` + - `reason: string or null` Why the agent needs the user to sign in. + `minLength: 0` + - `type: "browser_authentication"` The type of the object. Always `browser_authentication`. @@ -1116,10 +1324,14 @@ Schema name: `SessionEventAgentSessionCreated` The origin the browser needs permission to access. + `minLength: 0` + - `reason: string or null` The browser's explanation for this request, or null when unavailable. + `minLength: 0` + - `type: "browser_origin_access"` The type of the object. Always `browser_origin_access`. @@ -1130,10 +1342,14 @@ Schema name: `SessionEventAgentSessionCreated` The registered request ID to echo when responding. + `minLength: 0` + - `turn_id: string` The turn that requested approval. + `minLength: 0` + - `type: "computer_use_approval_request"` The type of the object. Always `computer_use_approval_request`. @@ -1152,14 +1368,20 @@ Schema name: `SessionEventAgentSessionCreated` The ID to include when submitting the function result. + `minLength: 0` + - `name: string` The function name. + `minLength: 0` + - `turn_id: string` The ID of the turn that requested the function call. + `minLength: 0` + - `type: "function_call"` The type of the object. Always `function_call`. @@ -1174,6 +1396,8 @@ Schema name: `SessionEventAgentSessionCreated` The ID of the environment to reconnect. + `minLength: 0` + - `type: "environment_connection"` The type of the object. Always `environment_connection`. @@ -1208,6 +1432,8 @@ Schema name: `SessionEventAgentSessionCreated` The number of input tokens used by the agent. + `format: int64` + - `input_tokens_details: object { cached_tokens }` A breakdown of the agent's input token usage. @@ -1216,10 +1442,14 @@ Schema name: `SessionEventAgentSessionCreated` The number of input tokens retrieved from the prompt cache. + `format: int64` + - `output_tokens: number` The number of output tokens generated by the agent. + `format: int64` + - `output_tokens_details: object { reasoning_tokens }` A breakdown of the agent's output token usage. @@ -1228,14 +1458,20 @@ Schema name: `SessionEventAgentSessionCreated` The number of output tokens used for reasoning. + `format: int64` + - `total_tokens: number` The total number of input and output tokens used by the agent. + `format: int64` + - `vault_ids: array of string` The IDs of vaults made available to the session. + `minItems: 0`, `maxItems: 2000` + - `type: "agent.session.created"` The type of the object. Always `agent.session.created`. @@ -1317,6 +1553,9 @@ Schema name: `SessionEventAgentSessionCreated` "multi_agent": { "enabled": true, "max_concurrent_subagents": 1 + }, + "compaction": { + "async": true } }, "environment": { @@ -1354,10 +1593,14 @@ Schema name: `SessionEventAgentSessionTurnCreated` The unique ID of the event. + `minLength: 0` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `turn: Turn` The turn at the time it was created. @@ -1366,18 +1609,26 @@ Schema name: `SessionEventAgentSessionTurnCreated` The ID of the turn. + `minLength: 0` + - `agent_id: string` The ID of the agent that ran the turn. + `minLength: 0` + - `completed_at: number or null` The Unix timestamp, in seconds, when the turn reached a terminal state. + `format: int64` + - `created_at: number` The Unix timestamp, in seconds, used to order the turn by creation time. Subagent turns use their start time, falling back to completion time or the subagent opening time when the preceding timestamps are unavailable. + `format: int64` + - `error: SessionTurnError or null` A customer-safe error. Non-null only for a failed turn. @@ -1482,6 +1733,8 @@ Schema name: `SessionEventAgentSessionTurnCreated` A customer-safe explanation of the failure. + `minLength: 0` + - `object: "agent.session.turn"` The object type. Always `agent.session.turn`. @@ -1492,10 +1745,14 @@ Schema name: `SessionEventAgentSessionTurnCreated` The ID of the session that owns the turn. + `minLength: 0` + - `started_at: number or null` The Unix timestamp, in seconds, when the turn started. + `format: int64` + - `status: "queued" or "in_progress" or "waiting" or 3 more` The current status of the turn. @@ -1528,6 +1785,8 @@ Schema name: `SessionEventAgentSessionTurnCreated` The ID of the subagent that ran the turn, if applicable. + `minLength: 0` + - `usage: TokenUsage or null` Best-effort token usage for the turn, or null if unknown. Recorded usage may change. @@ -1536,6 +1795,8 @@ Schema name: `SessionEventAgentSessionTurnCreated` The number of input tokens used by the agent. + `format: int64` + - `input_tokens_details: object { cached_tokens }` A breakdown of the agent's input token usage. @@ -1544,10 +1805,14 @@ Schema name: `SessionEventAgentSessionTurnCreated` The number of input tokens retrieved from the prompt cache. + `format: int64` + - `output_tokens: number` The number of output tokens generated by the agent. + `format: int64` + - `output_tokens_details: object { reasoning_tokens }` A breakdown of the agent's output token usage. @@ -1556,14 +1821,20 @@ Schema name: `SessionEventAgentSessionTurnCreated` The number of output tokens used for reasoning. + `format: int64` + - `total_tokens: number` The total number of input and output tokens used by the agent. + `format: int64` + - `turn_id: string` The ID of the turn associated with the event. + `minLength: 0` + - `type: "agent.session.turn.created"` The type of the object. Always `agent.session.turn.created`. @@ -1621,10 +1892,14 @@ Schema name: `SessionEventAgentSessionTurnInProgress` The unique ID of the event. + `minLength: 0` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `turn: Turn` The turn at the time it started running. @@ -1633,18 +1908,26 @@ Schema name: `SessionEventAgentSessionTurnInProgress` The ID of the turn. + `minLength: 0` + - `agent_id: string` The ID of the agent that ran the turn. + `minLength: 0` + - `completed_at: number or null` The Unix timestamp, in seconds, when the turn reached a terminal state. + `format: int64` + - `created_at: number` The Unix timestamp, in seconds, used to order the turn by creation time. Subagent turns use their start time, falling back to completion time or the subagent opening time when the preceding timestamps are unavailable. + `format: int64` + - `error: SessionTurnError or null` A customer-safe error. Non-null only for a failed turn. @@ -1749,6 +2032,8 @@ Schema name: `SessionEventAgentSessionTurnInProgress` A customer-safe explanation of the failure. + `minLength: 0` + - `object: "agent.session.turn"` The object type. Always `agent.session.turn`. @@ -1759,10 +2044,14 @@ Schema name: `SessionEventAgentSessionTurnInProgress` The ID of the session that owns the turn. + `minLength: 0` + - `started_at: number or null` The Unix timestamp, in seconds, when the turn started. + `format: int64` + - `status: "queued" or "in_progress" or "waiting" or 3 more` The current status of the turn. @@ -1795,6 +2084,8 @@ Schema name: `SessionEventAgentSessionTurnInProgress` The ID of the subagent that ran the turn, if applicable. + `minLength: 0` + - `usage: TokenUsage or null` Best-effort token usage for the turn, or null if unknown. Recorded usage may change. @@ -1803,6 +2094,8 @@ Schema name: `SessionEventAgentSessionTurnInProgress` The number of input tokens used by the agent. + `format: int64` + - `input_tokens_details: object { cached_tokens }` A breakdown of the agent's input token usage. @@ -1811,10 +2104,14 @@ Schema name: `SessionEventAgentSessionTurnInProgress` The number of input tokens retrieved from the prompt cache. + `format: int64` + - `output_tokens: number` The number of output tokens generated by the agent. + `format: int64` + - `output_tokens_details: object { reasoning_tokens }` A breakdown of the agent's output token usage. @@ -1823,14 +2120,20 @@ Schema name: `SessionEventAgentSessionTurnInProgress` The number of output tokens used for reasoning. + `format: int64` + - `total_tokens: number` The total number of input and output tokens used by the agent. + `format: int64` + - `turn_id: string` The ID of the turn associated with the event. + `minLength: 0` + - `type: "agent.session.turn.in_progress"` The type of the object. Always `agent.session.turn.in_progress`. @@ -1888,10 +2191,14 @@ Schema name: `SessionEventAgentSessionTurnCompleted` The unique ID of the event. + `minLength: 0` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `turn: Turn` The completed turn. @@ -1900,18 +2207,26 @@ Schema name: `SessionEventAgentSessionTurnCompleted` The ID of the turn. + `minLength: 0` + - `agent_id: string` The ID of the agent that ran the turn. + `minLength: 0` + - `completed_at: number or null` The Unix timestamp, in seconds, when the turn reached a terminal state. + `format: int64` + - `created_at: number` The Unix timestamp, in seconds, used to order the turn by creation time. Subagent turns use their start time, falling back to completion time or the subagent opening time when the preceding timestamps are unavailable. + `format: int64` + - `error: SessionTurnError or null` A customer-safe error. Non-null only for a failed turn. @@ -2016,6 +2331,8 @@ Schema name: `SessionEventAgentSessionTurnCompleted` A customer-safe explanation of the failure. + `minLength: 0` + - `object: "agent.session.turn"` The object type. Always `agent.session.turn`. @@ -2026,10 +2343,14 @@ Schema name: `SessionEventAgentSessionTurnCompleted` The ID of the session that owns the turn. + `minLength: 0` + - `started_at: number or null` The Unix timestamp, in seconds, when the turn started. + `format: int64` + - `status: "queued" or "in_progress" or "waiting" or 3 more` The current status of the turn. @@ -2062,6 +2383,8 @@ Schema name: `SessionEventAgentSessionTurnCompleted` The ID of the subagent that ran the turn, if applicable. + `minLength: 0` + - `usage: TokenUsage or null` Best-effort token usage for the turn, or null if unknown. Recorded usage may change. @@ -2070,6 +2393,8 @@ Schema name: `SessionEventAgentSessionTurnCompleted` The number of input tokens used by the agent. + `format: int64` + - `input_tokens_details: object { cached_tokens }` A breakdown of the agent's input token usage. @@ -2078,10 +2403,14 @@ Schema name: `SessionEventAgentSessionTurnCompleted` The number of input tokens retrieved from the prompt cache. + `format: int64` + - `output_tokens: number` The number of output tokens generated by the agent. + `format: int64` + - `output_tokens_details: object { reasoning_tokens }` A breakdown of the agent's output token usage. @@ -2090,14 +2419,20 @@ Schema name: `SessionEventAgentSessionTurnCompleted` The number of output tokens used for reasoning. + `format: int64` + - `total_tokens: number` The total number of input and output tokens used by the agent. + `format: int64` + - `turn_id: string` The ID of the turn associated with the event. + `minLength: 0` + - `type: "agent.session.turn.completed"` The type of the object. Always `agent.session.turn.completed`. @@ -2170,10 +2505,14 @@ Schema name: `SessionEventAgentSessionTurnFailed` The unique ID of the event. + `minLength: 0` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `turn: Turn` The failed turn. @@ -2182,18 +2521,26 @@ Schema name: `SessionEventAgentSessionTurnFailed` The ID of the turn. + `minLength: 0` + - `agent_id: string` The ID of the agent that ran the turn. + `minLength: 0` + - `completed_at: number or null` The Unix timestamp, in seconds, when the turn reached a terminal state. + `format: int64` + - `created_at: number` The Unix timestamp, in seconds, used to order the turn by creation time. Subagent turns use their start time, falling back to completion time or the subagent opening time when the preceding timestamps are unavailable. + `format: int64` + - `error: SessionTurnError or null` A customer-safe error. Non-null only for a failed turn. @@ -2298,6 +2645,8 @@ Schema name: `SessionEventAgentSessionTurnFailed` A customer-safe explanation of the failure. + `minLength: 0` + - `object: "agent.session.turn"` The object type. Always `agent.session.turn`. @@ -2308,10 +2657,14 @@ Schema name: `SessionEventAgentSessionTurnFailed` The ID of the session that owns the turn. + `minLength: 0` + - `started_at: number or null` The Unix timestamp, in seconds, when the turn started. + `format: int64` + - `status: "queued" or "in_progress" or "waiting" or 3 more` The current status of the turn. @@ -2344,6 +2697,8 @@ Schema name: `SessionEventAgentSessionTurnFailed` The ID of the subagent that ran the turn, if applicable. + `minLength: 0` + - `usage: TokenUsage or null` Best-effort token usage for the turn, or null if unknown. Recorded usage may change. @@ -2352,6 +2707,8 @@ Schema name: `SessionEventAgentSessionTurnFailed` The number of input tokens used by the agent. + `format: int64` + - `input_tokens_details: object { cached_tokens }` A breakdown of the agent's input token usage. @@ -2360,10 +2717,14 @@ Schema name: `SessionEventAgentSessionTurnFailed` The number of input tokens retrieved from the prompt cache. + `format: int64` + - `output_tokens: number` The number of output tokens generated by the agent. + `format: int64` + - `output_tokens_details: object { reasoning_tokens }` A breakdown of the agent's output token usage. @@ -2372,14 +2733,20 @@ Schema name: `SessionEventAgentSessionTurnFailed` The number of output tokens used for reasoning. + `format: int64` + - `total_tokens: number` The total number of input and output tokens used by the agent. + `format: int64` + - `turn_id: string` The ID of the turn associated with the event. + `minLength: 0` + - `type: "agent.session.turn.failed"` The type of the object. Always `agent.session.turn.failed`. @@ -2452,10 +2819,14 @@ Schema name: `SessionEventAgentSessionTurnCancelled` The unique ID of the event. + `minLength: 0` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `turn: Turn` The cancelled turn. @@ -2464,18 +2835,26 @@ Schema name: `SessionEventAgentSessionTurnCancelled` The ID of the turn. + `minLength: 0` + - `agent_id: string` The ID of the agent that ran the turn. + `minLength: 0` + - `completed_at: number or null` The Unix timestamp, in seconds, when the turn reached a terminal state. + `format: int64` + - `created_at: number` The Unix timestamp, in seconds, used to order the turn by creation time. Subagent turns use their start time, falling back to completion time or the subagent opening time when the preceding timestamps are unavailable. + `format: int64` + - `error: SessionTurnError or null` A customer-safe error. Non-null only for a failed turn. @@ -2580,6 +2959,8 @@ Schema name: `SessionEventAgentSessionTurnCancelled` A customer-safe explanation of the failure. + `minLength: 0` + - `object: "agent.session.turn"` The object type. Always `agent.session.turn`. @@ -2590,10 +2971,14 @@ Schema name: `SessionEventAgentSessionTurnCancelled` The ID of the session that owns the turn. + `minLength: 0` + - `started_at: number or null` The Unix timestamp, in seconds, when the turn started. + `format: int64` + - `status: "queued" or "in_progress" or "waiting" or 3 more` The current status of the turn. @@ -2626,6 +3011,8 @@ Schema name: `SessionEventAgentSessionTurnCancelled` The ID of the subagent that ran the turn, if applicable. + `minLength: 0` + - `usage: TokenUsage or null` Best-effort token usage for the turn, or null if unknown. Recorded usage may change. @@ -2634,6 +3021,8 @@ Schema name: `SessionEventAgentSessionTurnCancelled` The number of input tokens used by the agent. + `format: int64` + - `input_tokens_details: object { cached_tokens }` A breakdown of the agent's input token usage. @@ -2642,10 +3031,14 @@ Schema name: `SessionEventAgentSessionTurnCancelled` The number of input tokens retrieved from the prompt cache. + `format: int64` + - `output_tokens: number` The number of output tokens generated by the agent. + `format: int64` + - `output_tokens_details: object { reasoning_tokens }` A breakdown of the agent's output token usage. @@ -2654,14 +3047,20 @@ Schema name: `SessionEventAgentSessionTurnCancelled` The number of output tokens used for reasoning. + `format: int64` + - `total_tokens: number` The total number of input and output tokens used by the agent. + `format: int64` + - `turn_id: string` The ID of the turn associated with the event. + `minLength: 0` + - `type: "agent.session.turn.cancelled"` The type of the object. Always `agent.session.turn.cancelled`. @@ -2734,6 +3133,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The unique ID of the event. + `minLength: 0` + - `item: AgentSessionItem` The item that was added. @@ -2746,10 +3147,14 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of this item, or null for legacy user messages whose ID was not recorded. + `minLength: 0` + - `content: array of AgentSessionMessageContent` The content of the message. User messages contain input text or images; assistant messages contain output text. + `minItems: 0`, `maxItems: 2000` + - `InputText object { text, type }` Text supplied by the user. @@ -2758,6 +3163,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The text supplied by the user. + `minLength: 0` + - `type: "input_text"` The type of the object. Always `input_text`. @@ -2772,6 +3179,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The URL of the image supplied by the user, which may be a base64-encoded data URL. + `minLength: 0` + - `type: "input_image"` The type of the object. Always `input_image`. @@ -2786,6 +3195,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The text produced by the assistant. + `minLength: 0` + - `type: "output_text"` The type of the object. Always `output_text`. @@ -2832,6 +3243,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the turn that contains this item. + `minLength: 0` + - `type: "message"` The item type. Always `message`. @@ -2846,6 +3259,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the reasoning item. + `minLength: 0` + - `status: AgentOutputItemStatus or null` The status of the reasoning item. @@ -2854,10 +3269,14 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The reasoning summaries produced by the agent. + `minItems: 0`, `maxItems: 2000` + - `text: string` The reasoning summary text. + `minLength: 0` + - `type: "summary_text"` The content type. Always `summary_text`. @@ -2868,6 +3287,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the turn that contains this item. + `minLength: 0` + - `type: "reasoning"` The item type. Always `reasoning`. @@ -2882,6 +3303,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the function call item. + `minLength: 0` + - `arguments: unknown` The arguments to pass to the function. @@ -2890,10 +3313,14 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID used to submit the function result. + `minLength: 0` + - `name: string` The name of the function to call. + `minLength: 0` + - `status: AgentFunctionCallStatus` The status of the function call. @@ -2918,6 +3345,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the turn that contains this item. + `minLength: 0` + - `type: "function_call"` The item type. Always `function_call`. @@ -2932,14 +3361,20 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the function call output item. + `minLength: 0` + - `call_id: string` The ID of the function call that produced this output. + `minLength: 0` + - `error: string or null` The error message, if the call failed. + `minLength: 0` + - `output: AgentFunctionCallOutput or null` The function result, if the call succeeded. @@ -2956,6 +3391,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The text supplied to the agent. + `minLength: 0` + - `type: "input_text"` The type of the object. Always `input_text`. @@ -2970,6 +3407,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The URL of the image supplied to the agent, which may be a base64-encoded data URL. + `minLength: 0` + - `type: "input_image"` The type of the object. Always `input_image`. @@ -2984,6 +3423,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the turn that contains this item. + `minLength: 0` + - `type: "function_call_output"` The item type. Always `function_call_output`. @@ -2998,10 +3439,14 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the message. + `minLength: 0` + - `content: array of AgentContent` The content exchanged between the agents. + `minItems: 0`, `maxItems: 2000` + - `OutputText object { text, type }` A text content part produced by the agent. @@ -3010,6 +3455,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The text produced by the agent. + `minLength: 0` + - `type: "output_text"` The content type. Always `output_text`. @@ -3024,6 +3471,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The encrypted content payload. + `minLength: 0` + - `type: "encrypted_content"` The content type. Always `encrypted_content`. @@ -3034,14 +3483,20 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID or name of the receiving agent. + `minLength: 0` + - `sender_agent_id: string` The ID or name of the sending agent. + `minLength: 0` + - `turn_id: string` The ID of the turn that contains this item. + `minLength: 0` + - `type: "agent_message"` The item type. Always `agent_message`. @@ -3056,6 +3511,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the MCP call item. + `minLength: 0` + - `arguments: unknown` The arguments passed to the MCP tool. @@ -3068,6 +3525,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The name of the MCP tool. + `minLength: 0` + - `output: unknown` The output returned by the MCP tool, if any. @@ -3076,6 +3535,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The label of the MCP server. + `minLength: 0` + - `status: AgentFunctionCallStatus` The status of the MCP tool call. @@ -3084,6 +3545,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the turn that contains this item. + `minLength: 0` + - `type: "mcp_call"` The item type. Always `mcp_call`. @@ -3098,6 +3561,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the activity item. + `minLength: 0` + - `output: object { image_url, type } or null` The last screenshot emitted by the model. Null when screenshot inclusion is disabled or the call emitted no screenshot. @@ -3106,6 +3571,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The complete JPEG image as a base64 data URL. + `minLength: 0` + - `type: "computer_screenshot"` The content type. Always `computer_screenshot`. @@ -3120,10 +3587,14 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` A model-generated description of the activity, when available. + `minLength: 0` + - `turn_id: string` The ID of the turn that contains this item. + `minLength: 0` + - `type: "computer_use_call"` The item type. Always `computer_use_call`. @@ -3138,6 +3609,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The stable history item ID. + `minLength: 0` + - `request: object { credential_origin, fields, options, 2 more }` A registered form awaiting the application's response. @@ -3146,18 +3619,26 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The registered form or frame origin where values will be entered. + `minLength: 0` + - `fields: array of object { id, label, required, type }` Controls to render. All submitted values are sensitive. + `minItems: 0`, `maxItems: 2000` + - `id: string` The field ID to submit as field_id in a fields entry. + `minLength: 0` + - `label: string` The label to display beside the control. + `minLength: 0` + - `required: boolean` Whether this control requires a nonempty value. @@ -3166,26 +3647,38 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The rendering type, such as email, password, or text. + `minLength: 0` + - `options: array of object { id, field_ids, label }` Sign-in methods. Empty for a plain form. + `minItems: 0`, `maxItems: 2000` + - `id: string` The option ID to submit as selected_option. + `minLength: 0` + - `field_ids: array of string` IDs from the registered fields that this method accepts. + `minItems: 0`, `maxItems: 2000` + - `label: string` The method label to display. + `minLength: 0` + - `reason: string or null` Why the agent needs the user to sign in. + `minLength: 0` + - `type: "browser_authentication"` The type of the object. Always `browser_authentication`. @@ -3194,8 +3687,12 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` - `request_id: string` + `minLength: 0` + - `turn_id: string` + `minLength: 0` + - `type: "computer_use_approval_request"` The item type. Always computer_use_approval_request. @@ -3210,10 +3707,14 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The stable history item ID. + `minLength: 0` + - `request_id: string` The registered request answered by this item. + `minLength: 0` + - `response: Submit { action, selected_option, type } or Cancel { action, type }` The admitted response, without submitted credential values. @@ -3228,6 +3729,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The chosen sign-in method, or null when no options were offered. + `minLength: 0` + - `type: "browser_authentication"` - `"browser_authentication"` @@ -3246,6 +3749,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the turn that contains this item. + `minLength: 0` + - `type: "computer_use_approval_request_result"` - `"computer_use_approval_request_result"` @@ -3258,6 +3763,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the web search call. + `minLength: 0` + - `action: WebSearchAction or null` The action performed by the web search tool. @@ -3270,10 +3777,14 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The search queries, when multiple queries were used. + `minItems: 0`, `maxItems: 2000` + - `query: string or null` The search query, when a single query was used. + `minLength: 0` + - `type: "search"` The type of the object. Always `search`. @@ -3294,6 +3805,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The URL of the page that was opened. + `minLength: 0` + - `FindInPage object { pattern, type, url }` Finds text within a web page. @@ -3302,6 +3815,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The text pattern that was searched for. + `minLength: 0` + - `type: "find_in_page"` The type of the object. Always `find_in_page`. @@ -3312,6 +3827,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The URL of the page that was searched. + `minLength: 0` + - `Other object { type }` Another web search action. @@ -3330,6 +3847,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the turn that contains this item. + `minLength: 0` + - `type: "web_search_call"` The item type. Always `web_search_call`. @@ -3344,26 +3863,38 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the command execution item. + `minLength: 0` + - `command: string` The command that was executed. + `minLength: 0` + - `cwd: string or null` The working directory used to execute the command. + `minLength: 0` + - `duration_ms: number or null` The command duration in milliseconds. + `format: int64` + - `exit_code: number or null` The process exit code, if the command completed. + `format: int64` + - `output: string or null` The command output, if available. + `minLength: 0` + - `status: AgentFunctionCallStatus` The status of the command execution. @@ -3372,6 +3903,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the turn that contains this item. + `minLength: 0` + - `type: "command_execution"` The item type. Always `command_execution`. @@ -3386,14 +3919,20 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the tool call item. + `minLength: 0` + - `agent_id: string` The ID of the agent that requested the subagent. + `minLength: 0` + - `content: array of AgentContent` The task given to the spawned agent. + `minItems: 0`, `maxItems: 2000` + - `OutputText object { text, type }` A text content part produced by the agent. @@ -3406,10 +3945,14 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The model requested for the spawned agent. + `minLength: 0` + - `reasoning_effort: string or null` The reasoning effort requested for the spawned agent. + `minLength: 0` + - `status: AgentFunctionCallStatus` The status of the tool call. @@ -3418,6 +3961,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the turn that contains this item. + `minLength: 0` + - `type: "create_subagent_call"` The item type. Always `create_subagent_call`. @@ -3434,10 +3979,14 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the tool call item. + `minLength: 0` + - `content: array of AgentContent` The input sent to the receiving agent. + `minItems: 0`, `maxItems: 2000` + - `OutputText object { text, type }` A text content part produced by the agent. @@ -3450,10 +3999,14 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the agent receiving the input. + `minLength: 0` + - `sender_agent_id: string` The ID of the agent sending the input. + `minLength: 0` + - `status: AgentFunctionCallStatus` The status of the tool call. @@ -3462,6 +4015,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the turn that contains this item. + `minLength: 0` + - `type: "send_subagent_input_call"` The item type. Always `send_subagent_input_call`. @@ -3478,14 +4033,20 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the tool call item. + `minLength: 0` + - `recipient_agent_id: string` The ID of the agent to resume. + `minLength: 0` + - `sender_agent_id: string` The ID of the agent requesting the resume. + `minLength: 0` + - `status: AgentFunctionCallStatus` The status of the tool call. @@ -3494,6 +4055,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the turn that contains this item. + `minLength: 0` + - `type: "resume_subagent_call"` The item type. Always `resume_subagent_call`. @@ -3510,14 +4073,20 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the tool call item. + `minLength: 0` + - `recipient_agent_ids: array of string` The IDs of the agents to wait for. + `minItems: 0`, `maxItems: 2000` + - `sender_agent_id: string` The ID of the agent waiting for results. + `minLength: 0` + - `status: AgentFunctionCallStatus` The status of the tool call. @@ -3526,6 +4095,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the turn that contains this item. + `minLength: 0` + - `type: "wait_for_subagents_call"` The item type. Always `wait_for_subagents_call`. @@ -3542,14 +4113,20 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the tool call item. + `minLength: 0` + - `recipient_agent_id: string` The ID of the agent to interrupt. + `minLength: 0` + - `sender_agent_id: string` The ID of the agent requesting the interrupt. + `minLength: 0` + - `status: AgentFunctionCallStatus` The status of the tool call. @@ -3558,6 +4135,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the turn that contains this item. + `minLength: 0` + - `type: "interrupt_subagent_call"` The item type. Always `interrupt_subagent_call`. @@ -3574,14 +4153,20 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the tool call item. + `minLength: 0` + - `recipient_agent_id: string` The ID of the agent to close. + `minLength: 0` + - `sender_agent_id: string` The ID of the agent requesting the close. + `minLength: 0` + - `status: AgentFunctionCallStatus` The status of the tool call. @@ -3590,6 +4175,8 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The ID of the turn that contains this item. + `minLength: 0` + - `type: "close_subagent_call"` The item type. Always `close_subagent_call`. @@ -3602,14 +4189,20 @@ Schema name: `SessionEventAgentSessionTurnItemAdded` The index of the item in the turn output, when the item is agent output. + `format: int64`, `minimum: 0`, `maximum: 4294967295` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `turn_id: string or null` The ID of the turn associated with the event, when applicable. + `minLength: 0` + - `type: "agent.session.turn.item.added"` The type of the object. Always `agent.session.turn.item.added`. @@ -3656,6 +4249,8 @@ Schema name: `SessionEventAgentSessionIdle` The unique ID of the event. + `minLength: 0` + - `session: AgentSession` The session that became idle. @@ -3664,7 +4259,9 @@ Schema name: `SessionEventAgentSessionIdle` The ID of the session. - - `agent: object { id, instructions, model, 6 more }` + `minLength: 0` + + - `agent: object { id, instructions, model, 7 more }` The agent running in the session. @@ -3672,14 +4269,20 @@ Schema name: `SessionEventAgentSessionIdle` The ID of the agent. + `minLength: 0` + - `instructions: string or null` Custom instructions appended to the agent's default base instructions. + `minLength: 0` + - `model: string` The model used by the agent. + `minLength: 0` + - `multi_agent: MultiAgentConfig` Configuration for creating and coordinating subagents. @@ -3692,10 +4295,14 @@ Schema name: `SessionEventAgentSessionIdle` Maximum number of subagents that may run concurrently, or null when disabled. Defaults to 6 when enabled. + `format: int64`, `minimum: 1`, `maximum: 4294967295` + - `name: string or null` The reusable agent's name when the session was created, or null if no name was saved. Later changes to the agent's name do not affect this value. + `minLength: 0` + - `reasoning: AgentReasoning` The agent's reasoning configuration. @@ -3796,6 +4403,8 @@ Schema name: `SessionEventAgentSessionIdle` Tools available to the agent. + `minItems: 0`, `maxItems: 2000` + - `Function object { defer_loading, description, name, 2 more }` A function defined by the application. @@ -3808,10 +4417,14 @@ Schema name: `SessionEventAgentSessionIdle` A description of what the function does. + `minLength: 0` + - `name: string` The name of the function. + `minLength: 0` + - `parameters: map[unknown]` A JSON Schema object describing the function's arguments. @@ -3844,6 +4457,8 @@ Schema name: `SessionEventAgentSessionIdle` The MCP tools the agent may call. + `minItems: 0`, `maxItems: 2000` + - `connection_origin: "service" or "environment"` Where outbound MCP HTTP connections originate. @@ -3856,6 +4471,8 @@ Schema name: `SessionEventAgentSessionIdle` The attached vault credential selected for this MCP server, if any. Optional when exactly one attached credential matches the server URL. + `minLength: 0` + - `request_metadata: map[unknown]` Metadata included with requests to this MCP server. @@ -3868,6 +4485,8 @@ Schema name: `SessionEventAgentSessionIdle` A label used to identify the MCP server in tool calls. + `minLength: 0` + - `transport: McpTransport` The transport used to connect to the MCP server. @@ -3880,6 +4499,8 @@ Schema name: `SessionEventAgentSessionIdle` The URL of the MCP server. + `minLength: 0` + - `type: "http"` The type of the object. Always `http`. @@ -3894,18 +4515,26 @@ Schema name: `SessionEventAgentSessionIdle` Arguments passed to the MCP server command. + `minItems: 0`, `maxItems: 2000` + - `command: string` The command used to start the MCP server. + `minLength: 0` + - `cwd: string` The working directory used to start the MCP server. + `minLength: 0` + - `env_vars: array of string` Environment variable names inherited from the execution environment. + `minItems: 0`, `maxItems: 2000` + - `type: "stdio"` The type of the object. Always `stdio`. @@ -3926,6 +4555,8 @@ Schema name: `SessionEventAgentSessionIdle` Allowed search domains, or `null` when the search is unrestricted. + `minItems: 0`, `maxItems: 2000` + - `context_size: "low" or "medium" or "high"` The amount of search context made available to the model. Defaults to `medium`. @@ -3944,18 +4575,26 @@ Schema name: `SessionEventAgentSessionIdle` The city name. + `minLength: 0` + - `country: string or null` The two-letter ISO country code, such as `US`. + `minLength: 0` + - `region: string or null` The region or state name. + `minLength: 0` + - `timezone: string or null` The IANA timezone, such as `America/Los_Angeles`. + `minLength: 0` + - `mode: "disabled" or "cached" or "live"` The source used for web search results. @@ -3996,10 +4635,20 @@ Schema name: `SessionEventAgentSessionIdle` - `"automations"` + - `compaction: optional object { async }` + + The effective context compaction settings. + + - `async: boolean` + + Whether context is compacted in the background. Defaults to true. + - `created_at: number` The Unix timestamp, in seconds, when the session was created. + `format: int64` + - `environment: Environment` The execution environment for the session. @@ -4022,10 +4671,14 @@ Schema name: `SessionEventAgentSessionIdle` The public ID of the environment. + `minLength: 0` + - `capability_directories: array of string` Directories that contain capabilities exposed to the agent. + `minItems: 0`, `maxItems: 2000` + - `desktop: object { enabled }` The effective desktop configuration. @@ -4038,6 +4691,8 @@ Schema name: `SessionEventAgentSessionIdle` Files available in the environment, excluding their contents. + `minItems: 0`, `maxItems: 50` + - `HostedEnvironmentFileID object { id, file_id, path, 2 more }` A file copied from the OpenAI Files API. @@ -4046,18 +4701,26 @@ Schema name: `SessionEventAgentSessionIdle` The session-scoped ID of the file in the execution environment. + `minLength: 0` + - `file_id: string` The ID of the uploaded file. + `minLength: 0` + - `path: string` The file's absolute path inside the environment. + `minLength: 0` + - `size_bytes: number` The decoded file size in bytes. + `format: int64`, `minimum: 0` + - `type: "file_id"` The type of the object. Always `file_id`. @@ -4072,14 +4735,20 @@ Schema name: `SessionEventAgentSessionIdle` The session-scoped ID of the file in the execution environment. + `minLength: 0` + - `path: string` The file's absolute path inside the environment. + `minLength: 0` + - `size_bytes: number` The decoded file size in bytes. + `format: int64`, `minimum: 0` + - `type: "inline"` The type of the object. Always `inline`. @@ -4110,6 +4779,8 @@ Schema name: `SessionEventAgentSessionIdle` Domains the environment may access when network access is restricted. + `minItems: 0`, `maxItems: 2000` + - `packages: object { npm, python, system }` Packages installed in the environment. @@ -4118,26 +4789,38 @@ Schema name: `SessionEventAgentSessionIdle` npm packages installed globally in the environment. + `minItems: 0`, `maxItems: 16384` + - `python: array of string` Python packages installed in the environment. + `minItems: 0`, `maxItems: 16384` + - `system: array of string` System packages installed in the environment. + `minItems: 0`, `maxItems: 16384` + - `plugins: array of HostedPlugin` Plugins installed in the environment, excluding their archive contents. + `minItems: 0`, `maxItems: 2000` + - `description: string` The installed plugin description. + `minLength: 0` + - `name: string` The installed plugin name. + `minLength: 0` + - `type: "inline"` The type of the object. Always `inline`. @@ -4148,6 +4831,8 @@ Schema name: `SessionEventAgentSessionIdle` Skills installed in the environment, excluding their archive contents. + `minItems: 0`, `maxItems: 2000` + - `HostedSkillReference object { description, name, skill_id, 2 more }` A skill installed from the Skills API. @@ -4156,14 +4841,20 @@ Schema name: `SessionEventAgentSessionIdle` The installed skill description. + `minLength: 0` + - `name: string` The installed skill name. + `minLength: 0` + - `skill_id: string` The referenced skill ID. + `minLength: 0` + - `type: "skill_reference"` The type of the object. Always `skill_reference`. @@ -4174,6 +4865,8 @@ Schema name: `SessionEventAgentSessionIdle` The concrete skill version installed for this session. + `minLength: 0` + - `Inline object { description, name, type }` A skill installed from an inline ZIP archive. @@ -4182,10 +4875,14 @@ Schema name: `SessionEventAgentSessionIdle` The installed skill description. + `minLength: 0` + - `name: string` The installed skill name. + `minLength: 0` + - `type: "inline"` The type of the object. Always `inline`. @@ -4216,14 +4913,20 @@ Schema name: `SessionEventAgentSessionIdle` The public ID of the environment. + `minLength: 0` + - `capability_directories: array of string` Directories that contain capabilities exposed to the agent. + `minItems: 0`, `maxItems: 2000` + - `remote_url: string` Pass this URL unchanged to `codex exec-server --remote` when connecting this environment. + `minLength: 0` + - `type: "self_hosted"` The type of the object. Always `self_hosted`. @@ -4234,14 +4937,20 @@ Schema name: `SessionEventAgentSessionIdle` The absolute project directory inside the environment. Defaults to `/workspace`. + `minLength: 0` + - `error: string or null` The error that caused the session to fail, if any. + `minLength: 0` + - `last_active_at: number` The Unix timestamp, in seconds, when the session was last active. + `format: int64` + - `metadata: map[string]` Custom string key-value pairs attached to the session. @@ -4256,6 +4965,8 @@ Schema name: `SessionEventAgentSessionIdle` Actions that must be completed before the session can continue. + `minItems: 0`, `maxItems: 2000` + - `ComputerUseApprovalRequest object { request, request_id, turn_id, type }` Respond to a computer-use request. @@ -4272,18 +4983,26 @@ Schema name: `SessionEventAgentSessionIdle` The registered form or frame origin where values will be entered. + `minLength: 0` + - `fields: array of object { id, label, required, type }` Controls to render. All submitted values are sensitive. + `minItems: 0`, `maxItems: 2000` + - `id: string` The field ID to submit as field_id in a fields entry. + `minLength: 0` + - `label: string` The label to display beside the control. + `minLength: 0` + - `required: boolean` Whether this control requires a nonempty value. @@ -4292,26 +5011,38 @@ Schema name: `SessionEventAgentSessionIdle` The rendering type, such as email, password, or text. + `minLength: 0` + - `options: array of object { id, field_ids, label }` Sign-in methods. Empty for a plain form. + `minItems: 0`, `maxItems: 2000` + - `id: string` The option ID to submit as selected_option. + `minLength: 0` + - `field_ids: array of string` IDs from the registered fields that this method accepts. + `minItems: 0`, `maxItems: 2000` + - `label: string` The method label to display. + `minLength: 0` + - `reason: string or null` Why the agent needs the user to sign in. + `minLength: 0` + - `type: "browser_authentication"` The type of the object. Always `browser_authentication`. @@ -4326,10 +5057,14 @@ Schema name: `SessionEventAgentSessionIdle` The origin the browser needs permission to access. + `minLength: 0` + - `reason: string or null` The browser's explanation for this request, or null when unavailable. + `minLength: 0` + - `type: "browser_origin_access"` The type of the object. Always `browser_origin_access`. @@ -4340,10 +5075,14 @@ Schema name: `SessionEventAgentSessionIdle` The registered request ID to echo when responding. + `minLength: 0` + - `turn_id: string` The turn that requested approval. + `minLength: 0` + - `type: "computer_use_approval_request"` The type of the object. Always `computer_use_approval_request`. @@ -4362,14 +5101,20 @@ Schema name: `SessionEventAgentSessionIdle` The ID to include when submitting the function result. + `minLength: 0` + - `name: string` The function name. + `minLength: 0` + - `turn_id: string` The ID of the turn that requested the function call. + `minLength: 0` + - `type: "function_call"` The type of the object. Always `function_call`. @@ -4384,6 +5129,8 @@ Schema name: `SessionEventAgentSessionIdle` The ID of the environment to reconnect. + `minLength: 0` + - `type: "environment_connection"` The type of the object. Always `environment_connection`. @@ -4418,6 +5165,8 @@ Schema name: `SessionEventAgentSessionIdle` The number of input tokens used by the agent. + `format: int64` + - `input_tokens_details: object { cached_tokens }` A breakdown of the agent's input token usage. @@ -4426,10 +5175,14 @@ Schema name: `SessionEventAgentSessionIdle` The number of input tokens retrieved from the prompt cache. + `format: int64` + - `output_tokens: number` The number of output tokens generated by the agent. + `format: int64` + - `output_tokens_details: object { reasoning_tokens }` A breakdown of the agent's output token usage. @@ -4438,14 +5191,20 @@ Schema name: `SessionEventAgentSessionIdle` The number of output tokens used for reasoning. + `format: int64` + - `total_tokens: number` The total number of input and output tokens used by the agent. + `format: int64` + - `vault_ids: array of string` The IDs of vaults made available to the session. + `minItems: 0`, `maxItems: 2000` + - `type: "agent.session.idle"` The type of the object. Always `agent.session.idle`. @@ -4527,6 +5286,9 @@ Schema name: `SessionEventAgentSessionIdle` "multi_agent": { "enabled": true, "max_concurrent_subagents": 1 + }, + "compaction": { + "async": true } }, "environment": { @@ -4564,6 +5326,8 @@ Schema name: `SessionEventAgentSessionInProgress` The unique ID of the event. + `minLength: 0` + - `session: AgentSession` The session that started processing. @@ -4572,7 +5336,9 @@ Schema name: `SessionEventAgentSessionInProgress` The ID of the session. - - `agent: object { id, instructions, model, 6 more }` + `minLength: 0` + + - `agent: object { id, instructions, model, 7 more }` The agent running in the session. @@ -4580,14 +5346,20 @@ Schema name: `SessionEventAgentSessionInProgress` The ID of the agent. + `minLength: 0` + - `instructions: string or null` Custom instructions appended to the agent's default base instructions. + `minLength: 0` + - `model: string` The model used by the agent. + `minLength: 0` + - `multi_agent: MultiAgentConfig` Configuration for creating and coordinating subagents. @@ -4600,10 +5372,14 @@ Schema name: `SessionEventAgentSessionInProgress` Maximum number of subagents that may run concurrently, or null when disabled. Defaults to 6 when enabled. + `format: int64`, `minimum: 1`, `maximum: 4294967295` + - `name: string or null` The reusable agent's name when the session was created, or null if no name was saved. Later changes to the agent's name do not affect this value. + `minLength: 0` + - `reasoning: AgentReasoning` The agent's reasoning configuration. @@ -4704,6 +5480,8 @@ Schema name: `SessionEventAgentSessionInProgress` Tools available to the agent. + `minItems: 0`, `maxItems: 2000` + - `Function object { defer_loading, description, name, 2 more }` A function defined by the application. @@ -4716,10 +5494,14 @@ Schema name: `SessionEventAgentSessionInProgress` A description of what the function does. + `minLength: 0` + - `name: string` The name of the function. + `minLength: 0` + - `parameters: map[unknown]` A JSON Schema object describing the function's arguments. @@ -4752,6 +5534,8 @@ Schema name: `SessionEventAgentSessionInProgress` The MCP tools the agent may call. + `minItems: 0`, `maxItems: 2000` + - `connection_origin: "service" or "environment"` Where outbound MCP HTTP connections originate. @@ -4764,6 +5548,8 @@ Schema name: `SessionEventAgentSessionInProgress` The attached vault credential selected for this MCP server, if any. Optional when exactly one attached credential matches the server URL. + `minLength: 0` + - `request_metadata: map[unknown]` Metadata included with requests to this MCP server. @@ -4776,6 +5562,8 @@ Schema name: `SessionEventAgentSessionInProgress` A label used to identify the MCP server in tool calls. + `minLength: 0` + - `transport: McpTransport` The transport used to connect to the MCP server. @@ -4788,6 +5576,8 @@ Schema name: `SessionEventAgentSessionInProgress` The URL of the MCP server. + `minLength: 0` + - `type: "http"` The type of the object. Always `http`. @@ -4802,18 +5592,26 @@ Schema name: `SessionEventAgentSessionInProgress` Arguments passed to the MCP server command. + `minItems: 0`, `maxItems: 2000` + - `command: string` The command used to start the MCP server. + `minLength: 0` + - `cwd: string` The working directory used to start the MCP server. + `minLength: 0` + - `env_vars: array of string` Environment variable names inherited from the execution environment. + `minItems: 0`, `maxItems: 2000` + - `type: "stdio"` The type of the object. Always `stdio`. @@ -4834,6 +5632,8 @@ Schema name: `SessionEventAgentSessionInProgress` Allowed search domains, or `null` when the search is unrestricted. + `minItems: 0`, `maxItems: 2000` + - `context_size: "low" or "medium" or "high"` The amount of search context made available to the model. Defaults to `medium`. @@ -4852,18 +5652,26 @@ Schema name: `SessionEventAgentSessionInProgress` The city name. + `minLength: 0` + - `country: string or null` The two-letter ISO country code, such as `US`. + `minLength: 0` + - `region: string or null` The region or state name. + `minLength: 0` + - `timezone: string or null` The IANA timezone, such as `America/Los_Angeles`. + `minLength: 0` + - `mode: "disabled" or "cached" or "live"` The source used for web search results. @@ -4904,10 +5712,20 @@ Schema name: `SessionEventAgentSessionInProgress` - `"automations"` + - `compaction: optional object { async }` + + The effective context compaction settings. + + - `async: boolean` + + Whether context is compacted in the background. Defaults to true. + - `created_at: number` The Unix timestamp, in seconds, when the session was created. + `format: int64` + - `environment: Environment` The execution environment for the session. @@ -4930,10 +5748,14 @@ Schema name: `SessionEventAgentSessionInProgress` The public ID of the environment. + `minLength: 0` + - `capability_directories: array of string` Directories that contain capabilities exposed to the agent. + `minItems: 0`, `maxItems: 2000` + - `desktop: object { enabled }` The effective desktop configuration. @@ -4946,6 +5768,8 @@ Schema name: `SessionEventAgentSessionInProgress` Files available in the environment, excluding their contents. + `minItems: 0`, `maxItems: 50` + - `HostedEnvironmentFileID object { id, file_id, path, 2 more }` A file copied from the OpenAI Files API. @@ -4954,18 +5778,26 @@ Schema name: `SessionEventAgentSessionInProgress` The session-scoped ID of the file in the execution environment. + `minLength: 0` + - `file_id: string` The ID of the uploaded file. + `minLength: 0` + - `path: string` The file's absolute path inside the environment. + `minLength: 0` + - `size_bytes: number` The decoded file size in bytes. + `format: int64`, `minimum: 0` + - `type: "file_id"` The type of the object. Always `file_id`. @@ -4980,14 +5812,20 @@ Schema name: `SessionEventAgentSessionInProgress` The session-scoped ID of the file in the execution environment. + `minLength: 0` + - `path: string` The file's absolute path inside the environment. + `minLength: 0` + - `size_bytes: number` The decoded file size in bytes. + `format: int64`, `minimum: 0` + - `type: "inline"` The type of the object. Always `inline`. @@ -5018,6 +5856,8 @@ Schema name: `SessionEventAgentSessionInProgress` Domains the environment may access when network access is restricted. + `minItems: 0`, `maxItems: 2000` + - `packages: object { npm, python, system }` Packages installed in the environment. @@ -5026,26 +5866,38 @@ Schema name: `SessionEventAgentSessionInProgress` npm packages installed globally in the environment. + `minItems: 0`, `maxItems: 16384` + - `python: array of string` Python packages installed in the environment. + `minItems: 0`, `maxItems: 16384` + - `system: array of string` System packages installed in the environment. + `minItems: 0`, `maxItems: 16384` + - `plugins: array of HostedPlugin` Plugins installed in the environment, excluding their archive contents. + `minItems: 0`, `maxItems: 2000` + - `description: string` The installed plugin description. + `minLength: 0` + - `name: string` The installed plugin name. + `minLength: 0` + - `type: "inline"` The type of the object. Always `inline`. @@ -5056,6 +5908,8 @@ Schema name: `SessionEventAgentSessionInProgress` Skills installed in the environment, excluding their archive contents. + `minItems: 0`, `maxItems: 2000` + - `HostedSkillReference object { description, name, skill_id, 2 more }` A skill installed from the Skills API. @@ -5064,14 +5918,20 @@ Schema name: `SessionEventAgentSessionInProgress` The installed skill description. + `minLength: 0` + - `name: string` The installed skill name. + `minLength: 0` + - `skill_id: string` The referenced skill ID. + `minLength: 0` + - `type: "skill_reference"` The type of the object. Always `skill_reference`. @@ -5082,6 +5942,8 @@ Schema name: `SessionEventAgentSessionInProgress` The concrete skill version installed for this session. + `minLength: 0` + - `Inline object { description, name, type }` A skill installed from an inline ZIP archive. @@ -5090,10 +5952,14 @@ Schema name: `SessionEventAgentSessionInProgress` The installed skill description. + `minLength: 0` + - `name: string` The installed skill name. + `minLength: 0` + - `type: "inline"` The type of the object. Always `inline`. @@ -5124,14 +5990,20 @@ Schema name: `SessionEventAgentSessionInProgress` The public ID of the environment. + `minLength: 0` + - `capability_directories: array of string` Directories that contain capabilities exposed to the agent. + `minItems: 0`, `maxItems: 2000` + - `remote_url: string` Pass this URL unchanged to `codex exec-server --remote` when connecting this environment. + `minLength: 0` + - `type: "self_hosted"` The type of the object. Always `self_hosted`. @@ -5142,14 +6014,20 @@ Schema name: `SessionEventAgentSessionInProgress` The absolute project directory inside the environment. Defaults to `/workspace`. + `minLength: 0` + - `error: string or null` The error that caused the session to fail, if any. + `minLength: 0` + - `last_active_at: number` The Unix timestamp, in seconds, when the session was last active. + `format: int64` + - `metadata: map[string]` Custom string key-value pairs attached to the session. @@ -5164,6 +6042,8 @@ Schema name: `SessionEventAgentSessionInProgress` Actions that must be completed before the session can continue. + `minItems: 0`, `maxItems: 2000` + - `ComputerUseApprovalRequest object { request, request_id, turn_id, type }` Respond to a computer-use request. @@ -5180,18 +6060,26 @@ Schema name: `SessionEventAgentSessionInProgress` The registered form or frame origin where values will be entered. + `minLength: 0` + - `fields: array of object { id, label, required, type }` Controls to render. All submitted values are sensitive. + `minItems: 0`, `maxItems: 2000` + - `id: string` The field ID to submit as field_id in a fields entry. + `minLength: 0` + - `label: string` The label to display beside the control. + `minLength: 0` + - `required: boolean` Whether this control requires a nonempty value. @@ -5200,26 +6088,38 @@ Schema name: `SessionEventAgentSessionInProgress` The rendering type, such as email, password, or text. + `minLength: 0` + - `options: array of object { id, field_ids, label }` Sign-in methods. Empty for a plain form. + `minItems: 0`, `maxItems: 2000` + - `id: string` The option ID to submit as selected_option. + `minLength: 0` + - `field_ids: array of string` IDs from the registered fields that this method accepts. + `minItems: 0`, `maxItems: 2000` + - `label: string` The method label to display. + `minLength: 0` + - `reason: string or null` Why the agent needs the user to sign in. + `minLength: 0` + - `type: "browser_authentication"` The type of the object. Always `browser_authentication`. @@ -5234,10 +6134,14 @@ Schema name: `SessionEventAgentSessionInProgress` The origin the browser needs permission to access. + `minLength: 0` + - `reason: string or null` The browser's explanation for this request, or null when unavailable. + `minLength: 0` + - `type: "browser_origin_access"` The type of the object. Always `browser_origin_access`. @@ -5248,10 +6152,14 @@ Schema name: `SessionEventAgentSessionInProgress` The registered request ID to echo when responding. + `minLength: 0` + - `turn_id: string` The turn that requested approval. + `minLength: 0` + - `type: "computer_use_approval_request"` The type of the object. Always `computer_use_approval_request`. @@ -5270,14 +6178,20 @@ Schema name: `SessionEventAgentSessionInProgress` The ID to include when submitting the function result. + `minLength: 0` + - `name: string` The function name. + `minLength: 0` + - `turn_id: string` The ID of the turn that requested the function call. + `minLength: 0` + - `type: "function_call"` The type of the object. Always `function_call`. @@ -5292,6 +6206,8 @@ Schema name: `SessionEventAgentSessionInProgress` The ID of the environment to reconnect. + `minLength: 0` + - `type: "environment_connection"` The type of the object. Always `environment_connection`. @@ -5326,6 +6242,8 @@ Schema name: `SessionEventAgentSessionInProgress` The number of input tokens used by the agent. + `format: int64` + - `input_tokens_details: object { cached_tokens }` A breakdown of the agent's input token usage. @@ -5334,10 +6252,14 @@ Schema name: `SessionEventAgentSessionInProgress` The number of input tokens retrieved from the prompt cache. + `format: int64` + - `output_tokens: number` The number of output tokens generated by the agent. + `format: int64` + - `output_tokens_details: object { reasoning_tokens }` A breakdown of the agent's output token usage. @@ -5346,14 +6268,20 @@ Schema name: `SessionEventAgentSessionInProgress` The number of output tokens used for reasoning. + `format: int64` + - `total_tokens: number` The total number of input and output tokens used by the agent. + `format: int64` + - `vault_ids: array of string` The IDs of vaults made available to the session. + `minItems: 0`, `maxItems: 2000` + - `type: "agent.session.in_progress"` The type of the object. Always `agent.session.in_progress`. @@ -5435,6 +6363,9 @@ Schema name: `SessionEventAgentSessionInProgress` "multi_agent": { "enabled": true, "max_concurrent_subagents": 1 + }, + "compaction": { + "async": true } }, "environment": { @@ -5472,6 +6403,8 @@ Schema name: `SessionEventAgentSessionRequiresAction` The unique ID of the event. + `minLength: 0` + - `session: AgentSession` The session and its current required actions. @@ -5480,7 +6413,9 @@ Schema name: `SessionEventAgentSessionRequiresAction` The ID of the session. - - `agent: object { id, instructions, model, 6 more }` + `minLength: 0` + + - `agent: object { id, instructions, model, 7 more }` The agent running in the session. @@ -5488,14 +6423,20 @@ Schema name: `SessionEventAgentSessionRequiresAction` The ID of the agent. + `minLength: 0` + - `instructions: string or null` Custom instructions appended to the agent's default base instructions. + `minLength: 0` + - `model: string` The model used by the agent. + `minLength: 0` + - `multi_agent: MultiAgentConfig` Configuration for creating and coordinating subagents. @@ -5508,10 +6449,14 @@ Schema name: `SessionEventAgentSessionRequiresAction` Maximum number of subagents that may run concurrently, or null when disabled. Defaults to 6 when enabled. + `format: int64`, `minimum: 1`, `maximum: 4294967295` + - `name: string or null` The reusable agent's name when the session was created, or null if no name was saved. Later changes to the agent's name do not affect this value. + `minLength: 0` + - `reasoning: AgentReasoning` The agent's reasoning configuration. @@ -5612,6 +6557,8 @@ Schema name: `SessionEventAgentSessionRequiresAction` Tools available to the agent. + `minItems: 0`, `maxItems: 2000` + - `Function object { defer_loading, description, name, 2 more }` A function defined by the application. @@ -5624,10 +6571,14 @@ Schema name: `SessionEventAgentSessionRequiresAction` A description of what the function does. + `minLength: 0` + - `name: string` The name of the function. + `minLength: 0` + - `parameters: map[unknown]` A JSON Schema object describing the function's arguments. @@ -5660,6 +6611,8 @@ Schema name: `SessionEventAgentSessionRequiresAction` The MCP tools the agent may call. + `minItems: 0`, `maxItems: 2000` + - `connection_origin: "service" or "environment"` Where outbound MCP HTTP connections originate. @@ -5672,6 +6625,8 @@ Schema name: `SessionEventAgentSessionRequiresAction` The attached vault credential selected for this MCP server, if any. Optional when exactly one attached credential matches the server URL. + `minLength: 0` + - `request_metadata: map[unknown]` Metadata included with requests to this MCP server. @@ -5684,6 +6639,8 @@ Schema name: `SessionEventAgentSessionRequiresAction` A label used to identify the MCP server in tool calls. + `minLength: 0` + - `transport: McpTransport` The transport used to connect to the MCP server. @@ -5696,6 +6653,8 @@ Schema name: `SessionEventAgentSessionRequiresAction` The URL of the MCP server. + `minLength: 0` + - `type: "http"` The type of the object. Always `http`. @@ -5710,18 +6669,26 @@ Schema name: `SessionEventAgentSessionRequiresAction` Arguments passed to the MCP server command. + `minItems: 0`, `maxItems: 2000` + - `command: string` The command used to start the MCP server. + `minLength: 0` + - `cwd: string` The working directory used to start the MCP server. + `minLength: 0` + - `env_vars: array of string` Environment variable names inherited from the execution environment. + `minItems: 0`, `maxItems: 2000` + - `type: "stdio"` The type of the object. Always `stdio`. @@ -5742,6 +6709,8 @@ Schema name: `SessionEventAgentSessionRequiresAction` Allowed search domains, or `null` when the search is unrestricted. + `minItems: 0`, `maxItems: 2000` + - `context_size: "low" or "medium" or "high"` The amount of search context made available to the model. Defaults to `medium`. @@ -5760,18 +6729,26 @@ Schema name: `SessionEventAgentSessionRequiresAction` The city name. + `minLength: 0` + - `country: string or null` The two-letter ISO country code, such as `US`. + `minLength: 0` + - `region: string or null` The region or state name. + `minLength: 0` + - `timezone: string or null` The IANA timezone, such as `America/Los_Angeles`. + `minLength: 0` + - `mode: "disabled" or "cached" or "live"` The source used for web search results. @@ -5812,10 +6789,20 @@ Schema name: `SessionEventAgentSessionRequiresAction` - `"automations"` + - `compaction: optional object { async }` + + The effective context compaction settings. + + - `async: boolean` + + Whether context is compacted in the background. Defaults to true. + - `created_at: number` The Unix timestamp, in seconds, when the session was created. + `format: int64` + - `environment: Environment` The execution environment for the session. @@ -5838,10 +6825,14 @@ Schema name: `SessionEventAgentSessionRequiresAction` The public ID of the environment. + `minLength: 0` + - `capability_directories: array of string` Directories that contain capabilities exposed to the agent. + `minItems: 0`, `maxItems: 2000` + - `desktop: object { enabled }` The effective desktop configuration. @@ -5854,6 +6845,8 @@ Schema name: `SessionEventAgentSessionRequiresAction` Files available in the environment, excluding their contents. + `minItems: 0`, `maxItems: 50` + - `HostedEnvironmentFileID object { id, file_id, path, 2 more }` A file copied from the OpenAI Files API. @@ -5862,18 +6855,26 @@ Schema name: `SessionEventAgentSessionRequiresAction` The session-scoped ID of the file in the execution environment. + `minLength: 0` + - `file_id: string` The ID of the uploaded file. + `minLength: 0` + - `path: string` The file's absolute path inside the environment. + `minLength: 0` + - `size_bytes: number` The decoded file size in bytes. + `format: int64`, `minimum: 0` + - `type: "file_id"` The type of the object. Always `file_id`. @@ -5888,14 +6889,20 @@ Schema name: `SessionEventAgentSessionRequiresAction` The session-scoped ID of the file in the execution environment. + `minLength: 0` + - `path: string` The file's absolute path inside the environment. + `minLength: 0` + - `size_bytes: number` The decoded file size in bytes. + `format: int64`, `minimum: 0` + - `type: "inline"` The type of the object. Always `inline`. @@ -5926,6 +6933,8 @@ Schema name: `SessionEventAgentSessionRequiresAction` Domains the environment may access when network access is restricted. + `minItems: 0`, `maxItems: 2000` + - `packages: object { npm, python, system }` Packages installed in the environment. @@ -5934,26 +6943,38 @@ Schema name: `SessionEventAgentSessionRequiresAction` npm packages installed globally in the environment. + `minItems: 0`, `maxItems: 16384` + - `python: array of string` Python packages installed in the environment. + `minItems: 0`, `maxItems: 16384` + - `system: array of string` System packages installed in the environment. + `minItems: 0`, `maxItems: 16384` + - `plugins: array of HostedPlugin` Plugins installed in the environment, excluding their archive contents. + `minItems: 0`, `maxItems: 2000` + - `description: string` The installed plugin description. + `minLength: 0` + - `name: string` The installed plugin name. + `minLength: 0` + - `type: "inline"` The type of the object. Always `inline`. @@ -5964,6 +6985,8 @@ Schema name: `SessionEventAgentSessionRequiresAction` Skills installed in the environment, excluding their archive contents. + `minItems: 0`, `maxItems: 2000` + - `HostedSkillReference object { description, name, skill_id, 2 more }` A skill installed from the Skills API. @@ -5972,14 +6995,20 @@ Schema name: `SessionEventAgentSessionRequiresAction` The installed skill description. + `minLength: 0` + - `name: string` The installed skill name. + `minLength: 0` + - `skill_id: string` The referenced skill ID. + `minLength: 0` + - `type: "skill_reference"` The type of the object. Always `skill_reference`. @@ -5990,6 +7019,8 @@ Schema name: `SessionEventAgentSessionRequiresAction` The concrete skill version installed for this session. + `minLength: 0` + - `Inline object { description, name, type }` A skill installed from an inline ZIP archive. @@ -5998,10 +7029,14 @@ Schema name: `SessionEventAgentSessionRequiresAction` The installed skill description. + `minLength: 0` + - `name: string` The installed skill name. + `minLength: 0` + - `type: "inline"` The type of the object. Always `inline`. @@ -6032,14 +7067,20 @@ Schema name: `SessionEventAgentSessionRequiresAction` The public ID of the environment. + `minLength: 0` + - `capability_directories: array of string` Directories that contain capabilities exposed to the agent. + `minItems: 0`, `maxItems: 2000` + - `remote_url: string` Pass this URL unchanged to `codex exec-server --remote` when connecting this environment. + `minLength: 0` + - `type: "self_hosted"` The type of the object. Always `self_hosted`. @@ -6050,14 +7091,20 @@ Schema name: `SessionEventAgentSessionRequiresAction` The absolute project directory inside the environment. Defaults to `/workspace`. + `minLength: 0` + - `error: string or null` The error that caused the session to fail, if any. + `minLength: 0` + - `last_active_at: number` The Unix timestamp, in seconds, when the session was last active. + `format: int64` + - `metadata: map[string]` Custom string key-value pairs attached to the session. @@ -6072,6 +7119,8 @@ Schema name: `SessionEventAgentSessionRequiresAction` Actions that must be completed before the session can continue. + `minItems: 0`, `maxItems: 2000` + - `ComputerUseApprovalRequest object { request, request_id, turn_id, type }` Respond to a computer-use request. @@ -6088,18 +7137,26 @@ Schema name: `SessionEventAgentSessionRequiresAction` The registered form or frame origin where values will be entered. + `minLength: 0` + - `fields: array of object { id, label, required, type }` Controls to render. All submitted values are sensitive. + `minItems: 0`, `maxItems: 2000` + - `id: string` The field ID to submit as field_id in a fields entry. + `minLength: 0` + - `label: string` The label to display beside the control. + `minLength: 0` + - `required: boolean` Whether this control requires a nonempty value. @@ -6108,26 +7165,38 @@ Schema name: `SessionEventAgentSessionRequiresAction` The rendering type, such as email, password, or text. + `minLength: 0` + - `options: array of object { id, field_ids, label }` Sign-in methods. Empty for a plain form. + `minItems: 0`, `maxItems: 2000` + - `id: string` The option ID to submit as selected_option. + `minLength: 0` + - `field_ids: array of string` IDs from the registered fields that this method accepts. + `minItems: 0`, `maxItems: 2000` + - `label: string` The method label to display. + `minLength: 0` + - `reason: string or null` Why the agent needs the user to sign in. + `minLength: 0` + - `type: "browser_authentication"` The type of the object. Always `browser_authentication`. @@ -6142,10 +7211,14 @@ Schema name: `SessionEventAgentSessionRequiresAction` The origin the browser needs permission to access. + `minLength: 0` + - `reason: string or null` The browser's explanation for this request, or null when unavailable. + `minLength: 0` + - `type: "browser_origin_access"` The type of the object. Always `browser_origin_access`. @@ -6156,10 +7229,14 @@ Schema name: `SessionEventAgentSessionRequiresAction` The registered request ID to echo when responding. + `minLength: 0` + - `turn_id: string` The turn that requested approval. + `minLength: 0` + - `type: "computer_use_approval_request"` The type of the object. Always `computer_use_approval_request`. @@ -6178,14 +7255,20 @@ Schema name: `SessionEventAgentSessionRequiresAction` The ID to include when submitting the function result. + `minLength: 0` + - `name: string` The function name. + `minLength: 0` + - `turn_id: string` The ID of the turn that requested the function call. + `minLength: 0` + - `type: "function_call"` The type of the object. Always `function_call`. @@ -6200,6 +7283,8 @@ Schema name: `SessionEventAgentSessionRequiresAction` The ID of the environment to reconnect. + `minLength: 0` + - `type: "environment_connection"` The type of the object. Always `environment_connection`. @@ -6234,6 +7319,8 @@ Schema name: `SessionEventAgentSessionRequiresAction` The number of input tokens used by the agent. + `format: int64` + - `input_tokens_details: object { cached_tokens }` A breakdown of the agent's input token usage. @@ -6242,10 +7329,14 @@ Schema name: `SessionEventAgentSessionRequiresAction` The number of input tokens retrieved from the prompt cache. + `format: int64` + - `output_tokens: number` The number of output tokens generated by the agent. + `format: int64` + - `output_tokens_details: object { reasoning_tokens }` A breakdown of the agent's output token usage. @@ -6254,14 +7345,20 @@ Schema name: `SessionEventAgentSessionRequiresAction` The number of output tokens used for reasoning. + `format: int64` + - `total_tokens: number` The total number of input and output tokens used by the agent. + `format: int64` + - `vault_ids: array of string` The IDs of vaults made available to the session. + `minItems: 0`, `maxItems: 2000` + - `type: "agent.session.requires_action"` The type of the object. Always `agent.session.requires_action`. @@ -6343,6 +7440,9 @@ Schema name: `SessionEventAgentSessionRequiresAction` "multi_agent": { "enabled": true, "max_concurrent_subagents": 1 + }, + "compaction": { + "async": true } }, "environment": { @@ -6380,6 +7480,8 @@ Schema name: `SessionEventAgentSessionFailed` The unique ID of the event. + `minLength: 0` + - `session: AgentSession` The failed session. @@ -6388,7 +7490,9 @@ Schema name: `SessionEventAgentSessionFailed` The ID of the session. - - `agent: object { id, instructions, model, 6 more }` + `minLength: 0` + + - `agent: object { id, instructions, model, 7 more }` The agent running in the session. @@ -6396,14 +7500,20 @@ Schema name: `SessionEventAgentSessionFailed` The ID of the agent. + `minLength: 0` + - `instructions: string or null` Custom instructions appended to the agent's default base instructions. + `minLength: 0` + - `model: string` The model used by the agent. + `minLength: 0` + - `multi_agent: MultiAgentConfig` Configuration for creating and coordinating subagents. @@ -6416,10 +7526,14 @@ Schema name: `SessionEventAgentSessionFailed` Maximum number of subagents that may run concurrently, or null when disabled. Defaults to 6 when enabled. + `format: int64`, `minimum: 1`, `maximum: 4294967295` + - `name: string or null` The reusable agent's name when the session was created, or null if no name was saved. Later changes to the agent's name do not affect this value. + `minLength: 0` + - `reasoning: AgentReasoning` The agent's reasoning configuration. @@ -6520,6 +7634,8 @@ Schema name: `SessionEventAgentSessionFailed` Tools available to the agent. + `minItems: 0`, `maxItems: 2000` + - `Function object { defer_loading, description, name, 2 more }` A function defined by the application. @@ -6532,10 +7648,14 @@ Schema name: `SessionEventAgentSessionFailed` A description of what the function does. + `minLength: 0` + - `name: string` The name of the function. + `minLength: 0` + - `parameters: map[unknown]` A JSON Schema object describing the function's arguments. @@ -6568,6 +7688,8 @@ Schema name: `SessionEventAgentSessionFailed` The MCP tools the agent may call. + `minItems: 0`, `maxItems: 2000` + - `connection_origin: "service" or "environment"` Where outbound MCP HTTP connections originate. @@ -6580,6 +7702,8 @@ Schema name: `SessionEventAgentSessionFailed` The attached vault credential selected for this MCP server, if any. Optional when exactly one attached credential matches the server URL. + `minLength: 0` + - `request_metadata: map[unknown]` Metadata included with requests to this MCP server. @@ -6592,6 +7716,8 @@ Schema name: `SessionEventAgentSessionFailed` A label used to identify the MCP server in tool calls. + `minLength: 0` + - `transport: McpTransport` The transport used to connect to the MCP server. @@ -6604,6 +7730,8 @@ Schema name: `SessionEventAgentSessionFailed` The URL of the MCP server. + `minLength: 0` + - `type: "http"` The type of the object. Always `http`. @@ -6618,18 +7746,26 @@ Schema name: `SessionEventAgentSessionFailed` Arguments passed to the MCP server command. + `minItems: 0`, `maxItems: 2000` + - `command: string` The command used to start the MCP server. + `minLength: 0` + - `cwd: string` The working directory used to start the MCP server. + `minLength: 0` + - `env_vars: array of string` Environment variable names inherited from the execution environment. + `minItems: 0`, `maxItems: 2000` + - `type: "stdio"` The type of the object. Always `stdio`. @@ -6650,6 +7786,8 @@ Schema name: `SessionEventAgentSessionFailed` Allowed search domains, or `null` when the search is unrestricted. + `minItems: 0`, `maxItems: 2000` + - `context_size: "low" or "medium" or "high"` The amount of search context made available to the model. Defaults to `medium`. @@ -6668,18 +7806,26 @@ Schema name: `SessionEventAgentSessionFailed` The city name. + `minLength: 0` + - `country: string or null` The two-letter ISO country code, such as `US`. + `minLength: 0` + - `region: string or null` The region or state name. + `minLength: 0` + - `timezone: string or null` The IANA timezone, such as `America/Los_Angeles`. + `minLength: 0` + - `mode: "disabled" or "cached" or "live"` The source used for web search results. @@ -6720,10 +7866,20 @@ Schema name: `SessionEventAgentSessionFailed` - `"automations"` + - `compaction: optional object { async }` + + The effective context compaction settings. + + - `async: boolean` + + Whether context is compacted in the background. Defaults to true. + - `created_at: number` The Unix timestamp, in seconds, when the session was created. + `format: int64` + - `environment: Environment` The execution environment for the session. @@ -6746,10 +7902,14 @@ Schema name: `SessionEventAgentSessionFailed` The public ID of the environment. + `minLength: 0` + - `capability_directories: array of string` Directories that contain capabilities exposed to the agent. + `minItems: 0`, `maxItems: 2000` + - `desktop: object { enabled }` The effective desktop configuration. @@ -6762,6 +7922,8 @@ Schema name: `SessionEventAgentSessionFailed` Files available in the environment, excluding their contents. + `minItems: 0`, `maxItems: 50` + - `HostedEnvironmentFileID object { id, file_id, path, 2 more }` A file copied from the OpenAI Files API. @@ -6770,18 +7932,26 @@ Schema name: `SessionEventAgentSessionFailed` The session-scoped ID of the file in the execution environment. + `minLength: 0` + - `file_id: string` The ID of the uploaded file. + `minLength: 0` + - `path: string` The file's absolute path inside the environment. + `minLength: 0` + - `size_bytes: number` The decoded file size in bytes. + `format: int64`, `minimum: 0` + - `type: "file_id"` The type of the object. Always `file_id`. @@ -6796,14 +7966,20 @@ Schema name: `SessionEventAgentSessionFailed` The session-scoped ID of the file in the execution environment. + `minLength: 0` + - `path: string` The file's absolute path inside the environment. + `minLength: 0` + - `size_bytes: number` The decoded file size in bytes. + `format: int64`, `minimum: 0` + - `type: "inline"` The type of the object. Always `inline`. @@ -6834,6 +8010,8 @@ Schema name: `SessionEventAgentSessionFailed` Domains the environment may access when network access is restricted. + `minItems: 0`, `maxItems: 2000` + - `packages: object { npm, python, system }` Packages installed in the environment. @@ -6842,26 +8020,38 @@ Schema name: `SessionEventAgentSessionFailed` npm packages installed globally in the environment. + `minItems: 0`, `maxItems: 16384` + - `python: array of string` Python packages installed in the environment. + `minItems: 0`, `maxItems: 16384` + - `system: array of string` System packages installed in the environment. + `minItems: 0`, `maxItems: 16384` + - `plugins: array of HostedPlugin` Plugins installed in the environment, excluding their archive contents. + `minItems: 0`, `maxItems: 2000` + - `description: string` The installed plugin description. + `minLength: 0` + - `name: string` The installed plugin name. + `minLength: 0` + - `type: "inline"` The type of the object. Always `inline`. @@ -6872,6 +8062,8 @@ Schema name: `SessionEventAgentSessionFailed` Skills installed in the environment, excluding their archive contents. + `minItems: 0`, `maxItems: 2000` + - `HostedSkillReference object { description, name, skill_id, 2 more }` A skill installed from the Skills API. @@ -6880,14 +8072,20 @@ Schema name: `SessionEventAgentSessionFailed` The installed skill description. + `minLength: 0` + - `name: string` The installed skill name. + `minLength: 0` + - `skill_id: string` The referenced skill ID. + `minLength: 0` + - `type: "skill_reference"` The type of the object. Always `skill_reference`. @@ -6898,6 +8096,8 @@ Schema name: `SessionEventAgentSessionFailed` The concrete skill version installed for this session. + `minLength: 0` + - `Inline object { description, name, type }` A skill installed from an inline ZIP archive. @@ -6906,10 +8106,14 @@ Schema name: `SessionEventAgentSessionFailed` The installed skill description. + `minLength: 0` + - `name: string` The installed skill name. + `minLength: 0` + - `type: "inline"` The type of the object. Always `inline`. @@ -6940,14 +8144,20 @@ Schema name: `SessionEventAgentSessionFailed` The public ID of the environment. + `minLength: 0` + - `capability_directories: array of string` Directories that contain capabilities exposed to the agent. + `minItems: 0`, `maxItems: 2000` + - `remote_url: string` Pass this URL unchanged to `codex exec-server --remote` when connecting this environment. + `minLength: 0` + - `type: "self_hosted"` The type of the object. Always `self_hosted`. @@ -6958,14 +8168,20 @@ Schema name: `SessionEventAgentSessionFailed` The absolute project directory inside the environment. Defaults to `/workspace`. + `minLength: 0` + - `error: string or null` The error that caused the session to fail, if any. + `minLength: 0` + - `last_active_at: number` The Unix timestamp, in seconds, when the session was last active. + `format: int64` + - `metadata: map[string]` Custom string key-value pairs attached to the session. @@ -6980,6 +8196,8 @@ Schema name: `SessionEventAgentSessionFailed` Actions that must be completed before the session can continue. + `minItems: 0`, `maxItems: 2000` + - `ComputerUseApprovalRequest object { request, request_id, turn_id, type }` Respond to a computer-use request. @@ -6996,18 +8214,26 @@ Schema name: `SessionEventAgentSessionFailed` The registered form or frame origin where values will be entered. + `minLength: 0` + - `fields: array of object { id, label, required, type }` Controls to render. All submitted values are sensitive. + `minItems: 0`, `maxItems: 2000` + - `id: string` The field ID to submit as field_id in a fields entry. + `minLength: 0` + - `label: string` The label to display beside the control. + `minLength: 0` + - `required: boolean` Whether this control requires a nonempty value. @@ -7016,26 +8242,38 @@ Schema name: `SessionEventAgentSessionFailed` The rendering type, such as email, password, or text. + `minLength: 0` + - `options: array of object { id, field_ids, label }` Sign-in methods. Empty for a plain form. + `minItems: 0`, `maxItems: 2000` + - `id: string` The option ID to submit as selected_option. + `minLength: 0` + - `field_ids: array of string` IDs from the registered fields that this method accepts. + `minItems: 0`, `maxItems: 2000` + - `label: string` The method label to display. + `minLength: 0` + - `reason: string or null` Why the agent needs the user to sign in. + `minLength: 0` + - `type: "browser_authentication"` The type of the object. Always `browser_authentication`. @@ -7050,10 +8288,14 @@ Schema name: `SessionEventAgentSessionFailed` The origin the browser needs permission to access. + `minLength: 0` + - `reason: string or null` The browser's explanation for this request, or null when unavailable. + `minLength: 0` + - `type: "browser_origin_access"` The type of the object. Always `browser_origin_access`. @@ -7064,10 +8306,14 @@ Schema name: `SessionEventAgentSessionFailed` The registered request ID to echo when responding. + `minLength: 0` + - `turn_id: string` The turn that requested approval. + `minLength: 0` + - `type: "computer_use_approval_request"` The type of the object. Always `computer_use_approval_request`. @@ -7086,14 +8332,20 @@ Schema name: `SessionEventAgentSessionFailed` The ID to include when submitting the function result. + `minLength: 0` + - `name: string` The function name. + `minLength: 0` + - `turn_id: string` The ID of the turn that requested the function call. + `minLength: 0` + - `type: "function_call"` The type of the object. Always `function_call`. @@ -7108,6 +8360,8 @@ Schema name: `SessionEventAgentSessionFailed` The ID of the environment to reconnect. + `minLength: 0` + - `type: "environment_connection"` The type of the object. Always `environment_connection`. @@ -7142,6 +8396,8 @@ Schema name: `SessionEventAgentSessionFailed` The number of input tokens used by the agent. + `format: int64` + - `input_tokens_details: object { cached_tokens }` A breakdown of the agent's input token usage. @@ -7150,10 +8406,14 @@ Schema name: `SessionEventAgentSessionFailed` The number of input tokens retrieved from the prompt cache. + `format: int64` + - `output_tokens: number` The number of output tokens generated by the agent. + `format: int64` + - `output_tokens_details: object { reasoning_tokens }` A breakdown of the agent's output token usage. @@ -7162,14 +8422,20 @@ Schema name: `SessionEventAgentSessionFailed` The number of output tokens used for reasoning. + `format: int64` + - `total_tokens: number` The total number of input and output tokens used by the agent. + `format: int64` + - `vault_ids: array of string` The IDs of vaults made available to the session. + `minItems: 0`, `maxItems: 2000` + - `type: "agent.session.failed"` The type of the object. Always `agent.session.failed`. @@ -7251,6 +8517,9 @@ Schema name: `SessionEventAgentSessionFailed` "multi_agent": { "enabled": true, "max_concurrent_subagents": 1 + }, + "compaction": { + "async": true } }, "environment": { @@ -7292,6 +8561,8 @@ Schema name: `SessionEventAgentSessionEnvironmentPending` The public ID of the environment. + `minLength: 0` + - `error: object { code, message, type } or null` The error reported while preparing the environment, if any. @@ -7300,14 +8571,20 @@ Schema name: `SessionEventAgentSessionEnvironmentPending` A machine-readable error code. + `minLength: 0` + - `message: string` A human-readable error message. + `minLength: 0` + - `type: string` The error type. + `minLength: 0` + - `status: "pending" or "ready" or "connected" or 4 more` The environment's connection status. @@ -7344,18 +8621,26 @@ Schema name: `SessionEventAgentSessionEnvironmentPending` The environment type. + `minLength: 0` + - `event_id: string` The unique ID of the event. + `minLength: 0` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `turn_id: string or null` The ID of the turn associated with the event, when applicable. + `minLength: 0` + - `type: "agent.session.environment.pending"` The type of the object. Always `agent.session.environment.pending`. @@ -7401,6 +8686,8 @@ Schema name: `SessionEventAgentSessionEnvironmentConnected` The public ID of the environment. + `minLength: 0` + - `error: object { code, message, type } or null` The error reported while preparing the environment, if any. @@ -7409,14 +8696,20 @@ Schema name: `SessionEventAgentSessionEnvironmentConnected` A machine-readable error code. + `minLength: 0` + - `message: string` A human-readable error message. + `minLength: 0` + - `type: string` The error type. + `minLength: 0` + - `status: "pending" or "ready" or "connected" or 4 more` The environment's connection status. @@ -7453,18 +8746,26 @@ Schema name: `SessionEventAgentSessionEnvironmentConnected` The environment type. + `minLength: 0` + - `event_id: string` The unique ID of the event. + `minLength: 0` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `turn_id: string or null` The ID of the turn associated with the event, when applicable. + `minLength: 0` + - `type: "agent.session.environment.connected"` The type of the object. Always `agent.session.environment.connected`. @@ -7510,6 +8811,8 @@ Schema name: `SessionEventAgentSessionEnvironmentDisconnected` The public ID of the environment. + `minLength: 0` + - `error: object { code, message, type } or null` The error reported while preparing the environment, if any. @@ -7518,14 +8821,20 @@ Schema name: `SessionEventAgentSessionEnvironmentDisconnected` A machine-readable error code. + `minLength: 0` + - `message: string` A human-readable error message. + `minLength: 0` + - `type: string` The error type. + `minLength: 0` + - `status: "pending" or "ready" or "connected" or 4 more` The environment's connection status. @@ -7562,18 +8871,26 @@ Schema name: `SessionEventAgentSessionEnvironmentDisconnected` The environment type. + `minLength: 0` + - `event_id: string` The unique ID of the event. + `minLength: 0` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `turn_id: string or null` The ID of the turn associated with the event, when applicable. + `minLength: 0` + - `type: "agent.session.environment.disconnected"` The type of the object. Always `agent.session.environment.disconnected`. @@ -7619,6 +8936,8 @@ Schema name: `SessionEventAgentSessionEnvironmentFailed` The public ID of the environment. + `minLength: 0` + - `error: object { code, message, type } or null` The error reported while preparing the environment, if any. @@ -7627,14 +8946,20 @@ Schema name: `SessionEventAgentSessionEnvironmentFailed` A machine-readable error code. + `minLength: 0` + - `message: string` A human-readable error message. + `minLength: 0` + - `type: string` The error type. + `minLength: 0` + - `status: "pending" or "ready" or "connected" or 4 more` The environment's connection status. @@ -7671,18 +8996,26 @@ Schema name: `SessionEventAgentSessionEnvironmentFailed` The environment type. + `minLength: 0` + - `event_id: string` The unique ID of the event. + `minLength: 0` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `turn_id: string or null` The ID of the turn associated with the event, when applicable. + `minLength: 0` + - `type: "agent.session.environment.failed"` The type of the object. Always `agent.session.environment.failed`. @@ -7724,6 +9057,8 @@ Schema name: `SessionEventAgentSessionSubagentCreated` The unique ID of the event. + `minLength: 0` + - `subagent: Subagent` The subagent that was created. @@ -7732,14 +9067,20 @@ Schema name: `SessionEventAgentSessionSubagentCreated` The ID of the subagent. + `minLength: 0` + - `closed_at: number or null` The Unix timestamp, in seconds, when the subagent was closed. Null while active, including after resume. + `format: int64` + - `instructions: array of AgentContent or null` Initial task content, or null when unavailable. Text may contain placeholders for images or audio when only a preview is available. + `minItems: 0`, `maxItems: 2000` + - `OutputText object { text, type }` A text content part produced by the agent. @@ -7748,6 +9089,8 @@ Schema name: `SessionEventAgentSessionSubagentCreated` The text produced by the agent. + `minLength: 0` + - `type: "output_text"` The content type. Always `output_text`. @@ -7762,6 +9105,8 @@ Schema name: `SessionEventAgentSessionSubagentCreated` The encrypted content payload. + `minLength: 0` + - `type: "encrypted_content"` The content type. Always `encrypted_content`. @@ -7772,6 +9117,8 @@ Schema name: `SessionEventAgentSessionSubagentCreated` The runner-assigned nickname, or null when unavailable. + `minLength: 0` + - `object: "agent.session.subagent"` The object type. Always `agent.session.subagent`. @@ -7782,14 +9129,20 @@ Schema name: `SessionEventAgentSessionSubagentCreated` The Unix timestamp, in seconds, when the subagent was first opened. Resuming does not change it. + `format: int64` + - `parent_agent_id: string` The ID of the agent that created this subagent. + `minLength: 0` + - `session_id: string` The ID of the session that owns the subagent. + `minLength: 0` + - `status: "active" or "closed"` The current status of the subagent. @@ -7847,6 +9200,8 @@ Schema name: `SessionEventAgentSessionSubagentActive` The unique ID of the event. + `minLength: 0` + - `subagent: Subagent` The subagent that resumed. @@ -7855,14 +9210,20 @@ Schema name: `SessionEventAgentSessionSubagentActive` The ID of the subagent. + `minLength: 0` + - `closed_at: number or null` The Unix timestamp, in seconds, when the subagent was closed. Null while active, including after resume. + `format: int64` + - `instructions: array of AgentContent or null` Initial task content, or null when unavailable. Text may contain placeholders for images or audio when only a preview is available. + `minItems: 0`, `maxItems: 2000` + - `OutputText object { text, type }` A text content part produced by the agent. @@ -7871,6 +9232,8 @@ Schema name: `SessionEventAgentSessionSubagentActive` The text produced by the agent. + `minLength: 0` + - `type: "output_text"` The content type. Always `output_text`. @@ -7885,6 +9248,8 @@ Schema name: `SessionEventAgentSessionSubagentActive` The encrypted content payload. + `minLength: 0` + - `type: "encrypted_content"` The content type. Always `encrypted_content`. @@ -7895,6 +9260,8 @@ Schema name: `SessionEventAgentSessionSubagentActive` The runner-assigned nickname, or null when unavailable. + `minLength: 0` + - `object: "agent.session.subagent"` The object type. Always `agent.session.subagent`. @@ -7905,14 +9272,20 @@ Schema name: `SessionEventAgentSessionSubagentActive` The Unix timestamp, in seconds, when the subagent was first opened. Resuming does not change it. + `format: int64` + - `parent_agent_id: string` The ID of the agent that created this subagent. + `minLength: 0` + - `session_id: string` The ID of the session that owns the subagent. + `minLength: 0` + - `status: "active" or "closed"` The current status of the subagent. @@ -7970,6 +9343,8 @@ Schema name: `SessionEventAgentSessionSubagentClosed` The unique ID of the event. + `minLength: 0` + - `subagent: Subagent` The subagent that was closed. @@ -7978,14 +9353,20 @@ Schema name: `SessionEventAgentSessionSubagentClosed` The ID of the subagent. + `minLength: 0` + - `closed_at: number or null` The Unix timestamp, in seconds, when the subagent was closed. Null while active, including after resume. + `format: int64` + - `instructions: array of AgentContent or null` Initial task content, or null when unavailable. Text may contain placeholders for images or audio when only a preview is available. + `minItems: 0`, `maxItems: 2000` + - `OutputText object { text, type }` A text content part produced by the agent. @@ -7994,6 +9375,8 @@ Schema name: `SessionEventAgentSessionSubagentClosed` The text produced by the agent. + `minLength: 0` + - `type: "output_text"` The content type. Always `output_text`. @@ -8008,6 +9391,8 @@ Schema name: `SessionEventAgentSessionSubagentClosed` The encrypted content payload. + `minLength: 0` + - `type: "encrypted_content"` The content type. Always `encrypted_content`. @@ -8018,6 +9403,8 @@ Schema name: `SessionEventAgentSessionSubagentClosed` The runner-assigned nickname, or null when unavailable. + `minLength: 0` + - `object: "agent.session.subagent"` The object type. Always `agent.session.subagent`. @@ -8028,14 +9415,20 @@ Schema name: `SessionEventAgentSessionSubagentClosed` The Unix timestamp, in seconds, when the subagent was first opened. Resuming does not change it. + `format: int64` + - `parent_agent_id: string` The ID of the agent that created this subagent. + `minLength: 0` + - `session_id: string` The ID of the session that owns the subagent. + `minLength: 0` + - `status: "active" or "closed"` The current status of the subagent. @@ -8093,6 +9486,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The unique ID of the event. + `minLength: 0` + - `item: AgentOutputItem` The completed output item. @@ -8105,14 +9500,20 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the message. + `minLength: 0` + - `content: array of OutputText` The content of the message. + `minItems: 0`, `maxItems: 2000` + - `text: string` The text produced by the agent. + `minLength: 0` + - `type: "output_text"` The content type. Always `output_text`. @@ -8157,6 +9558,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the turn that contains this item. + `minLength: 0` + - `type: "message"` The item type. Always `message`. @@ -8171,6 +9574,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the reasoning item. + `minLength: 0` + - `status: AgentOutputItemStatus or null` The status of the reasoning item. @@ -8179,10 +9584,14 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The reasoning summaries produced by the agent. + `minItems: 0`, `maxItems: 2000` + - `text: string` The reasoning summary text. + `minLength: 0` + - `type: "summary_text"` The content type. Always `summary_text`. @@ -8193,6 +9602,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the turn that contains this item. + `minLength: 0` + - `type: "reasoning"` The item type. Always `reasoning`. @@ -8207,6 +9618,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the function call item. + `minLength: 0` + - `arguments: unknown` The arguments to pass to the function. @@ -8215,10 +9628,14 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID used to submit the function result. + `minLength: 0` + - `name: string` The name of the function to call. + `minLength: 0` + - `status: AgentFunctionCallStatus` The status of the function call. @@ -8243,6 +9660,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the turn that contains this item. + `minLength: 0` + - `type: "function_call"` The item type. Always `function_call`. @@ -8257,6 +9676,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the MCP call item. + `minLength: 0` + - `arguments: unknown` The arguments passed to the MCP tool. @@ -8269,6 +9690,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The name of the MCP tool. + `minLength: 0` + - `output: unknown` The output returned by the MCP tool, if any. @@ -8277,6 +9700,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The label of the MCP server. + `minLength: 0` + - `status: AgentFunctionCallStatus` The status of the MCP tool call. @@ -8285,6 +9710,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the turn that contains this item. + `minLength: 0` + - `type: "mcp_call"` The item type. Always `mcp_call`. @@ -8299,6 +9726,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the activity item. + `minLength: 0` + - `output: object { image_url, type } or null` The last screenshot emitted by the model. Null when screenshot inclusion is disabled or the call emitted no screenshot. @@ -8307,6 +9736,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The complete JPEG image as a base64 data URL. + `minLength: 0` + - `type: "computer_screenshot"` The content type. Always `computer_screenshot`. @@ -8321,10 +9752,14 @@ Schema name: `SessionEventAgentSessionTurnItemDone` A model-generated description of the activity, when available. + `minLength: 0` + - `turn_id: string` The ID of the turn that contains this item. + `minLength: 0` + - `type: "computer_use_call"` The item type. Always `computer_use_call`. @@ -8339,6 +9774,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The stable history item ID. + `minLength: 0` + - `request: object { credential_origin, fields, options, 2 more }` A registered form awaiting the application's response. @@ -8347,18 +9784,26 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The registered form or frame origin where values will be entered. + `minLength: 0` + - `fields: array of object { id, label, required, type }` Controls to render. All submitted values are sensitive. + `minItems: 0`, `maxItems: 2000` + - `id: string` The field ID to submit as field_id in a fields entry. + `minLength: 0` + - `label: string` The label to display beside the control. + `minLength: 0` + - `required: boolean` Whether this control requires a nonempty value. @@ -8367,26 +9812,38 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The rendering type, such as email, password, or text. + `minLength: 0` + - `options: array of object { id, field_ids, label }` Sign-in methods. Empty for a plain form. + `minItems: 0`, `maxItems: 2000` + - `id: string` The option ID to submit as selected_option. + `minLength: 0` + - `field_ids: array of string` IDs from the registered fields that this method accepts. + `minItems: 0`, `maxItems: 2000` + - `label: string` The method label to display. + `minLength: 0` + - `reason: string or null` Why the agent needs the user to sign in. + `minLength: 0` + - `type: "browser_authentication"` The type of the object. Always `browser_authentication`. @@ -8395,8 +9852,12 @@ Schema name: `SessionEventAgentSessionTurnItemDone` - `request_id: string` + `minLength: 0` + - `turn_id: string` + `minLength: 0` + - `type: "computer_use_approval_request"` The item type. Always computer_use_approval_request. @@ -8411,6 +9872,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the web search call. + `minLength: 0` + - `action: WebSearchAction or null` The action performed by the web search tool. @@ -8423,10 +9886,14 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The search queries, when multiple queries were used. + `minItems: 0`, `maxItems: 2000` + - `query: string or null` The search query, when a single query was used. + `minLength: 0` + - `type: "search"` The type of the object. Always `search`. @@ -8447,6 +9914,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The URL of the page that was opened. + `minLength: 0` + - `FindInPage object { pattern, type, url }` Finds text within a web page. @@ -8455,6 +9924,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The text pattern that was searched for. + `minLength: 0` + - `type: "find_in_page"` The type of the object. Always `find_in_page`. @@ -8465,6 +9936,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The URL of the page that was searched. + `minLength: 0` + - `Other object { type }` Another web search action. @@ -8483,6 +9956,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the turn that contains this item. + `minLength: 0` + - `type: "web_search_call"` The item type. Always `web_search_call`. @@ -8497,26 +9972,38 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the command execution item. + `minLength: 0` + - `command: string` The command that was executed. + `minLength: 0` + - `cwd: string or null` The working directory used to execute the command. + `minLength: 0` + - `duration_ms: number or null` The command duration in milliseconds. + `format: int64` + - `exit_code: number or null` The process exit code, if the command completed. + `format: int64` + - `output: string or null` The command output, if available. + `minLength: 0` + - `status: AgentFunctionCallStatus` The status of the command execution. @@ -8525,6 +10012,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the turn that contains this item. + `minLength: 0` + - `type: "command_execution"` The item type. Always `command_execution`. @@ -8539,14 +10028,20 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the tool call item. + `minLength: 0` + - `agent_id: string` The ID of the agent that requested the subagent. + `minLength: 0` + - `content: array of AgentContent` The task given to the spawned agent. + `minItems: 0`, `maxItems: 2000` + - `OutputText object { text, type }` A text content part produced by the agent. @@ -8555,6 +10050,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The text produced by the agent. + `minLength: 0` + - `type: "output_text"` The content type. Always `output_text`. @@ -8567,6 +10064,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The encrypted content payload. + `minLength: 0` + - `type: "encrypted_content"` The content type. Always `encrypted_content`. @@ -8577,10 +10076,14 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The model requested for the spawned agent. + `minLength: 0` + - `reasoning_effort: string or null` The reasoning effort requested for the spawned agent. + `minLength: 0` + - `status: AgentFunctionCallStatus` The status of the tool call. @@ -8589,6 +10092,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the turn that contains this item. + `minLength: 0` + - `type: "create_subagent_call"` The item type. Always `create_subagent_call`. @@ -8605,10 +10110,14 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the tool call item. + `minLength: 0` + - `content: array of AgentContent` The input sent to the receiving agent. + `minItems: 0`, `maxItems: 2000` + - `OutputText object { text, type }` A text content part produced by the agent. @@ -8621,10 +10130,14 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the agent receiving the input. + `minLength: 0` + - `sender_agent_id: string` The ID of the agent sending the input. + `minLength: 0` + - `status: AgentFunctionCallStatus` The status of the tool call. @@ -8633,6 +10146,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the turn that contains this item. + `minLength: 0` + - `type: "send_subagent_input_call"` The item type. Always `send_subagent_input_call`. @@ -8649,14 +10164,20 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the tool call item. + `minLength: 0` + - `recipient_agent_id: string` The ID of the agent to resume. + `minLength: 0` + - `sender_agent_id: string` The ID of the agent requesting the resume. + `minLength: 0` + - `status: AgentFunctionCallStatus` The status of the tool call. @@ -8665,6 +10186,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the turn that contains this item. + `minLength: 0` + - `type: "resume_subagent_call"` The item type. Always `resume_subagent_call`. @@ -8681,14 +10204,20 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the tool call item. + `minLength: 0` + - `recipient_agent_ids: array of string` The IDs of the agents to wait for. + `minItems: 0`, `maxItems: 2000` + - `sender_agent_id: string` The ID of the agent waiting for results. + `minLength: 0` + - `status: AgentFunctionCallStatus` The status of the tool call. @@ -8697,6 +10226,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the turn that contains this item. + `minLength: 0` + - `type: "wait_for_subagents_call"` The item type. Always `wait_for_subagents_call`. @@ -8713,14 +10244,20 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the tool call item. + `minLength: 0` + - `recipient_agent_id: string` The ID of the agent to interrupt. + `minLength: 0` + - `sender_agent_id: string` The ID of the agent requesting the interrupt. + `minLength: 0` + - `status: AgentFunctionCallStatus` The status of the tool call. @@ -8729,6 +10266,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the turn that contains this item. + `minLength: 0` + - `type: "interrupt_subagent_call"` The item type. Always `interrupt_subagent_call`. @@ -8745,14 +10284,20 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the tool call item. + `minLength: 0` + - `recipient_agent_id: string` The ID of the agent to close. + `minLength: 0` + - `sender_agent_id: string` The ID of the agent requesting the close. + `minLength: 0` + - `status: AgentFunctionCallStatus` The status of the tool call. @@ -8761,6 +10306,8 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The ID of the turn that contains this item. + `minLength: 0` + - `type: "close_subagent_call"` The item type. Always `close_subagent_call`. @@ -8773,14 +10320,20 @@ Schema name: `SessionEventAgentSessionTurnItemDone` The index of the output item in the turn output. + `format: int64`, `minimum: 0`, `maximum: 4294967295` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `turn_id: string or null` The ID of the turn associated with the event, when applicable. + `minLength: 0` + - `type: "agent.session.turn.item.done"` The type of the object. Always `agent.session.turn.item.done`. @@ -8827,18 +10380,26 @@ Schema name: `SessionEventAgentSessionTurnContentPartAdded` The index of the content part in the message. + `format: int64`, `minimum: 0`, `maximum: 4294967295` + - `event_id: string` The unique ID of the event. + `minLength: 0` + - `item_id: string` The ID of the message item. + `minLength: 0` + - `output_index: number` The index of the item in the turn output. + `format: int64`, `minimum: 0`, `maximum: 4294967295` + - `part: OutputText` The initial content part. @@ -8847,6 +10408,8 @@ Schema name: `SessionEventAgentSessionTurnContentPartAdded` The text produced by the agent. + `minLength: 0` + - `type: "output_text"` The content type. Always `output_text`. @@ -8857,10 +10420,14 @@ Schema name: `SessionEventAgentSessionTurnContentPartAdded` The ID of the session associated with the event. + `minLength: 0` + - `turn_id: string or null` The ID of the turn associated with the event, when applicable. + `minLength: 0` + - `type: "agent.session.turn.content_part.added"` The type of the object. Always `agent.session.turn.content_part.added`. @@ -8899,18 +10466,26 @@ Schema name: `SessionEventAgentSessionTurnContentPartDone` The index of the content part in the message. + `format: int64`, `minimum: 0`, `maximum: 4294967295` + - `event_id: string` The unique ID of the event. + `minLength: 0` + - `item_id: string` The ID of the message item. + `minLength: 0` + - `output_index: number` The index of the item in the turn output. + `format: int64`, `minimum: 0`, `maximum: 4294967295` + - `part: OutputText` The completed content part. @@ -8919,6 +10494,8 @@ Schema name: `SessionEventAgentSessionTurnContentPartDone` The text produced by the agent. + `minLength: 0` + - `type: "output_text"` The content type. Always `output_text`. @@ -8929,10 +10506,14 @@ Schema name: `SessionEventAgentSessionTurnContentPartDone` The ID of the session associated with the event. + `minLength: 0` + - `turn_id: string or null` The ID of the turn associated with the event, when applicable. + `minLength: 0` + - `type: "agent.session.turn.content_part.done"` The type of the object. Always `agent.session.turn.content_part.done`. @@ -8971,30 +10552,44 @@ Schema name: `SessionEventAgentSessionTurnOutputTextDelta` The index of the content part in the message. + `format: int64`, `minimum: 0`, `maximum: 4294967295` + - `delta: string` The text that was appended. + `minLength: 0` + - `event_id: string` The unique ID of the event. + `minLength: 0` + - `item_id: string` The ID of the message item. + `minLength: 0` + - `output_index: number` The index of the item in the turn output. + `format: int64`, `minimum: 0`, `maximum: 4294967295` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `turn_id: string or null` The ID of the turn associated with the event, when applicable. + `minLength: 0` + - `type: "agent.session.turn.output_text.delta"` The type of the object. Always `agent.session.turn.output_text.delta`. @@ -9030,30 +10625,44 @@ Schema name: `SessionEventAgentSessionTurnOutputTextDone` The index of the content part in the message. + `format: int64`, `minimum: 0`, `maximum: 4294967295` + - `event_id: string` The unique ID of the event. + `minLength: 0` + - `item_id: string` The ID of the message item. + `minLength: 0` + - `output_index: number` The index of the item in the turn output. + `format: int64`, `minimum: 0`, `maximum: 4294967295` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `text: string` The complete output text. + `minLength: 0` + - `turn_id: string or null` The ID of the turn associated with the event, when applicable. + `minLength: 0` + - `type: "agent.session.turn.output_text.done"` The type of the object. Always `agent.session.turn.output_text.done`. @@ -9089,14 +10698,20 @@ Schema name: `SessionEventAgentSessionTurnReasoningSummaryPartAdded` The unique ID of the event. + `minLength: 0` + - `item_id: string` The ID of the reasoning item. + `minLength: 0` + - `output_index: number` The index of the item in the turn output. + `format: int64`, `minimum: 0`, `maximum: 4294967295` + - `part: SummaryText` The initial summary part. @@ -9105,6 +10720,8 @@ Schema name: `SessionEventAgentSessionTurnReasoningSummaryPartAdded` The reasoning summary text. + `minLength: 0` + - `type: "summary_text"` The content type. Always `summary_text`. @@ -9115,14 +10732,20 @@ Schema name: `SessionEventAgentSessionTurnReasoningSummaryPartAdded` The ID of the session associated with the event. + `minLength: 0` + - `summary_index: number` The index of the summary content part. + `format: int64`, `minimum: 0`, `maximum: 4294967295` + - `turn_id: string or null` The ID of the turn associated with the event, when applicable. + `minLength: 0` + - `type: "agent.session.turn.reasoning_summary_part.added"` The type of the object. Always `agent.session.turn.reasoning_summary_part.added`. @@ -9161,14 +10784,20 @@ Schema name: `SessionEventAgentSessionTurnReasoningSummaryPartDone` The unique ID of the event. + `minLength: 0` + - `item_id: string` The ID of the reasoning item. + `minLength: 0` + - `output_index: number` The index of the item in the turn output. + `format: int64`, `minimum: 0`, `maximum: 4294967295` + - `part: SummaryText` The completed summary part. @@ -9177,6 +10806,8 @@ Schema name: `SessionEventAgentSessionTurnReasoningSummaryPartDone` The reasoning summary text. + `minLength: 0` + - `type: "summary_text"` The content type. Always `summary_text`. @@ -9187,6 +10818,8 @@ Schema name: `SessionEventAgentSessionTurnReasoningSummaryPartDone` The ID of the session associated with the event. + `minLength: 0` + - `status: "incomplete" or null` Present as `incomplete` when summary generation was interrupted. @@ -9197,10 +10830,14 @@ Schema name: `SessionEventAgentSessionTurnReasoningSummaryPartDone` The index of the summary part. + `format: int64`, `minimum: 0`, `maximum: 4294967295` + - `turn_id: string or null` The ID of the turn associated with the event, when applicable. + `minLength: 0` + - `type: "agent.session.turn.reasoning_summary_part.done"` The type of the object. Always `agent.session.turn.reasoning_summary_part.done`. @@ -9240,30 +10877,44 @@ Schema name: `SessionEventAgentSessionTurnReasoningSummaryTextDelta` The summary text that was appended. + `minLength: 0` + - `event_id: string` The unique ID of the event. + `minLength: 0` + - `item_id: string` The ID of the reasoning item. + `minLength: 0` + - `output_index: number` The index of the item in the turn output. + `format: int64`, `minimum: 0`, `maximum: 4294967295` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `summary_index: number` The index of the summary content part. + `format: int64`, `minimum: 0`, `maximum: 4294967295` + - `turn_id: string or null` The ID of the turn associated with the event, when applicable. + `minLength: 0` + - `type: "agent.session.turn.reasoning_summary_text.delta"` The type of the object. Always `agent.session.turn.reasoning_summary_text.delta`. @@ -9299,30 +10950,44 @@ Schema name: `SessionEventAgentSessionTurnReasoningSummaryTextDone` The unique ID of the event. + `minLength: 0` + - `item_id: string` The ID of the reasoning item. + `minLength: 0` + - `output_index: number` The index of the item in the turn output. + `format: int64`, `minimum: 0`, `maximum: 4294967295` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `summary_index: number` The index of the summary content part. + `format: int64`, `minimum: 0`, `maximum: 4294967295` + - `text: string` The complete reasoning summary text. + `minLength: 0` + - `turn_id: string or null` The ID of the turn associated with the event, when applicable. + `minLength: 0` + - `type: "agent.session.turn.reasoning_summary_text.done"` The type of the object. Always `agent.session.turn.reasoning_summary_text.done`. @@ -9362,26 +11027,38 @@ Schema name: `SessionEventError` The machine-readable error code, if any. + `minLength: 0` + - `message: string` A customer-safe explanation of the error. + `minLength: 0` + - `param: string or null` The request parameter associated with the error, if any. + `minLength: 0` + - `type: string` The error type. + `minLength: 0` + - `event_id: string` The unique ID of the event. + `minLength: 0` + - `session_id: string` The ID of the session associated with the event. + `minLength: 0` + - `type: "error"` The type of the object. Always `error`.