Skip to main content

Module claude

Module claude 

Source
Expand description

Strict buffered Claude Messages stream collection and event synthesis.

Structs§

ClaudeStreamCollector
Native Claude lifecycle collector. Every failed push poisons the stream; EOF never substitutes for message_stop or an unclosed content block.
ClaudeStreamLimits

Functions§

synthesize_claude_stream
Synthesize native block lifecycles, retaining every declared content variant. Bound the cleaned input before making copies, then validate each emitted event immediately rather than building an unchecked event log.