One of the following:
BetaResponseAudioWsDelta extends BetaResponseAudioDeltaEvent { delta, sequence_number, type, agent } { stream_id }

Emitted when there is a partial audio response.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseAudioWsDone extends BetaResponseAudioDoneEvent { sequence_number, type, agent } { stream_id }

Emitted when the audio response is complete.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseAudioTranscriptWsDelta extends BetaResponseAudioTranscriptDeltaEvent { delta, sequence_number, type, agent } { stream_id }

Emitted when there is a partial transcript of audio.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseAudioTranscriptWsDone extends BetaResponseAudioTranscriptDoneEvent { sequence_number, type, agent } { stream_id }

Emitted when the full audio transcript is completed.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseCodeInterpreterCallCodeWsDelta extends BetaResponseCodeInterpreterCallCodeDeltaEvent { delta, item_id, output_index, 3 more } { stream_id }

Emitted when a partial code snippet is streamed by the code interpreter.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseCodeInterpreterCallCodeWsDone extends BetaResponseCodeInterpreterCallCodeDoneEvent { code, item_id, output_index, 3 more } { stream_id }

Emitted when the code snippet is finalized by the code interpreter.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseCodeInterpreterCallWsCompleted extends BetaResponseCodeInterpreterCallCompletedEvent { item_id, output_index, sequence_number, 2 more } { stream_id }

Emitted when the code interpreter call is completed.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseCodeInterpreterCallInWsProgress extends BetaResponseCodeInterpreterCallInProgressEvent { item_id, output_index, sequence_number, 2 more } { stream_id }

Emitted when a code interpreter call is in progress.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseCodeInterpreterCallWsInterpreting extends BetaResponseCodeInterpreterCallInterpretingEvent { item_id, output_index, sequence_number, 2 more } { stream_id }

Emitted when the code interpreter is actively interpreting the code snippet.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseCompactionWsCompacting extends BetaResponseCompactionCompactingEvent { item_id, output_index, sequence_number, 2 more } { stream_id }

Emitted when new summary content is sampled for a compaction trigger. Contains no summary content.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseWsCompleted extends BetaResponseCompletedEvent { response, sequence_number, type, agent } { stream_id }

Emitted when the model response is complete.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseContentPartWsAdded extends BetaResponseContentPartAddedEvent { content_index, item_id, output_index, 4 more } { stream_id }

Emitted when a new content part is added.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseContentPartWsDone extends BetaResponseContentPartDoneEvent { content_index, item_id, output_index, 4 more } { stream_id }

Emitted when a content part is done.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseWsCreated extends BetaResponseCreatedEvent { response, sequence_number, type, agent } { stream_id }

An event that is emitted when a response is created.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseFileSearchCallWsCompleted extends BetaResponseFileSearchCallCompletedEvent { item_id, output_index, sequence_number, 2 more } { stream_id }

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

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseFileSearchCallInWsProgress extends BetaResponseFileSearchCallInProgressEvent { item_id, output_index, sequence_number, 2 more } { stream_id }

Emitted when a file search call is initiated.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseFileSearchCallWsSearching extends BetaResponseFileSearchCallSearchingEvent { item_id, output_index, sequence_number, 2 more } { stream_id }

Emitted when a file search is currently searching.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseFunctionCallArgumentsWsDelta extends BetaResponseFunctionCallArgumentsDeltaEvent { delta, item_id, output_index, 3 more } { stream_id }

Emitted when there is a partial function-call arguments delta.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseFunctionCallArgumentsWsDone extends BetaResponseFunctionCallArgumentsDoneEvent { arguments, item_id, output_index, 3 more } { stream_id }

Emitted when function-call arguments are finalized.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseShellCallCommandWsAdded extends BetaResponseShellCallCommandAddedEvent { command, command_index, output_index, 3 more } { stream_id }

A streaming event that indicated a shell command was added to a tool call.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseShellCallCommandWsDelta extends BetaResponseShellCallCommandDeltaEvent { command_index, delta, output_index, 4 more } { stream_id }

