pub enum PreToolAction {
Allow,
Deny(String),
Modify(Value),
}Expand description
Action returned by a PreToolUse hook.
Variants§
Allow
Allow the tool call to proceed unchanged.
Deny(String)
Deny the tool call with an explanation.
Modify(Value)
Allow but replace the arguments.
Trait Implementations§
Source§impl Clone for PreToolAction
impl Clone for PreToolAction
Source§fn clone(&self) -> PreToolAction
fn clone(&self) -> PreToolAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PreToolAction
impl RefUnwindSafe for PreToolAction
impl Send for PreToolAction
impl Sync for PreToolAction
impl Unpin for PreToolAction
impl UnsafeUnpin for PreToolAction
impl UnwindSafe for PreToolAction
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