#[non_exhaustive]pub struct Compacted {
pub replaced_items: usize,
pub preserved_items: usize,
pub transcript_len: usize,
pub extracted_facts: usize,
pub summary_preview: String,
}Expand description
What a summarizing pass did.
basis’s own shape rather than mentra’s CompactionDetails, for the same
reason Event is: what basis publishes should not move because a runtime
internal did. The field names are Event::CompactionCompleted’s, because
a caller reading the return value and a client reading the stream are
looking at one pass and should not have to learn two vocabularies for it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.replaced_items: usizeHow many transcript items the summary stands in for.
preserved_items: usizeHow many were kept verbatim: the continuation tail, and whatever recent
user text mentra’s preserve_recent_user_tokens protected.
transcript_len: usizeWhat the transcript is now — the length the next turn will send.
extracted_facts: usizeHow many concrete facts — file paths, command outcomes — the pass pulled out of the discarded prefix to carry forward by name.
summary_preview: StringThe opening of the summary the model wrote, for a client with a line to put it on. Not the summary: that is in the transcript.
Trait Implementations§
impl Eq for Compacted
impl StructuralPartialEq for Compacted
Auto Trait Implementations§
impl Freeze for Compacted
impl RefUnwindSafe for Compacted
impl Send for Compacted
impl Sync for Compacted
impl Unpin for Compacted
impl UnsafeUnpin for Compacted
impl UnwindSafe for Compacted
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.