Skip to content

buildTranscriptDigest

buildTranscriptDigest(entries, maxChars?): string

Defined in: src/recap-core.ts:75

Build a bounded digest of what the agent did from parsed transcript entries (tool-use summaries, oldest→newest), capped to ~maxChars (default RECAP_DIGEST_MAX_CHARS). If the very first entry exceeds the cap, a truncated version of it is included so a single large entry always contributes something rather than returning "".

ActivityEntry[]

number = RECAP_DIGEST_MAX_CHARS

string