Graphorin API reference v0.4.0
Graphorin API reference / @graphorin/memory / / buildSummarizerPrompt
Function: buildSummarizerPrompt()
ts
function buildSummarizerPrompt(input): string;Defined in: packages/memory/src/context-engine/compaction/templates/summary-9-section.ts:68
Build the prompt the summarizer LLM receives. The prompt contains:
- The locale-resolved preamble.
- The verbatim section list (1-9, with a note that section 8 is filled by the harness).
- A delimited dump of the older messages the harness is about to drop.
The summarizer must produce sections 1-7 + 9. Section 8 is stitched in by the harness before the result is committed to the in-flight buffer.
Parameters
| Parameter | Type |
|---|---|
input | { olderMessages: readonly Message[]; template: RenderedTemplate; } |
input.olderMessages | readonly Message[] |
input.template | RenderedTemplate |
Returns
string