pub struct DebugTokenProjection {
pub active_context_used: usize,
pub context_window: u32,
pub last_input: Option<u32>,
pub last_output: Option<u32>,
pub cache_hit: Option<u32>,
pub cache_miss: Option<u32>,
pub total_tokens: u64,
pub cache_write_tokens: u64,
pub api_message_count: usize,
pub chat_message_count: usize,
pub model: String,
pub cost: DebugCostProjection,
}Expand description
Published usage telemetry remains optional: absence is not zero.
Fields§
§active_context_used: usize§context_window: u32§last_input: Option<u32>§last_output: Option<u32>§cache_hit: Option<u32>§cache_miss: Option<u32>§total_tokens: u64§cache_write_tokens: u64§api_message_count: usize§chat_message_count: usize§model: String§cost: DebugCostProjectionTrait Implementations§
Source§impl Clone for DebugTokenProjection
impl Clone for DebugTokenProjection
Source§impl Debug for DebugTokenProjection
impl Debug for DebugTokenProjection
Source§impl PartialEq for DebugTokenProjection
impl PartialEq for DebugTokenProjection
impl StructuralPartialEq for DebugTokenProjection
Auto Trait Implementations§
impl Freeze for DebugTokenProjection
impl RefUnwindSafe for DebugTokenProjection
impl Send for DebugTokenProjection
impl Sync for DebugTokenProjection
impl Unpin for DebugTokenProjection
impl UnsafeUnpin for DebugTokenProjection
impl UnwindSafe for DebugTokenProjection
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