pub struct ToolCallContext<'a> {
pub tool_call_id: &'a str,
pub tool_name: &'a str,
pub args: &'a Value,
}Expand description
Context handed to a ToolGate before a tool runs.
Fields§
§tool_call_id: &'a str§tool_name: &'a str§args: &'a ValueAuto Trait Implementations§
impl<'a> Forget for ToolCallContext<'a>
impl<'a> Freeze for ToolCallContext<'a>
impl<'a> Move for ToolCallContext<'a>
impl<'a> RefUnwindSafe for ToolCallContext<'a>
impl<'a> Send for ToolCallContext<'a>
impl<'a> Sync for ToolCallContext<'a>
impl<'a> Unpin for ToolCallContext<'a>
impl<'a> UnsafeUnpin for ToolCallContext<'a>
impl<'a> UnwindSafe for ToolCallContext<'a>
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