A streaming event that indicated a shell command was incrementally updated.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseShellCallCommandWsDone extends BetaResponseShellCallCommandDoneEvent { command, command_index, output_index, 3 more } { stream_id }

A streaming event that indicated a shell command was completed.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseShellCallOutputContentWsDelta extends BetaResponseShellCallOutputContentDeltaEvent { command_index, delta, item_id, 4 more } { stream_id }

A streaming event that indicated shell call output was incrementally added.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseShellCallOutputContentWsDone extends BetaResponseShellCallOutputContentDoneEvent { command_index, item_id, output, 4 more } { stream_id }

A streaming event that indicated shell call output was completed.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseInWsProgress extends BetaResponseInProgressEvent { response, sequence_number, type, agent } { stream_id }

Emitted when the response is in progress.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseWsFailed extends BetaResponseFailedEvent { response, sequence_number, type, agent } { stream_id }

An event that is emitted when a response fails.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseWsIncomplete extends BetaResponseIncompleteEvent { response, sequence_number, type, agent } { stream_id }

An event that is emitted when a response finishes as incomplete.

Over WebSocket, steering can finish a response with response.incomplete_details.reason set to steered, followed automatically by a successor response.created that commits the queued steering input.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseOutputItemWsAdded extends BetaResponseOutputItemAddedEvent { item, output_index, sequence_number, 2 more } { stream_id }

Emitted when a new output item is added.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseOutputItemWsDone extends BetaResponseOutputItemDoneEvent { item, output_index, sequence_number, 2 more } { stream_id }

Emitted when an output item is marked done.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseReasoningSummaryPartWsAdded extends BetaResponseReasoningSummaryPartAddedEvent { item_id, output_index, part, 4 more } { stream_id }

Emitted when a new reasoning summary part is added.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseReasoningSummaryPartWsDone extends BetaResponseReasoningSummaryPartDoneEvent { item_id, output_index, part, 5 more } { stream_id }

Emitted when a reasoning summary part is completed.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseReasoningSummaryTextWsDelta extends BetaResponseReasoningSummaryTextDeltaEvent { delta, item_id, output_index, 4 more } { stream_id }

Emitted when a delta is added to a reasoning summary text.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseReasoningSummaryTextWsDone extends BetaResponseReasoningSummaryTextDoneEvent { item_id, output_index, sequence_number, 4 more } { stream_id }

Emitted when a reasoning summary text is completed.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseReasoningTextWsDelta extends BetaResponseReasoningTextDeltaEvent { content_index, delta, item_id, 4 more } { stream_id }

Emitted when a delta is added to a reasoning text.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseReasoningTextWsDone extends BetaResponseReasoningTextDoneEvent { content_index, item_id, output_index, 4 more } { stream_id }

Emitted when a reasoning text is completed.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseRefusalWsDelta extends BetaResponseRefusalDeltaEvent { content_index, delta, item_id, 4 more } { stream_id }

Emitted when there is a partial refusal text.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseRefusalWsDone extends BetaResponseRefusalDoneEvent { content_index, item_id, output_index, 4 more } { stream_id }

Emitted when refusal text is finalized.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseTextWsDelta extends BetaResponseTextDeltaEvent { content_index, delta, item_id, 5 more } { stream_id }

Emitted when there is an additional text delta.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseTextWsDone extends BetaResponseTextDoneEvent { content_index, item_id, logprobs, 5 more } { stream_id }

Emitted when text content is finalized.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseWebSearchCallWsCompleted extends BetaResponseWebSearchCallCompletedEvent { item_id, output_index, sequence_number, 2 more } { stream_id }

Emitted when a web search call is completed.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseWebSearchCallInWsProgress extends BetaResponseWebSearchCallInProgressEvent { item_id, output_index, sequence_number, 2 more } { stream_id }

