pub struct ModelCallUsage {
pub model: String,
pub usage: AttributedUsage,
}Expand description
One live model dispatch in this attempt, in call order.
model is the alias the program passed, not a provider id and not a pinned
revision. A missing count is indeterminate, not zero.
Fields§
§model: String§usage: AttributedUsageImplementations§
Source§impl ModelCallUsage
impl ModelCallUsage
Sourcepub fn summed_by_model(calls: &[Self]) -> Vec<Self>
pub fn summed_by_model(calls: &[Self]) -> Vec<Self>
One entry per (kind, model), in the order each group first appeared.
A missing count stays missing. It is not zero, and it is not added to a known count. An embedding call never joins an llm group of the same alias.
Trait Implementations§
Source§impl Clone for ModelCallUsage
impl Clone for ModelCallUsage
Source§impl Debug for ModelCallUsage
impl Debug for ModelCallUsage
impl Eq for ModelCallUsage
Source§impl PartialEq for ModelCallUsage
impl PartialEq for ModelCallUsage
impl StructuralPartialEq for ModelCallUsage
Auto Trait Implementations§
impl Freeze for ModelCallUsage
impl RefUnwindSafe for ModelCallUsage
impl Send for ModelCallUsage
impl Sync for ModelCallUsage
impl Unpin for ModelCallUsage
impl UnsafeUnpin for ModelCallUsage
impl UnwindSafe for ModelCallUsage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.