pub struct AllowList { /* private fields */ }Expand description
Approver that approves only the listed tools.
Implementations§
Trait Implementations§
Source§impl Approver for AllowList
impl Approver for AllowList
Source§fn approve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tool_name: &'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,
tool_name: &'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 AllowList
impl RefUnwindSafe for AllowList
impl Send for AllowList
impl Sync for AllowList
impl Unpin for AllowList
impl UnsafeUnpin for AllowList
impl UnwindSafe for AllowList
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