Skip to main content

Module sse

Module sse 

Source
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.