pub enum ToolPolicy {
AllowOnly(Vec<String>),
AutoApprove(Vec<String>),
Inherit,
}Expand description
Provider-native built-in tool names. Filesystem permission modes remain an independent restriction; these settings cannot relax a read-only turn.
Variants§
AllowOnly(Vec<String>)
Expose only these built-ins; an empty list disables all built-ins.
MCP access is controlled separately by McpPolicy.
AutoApprove(Vec<String>)
Preapprove these tools without restricting other tool availability.
Inherit
Retain the harness’s own tool configuration.
Trait Implementations§
Source§impl Clone for ToolPolicy
impl Clone for ToolPolicy
Source§impl Debug for ToolPolicy
impl Debug for ToolPolicy
Source§impl Default for ToolPolicy
impl Default for ToolPolicy
impl Eq for ToolPolicy
Source§impl PartialEq for ToolPolicy
impl PartialEq for ToolPolicy
impl StructuralPartialEq for ToolPolicy
Auto Trait Implementations§
impl Forget for ToolPolicy
impl Freeze for ToolPolicy
impl Move for ToolPolicy
impl RefUnwindSafe for ToolPolicy
impl Send for ToolPolicy
impl Sync for ToolPolicy
impl Unpin for ToolPolicy
impl UnsafeUnpin for ToolPolicy
impl UnwindSafe for ToolPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.