pub struct ToolCallPartDelta {
    pub tool_call_id: Option<String>,
    pub tool_name: Option<String>,
    pub args: Option<String>,
    pub id: Option<String>,
}Expand description
A delta update for a tool call part, used in streaming of a tool invocation.
Fields§
§tool_call_id: Option<String>The ID of the tool call, used to match the tool result with the tool call.
tool_name: Option<String>The name of the tool to call.
args: Option<String>The partial JSON string of the arguments to pass to the tool.
id: Option<String>The ID of the tool call, if applicable
This is different from tool_call_id, which is the ID used to match the
tool result with the tool call.
Implementations§
Trait Implementations§
Source§impl Clone for ToolCallPartDelta
 
impl Clone for ToolCallPartDelta
Source§fn clone(&self) -> ToolCallPartDelta
 
fn clone(&self) -> ToolCallPartDelta
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 moreSource§impl Debug for ToolCallPartDelta
 
impl Debug for ToolCallPartDelta
Source§impl Default for ToolCallPartDelta
 
impl Default for ToolCallPartDelta
Source§fn default() -> ToolCallPartDelta
 
fn default() -> ToolCallPartDelta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolCallPartDelta
 
impl<'de> Deserialize<'de> for ToolCallPartDelta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ToolCallPartDelta
 
impl PartialEq for ToolCallPartDelta
Source§impl Serialize for ToolCallPartDelta
 
impl Serialize for ToolCallPartDelta
impl StructuralPartialEq for ToolCallPartDelta
Auto Trait Implementations§
impl Freeze for ToolCallPartDelta
impl RefUnwindSafe for ToolCallPartDelta
impl Send for ToolCallPartDelta
impl Sync for ToolCallPartDelta
impl Unpin for ToolCallPartDelta
impl UnwindSafe for ToolCallPartDelta
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