pub struct CompactionSummary {
pub summary_text: String,
pub entries_summarized: usize,
pub from_timestamp: i64,
pub to_timestamp: i64,
pub tokens_saved: usize,
}Expand description
Summary produced by semantic compaction of older scratchpad entries
Fields§
§summary_text: StringLLM-generated summary of compacted history
entries_summarized: usizeNumber of entries that were summarized
from_timestamp: i64Timestamp range of summarized entries
to_timestamp: i64§tokens_saved: usizeToken count saved by this compaction
Trait Implementations§
Source§impl Clone for CompactionSummary
impl Clone for CompactionSummary
Source§fn clone(&self) -> CompactionSummary
fn clone(&self) -> CompactionSummary
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 moreSource§impl Debug for CompactionSummary
impl Debug for CompactionSummary
Source§impl<'de> Deserialize<'de> for CompactionSummary
impl<'de> Deserialize<'de> for CompactionSummary
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
Auto Trait Implementations§
impl Freeze for CompactionSummary
impl RefUnwindSafe for CompactionSummary
impl Send for CompactionSummary
impl Sync for CompactionSummary
impl Unpin for CompactionSummary
impl UnsafeUnpin for CompactionSummary
impl UnwindSafe for CompactionSummary
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