Graphorin API reference v0.12.1
Graphorin API reference / @graphorin/memory / / renderFinalSummary
Function: renderFinalSummary()
ts
function renderFinalSummary(input): string;Defined in: packages/memory/src/context-engine/compaction/templates/summary-9-section.ts:191
Render the produced summary into the final text the harness commits to the in-flight buffer. The LLM-produced sections come from summaryFromLlm; the last two are stitched in mechanically - the preserved recent turns and the metadata block.
Parameters
| Parameter | Type |
|---|---|
input | { metadata: CompactionMetadataPayload; preservedMessages: readonly Message[]; summaryFromLlm: string; template: RenderedTemplate; } |
input.metadata | CompactionMetadataPayload |
input.preservedMessages | readonly Message[] |
input.summaryFromLlm | string |
input.template | RenderedTemplate |
Returns
string