pub struct AfterToolDecision {
pub result: Option<ToolResult>,
pub mark_error: Option<bool>,
pub terminate: Option<bool>,
}Expand description
Override returned by an AfterToolCall hook. Each field is opt-in:
omitted fields keep the original tool result. No deep merge.
Fields§
§result: Option<ToolResult>§mark_error: Option<bool>§terminate: Option<bool>Implementations§
Source§impl AfterToolDecision
impl AfterToolDecision
pub fn passthrough() -> Self
pub fn override_result(result: ToolResult) -> Self
Trait Implementations§
Source§impl Clone for AfterToolDecision
impl Clone for AfterToolDecision
Source§fn clone(&self) -> AfterToolDecision
fn clone(&self) -> AfterToolDecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AfterToolDecision
impl Debug for AfterToolDecision
Source§impl Default for AfterToolDecision
impl Default for AfterToolDecision
Source§fn default() -> AfterToolDecision
fn default() -> AfterToolDecision
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AfterToolDecision
impl RefUnwindSafe for AfterToolDecision
impl Send for AfterToolDecision
impl Sync for AfterToolDecision
impl Unpin for AfterToolDecision
impl UnsafeUnpin for AfterToolDecision
impl UnwindSafe for AfterToolDecision
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