pub struct AfterToolCallResult {
pub content: Option<Vec<Content>>,
pub details: Option<Value>,
pub is_error: Option<bool>,
}Expand description
Partial override returned from after_tool_call (matching pi’s AfterToolCallResult).
Merge semantics are field-by-field: provided fields replace the original; omitted fields keep their values.
Fields§
§content: Option<Vec<Content>>If provided, replaces the tool result content array in full.
details: Option<Value>If provided, replaces the tool result details value in full.
is_error: Option<bool>If provided, replaces the tool result error flag.
Auto Trait Implementations§
impl Freeze for AfterToolCallResult
impl RefUnwindSafe for AfterToolCallResult
impl Send for AfterToolCallResult
impl Sync for AfterToolCallResult
impl Unpin for AfterToolCallResult
impl UnsafeUnpin for AfterToolCallResult
impl UnwindSafe for AfterToolCallResult
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