pub struct ModelStreamSummary { /* private fields */ }Expand description
Summary of one fully validated normalized stream.
Implementations§
Source§impl ModelStreamSummary
impl ModelStreamSummary
Sourcepub const fn event_count(self) -> usize
pub const fn event_count(self) -> usize
Returns accepted event count including start and terminal events.
Sourcepub const fn completed_tool_calls(self) -> usize
pub const fn completed_tool_calls(self) -> usize
Returns the number of completed tool calls.
Sourcepub const fn completed_hosted_tools(self) -> usize
pub const fn completed_hosted_tools(self) -> usize
Returns the number of completed provider-hosted activities.
Trait Implementations§
Source§impl Clone for ModelStreamSummary
impl Clone for ModelStreamSummary
Source§fn clone(&self) -> ModelStreamSummary
fn clone(&self) -> ModelStreamSummary
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 moreimpl Copy for ModelStreamSummary
Source§impl Debug for ModelStreamSummary
impl Debug for ModelStreamSummary
impl Eq for ModelStreamSummary
Source§impl PartialEq for ModelStreamSummary
impl PartialEq for ModelStreamSummary
impl StructuralPartialEq for ModelStreamSummary
Auto Trait Implementations§
impl Freeze for ModelStreamSummary
impl RefUnwindSafe for ModelStreamSummary
impl Send for ModelStreamSummary
impl Sync for ModelStreamSummary
impl Unpin for ModelStreamSummary
impl UnsafeUnpin for ModelStreamSummary
impl UnwindSafe for ModelStreamSummary
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