pub struct CompactionResult {
pub messages: Vec<Message>,
pub original_count: usize,
pub new_count: usize,
pub original_tokens: usize,
pub new_tokens: usize,
}Expand description
Result of a compaction operation.
Fields§
§messages: Vec<Message>The new compacted message history.
original_count: usizeNumber of messages before compaction.
new_count: usizeNumber of messages after compaction.
original_tokens: usizeEstimated tokens before compaction.
new_tokens: usizeEstimated tokens after 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