pub struct HostedToolStarted { /* private fields */ }Expand description
Start of one provider-hosted tool activity.
Implementations§
Source§impl HostedToolStarted
impl HostedToolStarted
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>
Creates a validated hosted tool start.
§Errors
Returns an error when the tool name is not canonical.
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 activity identifier.
Trait Implementations§
Source§impl Clone for HostedToolStarted
impl Clone for HostedToolStarted
Source§fn clone(&self) -> HostedToolStarted
fn clone(&self) -> HostedToolStarted
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 HostedToolStarted
impl Debug for HostedToolStarted
impl Eq for HostedToolStarted
Source§impl PartialEq for HostedToolStarted
impl PartialEq for HostedToolStarted
impl StructuralPartialEq for HostedToolStarted
Auto Trait Implementations§
impl Freeze for HostedToolStarted
impl RefUnwindSafe for HostedToolStarted
impl Send for HostedToolStarted
impl Sync for HostedToolStarted
impl Unpin for HostedToolStarted
impl UnsafeUnpin for HostedToolStarted
impl UnwindSafe for HostedToolStarted
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