Skip to main content

LoopStream

Type Alias LoopStream 

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

A pinned, boxed, Send stream of LoopEvent results.

The unified event stream from tool_loop_stream. Emits both LLM streaming events (text deltas, tool call fragments) and loop-level events (iteration boundaries, tool execution progress). Terminates with LoopEvent::Done carrying the final ToolLoopResult.

Aliased Typeยง

pub struct LoopStream { /* private fields */ }