pub struct SequentialAgent { /* private fields */ }Expand description
Runs sub-agents in sequential order.
Each sub-agent runs to completion before the next starts.
If any sub-agent returns an error (including TransferRequested), execution stops
and the error is propagated to the caller.
Implementations§
Trait Implementations§
Source§impl Agent for SequentialAgent
impl Agent for SequentialAgent
Source§fn run_live<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut InvocationContext,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn run_live<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut InvocationContext,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Run this agent on a live session. Returns when the agent is done
(turn complete, transfer, or disconnect).
Auto Trait Implementations§
impl Freeze for SequentialAgent
impl !RefUnwindSafe for SequentialAgent
impl Send for SequentialAgent
impl Sync for SequentialAgent
impl Unpin for SequentialAgent
impl UnsafeUnpin for SequentialAgent
impl !UnwindSafe for SequentialAgent
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