pub struct ToolCallChunk {
pub index: usize,
pub id: Option<String>,
pub name: Option<String>,
pub arguments: Option<String>,
}Expand description
Partial tool call received during streaming.
Fields§
§index: usizeIndex of this tool call in the list.
id: Option<String>Tool call identifier, if available.
name: Option<String>Tool name, if available.
arguments: Option<String>Partial JSON arguments string.
Trait Implementations§
Source§impl Clone for ToolCallChunk
impl Clone for ToolCallChunk
Source§fn clone(&self) -> ToolCallChunk
fn clone(&self) -> ToolCallChunk
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 ToolCallChunk
impl Debug for ToolCallChunk
Source§impl Default for ToolCallChunk
impl Default for ToolCallChunk
Source§fn default() -> ToolCallChunk
fn default() -> ToolCallChunk
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolCallChunk
impl<'de> Deserialize<'de> for ToolCallChunk
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
Auto Trait Implementations§
impl Freeze for ToolCallChunk
impl RefUnwindSafe for ToolCallChunk
impl Send for ToolCallChunk
impl Sync for ToolCallChunk
impl Unpin for ToolCallChunk
impl UnsafeUnpin for ToolCallChunk
impl UnwindSafe for ToolCallChunk
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