Skip to main content

should_compact

Function should_compact 

Source
pub fn should_compact(
    context_tokens: u64,
    context_window: u64,
    settings: &CompactionSettings,
) -> bool
Expand description

shouldCompact: whether the context leaves less than reserve_tokens of the window.