pub struct PartialToolCall {
pub id: String,
pub name: Option<String>,
pub arguments: String,
pub complete: bool,
}Expand description
A tool call assembled so far from streamed chunks.
Fields§
§id: StringProvider-assigned call id (stable across this call’s chunks).
name: Option<String>Function name, once a chunk has carried it.
arguments: StringJSON arguments accumulated so far (may be partial/unparseable mid-stream).
complete: boolSet once a finalized ToolCall has reconciled this entry.
Trait Implementations§
Source§impl Clone for PartialToolCall
impl Clone for PartialToolCall
Source§fn clone(&self) -> PartialToolCall
fn clone(&self) -> PartialToolCall
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 PartialToolCall
impl Debug for PartialToolCall
Source§impl Default for PartialToolCall
impl Default for PartialToolCall
Source§fn default() -> PartialToolCall
fn default() -> PartialToolCall
Returns the “default value” for a type. Read more
impl Eq for PartialToolCall
Source§impl PartialEq for PartialToolCall
impl PartialEq for PartialToolCall
impl StructuralPartialEq for PartialToolCall
Auto Trait Implementations§
impl Freeze for PartialToolCall
impl RefUnwindSafe for PartialToolCall
impl Send for PartialToolCall
impl Sync for PartialToolCall
impl Unpin for PartialToolCall
impl UnsafeUnpin for PartialToolCall
impl UnwindSafe for PartialToolCall
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