pub struct RuleSummarizer;Expand description
Deterministic six-slot summariser used before archived units page out.
Implementations§
Source§impl RuleSummarizer
impl RuleSummarizer
Sourcepub fn summarize(
&self,
messages: &[CoreMessage],
measurements: &[TokenMeasurement],
action: PressureAction,
max_tokens: u32,
) -> String
pub fn summarize( &self, messages: &[CoreMessage], measurements: &[TokenMeasurement], action: PressureAction, max_tokens: u32, ) -> String
Produce a structured summary whose fallback-estimated token count never exceeds
max_tokens. Slot order is the deterministic truncation priority.
Auto Trait Implementations§
impl Freeze for RuleSummarizer
impl RefUnwindSafe for RuleSummarizer
impl Send for RuleSummarizer
impl Sync for RuleSummarizer
impl Unpin for RuleSummarizer
impl UnsafeUnpin for RuleSummarizer
impl UnwindSafe for RuleSummarizer
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