pub struct ToolCallRequest {
pub call_id: Option<String>,
pub tool_name: String,
pub arguments: Value,
}Expand description
One tool invocation requested by a model, normalized across frameworks.
Fields§
§call_id: Option<String>Framework-assigned call id (tool_call_id, tool_use_id, …), if any.
tool_name: StringTool name as the model addressed it.
arguments: ValueParsed JSON arguments (an empty object when the model sent none).
Implementations§
Trait Implementations§
Source§impl Clone for ToolCallRequest
impl Clone for ToolCallRequest
Source§fn clone(&self) -> ToolCallRequest
fn clone(&self) -> ToolCallRequest
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 moreSource§impl Debug for ToolCallRequest
impl Debug for ToolCallRequest
impl Eq for ToolCallRequest
Source§impl PartialEq for ToolCallRequest
impl PartialEq for ToolCallRequest
Source§fn eq(&self, other: &ToolCallRequest) -> bool
fn eq(&self, other: &ToolCallRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ToolCallRequest
Auto Trait Implementations§
impl Freeze for ToolCallRequest
impl RefUnwindSafe for ToolCallRequest
impl Send for ToolCallRequest
impl Sync for ToolCallRequest
impl Unpin for ToolCallRequest
impl UnsafeUnpin for ToolCallRequest
impl UnwindSafe for ToolCallRequest
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