Emitted when a web search call is initiated.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseWebSearchCallWsSearching extends BetaResponseWebSearchCallSearchingEvent { item_id, output_index, sequence_number, 2 more } { stream_id }

Emitted when a web search call is executing.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseImageGenCallWsCompleted extends BetaResponseImageGenCallCompletedEvent { item_id, output_index, sequence_number, 2 more } { stream_id }

Emitted when an image generation tool call has completed and the final image is available.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseImageGenCallWsGenerating extends BetaResponseImageGenCallGeneratingEvent { item_id, output_index, sequence_number, 2 more } { stream_id }

Emitted when an image generation tool call is actively generating an image (intermediate state).

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseImageGenCallInWsProgress extends BetaResponseImageGenCallInProgressEvent { item_id, output_index, sequence_number, 2 more } { stream_id }

Emitted when an image generation tool call is in progress.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseImageGenCallPartialWsImage extends BetaResponseImageGenCallPartialImageEvent { item_id, output_index, partial_image_b64, 8 more } { stream_id }

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

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseMcpCallArgumentsWsDelta extends BetaResponseMcpCallArgumentsDeltaEvent { delta, item_id, output_index, 3 more } { stream_id }

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

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseMcpCallArgumentsWsDone extends BetaResponseMcpCallArgumentsDoneEvent { arguments, item_id, output_index, 3 more } { stream_id }

Emitted when the arguments for an MCP tool call are finalized.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseMcpCallWsCompleted extends BetaResponseMcpCallCompletedEvent { item_id, output_index, sequence_number, 2 more } { stream_id }

Emitted when an MCP tool call has completed successfully.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseMcpCallWsFailed extends BetaResponseMcpCallFailedEvent { item_id, output_index, sequence_number, 2 more } { stream_id }

Emitted when an MCP tool call has failed.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseMcpCallInWsProgress extends BetaResponseMcpCallInProgressEvent { item_id, output_index, sequence_number, 2 more } { stream_id }

Emitted when an MCP tool call is in progress.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseMcpListToolsWsCompleted extends BetaResponseMcpListToolsCompletedEvent { item_id, output_index, sequence_number, 2 more } { stream_id }

Emitted when the list of available MCP tools has been successfully retrieved.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseMcpListToolsWsFailed extends BetaResponseMcpListToolsFailedEvent { item_id, output_index, sequence_number, 2 more } { stream_id }

Emitted when the attempt to list available MCP tools has failed.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseMcpListToolsInWsProgress extends BetaResponseMcpListToolsInProgressEvent { item_id, output_index, sequence_number, 2 more } { stream_id }

Emitted when the system is in the process of retrieving the list of available MCP tools.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseOutputTextAnnotationWsAdded extends BetaResponseOutputTextAnnotationAddedEvent { annotation, annotation_index, content_index, 5 more } { stream_id }

Emitted when an annotation is added to output text content.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseWsQueued extends BetaResponseQueuedEvent { response, sequence_number, type, agent } { stream_id }

Emitted when a response is queued and waiting to be processed.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseCustomToolCallInputWsDelta extends BetaResponseCustomToolCallInputDeltaEvent { delta, item_id, output_index, 3 more } { stream_id }

Event representing a delta (partial update) to the input of a custom tool call.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseCustomToolCallInputWsDone extends BetaResponseCustomToolCallInputDoneEvent { input, item_id, output_index, 3 more } { stream_id }

Event indicating that input for a custom tool call is complete.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseWsError { error, type, agent, 3 more }

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

error: Error { code, message, param, 3 more }

Details about the error.

code: string | null

The error code that was emitted, if any.

message: string

The human-readable error message that was emitted.

param: string | null

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

type: string

The error type that was emitted.

headers?: Record<string, string>

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

misalignment?: Misalignment { detailed_explanation, error_type, review_target, steer }
detailed_explanation?: string

The public explanation for this block.

error_type?: (string & {}) | "potentially_unintended_data_transfer" | "potentially_unintended_data_access" | "potentially_unintended_destructive_activity" | "other"

