LLM invoker — produces the summary text.
Optional cacheOptional directory for persistent disk cache. When set, summaries
survive across process restarts and re-runs. Mirrors the cache layout
of CachedEmbedder in framerslab/agentos-bench
(src/cognitive/CachedEmbedder.ts).
Model identifier baked into the cache key so switching models invalidates the cache automatically. Should match the invoker's underlying model.
Optional maxMaximum tokens to ask the LLM to emit. Default 140 (generous headroom over the 50–100 target; truncate post-hoc if needed).
Optional templateTemplate version. Bump whenever the summarization prompt changes so
disk caches from prior versions are invalidated.
Current: 'v1-2026-04-19'.
Optional onOptional cost-tracker hook. Called after every uncached call.
Options for constructing a SessionSummarizer.