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 more