pub struct CompactionCompleteCompactionTokensUsed {
pub cache_read_tokens: Option<f64>,
pub cache_write_tokens: Option<f64>,
pub copilot_usage: Option<CompactionCompleteCompactionTokensUsedCopilotUsage>,
pub duration: Option<f64>,
pub input_tokens: Option<f64>,
pub model: Option<String>,
pub output_tokens: Option<f64>,
}Expand description
Token usage breakdown for the compaction LLM call (aligned with assistant.usage format)
Fields§
§cache_read_tokens: Option<f64>Cached input tokens reused in the compaction LLM call
cache_write_tokens: Option<f64>Tokens written to prompt cache in the compaction LLM call
copilot_usage: Option<CompactionCompleteCompactionTokensUsedCopilotUsage>Per-request cost and usage data from the CAPI copilot_usage response field
duration: Option<f64>Duration of the compaction LLM call in milliseconds
input_tokens: Option<f64>Input tokens consumed by the compaction LLM call
model: Option<String>Model identifier used for the compaction LLM call
output_tokens: Option<f64>Output tokens produced by the compaction LLM call
Trait Implementations§
Source§impl Clone for CompactionCompleteCompactionTokensUsed
impl Clone for CompactionCompleteCompactionTokensUsed
Source§fn clone(&self) -> CompactionCompleteCompactionTokensUsed
fn clone(&self) -> CompactionCompleteCompactionTokensUsed
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<'de> Deserialize<'de> for CompactionCompleteCompactionTokensUsed
impl<'de> Deserialize<'de> for CompactionCompleteCompactionTokensUsed
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
Auto Trait Implementations§
impl Freeze for CompactionCompleteCompactionTokensUsed
impl RefUnwindSafe for CompactionCompleteCompactionTokensUsed
impl Send for CompactionCompleteCompactionTokensUsed
impl Sync for CompactionCompleteCompactionTokensUsed
impl Unpin for CompactionCompleteCompactionTokensUsed
impl UnsafeUnpin for CompactionCompleteCompactionTokensUsed
impl UnwindSafe for CompactionCompleteCompactionTokensUsed
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