pub struct AllowedToolsConfig {
pub always_allowed: Vec<String>,
pub requires_approval: Vec<String>,
pub never_allowed: Vec<String>,
pub allow_all: bool,
}Expand description
Allowed tools for callback
Fields§
§always_allowed: Vec<String>Tools that are always allowed
requires_approval: Vec<String>Tools that require approval
never_allowed: Vec<String>Tools that are never allowed for callback
allow_all: boolAllow all tools (dangerous)
Trait Implementations§
Source§impl Clone for AllowedToolsConfig
impl Clone for AllowedToolsConfig
Source§fn clone(&self) -> AllowedToolsConfig
fn clone(&self) -> AllowedToolsConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AllowedToolsConfig
impl Debug for AllowedToolsConfig
Auto Trait Implementations§
impl Freeze for AllowedToolsConfig
impl RefUnwindSafe for AllowedToolsConfig
impl Send for AllowedToolsConfig
impl Sync for AllowedToolsConfig
impl Unpin for AllowedToolsConfig
impl UnsafeUnpin for AllowedToolsConfig
impl UnwindSafe for AllowedToolsConfig
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