pub struct ToolCallChunk {
pub id: String,
pub name: String,
pub delta: String,
}Expand description
A tool call fragment emitted by AgentStream.
In streaming mode multiple ToolCallChunks are emitted per tool call:
the first has an empty delta (name is known, no args yet); subsequent
chunks carry incremental argument JSON. In non-streaming mode a single
chunk is emitted with the complete argument JSON in delta.
Fields§
§id: String§name: String§delta: StringTrait 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