Graphorin API reference v0.8.0
Graphorin API reference / @graphorin/memory / / NamedPreCompactionHook
Interface: NamedPreCompactionHook
Defined in: packages/memory/src/context-engine/compaction/types.ts:259
Named pre-compaction hook (built-in form): receives the shared hook deps (memory handle, scope, privacy filter) plus the pre-compaction context. Mirrors NamedPostCompactionHook.
Stable
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
id | readonly | string | packages/memory/src/context-engine/compaction/types.ts:260 |
Methods
run()
ts
run(deps, ctx): Promise<void>;Defined in: packages/memory/src/context-engine/compaction/types.ts:261
Parameters
| Parameter | Type |
|---|---|
deps | { allowSensitivity?: (sensitivity) => boolean; memory: Memory; scope: SessionScope; } |
deps.allowSensitivity? | (sensitivity) => boolean |
deps.memory | Memory |
deps.scope | SessionScope |
ctx | PreCompactionHookContext |
Returns
Promise<void>