Skip to content
1 min read · 153 words

Interface: SummariseTurnsOptions

Defined in: src/batteries/context/compact/summarizer.ts:97

Options for summariseTurns.

Properties

PropertyTypeDescriptionDefined in
encoding?stringThe encoding to measure cost under. Default: 'cl100k_base'.src/batteries/context/compact/summarizer.ts:105
estimateTokensEstimateTokensFnREQUIRED. 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?OnCostFnFired once, after a successful summarization call, with the estimated request/response token cost. See OnCostFn.src/batteries/context/compact/summarizer.ts:111
summarizeSummarizeFnREQUIRED. 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?stringThe compaction instructions sent as system to SummarizeFn. Default: COMPACTION_SYSTEM_PROMPT.src/batteries/context/compact/summarizer.ts:108