An optional classification; clients must accept additional values.

One of the following:
(string & {})
This type repeats the enclosing schema.
"potentially_unintended_data_transfer" | "potentially_unintended_data_access" | "potentially_unintended_destructive_activity" | "other"
"potentially_unintended_data_transfer"
"potentially_unintended_data_access"
"potentially_unintended_destructive_activity"
"other"
review_target?: string | null

An opaque target for explicitly continuing this review, or null when unavailable.

minLength1
maxLength96
steer?: Steer { message }

An optional public continuation instruction.

message: string

The public continuation instruction.

type: "error"

The type of the event. Always error.

agent?: Agent | null

The agent that owns this multi-agent streaming event.

agent_name: string

The canonical name of the agent that produced this item.

sequence_number?: number

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

status?: number

The HTTP status code associated with a WebSocket protocol error.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

BetaResponseSteerAcceptedEvent { sequence_number, steer, type, stream_id }

Emitted when steering input has been validated and queued. Acceptance means the server owns the input, not that it has been applied. The successor’s response.created event is the commit point. If accepted input cannot be committed, response.steer.failed returns it with the same steering ID.

When the response stops for client-owned tool output or approval, the input remains queued and response.steer.pending is emitted after response.completed. Fill the pending event’s required_input stubs with saved results and send one matching explicit response.create per parent. Do not resend accepted input while it is still queued.

sequence_number: number

The sequence number for this event.

steer: Steer { id, previous_response_id }

The accepted steering submission.

id: string

The ID assigned to the steering submission.

previous_response_id: string

The ID of the response being steered.

type: "response.steer.accepted"

The event discriminator. Always response.steer.accepted.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the target response’s response.create event supplied a stream_id.

BetaResponseSteerPendingEvent { reason, required_input, sequence_number, 3 more }

Emitted when accepted steering input remains queued after the target response completes. The server still owns the input. Do not resend it. The successor’s response.created event is the commit point.

When reason is waiting_for_required_input, this event follows response.completed while the response waits for the tool results or approval decisions identified by required_input. Copy those stubs, fill their result fields using the ordinary response.create input schemas, and submit one continuation per parent with the same previous_response_id and WebSocket lane. Use saved results without rerunning tools. The queued steering input is prepended in submission order to the continuation’s input. That explicit request retains its own settings.

This notification is emitted at most once per steering submission. Multiple submissions for the same parent can report the same required inputs; they do not each require a separate continuation.

An extensible enum describing why accepted steering input is still queued. Clients should handle unknown values because additional reasons may be introduced. Known values include:

  • waiting_for_required_input: The response is waiting for the tool results or approval decisions identified by required_input.
required_input: Array<BetaResponseSteerRequiredInput>

Input stubs identifying outstanding client-owned tool results or approval decisions. Each stub contains identifying fields only; the client supplies the result before including it in response.create.

minItems1
One of the following:
FunctionCallOutput { call_id, name, type }

Supply output using the function tool call output input schema.

call_id: string
name: string
type: "function_call_output"
CustomToolCallOutput { call_id, type }

Supply output using the custom tool call output input schema. The original custom tool call supplies the tool’s name.

call_id: string
type: "custom_tool_call_output"
ComputerCallOutput { call_id, type }

Supply output using the computer tool call output input schema, including any required acknowledged_safety_checks.

call_id: string
type: "computer_call_output"
ShellCallOutput { call_id, type }

Supply output using the shell tool call output input schema. Each output entry includes stdout, stderr, and outcome.

call_id: string
type: "shell_call_output"
ApplyPatchCallOutput { call_id, type }

Supply status and optional output using the apply patch tool call output input schema.

call_id: string
type: "apply_patch_call_output"
ToolSearchOutput { call_id, execution, type }

Supply tools using the tool search output input schema, retaining execution: "client".

call_id: string
execution: "client"
type: "tool_search_output"
McpApprovalResponse { approval_request_id, type }

