Summarize a single session. Returns cached result if available, otherwise calls the LLM and writes to cache.
— a stable identifier for the session (e.g. ${caseId}:${sessionId}).
Used only for logging; the cache key is content-addressed.
— the raw text of the session (all turns concatenated).
Build the SHA-256 cache key from session content + model + template. Exposed for tests; callers should use summarize.
Readonly statsRunning stats for diagnostics.
LLM-backed session summarizer with a persistent on-disk cache.
Example