Skip to content

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

ParameterType
input{ metadata: CompactionMetadataPayload; preservedMessages: readonly Message[]; summaryFromLlm: string; template: RenderedTemplate; }
input.metadataCompactionMetadataPayload
input.preservedMessagesreadonly Message[]
input.summaryFromLlmstring
input.templateRenderedTemplate

Returns

string

Stable