pub struct CompactionOutcome {
pub messages: Vec<ChatMessage>,
pub usage: Option<HarnessUsage>,
}Expand description
Result of a single CompactionStrategy::compact call. messages is
the folded history caller installs; usage is the token spend for
the summarize round trip (provider-reported via the same path as
main turn calls). usage is None when the provider elides usage
or when the strategy short-circuited without calling the model.
Fields§
§messages: Vec<ChatMessage>§usage: Option<HarnessUsage>Trait Implementations§
Source§impl Clone for CompactionOutcome
impl Clone for CompactionOutcome
Source§fn clone(&self) -> CompactionOutcome
fn clone(&self) -> CompactionOutcome
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 CompactionOutcome
impl Debug for CompactionOutcome
Source§impl PartialEq for CompactionOutcome
impl PartialEq for CompactionOutcome
Source§fn eq(&self, other: &CompactionOutcome) -> bool
fn eq(&self, other: &CompactionOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompactionOutcome
Auto Trait Implementations§
impl Freeze for CompactionOutcome
impl RefUnwindSafe for CompactionOutcome
impl Send for CompactionOutcome
impl Sync for CompactionOutcome
impl Unpin for CompactionOutcome
impl UnsafeUnpin for CompactionOutcome
impl UnwindSafe for CompactionOutcome
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