Expand description
SSE decoder state machine for Anthropic Messages API streaming.
Maps Anthropic streaming events to NormalizedEvent using a stateful
decoder that tracks content block types and accumulates tool call JSON.
Structs§
- Stream
State - Tracks state across a streaming Anthropic response.
Functions§
- parse_
sse_ line - Parse a raw SSE line pair into a
StreamEvent.