Skip to main content

AgentStream

Type Alias AgentStream 

Source
pub type AgentStream = Pin<Box<dyn Stream<Item = AgentEvent> + Send + 'static>>;
Expand description

Events of one turn; ends after Done or Error. Dropping it before then cancels the turn (see Agent::prompt_message).

Aliased Type§

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