Supply approve using the MCP approval response input schema. An optional reason can be supplied when denying the request. The original approval request identifies the tool and server.

approval_request_id: string
type: "mcp_approval_response"
sequence_number: number

The sequence number for this event.

steer: Steer { id, previous_response_id }

The steering submission that remains queued.

id: string

The ID assigned to the steering submission.

previous_response_id: string

The ID of the response being steered.

type: "response.steer.pending"

The event discriminator. Always response.steer.pending.

stream_id?: string

The WebSocket lane that emitted this event. This field is present when the target response’s response.create event supplied a stream_id.

BetaResponseSteerFailedEvent { error, sequence_number, steer, 2 more }

Emitted when steering input is rejected or cannot be committed to a successor response. Returns the original, uncommitted input so the client can carry it into response.create when appropriate. Invalid input must be corrected before retrying.

Failures after acceptance include the same steering ID. Failures before an ID is allocated omit steer.id. A lost connection or missing acknowledgement leaves the outcome unknown; it is not proof that the input was rejected.

error: Error { code, message, type }

Information about why the input could not be committed.

A machine-readable steering error code. Clients should handle unknown values because additional codes may be introduced. Known values include:

  • response_not_found: The target response is not available on this connection.
  • invalid_input: The event or input failed validation.
  • steering_not_supported: The model or response execution mode does not support steering.
  • too_many_pending_steers: Too much steering input is pending for the response.
  • response_already_completed: The response completed and is no longer accepting steering input.
  • response_not_active: The response is no longer accepting steering input.
  • successor_creation_failed: The successor response could not be created.
message: string

A human-readable description of the error.

type: "invalid_request_error"

The error type. Always invalid_request_error.

sequence_number: number

The sequence number for this event.

steer: Steer { input, previous_response_id, id }

The steering submission that could not be committed.

Input to queue for a continuation of the response. Uses the same string or input-item shape as response.create.input, with a non-empty array when supplying input items.

Steering accepts only messages with the user role. Each message may contain only type, role, and content, with content as a string or an array of input_text, input_image, and input_file parts. The optional type must be message. Other roles, tool outputs, and item types are not supported for steering.

previous_response_id: string

The ID of the response that was targeted for steering.

id?: string

The ID assigned to the steering submission, if one was allocated.

type: "response.steer.failed"

The event discriminator. Always response.steer.failed.

stream_id?: string

The WebSocket lane that emitted this event, when the target response is available and its response.create event supplied a stream_id.

BetaResponseInjectCreatedEvent { response_id, sequence_number, type, stream_id }

Emitted when all injected input items were validated and committed to the active response.

response_id: string

The ID of the response that accepted the input.

sequence_number: number

The sequence number for this event.

type: "response.inject.created"

The event discriminator. Always response.inject.created.

stream_id?: string

The multiplexed WebSocket stream that emitted the event. This field is present only when WebSocket multiplexing is enabled separately.

BetaResponseInjectFailedEvent { error, input, response_id, 3 more }

Emitted when injected input could not be committed to a response. The event returns the uncommitted raw input so the client can retry it in another response when appropriate.

error: Error { code, message }

Information about why the input was not committed.

code: "response_already_completed" | "response_not_found"

A machine-readable error code.

One of the following:
"response_already_completed"
"response_not_found"
message: string

A human-readable description of the error.

input: Array<BetaResponseInputItem>

The raw input items that were not committed.

One of the following:
BetaEasyInputMessage { content, role, phase, type }

A message input to the model with a role indicating instruction following hierarchy. Instructions given with the developer or system role take precedence over instructions given with the user role. Messages with the assistant role are presumed to have been generated by the model in previous interactions.

content: string | BetaResponseInputMessageContentList { , , }

Text, image, or audio input to the model, used to generate a response. Can also contain previous assistant responses.

One of the following:
string
BetaResponseInputMessageContentList = Array<BetaResponseInputContent>

A list of one or many input items to the model, containing different content types.

