Skip to main content

Module streaming

Module streaming 

Source
Expand description

Streaming support for real-time message generation.

This module provides the MessageStream struct which handles Server-Sent Events (SSE) from the Anthropic API, accumulates messages from incremental updates, and provides an event-driven API for processing streaming responses.

Modules§

events
Event handling system for MessageStream.

Structs§

MessageStream
A streaming response from the Anthropic API.