pub struct ContextWindowUsage {
pub uncached_input_tokens: u64,
pub cache_read_tokens: u64,
pub cache_write_tokens: u64,
pub output_tokens: u64,
pub unattributed_tokens: u64,
pub used_tokens: u64,
pub capacity_tokens: u64,
}Fields§
§uncached_input_tokens: u64§cache_read_tokens: u64§cache_write_tokens: u64§output_tokens: u64§unattributed_tokens: u64§used_tokens: u64§capacity_tokens: u64Implementations§
Source§impl ContextWindowUsage
impl ContextWindowUsage
pub fn validate(&self) -> Result<(), ProviderEventValidationError>
Trait Implementations§
Source§impl Clone for ContextWindowUsage
impl Clone for ContextWindowUsage
impl Copy for ContextWindowUsage
Source§impl Debug for ContextWindowUsage
impl Debug for ContextWindowUsage
Source§impl<'de> Deserialize<'de> for ContextWindowUsage
impl<'de> Deserialize<'de> for ContextWindowUsage
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 ContextWindowUsage
Source§impl PartialEq for ContextWindowUsage
impl PartialEq for ContextWindowUsage
Source§impl Serialize for ContextWindowUsage
impl Serialize for ContextWindowUsage
impl StructuralPartialEq for ContextWindowUsage
Auto Trait Implementations§
impl Freeze for ContextWindowUsage
impl RefUnwindSafe for ContextWindowUsage
impl Send for ContextWindowUsage
impl Sync for ContextWindowUsage
impl Unpin for ContextWindowUsage
impl UnsafeUnpin for ContextWindowUsage
impl UnwindSafe for ContextWindowUsage
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