pub struct ToolCallDelta<'a> {
pub part: Part,
pub tool_name: &'a str,
pub delta: &'a str,
pub aggregated: &'a str,
}Expand description
Streaming tool-call argument delta. Fires per fragment as the provider streams a call to an allowed tool; the call’s id and final arguments arrive with its end, and nothing executes before it.
Fields§
§part: PartThe call’s part: stable across its deltas and its end.
tool_name: &'a strThe tool the call names.
delta: &'a strThe newly received fragment of argument JSON.
aggregated: &'a strThe call’s argument JSON accumulated through this delta. Read it with
parse_partial_arguments.
Trait Implementations§
Source§impl<'a> Clone for ToolCallDelta<'a>
impl<'a> Clone for ToolCallDelta<'a>
impl<'a> Copy for ToolCallDelta<'a>
Auto Trait Implementations§
impl<'a> Freeze for ToolCallDelta<'a>
impl<'a> RefUnwindSafe for ToolCallDelta<'a>
impl<'a> Send for ToolCallDelta<'a>
impl<'a> Sync for ToolCallDelta<'a>
impl<'a> Unpin for ToolCallDelta<'a>
impl<'a> UnsafeUnpin for ToolCallDelta<'a>
impl<'a> UnwindSafe for ToolCallDelta<'a>
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