pub struct ModelUsageSummary {
pub invocation_count: u64,
pub completed_count: u64,
pub failed_count: u64,
pub input_tokens: u64,
pub output_tokens: u64,
pub builtin_invocation_count: u64,
pub agent_invocation_count: u64,
pub usage_coverage: TokenUsageCoverage,
}Fields§
§invocation_count: u64§completed_count: u64§failed_count: u64§input_tokens: u64§output_tokens: u64§builtin_invocation_count: u64§agent_invocation_count: u64§usage_coverage: TokenUsageCoverageImplementations§
Source§impl ModelUsageSummary
impl ModelUsageSummary
pub fn observe_usage(&mut self, usage: &TokenUsage)
Trait Implementations§
Source§impl Clone for ModelUsageSummary
impl Clone for ModelUsageSummary
Source§fn clone(&self) -> ModelUsageSummary
fn clone(&self) -> ModelUsageSummary
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 ModelUsageSummary
impl Debug for ModelUsageSummary
Source§impl Default for ModelUsageSummary
impl Default for ModelUsageSummary
Source§fn default() -> ModelUsageSummary
fn default() -> ModelUsageSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelUsageSummary
impl<'de> Deserialize<'de> for ModelUsageSummary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ModelUsageSummary
Source§impl PartialEq for ModelUsageSummary
impl PartialEq for ModelUsageSummary
Source§impl Serialize for ModelUsageSummary
impl Serialize for ModelUsageSummary
impl StructuralPartialEq for ModelUsageSummary
Auto Trait Implementations§
impl Freeze for ModelUsageSummary
impl RefUnwindSafe for ModelUsageSummary
impl Send for ModelUsageSummary
impl Sync for ModelUsageSummary
impl Unpin for ModelUsageSummary
impl UnsafeUnpin for ModelUsageSummary
impl UnwindSafe for ModelUsageSummary
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