pub struct ToolCallCompleted { /* private fields */ }Expand description
Completed, parsed provider tool call safe for later canonical projection.
Implementations§
Source§impl ToolCallCompleted
impl ToolCallCompleted
Sourcepub fn new(
index: ModelStreamIndex,
provider_call_id: ProviderToolCallId,
tool_name: impl Into<String>,
arguments: Value,
) -> Result<Self, ModelStreamValueError>
pub fn new( index: ModelStreamIndex, provider_call_id: ProviderToolCallId, tool_name: impl Into<String>, arguments: Value, ) -> Result<Self, ModelStreamValueError>
Creates a validated completed call with object arguments.
§Errors
Returns an error for an invalid name, non-object arguments, or bounded JSON violations.
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 ToolCallCompleted
impl Clone for ToolCallCompleted
Source§fn clone(&self) -> ToolCallCompleted
fn clone(&self) -> ToolCallCompleted
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 ToolCallCompleted
impl Debug for ToolCallCompleted
Source§impl PartialEq for ToolCallCompleted
impl PartialEq for ToolCallCompleted
impl StructuralPartialEq for ToolCallCompleted
Auto Trait Implementations§
impl Freeze for ToolCallCompleted
impl RefUnwindSafe for ToolCallCompleted
impl Send for ToolCallCompleted
impl Sync for ToolCallCompleted
impl Unpin for ToolCallCompleted
impl UnsafeUnpin for ToolCallCompleted
impl UnwindSafe for ToolCallCompleted
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