One of the following:
BetaResponseInputText { text, type, prompt_cache_breakpoint }

A text input to the model.

text: string

The text input to the model.

type: "input_text"

The type of the input item. Always input_text.

prompt_cache_breakpoint?: PromptCacheBreakpoint { mode, ttl }

Marks the exact end of a reusable prompt prefix. When ttl is omitted, the breakpoint inherits the request’s prompt_cache_options.ttl; the boundary is not rounded to a token block.

mode: "explicit"

The breakpoint mode. Always explicit.

ttl?: "30m" | "12h"

The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

One of the following:
"30m"
"12h"
BetaResponseInputImage { detail, type, file_id, 2 more }

An image input to the model. Learn about image inputs.

The detail level of the image to be sent to the model. One of high, low, auto, or original. Defaults to auto.

type: "input_image"

The type of the input item. Always input_image.

file_id?: string | null

The ID of the file to be sent to the model.

image_url?: string | null

The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

formaturi
prompt_cache_breakpoint?: PromptCacheBreakpoint { mode, ttl }

Marks the exact end of a reusable prompt prefix. When ttl is omitted, the breakpoint inherits the request’s prompt_cache_options.ttl; the boundary is not rounded to a token block.

mode: "explicit"

The breakpoint mode. Always explicit.

ttl?: "30m" | "12h"

The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

One of the following:
"30m"
"12h"
BetaResponseInputFile { type, detail, file_data, 4 more }

A file input to the model.

type: "input_file"

The type of the input item. Always input_file.

detail?: "auto" | "low" | "high"

The detail level of the file to be sent to the model. Use auto to let the system select the detail level; for GPT-5.6 and later models, auto uses high-quality rendering, which may increase input token usage. Use low for lower-cost rendering, or high to render the file at higher quality. Defaults to auto.

One of the following:
"auto"
"low"
"high"
file_data?: string

The content of the file to be sent to the model.

file_id?: string | null

The ID of the file to be sent to the model.

file_url?: string

The URL of the file to be sent to the model.

formaturi
filename?: string

The name of the file to be sent to the model.

prompt_cache_breakpoint?: PromptCacheBreakpoint { mode, ttl }

Marks the exact end of a reusable prompt prefix. When ttl is omitted, the breakpoint inherits the request’s prompt_cache_options.ttl; the boundary is not rounded to a token block.

mode: "explicit"

The breakpoint mode. Always explicit.

ttl?: "30m" | "12h"

The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

One of the following:
"30m"
"12h"
role: "user" | "assistant" | "system" | "developer"

The role of the message input. One of user, assistant, system, or developer.

One of the following:
"user"
"assistant"
"system"
"developer"
phase?: "commentary" | "final_answer" | null

Labels an assistant message as intermediate commentary (commentary) or the final answer (final_answer). For models like gpt-5.3-codex and beyond, when sending follow-up requests, preserve and resend phase on all assistant messages — dropping it can degrade performance. Not used for user messages.

One of the following:
"commentary"
"final_answer"
type?: "message"

The type of the message input. Always message.

Message { content, role, agent, 2 more }

A message input to the model with a role indicating instruction following hierarchy. Instructions given with the developer or system role take precedence over instructions given with the user role.

A list of one or many input items to the model, containing different content types.

role: "user" | "system" | "developer"

The role of the message input. One of user, system, or developer.

One of the following:
"user"
"system"
"developer"
agent?: Agent | null

The agent that produced this item.

agent_name: string

The canonical name of the agent that produced this item.

status?: "in_progress" | "completed" | "incomplete"

The status of item. One of in_progress, completed, or incomplete. Populated when items are returned via API.

One of the following:
"in_progress"
"completed"
"incomplete"
type?: "message"

The type of the message input. Always set to message.

BetaResponseOutputMessage { id, content, role, 4 more }

An output message from the model.

id: string

The unique ID of the output message.

