pub struct ToolArgumentsDelta { /* private fields */ }Expand description
Incomplete provider tool-arguments fragment.
Implementations§
Source§impl ToolArgumentsDelta
impl ToolArgumentsDelta
Sourcepub fn new(
index: ModelStreamIndex,
provider_call_id: ProviderToolCallId,
delta: impl Into<String>,
) -> Result<Self, ModelStreamValueError>
pub fn new( index: ModelStreamIndex, provider_call_id: ProviderToolCallId, delta: impl Into<String>, ) -> Result<Self, ModelStreamValueError>
Creates a bounded incomplete argument fragment.
§Errors
Returns an error when the fragment is empty, oversized, or contains a null character.
Sourcepub const fn index(&self) -> ModelStreamIndex
pub const fn index(&self) -> ModelStreamIndex
Returns the response-local stream index.
Sourcepub const fn provider_call_id(&self) -> &ProviderToolCallId
pub const fn provider_call_id(&self) -> &ProviderToolCallId
Returns the provider call ID.
Trait Implementations§
Source§impl Clone for ToolArgumentsDelta
impl Clone for ToolArgumentsDelta
Source§fn clone(&self) -> ToolArgumentsDelta
fn clone(&self) -> ToolArgumentsDelta
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 ToolArgumentsDelta
impl Debug for ToolArgumentsDelta
impl Eq for ToolArgumentsDelta
Source§impl PartialEq for ToolArgumentsDelta
impl PartialEq for ToolArgumentsDelta
impl StructuralPartialEq for ToolArgumentsDelta
Auto Trait Implementations§
impl Freeze for ToolArgumentsDelta
impl RefUnwindSafe for ToolArgumentsDelta
impl Send for ToolArgumentsDelta
impl Sync for ToolArgumentsDelta
impl Unpin for ToolArgumentsDelta
impl UnsafeUnpin for ToolArgumentsDelta
impl UnwindSafe for ToolArgumentsDelta
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