Skip to main content

CompletionStream

Type Alias CompletionStream 

Source
pub type CompletionStream = Pin<Box<dyn Stream<Item = Result<StreamEvent>> + Send + 'static>>;
Expand description

Type alias for a stream of completion events from an LLM provider.

The stream yields StreamEvents (content deltas, tool calls, finish reasons) and is consumed by the agent loop.

Aliased Typeยง

#[repr(transparent)]
pub struct CompletionStream { /* private fields */ }