pub struct PreparedClearSummary {
pub first: usize,
pub last: usize,
pub text: String,
pub model_id: String,
}Expand description
The output of prepare_cleared_turns_summary — one summarized span,
ready for project_messages to apply IF (and only if) it independently
recomputes the exact same (first, last) range for its own
ReductionKind::TurnsCleared candidate this call. Threaded through
ReductionPolicy::cleared_turns_summary; see that field’s doc comment
for the full data-vs-config-knob split (mirrors ReadFreshness).
Fields§
§first: usizeAddress of the first message the summarized span covers (must match
project_messages’s own candidate range exactly to be applied).
last: usizeAddress of the last message the summarized span covers.
text: StringThe summarizer’s output, already sanitized into the stub grammar’s
one-line/no-] contract (prepare_cleared_turns_summary does this
once, here, so project_messages never needs to).
model_id: Stringsummarize::SpanSummarizer::model_id, carried through for the
audit trail (SpanSummary::model_id).
Trait Implementations§
Source§impl Clone for PreparedClearSummary
impl Clone for PreparedClearSummary
Source§fn clone(&self) -> PreparedClearSummary
fn clone(&self) -> PreparedClearSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PreparedClearSummary
impl Debug for PreparedClearSummary
impl Eq for PreparedClearSummary
Source§impl PartialEq for PreparedClearSummary
impl PartialEq for PreparedClearSummary
impl StructuralPartialEq for PreparedClearSummary
Auto Trait Implementations§
impl Freeze for PreparedClearSummary
impl RefUnwindSafe for PreparedClearSummary
impl Send for PreparedClearSummary
impl Sync for PreparedClearSummary
impl Unpin for PreparedClearSummary
impl UnsafeUnpin for PreparedClearSummary
impl UnwindSafe for PreparedClearSummary
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§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.