Skip to content

createCompactionSummaryMessage

createCompactionSummaryMessage(summaryText): HumanMessage

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/compaction.ts:118

The summary as the graph will hold it: a HumanMessage, marked so isCompactionSummary finds it again. A HumanMessage and not a SystemMessage because a system message anywhere but first is rejected by the Anthropic converter, and because the summary is conversation content — what the two parties said — rather than an instruction about how to behave.

string

HumanMessage