pub struct AfterToolCallContext {
pub tool_call_id: String,
pub tool_name: String,
pub result: String,
pub is_error: bool,
}Expand description
Hook context for afterToolCall.
Fields§
§tool_call_id: StringThe tool call that was made.
tool_name: StringTool name.
result: StringThe tool result content.
is_error: boolWhether the result is an error.
Trait Implementations§
Source§impl Clone for AfterToolCallContext
impl Clone for AfterToolCallContext
Source§fn clone(&self) -> AfterToolCallContext
fn clone(&self) -> AfterToolCallContext
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 moreAuto Trait Implementations§
impl Freeze for AfterToolCallContext
impl RefUnwindSafe for AfterToolCallContext
impl Send for AfterToolCallContext
impl Sync for AfterToolCallContext
impl Unpin for AfterToolCallContext
impl UnsafeUnpin for AfterToolCallContext
impl UnwindSafe for AfterToolCallContext
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