pub struct AutoApprove;Expand description
Always approves. Useful when you want the wrapper structure but no actual gating.
Trait Implementations§
Source§impl Approver for AutoApprove
impl Approver for AutoApprove
Source§fn approve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_: &'life1 str,
_: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<Decision>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn approve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_: &'life1 str,
_: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<Decision>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Inspect a pending tool call and return a
Decision.Auto Trait Implementations§
impl Freeze for AutoApprove
impl RefUnwindSafe for AutoApprove
impl Send for AutoApprove
impl Sync for AutoApprove
impl Unpin for AutoApprove
impl UnsafeUnpin for AutoApprove
impl UnwindSafe for AutoApprove
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