pub enum ToolCallVerdict {
Allow,
Deny {
reason: String,
},
Delegate {
reason: String,
},
}Expand description
The guard’s verdict on one tool call.
Variants§
Allow
The policy engine allowed the call.
Deny
The call is denied (unbound tool, missing resource argument, or an explicit policy deny).
Delegate
No engine could decide; treat as not-allowed unless a fallback engine resolves it.
Implementations§
Trait Implementations§
Source§impl Clone for ToolCallVerdict
impl Clone for ToolCallVerdict
Source§fn clone(&self) -> ToolCallVerdict
fn clone(&self) -> ToolCallVerdict
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 ToolCallVerdict
impl Debug for ToolCallVerdict
impl Eq for ToolCallVerdict
Source§impl PartialEq for ToolCallVerdict
impl PartialEq for ToolCallVerdict
impl StructuralPartialEq for ToolCallVerdict
Auto Trait Implementations§
impl Freeze for ToolCallVerdict
impl RefUnwindSafe for ToolCallVerdict
impl Send for ToolCallVerdict
impl Sync for ToolCallVerdict
impl Unpin for ToolCallVerdict
impl UnsafeUnpin for ToolCallVerdict
impl UnwindSafe for ToolCallVerdict
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