pub struct ChunkToolCall {
pub index: u32,
pub id: Option<String>,
pub call_type: Option<String>,
pub function: Option<ChunkFunctionCall>,
}Expand description
Tool call delta within a streaming chunk.
Fields§
§index: u32Index of the tool call in the array.
id: Option<String>Tool call ID, usually sent in the first chunk for this tool.
call_type: Option<String>Type string, usually function.
function: Option<ChunkFunctionCall>Incremental function name and arguments fragments.
Trait Implementations§
Source§impl Clone for ChunkToolCall
impl Clone for ChunkToolCall
Source§fn clone(&self) -> ChunkToolCall
fn clone(&self) -> ChunkToolCall
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 ChunkToolCall
impl Debug for ChunkToolCall
Source§impl<'de> Deserialize<'de> for ChunkToolCall
impl<'de> Deserialize<'de> for ChunkToolCall
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
impl Eq for ChunkToolCall
Source§impl PartialEq for ChunkToolCall
impl PartialEq for ChunkToolCall
Source§impl Serialize for ChunkToolCall
impl Serialize for ChunkToolCall
impl StructuralPartialEq for ChunkToolCall
Auto Trait Implementations§
impl Freeze for ChunkToolCall
impl RefUnwindSafe for ChunkToolCall
impl Send for ChunkToolCall
impl Sync for ChunkToolCall
impl Unpin for ChunkToolCall
impl UnsafeUnpin for ChunkToolCall
impl UnwindSafe for ChunkToolCall
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