Interface: AssembleCompactedTurnsResult<M, TC>
Defined in: src/batteries/context/compact/summarizer.ts:215
assembleCompactedTurns's return value: the compacted turns PLUS the rolling state a caller must persist and pass back in as options.priorState on the next call (this battery is stateless between calls by design — no private fields, no globalThis).
Type Parameters
| Type Parameter | Default type |
|---|---|
M extends RelevanceMessage | RelevanceMessage |
TC extends RelevanceToolCall | RelevanceToolCall |
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
coveredOlder | number | How many older-region turns summary covers — persist and pass back in as priorState.coveredOlder next call. | src/batteries/context/compact/summarizer.ts:227 |
summary | string | null | The rolling summary text after this call (unchanged from priorState.summary when the threshold didn't fire this call) — persist and pass back in as priorState.summary next call. | src/batteries/context/compact/summarizer.ts:224 |
turns | HistoryTurn<M, TC>[] | [syntheticSummaryTurn, ...verbatimRecentTurns] when older turns exist and have been summarized at least once; otherwise just the verbatim turns unchanged (nothing to compact yet). | src/batteries/context/compact/summarizer.ts:221 |