pub struct CompactionResult {
pub summary_text: String,
pub compaction_user_id: Uuid,
pub summary_message_id: Uuid,
pub tail_start_id: Uuid,
pub tokens_saved: usize,
}Expand description
Result of a successful compaction.
Fields§
§summary_text: StringThe LLM-generated summary text.
compaction_user_id: UuidMessage ID of the compaction user message (stored in session).
summary_message_id: UuidMessage ID of the compaction assistant message (contains the summary).
tail_start_id: UuidFirst retained message ID after the compaction boundary.
tokens_saved: usizeEstimated tokens freed by this compaction.
Trait Implementations§
Source§impl Clone for CompactionResult
impl Clone for CompactionResult
Source§fn clone(&self) -> CompactionResult
fn clone(&self) -> CompactionResult
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 moreAuto Trait Implementations§
impl Freeze for CompactionResult
impl RefUnwindSafe for CompactionResult
impl Send for CompactionResult
impl Sync for CompactionResult
impl Unpin for CompactionResult
impl UnsafeUnpin for CompactionResult
impl UnwindSafe for CompactionResult
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