pub struct SequentialWorkflowBuilder { /* private fields */ }Expand description
SequentialWorkflow builder
Implementations§
Source§impl SequentialWorkflowBuilder
impl SequentialWorkflowBuilder
Sourcepub fn step(self, agent: impl Agent + 'static) -> SequentialWorkflowBuilder
pub fn step(self, agent: impl Agent + 'static) -> SequentialWorkflowBuilder
Add a step (uses previous step’s output directly as input)
Sourcepub fn step_with_transform(
self,
agent: impl Agent + 'static,
transform: impl Fn(&str) -> String + Send + Sync + 'static,
) -> SequentialWorkflowBuilder
pub fn step_with_transform( self, agent: impl Agent + 'static, transform: impl Fn(&str) -> String + Send + Sync + 'static, ) -> SequentialWorkflowBuilder
Add a step with a transform function applied to the input before execution
Add a step (using an already-wrapped SharedAgent)
pub fn build(self) -> SequentialWorkflow
Auto Trait Implementations§
impl Freeze for SequentialWorkflowBuilder
impl !RefUnwindSafe for SequentialWorkflowBuilder
impl Send for SequentialWorkflowBuilder
impl Sync for SequentialWorkflowBuilder
impl Unpin for SequentialWorkflowBuilder
impl UnsafeUnpin for SequentialWorkflowBuilder
impl !UnwindSafe for SequentialWorkflowBuilder
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request