pub struct AfterToolCallContext {
pub session_id: SessionId,
pub model_turn: usize,
pub call_id: ToolCallId,
pub tool_name: ToolName,
pub arguments: ToolCallArguments,
pub status: ToolCallResultStatus,
pub output: ToolOutput,
pub diagnostic: Option<ErrorInfo>,
pub is_bridge_tool: bool,
}Expand description
Read-only context supplied to an after_tool_call hook.
Fields§
§session_id: SessionIdOwning session identity.
model_turn: usizeOne-based model turn index that produced this tool call.
call_id: ToolCallIdModel-assigned tool call identifier.
tool_name: ToolNameTool name that executed.
arguments: ToolCallArgumentsEffective JSON object arguments used for execution.
status: ToolCallResultStatusExecution result status.
output: ToolOutputOutput produced by the tool.
diagnostic: Option<ErrorInfo>Optional structured diagnostic when status is failed.
is_bridge_tool: boolWhether this tool executed on the host bridge.
Trait Implementations§
Source§impl Clone for AfterToolCallContext
impl Clone for AfterToolCallContext
Source§impl Debug for AfterToolCallContext
impl Debug for AfterToolCallContext
impl Eq for AfterToolCallContext
Source§impl PartialEq for AfterToolCallContext
impl PartialEq for AfterToolCallContext
Source§impl Serialize for AfterToolCallContext
impl Serialize for AfterToolCallContext
impl StructuralPartialEq for AfterToolCallContext
Auto Trait Implementations§
impl Forget for AfterToolCallContext
impl Freeze for AfterToolCallContext
impl Move for AfterToolCallContext
impl RefUnwindSafe for AfterToolCallContext
impl Send for AfterToolCallContext
impl Sync for AfterToolCallContext
impl Unpin for AfterToolCallContext
impl UnsafeUnpin for AfterToolCallContextwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.