pub struct BeforeToolCallContext {
pub tool_call_id: String,
pub tool_name: String,
pub args: Value,
}Expand description
Hook context for beforeToolCall.
Fields§
§tool_call_id: StringThe tool call being made.
tool_name: StringTool name.
args: ValueValidated arguments.
Trait Implementations§
Source§impl Clone for BeforeToolCallContext
impl Clone for BeforeToolCallContext
Source§fn clone(&self) -> BeforeToolCallContext
fn clone(&self) -> BeforeToolCallContext
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 BeforeToolCallContext
impl RefUnwindSafe for BeforeToolCallContext
impl Send for BeforeToolCallContext
impl Sync for BeforeToolCallContext
impl Unpin for BeforeToolCallContext
impl UnsafeUnpin for BeforeToolCallContext
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