Skip to content

Graphorin API reference v0.12.1


Graphorin API reference / @graphorin/memory / / NamedPostCompactionHook

Interface: NamedPostCompactionHook

Defined in: packages/memory/src/context-engine/compaction/hooks/types.ts:56

Tagged hook returned by every factory below. The id field is surfaced on the context.compaction.hook.executed.total{hookName} counter family.

Stable

Properties

PropertyModifierTypeDefined in
idreadonlystringpackages/memory/src/context-engine/compaction/hooks/types.ts:57

Methods

resolveContent()

ts
resolveContent(deps, ctx?): Promise<readonly MessageContent[]>;

Defined in: packages/memory/src/context-engine/compaction/hooks/types.ts:64

ctx carries the REAL compaction outcome (CE-6) - result, scope, runId, sessionId, agentId, source - built by compactNow after the pipeline finishes. Record-form built-ins may ignore it; the function-form wrapper forwards it to the operator's hook verbatim.

Parameters

ParameterType
depsHookDeps
ctx?PostCompactionHookContext

Returns

Promise&lt;readonly MessageContent[]&gt;