Graphorin API reference v0.4.0
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:121
Render the produced summary into the final 9-section text the harness commits to the in-flight buffer. Sections 1-7 + 9 are stitched in from summaryFromLlm + metadata; section 8 is the verbatim render of the preserved recent turns (mechanical).
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