Kind: Class
Source: atloria-monorepo/libs/pme-core/src/context/pme-compaction-strategy.ts
Implements: CompactionStrategy
Methods
| Method | Signature | Returns |
|---|---|---|
shouldPreserve | shouldPreserve(item: ContextItem) | boolean |
summarize | summarize(items: ContextItem[]) | string |
Where it refuses work
PmeCompactionStrategystops the work with an early return whenitem.role === 'system'.PmeCompactionStrategystops the work with an early return whenitem.tags?.some((t) => PRESERVE_TAGS.has(t)).PmeCompactionStrategystops the work with an early return whenitem.tokenEstimate < 200.
Was this page helpful?