pub struct BeforeToolCallResult {
pub block: bool,
pub reason: String,
}Expand description
Result returned from before_tool_call (matching pi’s BeforeToolCallResult).
Returning { block: true } prevents execution; reason becomes the error text.
Fields§
§block: boolIf true, the tool execution is blocked.
reason: StringError message shown when block is true. If empty, a default message is used.
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