Expand description
Streaming response types for real-time message generation.
This module provides types for handling Server-Sent Events (SSE) from the Anthropic API when streaming is enabled. It includes all event types and delta structures needed to process incremental responses from Claude.
Structs§
- Message
Delta - Delta updates for message-level information during streaming.
- Message
Delta Usage - Usage statistics for streaming responses.
Enums§
- Content
Block Delta - Delta updates for content blocks during streaming.
- Message
Stream Event - Main stream event type that encompasses all possible streaming events.
- Text
Citation - Citation information for text blocks.
Type Aliases§
- Content
Block Delta Event - Content
Block Start Event - Content
Block Stop Event - Message
Delta Event - Message
Start Event - Type aliases for clarity and compatibility with the main API types.
- Message
Stop Event