pub struct ContextCompactionFailedData {Show 13 fields
pub reason: CompactionReason,
pub trigger: CompactionTrigger,
pub stage: CompactionFailStage,
pub error: String,
pub strategy: String,
pub model: String,
pub provider: Option<String>,
pub driver: Option<String>,
pub tokens_before: u64,
pub budget_remaining_tokens: Option<u64>,
pub source_sequence: Option<i64>,
pub messages_before: usize,
pub checkpoint_id: Option<String>,
}Expand description
Data for context.compaction.failed: an attempt errored before installing.
Terminal event for an emitted context.compacting attempt that did not install. The envelope timestamp records when the failure surfaced.
Fields§
§reason: CompactionReasonWhy compaction was attempted.
trigger: CompactionTriggerWhether window/budget or cost pressure triggered the attempt.
stage: CompactionFailStageWhich stage failed.
error: StringHuman-readable failure.
strategy: StringStrategy requested.
model: StringModel the attempt ran under.
provider: Option<String>Provider backend (e.g. “openai”), when known.
driver: Option<String>Local driver identifier, when known.
tokens_before: u64Estimated or provider-reported input tokens before the attempt.
budget_remaining_tokens: Option<u64>Tokens of headroom remaining, when measurable.
source_sequence: Option<i64>Source message sequence the attempt ran at, when known.
messages_before: usizeNumber of messages before the attempt.
checkpoint_id: Option<String>Durable checkpoint being installed when the failure hit, if any.
Trait Implementations§
Source§impl Clone for ContextCompactionFailedData
impl Clone for ContextCompactionFailedData
Source§fn clone(&self) -> ContextCompactionFailedData
fn clone(&self) -> ContextCompactionFailedData
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 Debug for ContextCompactionFailedData
impl Debug for ContextCompactionFailedData
Source§impl<'de> Deserialize<'de> for ContextCompactionFailedData
impl<'de> Deserialize<'de> for ContextCompactionFailedData
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
Source§impl From<ContextCompactionFailedData> for EventData
impl From<ContextCompactionFailedData> for EventData
Source§fn from(data: ContextCompactionFailedData) -> Self
fn from(data: ContextCompactionFailedData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContextCompactionFailedData
impl RefUnwindSafe for ContextCompactionFailedData
impl Send for ContextCompactionFailedData
impl Sync for ContextCompactionFailedData
impl Unpin for ContextCompactionFailedData
impl UnsafeUnpin for ContextCompactionFailedData
impl UnwindSafe for ContextCompactionFailedData
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