Expand description
Shared SSE (Server-Sent Events) parsing utilities.
Factored out from the Anthropic provider so all providers can reuse the same streaming infrastructure.
Structs§
- SseEvent
- A parsed SSE event with event type and data.
Functions§
- drive_
sse - Drives an EventSource, sending parsed events through a channel. Returns when the stream ends, errors, or is cancelled.