Streaming events
When you create a Response with
stream set to true, the server will emit server-sent events to the
client as the Response is generated. This section contains the events that
are emitted by the server.
Emitted when a new content part is added.
Emitted when a content part is done.
Emitted when there is an additional text delta.
Emitted when text content is finalized.
Emitted when there is a partial refusal text.
Emitted when refusal text is finalized.
Emitted when function-call arguments are finalized.
Emitted when a delta is added to a reasoning text.
Emitted when a reasoning text is completed.
Emitted when a partial image is available during image generation streaming.
Emitted when an MCP tool call has completed successfully.
Emitted when an MCP tool call has failed.
Emitted when an MCP tool call is in progress.
Emitted when the attempt to list available MCP tools has failed.
Emitted when the code interpreter is actively interpreting the code snippet.
Event representing a delta (partial update) to the input of a custom tool call.
Event indicating that input for a custom tool call is complete.