pub struct ToolCallRef {
pub id: String,
pub name: String,
pub arguments: Value,
}Expand description
A tool call as seen by the guard. Hosts adapt their provider-native types into this shape.
Fields§
§id: StringTool-call identifier — used to match results to calls.
name: StringTool name (read, write, bash, …).
arguments: ValueJSON-encoded arguments. Canonicalised before hashing so key ordering does not matter.
Trait Implementations§
Source§impl Clone for ToolCallRef
impl Clone for ToolCallRef
Source§fn clone(&self) -> ToolCallRef
fn clone(&self) -> ToolCallRef
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 ToolCallRef
impl RefUnwindSafe for ToolCallRef
impl Send for ToolCallRef
impl Sync for ToolCallRef
impl Unpin for ToolCallRef
impl UnsafeUnpin for ToolCallRef
impl UnwindSafe for ToolCallRef
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