Skip to content

Graphorin API reference v0.8.0


Graphorin API reference / @graphorin/memory / / PreCompactionHook

Type Alias: PreCompactionHook

ts
type PreCompactionHook = (ctx) => Promise<void>;

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

Pre-compaction hook signature (wave-D D4). Side-effect only - a pre-hook cannot alter what gets compacted; a throwing hook is recorded in hookFailures and never blocks the compaction.

Parameters

ParameterType
ctxPreCompactionHookContext

Returns

Promise&lt;void&gt;

Stable