Interface: SummariseTurnsOptions
Defined in: src/batteries/context/compact/summarizer.ts:97
Options for summariseTurns.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
encoding? | string | The encoding to measure cost under. Default: 'cl100k_base'. | src/batteries/context/compact/summarizer.ts:105 |
estimateTokens | EstimateTokensFn | REQUIRED. Measures the exact request/response text's token cost for OnCostFn reporting. There is no default; this battery ships with no bundled tokenizer. | src/batteries/context/compact/summarizer.ts:103 |
onCost? | OnCostFn | Fired once, after a successful summarization call, with the estimated request/response token cost. See OnCostFn. | src/batteries/context/compact/summarizer.ts:111 |
summarize | SummarizeFn | REQUIRED. The model-call seam — see SummarizeFn. There is no default; this battery ships with no bundled transport. | src/batteries/context/compact/summarizer.ts:100 |
systemPrompt? | string | The compaction instructions sent as system to SummarizeFn. Default: COMPACTION_SYSTEM_PROMPT. | src/batteries/context/compact/summarizer.ts:108 |