pub struct JoinTextAgent { /* private fields */ }Expand description
Waits for dispatched background tasks and collects their results.
Implementations§
Source§impl JoinTextAgent
impl JoinTextAgent
Trait Implementations§
Source§impl TextAgent for JoinTextAgent
impl TextAgent for JoinTextAgent
Source§fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 State,
) -> Pin<Box<dyn Future<Output = Result<String, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 State,
) -> Pin<Box<dyn Future<Output = Result<String, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute this agent. Reads/writes
state. Returns the final text output.Auto Trait Implementations§
impl Freeze for JoinTextAgent
impl !RefUnwindSafe for JoinTextAgent
impl Send for JoinTextAgent
impl Sync for JoinTextAgent
impl Unpin for JoinTextAgent
impl UnsafeUnpin for JoinTextAgent
impl !UnwindSafe for JoinTextAgent
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