pub struct BeforeToolCallContext {
pub session_id: SessionId,
pub model_turn: usize,
pub call_id: ToolCallId,
pub tool_name: ToolName,
pub arguments: ToolCallArguments,
pub is_bridge_tool: bool,
}Expand description
Read-only context supplied to a before_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 requested by the model.
arguments: ToolCallArgumentsJSON object arguments for this tool call.
is_bridge_tool: boolWhether this tool executes on the host bridge rather than inside Rust runtime.
Trait Implementations§
Source§impl Clone for BeforeToolCallContext
impl Clone for BeforeToolCallContext
Source§impl Debug for BeforeToolCallContext
impl Debug for BeforeToolCallContext
impl Eq for BeforeToolCallContext
Source§impl PartialEq for BeforeToolCallContext
impl PartialEq for BeforeToolCallContext
Source§impl Serialize for BeforeToolCallContext
impl Serialize for BeforeToolCallContext
impl StructuralPartialEq for BeforeToolCallContext
Auto Trait Implementations§
impl Forget for BeforeToolCallContext
impl Freeze for BeforeToolCallContext
impl Move for BeforeToolCallContext
impl RefUnwindSafe for BeforeToolCallContext
impl Send for BeforeToolCallContext
impl Sync for BeforeToolCallContext
impl Unpin for BeforeToolCallContext
impl UnsafeUnpin for BeforeToolCallContextwhere
*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 BeforeToolCallContext
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.