pub struct ToolCallStarted { /* private fields */ }Expand description
Start of one provider-streamed tool call.
Implementations§
Source§impl ToolCallStarted
impl ToolCallStarted
Sourcepub fn new(
index: ModelStreamIndex,
provider_call_id: ProviderToolCallId,
tool_name: impl Into<String>,
) -> Result<Self, ModelStreamValueError>
pub fn new( index: ModelStreamIndex, provider_call_id: ProviderToolCallId, tool_name: impl Into<String>, ) -> Result<Self, ModelStreamValueError>
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 ToolCallStarted
impl Clone for ToolCallStarted
Source§fn clone(&self) -> ToolCallStarted
fn clone(&self) -> ToolCallStarted
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 ToolCallStarted
impl Debug for ToolCallStarted
impl Eq for ToolCallStarted
Source§impl PartialEq for ToolCallStarted
impl PartialEq for ToolCallStarted
impl StructuralPartialEq for ToolCallStarted
Auto Trait Implementations§
impl Freeze for ToolCallStarted
impl RefUnwindSafe for ToolCallStarted
impl Send for ToolCallStarted
impl Sync for ToolCallStarted
impl Unpin for ToolCallStarted
impl UnsafeUnpin for ToolCallStarted
impl UnwindSafe for ToolCallStarted
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