pub struct AfterToolCallContext {
pub assistant_message: AssistantMessage,
pub tool_call: ToolCall,
pub args: Value,
pub result: AgentToolResult,
pub is_error: bool,
pub context: Context,
}Expand description
Context provided to after_tool_call hooks.
Fields§
§assistant_message: AssistantMessageThe assistant message that contained the tool call.
tool_call: ToolCallThe tool call that was executed.
args: ValueArguments that were passed to the tool.
result: AgentToolResultThe result from tool execution.
is_error: boolWhether the tool execution reported an error.
context: ContextThe current conversation context.
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 · 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