Expand description
OpenResponses streaming event types.
This module defines the semantic streaming events used by the OpenResponses specification. See https://www.openresponses.org/specification#streaming for details.
Structs§
- Accumulated
Function Call - A completed accumulated function call.
- Accumulating
Function Call - A function call being accumulated from streaming deltas.
- Error
Event Data - Data for error events.
- Function
Call Delta Event Data - Data for function call argument delta events.
- Output
Item Event Data - Data for output item events.
- Reasoning
Content Delta Event Data - Data for reasoning content delta events.
- Response
Event Data - Data for response lifecycle events.
- Stream
Accumulator - Accumulator for building responses from streaming events.
- Stream
Error - Error details in streaming.
- Stream
Event - A streaming event from the OpenResponses API.
- Text
Delta Event Data - Data for text delta events.
Enums§
- Stream
Event Data - Data payload for different streaming events.
- Stream
Event Type - All possible streaming event types in OpenResponses.
Functions§
- extract_
event_ type - Extract the event type from an SSE event line.
- parse_
sse_ event - Parse a Server-Sent Events (SSE) line into a stream event.