content: Array<BetaResponseOutputText { annotations, text, type, logprobs } | BetaResponseOutputRefusal { refusal, type } >

The content of the output message.

One of the following:
BetaResponseOutputText { annotations, text, type, logprobs }

A text output from the model.

annotations: Array<FileCitation { file_id, filename, index, type } | URLCitation { end_index, start_index, title, 2 more } | ContainerFileCitation { container_id, end_index, file_id, 3 more } | FilePath { file_id, index, type } >

The annotations of the text output.

One of the following:
FileCitation { file_id, filename, index, type }

A citation to a file.

file_id: string

The ID of the file.

filename: string

The filename of the file cited.

index: number

The index in the output text at which to insert the file citation.

type: "file_citation"

The type of the file citation. Always file_citation.

URLCitation { end_index, start_index, title, 2 more }

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

end_index: number

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

start_index: number

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

title: string

The title of the web resource.

type: "url_citation"

The type of the URL citation. Always url_citation.

url: string

The URL of the web resource.

formaturi
ContainerFileCitation { container_id, end_index, file_id, 3 more }

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

container_id: string

The ID of the container file.

end_index: number

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

file_id: string

The ID of the file.

filename: string

The filename of the container file cited.

start_index: number

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

type: "container_file_citation"

The type of the container file citation. Always container_file_citation.

FilePath { file_id, index, type }

A path to a file.

file_id: string

The ID of the file.

index: number

The index of the file in the list of files.

type: "file_path"

The type of the file path. Always file_path.

text: string

The text output from the model.

type: "output_text"

The type of the output text. Always output_text.

logprobs?: Array<Logprob>
token: string
bytes: Array<number>
logprob: number
top_logprobs: Array<TopLogprob>
token: string
bytes: Array<number>
logprob: number
BetaResponseOutputRefusal { refusal, type }

A refusal from the model.

refusal: string

The refusal explanation from the model.

type: "refusal"

The type of the refusal. Always refusal.

role: "assistant"

The role of the output message. Always assistant.

status: "in_progress" | "completed" | "incomplete"

The status of the message input. One of in_progress, completed, or incomplete. Populated when input items are returned via API.

One of the following:
"in_progress"
"completed"
"incomplete"
type: "message"

The type of the output message. Always message.

agent?: Agent | null

The agent that produced this item.

agent_name: string

The canonical name of the agent that produced this item.

phase?: "commentary" | "final_answer" | null

Labels an assistant message as intermediate commentary (commentary) or the final answer (final_answer). For models like gpt-5.3-codex and beyond, when sending follow-up requests, preserve and resend phase on all assistant messages — dropping it can degrade performance. Not used for user messages.

One of the following:
"commentary"
"final_answer"
BetaResponseFileSearchToolCall { id, queries, status, 3 more }

The results of a file search tool call. See the file search guide for more information.

id: string

The unique ID of the file search tool call.

queries: Array<string>

The queries used to search for files.

status: "in_progress" | "searching" | "completed" | 2 more

The status of the file search tool call. One of in_progress, searching, incomplete or failed,

One of the following:
"in_progress"
"searching"
"completed"
"incomplete"
"failed"
type: "file_search_call"

The type of the file search tool call. Always file_search_call.

agent?: Agent | null

The agent that produced this item.

agent_name: string

The canonical name of the agent that produced this item.

results?: Array<Result> | null

The results of the file search tool call.

attributes?: Record<string, string | number | boolean> | null

Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters, booleans, or numbers.

One of the following:
string
number
boolean
file_id?: string

The unique ID of the file.

filename?: string

The name of the file.

score?: number

The relevance score of the file - a value between 0 and 1.

formatfloat
text?: string

The text that was retrieved from the file.

BetaResponseComputerToolCall { id, call_id, pending_safety_checks, 5 more }

A tool call to a computer use tool. See the computer use guide for more information.

id: string

The unique ID of the computer call.

call_id: string

An identifier used when responding to the tool call with output.

pending_safety_checks: Array<PendingSafetyCheck>

