pub enum BeforeToolResult {
Continue,
Skip(Value),
Deny(String),
}Expand description
The result of a before-tool callback.
Variants§
Continue
Continue with the tool call.
Skip(Value)
Skip the tool call and use this value as the result.
Deny(String)
Deny the tool call with a reason.
Trait Implementations§
Source§impl Clone for BeforeToolResult
impl Clone for BeforeToolResult
Source§fn clone(&self) -> BeforeToolResult
fn clone(&self) -> BeforeToolResult
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 BeforeToolResult
impl RefUnwindSafe for BeforeToolResult
impl Send for BeforeToolResult
impl Sync for BeforeToolResult
impl Unpin for BeforeToolResult
impl UnsafeUnpin for BeforeToolResult
impl UnwindSafe for BeforeToolResult
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