pub struct CompactEvent {
pub step_index: i64,
pub tokens_before: i64,
pub tokens_after: i64,
pub budget_tokens: i64,
pub messages_before: usize,
pub messages_after: usize,
pub phase_reached: i64,
}Expand description
Immutable record of a compaction event.
Fields§
§step_index: i64The step index at which the compaction occurred.
tokens_before: i64Estimated token count of the context prior to compaction.
tokens_after: i64Estimated token count of the context after compaction.
budget_tokens: i64Total context token budget.
messages_before: usizeMessage count in the conversation list prior to compaction.
messages_after: usizeMessage count in the conversation list after compaction.
phase_reached: i64The compaction phase reached (e.g. 1, 2, 3).
Trait Implementations§
Source§impl Clone for CompactEvent
impl Clone for CompactEvent
Source§fn clone(&self) -> CompactEvent
fn clone(&self) -> CompactEvent
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 moreSource§impl Debug for CompactEvent
impl Debug for CompactEvent
Source§impl PartialEq for CompactEvent
impl PartialEq for CompactEvent
Source§fn eq(&self, other: &CompactEvent) -> bool
fn eq(&self, other: &CompactEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompactEvent
Auto Trait Implementations§
impl Freeze for CompactEvent
impl RefUnwindSafe for CompactEvent
impl Send for CompactEvent
impl Sync for CompactEvent
impl Unpin for CompactEvent
impl UnsafeUnpin for CompactEvent
impl UnwindSafe for CompactEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.