pub struct CompactionResultOutput {
pub summary: CompactionSummaryMessage,
pub new_agent_messages: Vec<AgentMessage>,
pub reason: CompactionReason,
pub tokens_before: u64,
pub tokens_after: u64,
pub first_kept_entry_id: String,
}Expand description
Result of a compaction triggered during on_turn_end.
The harness uses these fields to (a) install [summary, ...kept] as the
new Agent message buffer, (b) emit CompactionStart/End events, and
(c) propagate token-before/after on the session event protocol.
Fields§
§summary: CompactionSummaryMessage§new_agent_messages: Vec<AgentMessage>New Agent message buffer to install: [summary, ...kept_messages].
reason: CompactionReason§tokens_before: u64§tokens_after: u64§first_kept_entry_id: StringAuto Trait Implementations§
impl Freeze for CompactionResultOutput
impl RefUnwindSafe for CompactionResultOutput
impl Send for CompactionResultOutput
impl Sync for CompactionResultOutput
impl Unpin for CompactionResultOutput
impl UnsafeUnpin for CompactionResultOutput
impl UnwindSafe for CompactionResultOutput
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> 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 more