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 file search call is initiated.
Emitted when a file search is currently searching.
Emitted when a file search call is completed (results found).
Emitted when a web search call is initiated.
Emitted when a web search call is executing.
Emitted when a web search call is completed.
Emitted when a new reasoning summary part is added.
Emitted when a delta is added to a reasoning summary text.
Emitted when a reasoning summary text is completed.
Emitted when a delta is added to a reasoning text.
Emitted when a reasoning text is completed.
Emitted when an image generation tool call has completed and the final image is available.
Emitted when an image generation tool call is actively generating an image (intermediate state).
Emitted when an image generation tool call is in progress.
Emitted when a partial image is available during image generation streaming.
Emitted when there is a delta (partial update) to the arguments of an MCP tool call.
Emitted when the arguments for an MCP tool call are finalized.
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 list of available MCP tools has been successfully retrieved.
Emitted when the attempt to list available MCP tools has failed.
Emitted when the system is in the process of retrieving the list of available MCP tools.
Emitted when the code snippet is finalized by the code interpreter.
Emitted when an annotation is added to output text content.
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.
A streaming event that indicated a shell command was added to a tool call.
A streaming event that indicated a shell command was completed.
A streaming event that indicated shell call output was incrementally added.
A streaming event that indicated shell call output was completed.