Struct TapTextAgent
pub struct TapTextAgent { /* private fields */ }Expand description
Read-only observation agent. Calls a function with the state but cannot mutate it. Returns empty string. No LLM call.
Implementations§
§impl TapTextAgent
impl TapTextAgent
Trait Implementations§
§impl TextAgent for TapTextAgent
impl TextAgent for TapTextAgent
§fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 State,
) -> Pin<Box<dyn Future<Output = Result<String, AgentError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
TapTextAgent: '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
'life0: 'async_trait,
'life1: 'async_trait,
TapTextAgent: 'async_trait,
Execute this agent. Reads/writes
state. Returns the final text output.Auto Trait Implementations§
impl Freeze for TapTextAgent
impl !RefUnwindSafe for TapTextAgent
impl Send for TapTextAgent
impl Sync for TapTextAgent
impl Unpin for TapTextAgent
impl !UnwindSafe for TapTextAgent
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