Skip to main content

ChatStream

Type Alias ChatStream 

Source
pub type ChatStream = Pin<Box<dyn Stream<Item = Result<StreamEvent, LlmError>> + Send>>;
Expand description

A pinned, boxed, Send stream of StreamEvent results.

This type alias keeps signatures readable. Consume it with StreamExt from the futures crate.

Aliased Typeยง

pub struct ChatStream { /* private fields */ }