pub struct BeforeToolCallContext {
pub assistant_message: AssistantMessage,
pub tool_call: ToolCall,
pub args: Value,
pub context: Context,
}Expand description
Context provided to before_tool_call hooks.
Fields§
§assistant_message: AssistantMessageThe assistant message that contained the tool call.
tool_call: ToolCallThe tool call being executed.
args: ValueParsed & validated arguments.
context: ContextThe current conversation context.
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 · 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