Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/memory / / PostCompactionHook

Type Alias: PostCompactionHook

ts
type PostCompactionHook = (ctx) => Promise<ReadonlyArray<MessageContent>>;

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

Post-compaction hook signature. Each hook returns the MessageContent[] parts the harness should append to the trimmed message buffer (re-injected Context Essentials).

Parameters

ParameterType
ctxPostCompactionHookContext

Returns

Promise<ReadonlyArray&lt;MessageContent&gt;>

Stable