Skip to content

Graphorin API reference v0.15.1


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

Stable

Pre-compaction hook signature. 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;