Skip to main content

LoopDriver

Trait LoopDriver 

Source
pub trait LoopDriver: Send + Sync {
    type Ctx: Send;

    // Required method
    fn drive(
        &self,
        ctx: Self::Ctx,
    ) -> Pin<Box<dyn Stream<Item = LoopOutcome> + Send>>;
}
Expand description

Seam (DESIGN §6.2): the agent loop as control flow inside a drain. Built-in: the async ReAct loop (kian-loop). The context type is left abstract on purpose — it is the drain handle surface (inbox take, event append, …) that the orchestrator provides; the core does not model execution internals (layered iron rule).

Required Associated Types§

Required Methods§

Source

fn drive( &self, ctx: Self::Ctx, ) -> Pin<Box<dyn Stream<Item = LoopOutcome> + Send>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§