pub struct ToolCallChunk {
pub index: usize,
pub id: Option<String>,
pub function_name: Option<String>,
pub arguments_delta: Option<String>,
}Expand description
Partial tool call information from streaming
Fields§
§index: usizeIndex of the tool call (for ordering)
id: Option<String>Tool call ID (first chunk only)
function_name: Option<String>Function name (first chunk only)
arguments_delta: Option<String>Arguments delta
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 moreAuto 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