pub struct ContextCompactionSkippedData {
pub reason: CompactionReason,
pub trigger: CompactionTrigger,
pub skip_reason: CompactionSkipReason,
pub strategy: String,
pub model: String,
pub provider: Option<String>,
pub driver: Option<String>,
pub tokens_observed: u64,
pub budget_remaining_tokens: Option<u64>,
pub source_sequence: Option<i64>,
pub messages_observed: usize,
}Expand description
Data for context.compaction.skipped: pressure observed, nothing installed.
Emitted when context-budget or cost pressure is present but the evaluation does not install compacted context. The envelope timestamp records when the decision was made; every pressured evaluation closes with exactly one of skipped, installed (context.compacted), or failed.
Fields§
§reason: CompactionReasonWhy compaction was evaluated.
trigger: CompactionTriggerWhether window/budget or cost pressure triggered the evaluation.
skip_reason: CompactionSkipReasonWhy nothing was installed.
strategy: StringStrategy requested.
model: StringModel the evaluation ran under.
provider: Option<String>Provider backend (e.g. “openai”), when known.
driver: Option<String>Local driver identifier, when known.
tokens_observed: u64Estimated input tokens observed at evaluation time.
budget_remaining_tokens: Option<u64>Tokens of headroom remaining, when measurable.
source_sequence: Option<i64>Source message sequence the evaluation ran at, when known.
messages_observed: usizeNumber of messages observed.
Trait Implementations§
Source§impl Clone for ContextCompactionSkippedData
impl Clone for ContextCompactionSkippedData
Source§fn clone(&self) -> ContextCompactionSkippedData
fn clone(&self) -> ContextCompactionSkippedData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more