pub struct CompressResult {
pub tokens_saved: u32,
pub summary: Option<String>,
pub archived: Vec<Message>,
pub prefix_invalidated_at: Option<usize>,
}Expand description
Compression result returned by every compactor.
Fields§
§tokens_saved: u32Tokens freed from the partition.
summary: Option<String>Generated summary text if any.
archived: Vec<Message>Messages drained/archived from the context.
prefix_invalidated_at: Option<usize>Cache-aware (W1-1 step 2 / DoD #4): the earliest history-message index this op rewrote or
removed — i.e. where it invalidates the prompt-cache prefix. None = prefix-safe (touched
nothing). The pipeline folds the minimum across stages and surfaces it on the observation.
Trait Implementations§
Source§impl Default for CompressResult
impl Default for CompressResult
Source§fn default() -> CompressResult
fn default() -> CompressResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CompressResult
impl RefUnwindSafe for CompressResult
impl Send for CompressResult
impl Sync for CompressResult
impl Unpin for CompressResult
impl UnsafeUnpin for CompressResult
impl UnwindSafe for CompressResult
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