pub struct BooleanTool;Expand description
A tool that returns a boolean result based on the agent’s analysis Used for binary decisions like goal verification
Trait Implementations§
Source§impl ToolImplementation for BooleanTool
impl ToolImplementation for BooleanTool
fn get_definition(&self) -> Tool
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
args: &'life1 Value,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn is_auto_approved(&self) -> bool
Auto Trait Implementations§
impl Freeze for BooleanTool
impl RefUnwindSafe for BooleanTool
impl Send for BooleanTool
impl Sync for BooleanTool
impl Unpin for BooleanTool
impl UnwindSafe for BooleanTool
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