pub struct CompressionPlan {Show 13 fields
pub compressed_message_ids: Vec<String>,
pub messages_to_summarize: Vec<Message>,
pub summary_tokens: u32,
pub summary_content: String,
pub active_usage_before_percent: f64,
pub active_usage_after_percent: f64,
pub trigger_percent: u8,
pub target_percent: u8,
pub segments_removed: usize,
pub trigger_type: CompressionTriggerType,
pub compression_ratio: f64,
pub model_used: Option<String>,
pub latency_ms: u64,
}Expand description
A compression plan describing which active historical messages should be archived and summarized.
Fields§
§compressed_message_ids: Vec<String>§messages_to_summarize: Vec<Message>§summary_tokens: u32§summary_content: String§active_usage_before_percent: f64§active_usage_after_percent: f64§trigger_percent: u8§target_percent: u8§segments_removed: usize§trigger_type: CompressionTriggerType§compression_ratio: f64§model_used: Option<String>§latency_ms: u64Trait Implementations§
Source§impl Clone for CompressionPlan
impl Clone for CompressionPlan
Source§fn clone(&self) -> CompressionPlan
fn clone(&self) -> CompressionPlan
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompressionPlan
impl RefUnwindSafe for CompressionPlan
impl Send for CompressionPlan
impl Sync for CompressionPlan
impl Unpin for CompressionPlan
impl UnsafeUnpin for CompressionPlan
impl UnwindSafe for CompressionPlan
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