pub struct SequentialFlow { /* private fields */ }Expand description
Ordered pipeline. Each step’s output is threaded as the next step’s input. Empty pipelines return their input unchanged (identity). First error short-circuits.
Implementations§
Source§impl SequentialFlow
impl SequentialFlow
Sourcepub fn step_agent<A>(self, agent: A) -> Selfwhere
A: Agent + 'static,
pub fn step_agent<A>(self, agent: A) -> Selfwhere
A: Agent + 'static,
Convenience builder that wraps a concrete klieo_core::agent::Agent
in crate::flow::AgentFlow + upcasts to Arc<dyn Flow> in one
call.
Equivalent to:
ⓘ
.step(std::sync::Arc::new(AgentFlow::new(agent)) as std::sync::Arc<dyn Flow>)Trait Implementations§
Source§impl Flow for SequentialFlow
impl Flow for SequentialFlow
Auto Trait Implementations§
impl !RefUnwindSafe for SequentialFlow
impl !UnwindSafe for SequentialFlow
impl Freeze for SequentialFlow
impl Send for SequentialFlow
impl Sync for SequentialFlow
impl Unpin for SequentialFlow
impl UnsafeUnpin for SequentialFlow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more