pub struct AutoApproveHandler;Expand description
A handler that auto-approves every request — for headless/dev mode.
Like a ref who lets everything slide. Useful during development and testing, but not recommended for production bouts.
Trait Implementations§
Source§impl ApprovalHandler for AutoApproveHandler
impl ApprovalHandler for AutoApproveHandler
Source§fn request_approval<'life0, 'life1, 'async_trait>(
&'life0 self,
_request: &'life1 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = PunchResult<ApprovalDecision>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn request_approval<'life0, 'life1, 'async_trait>(
&'life0 self,
_request: &'life1 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = PunchResult<ApprovalDecision>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Request approval for a tool call. The cornerman reviews the request
and returns their decision.
Source§impl Clone for AutoApproveHandler
impl Clone for AutoApproveHandler
Source§fn clone(&self) -> AutoApproveHandler
fn clone(&self) -> AutoApproveHandler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AutoApproveHandler
impl RefUnwindSafe for AutoApproveHandler
impl Send for AutoApproveHandler
impl Sync for AutoApproveHandler
impl Unpin for AutoApproveHandler
impl UnsafeUnpin for AutoApproveHandler
impl UnwindSafe for AutoApproveHandler
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