pub struct CompressionCandidatePlan {Show 15 fields
pub kind: CompressionEventKind,
pub merge_existing_summary: bool,
pub compressed_message_ids: Vec<String>,
pub messages_to_summarize: Vec<Message>,
pub source_tokens: u32,
pub previous_represented_source_tokens: u32,
pub represented_source_tokens: u32,
pub target_summary_tokens: u32,
pub summary_target_ratio: f64,
pub active_usage_before_percent: f64,
pub projected_usage_after_percent: f64,
pub trigger_percent: u8,
pub target_percent: u8,
pub segments_removed: usize,
pub trigger_type: CompressionTriggerType,
/* private fields */
}Expand description
Immutable archive selection and summary input prepared before model requests. Tools may be archived without entering a MessageSummary source.
Fields§
§kind: CompressionEventKind§merge_existing_summary: boolFalse when a message-only pass must rebuild a mixed legacy summary from prose.
compressed_message_ids: Vec<String>§messages_to_summarize: Vec<Message>Exact summary input, which may differ from archive IDs in MessageSummary.
source_tokens: u32§previous_represented_source_tokens: u32§represented_source_tokens: u32§target_summary_tokens: u32§summary_target_ratio: f64§active_usage_before_percent: f64§projected_usage_after_percent: f64§trigger_percent: u8§target_percent: u8§segments_removed: usize§trigger_type: CompressionTriggerTypeTrait Implementations§
Source§impl Clone for CompressionCandidatePlan
impl Clone for CompressionCandidatePlan
Auto Trait Implementations§
impl Freeze for CompressionCandidatePlan
impl RefUnwindSafe for CompressionCandidatePlan
impl Send for CompressionCandidatePlan
impl Sync for CompressionCandidatePlan
impl Unpin for CompressionCandidatePlan
impl UnsafeUnpin for CompressionCandidatePlan
impl UnwindSafe for CompressionCandidatePlan
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