The pending safety checks for the computer call.

id: string

The ID of the pending safety check.

code?: string | null

The type of the pending safety check.

message?: string | null

Details about the pending safety check.

status: "in_progress" | "completed" | "incomplete"

The status of the item. One of in_progress, completed, or incomplete. Populated when items are returned via API.

One of the following:
"in_progress"
"completed"
"incomplete"
type: "computer_call"

The type of the computer call. Always computer_call.

A click action.

actions?: BetaComputerActionList { , , , 6 more }

Flattened batched actions for computer_use. Each action includes an type discriminator and action-specific fields.

agent?: Agent | null

The agent that produced this item.

agent_name: string

The canonical name of the agent that produced this item.

ComputerCallOutput { call_id, output, type, 4 more }

The output of a computer tool call.

BetaResponseFunctionToolCall { arguments, call_id, name, 7 more }

A tool call to run a function. See the function calling guide for more information.

FunctionCallOutput { output, type, id, 6 more }

The output of a function tool call.

AgentMessage { author, content, recipient, 3 more }

A message routed between agents.

MultiAgentCall { action, arguments, call_id, 3 more }
MultiAgentCallOutput { action, call_id, output, 3 more }
ToolSearchCall { arguments, type, id, 4 more }
BetaResponseToolSearchOutputItemParam { tools, type, id, 4 more }
AdditionalTools { role, tools, type, 2 more }
BetaResponseConfigurationUpdateItemParam { type, id, agent, 2 more }

An update to the conversation’s response configuration. Supply reasoning, text, or both. Each setting stays in effect until a later update replaces it.

BetaResponseReasoningItem { id, summary, type, 4 more }

A description of the chain of thought used by a reasoning model while generating a response. Be sure to include these items in your input to the Responses API for subsequent turns of a conversation if you are manually managing context.

BetaResponseCompactionItemParam { encrypted_content, type, id, agent }

A compaction item generated by the v1/responses/compact API.

ImageGenerationCall { id, result, status, 10 more }

An image generation request made by the model.

BetaResponseCodeInterpreterToolCall { id, code, container_id, 4 more }

A tool call to run code.

LocalShellCall { id, action, call_id, 3 more }

A tool call to run a command on the local shell.

LocalShellCallOutput { id, output, type, 2 more }

The output of a local shell tool call.

ShellCall { action, call_id, type, 5 more }

A tool representing a request to execute one or more shell commands.

ShellCallOutput { call_id, output, type, 5 more }

The streamed output items emitted by a shell tool call.

ApplyPatchCall { call_id, operation, status, 4 more }

A tool call representing a request to create, delete, or update files using diff patches.

ApplyPatchCallOutput { call_id, status, type, 4 more }

The streamed output emitted by an apply patch tool call.

McpListTools { id, server_label, tools, 3 more }

A list of tools available on an MCP server.

McpApprovalRequest { id, arguments, name, 3 more }

A request for human approval of a tool invocation.

McpApprovalResponse { approval_request_id, approve, type, 3 more }

A response to an MCP approval request.

McpCall { id, arguments, name, 7 more }

An invocation of a tool on an MCP server.

BetaResponseCustomToolCallOutput { call_id, output, type, 3 more }

The output of a custom tool call from your code, being sent back to the model.

BetaResponseCustomToolCall { call_id, input, name, 6 more }

A call to a custom tool created by the model.

CompactionTrigger { type, id, agent }

Compacts the current context. Must be the final input item.

ItemReference { id, agent, type }

An internal identifier for an item to reference.

Program { id, call_id, code, 3 more }
ProgramOutput { id, call_id, result, 3 more }
response_id: string

The ID of the response that rejected the input.

sequence_number: number

The sequence number for this event.

type: "response.inject.failed"

The event discriminator. Always response.inject.failed.

stream_id?: string

The multiplexed WebSocket stream that emitted the event. This field is present only when WebSocket multiplexing is enabled separately.