#[non_exhaustive]pub enum ToolVerdict {
Allowed,
Denied {
reason: String,
},
Rewritten,
AwaitingApproval,
}Expand description
What the agent settled on for a tool call before running it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Allowed
The call runs as the model made it.
Denied
The call does not run; the model is told reason.
Rewritten
The call runs with arguments a hook replaced.
AwaitingApproval
Trait Implementations§
Source§impl Clone for ToolVerdict
impl Clone for ToolVerdict
Source§impl Debug for ToolVerdict
impl Debug for ToolVerdict
Source§impl PartialEq for ToolVerdict
impl PartialEq for ToolVerdict
impl StructuralPartialEq for ToolVerdict
Auto Trait Implementations§
impl Forget for ToolVerdict
impl Freeze for ToolVerdict
impl Move for ToolVerdict
impl RefUnwindSafe for ToolVerdict
impl Send for ToolVerdict
impl Sync for ToolVerdict
impl Unpin for ToolVerdict
impl UnsafeUnpin for ToolVerdict
impl UnwindSafe for ToolVerdict
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