Expand description
Enhanced Message Stream Handler
Implements streaming message processing with delta events, error handling, and abort control.
Based on Anthropic API standard event model.
Structs§
- Citation
- Citation reference
- Enhanced
Message Stream - Enhanced message stream handler
- Message
State - Message state accumulated from stream events
- Stream
Callbacks - Stream callbacks for event handling
- Stream
Options - Stream options for timeout and abort control
- Text
Content Block - Text content block
- Thinking
Content Block - Thinking content block
- Token
Usage - Token usage information
- Tool
UseContent Block - Tool use content block
Enums§
- Content
Block - Union content block type
- Content
Block Type - Content block types
- Delta
Type - Delta types for content updates
- Stream
Error - Stream error types
- Stream
Event Type - Anthropic API standard stream event types
Functions§
- parse_
tolerant_ json - Tolerant JSON parser that auto-fixes incomplete JSON