pub fn evict(
items: &[ContextItem],
current_turn: u64,
config: &EvictionConfig,
) -> Result<EvictionResult>Expand description
Run a proactive eviction pass on a set of context items.
Items are scored by a combination of recency and access frequency.
The lowest-scoring items (up to eviction_ratio of the total) are
evicted and replaced with one-line summaries.
Pinned items are never evicted.