pub enum AttributedUsage {
Llm {
input_tokens: Option<u64>,
output_tokens: Option<u64>,
},
Embedding {
input_tokens: Option<u64>,
},
}Expand description
What the provider reported for one dispatch.
Embeddings are their own variant so a missing completion count — embeddings have none — is not summed as unknown output.
Variants§
Trait Implementations§
Source§impl Clone for AttributedUsage
impl Clone for AttributedUsage
Source§impl Debug for AttributedUsage
impl Debug for AttributedUsage
impl Eq for AttributedUsage
Source§impl PartialEq for AttributedUsage
impl PartialEq for AttributedUsage
impl StructuralPartialEq for AttributedUsage
Auto Trait Implementations§
impl Freeze for AttributedUsage
impl RefUnwindSafe for AttributedUsage
impl Send for AttributedUsage
impl Sync for AttributedUsage
impl Unpin for AttributedUsage
impl UnsafeUnpin for AttributedUsage
impl UnwindSafe for AttributedUsage
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.