pub struct BeforeToolCallResult {
pub block: bool,
pub reason: Option<String>,
}Expand description
Result returned by before_tool_call hooks.
Fields§
§block: boolSet to true to block execution of this tool call.
reason: Option<String>Optional reason shown to the LLM when the call is blocked.
Implementations§
Trait Implementations§
Source§impl Clone for BeforeToolCallResult
impl Clone for BeforeToolCallResult
Source§fn clone(&self) -> BeforeToolCallResult
fn clone(&self) -> BeforeToolCallResult
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 moreSource§impl Debug for BeforeToolCallResult
impl Debug for BeforeToolCallResult
Source§impl Default for BeforeToolCallResult
impl Default for BeforeToolCallResult
Source§fn default() -> BeforeToolCallResult
fn default() -> BeforeToolCallResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BeforeToolCallResult
impl RefUnwindSafe for BeforeToolCallResult
impl Send for BeforeToolCallResult
impl Sync for BeforeToolCallResult
impl Unpin for BeforeToolCallResult
impl UnsafeUnpin for BeforeToolCallResult
impl UnwindSafe for BeforeToolCallResult
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