Graphorin API reference v0.12.1
Graphorin API reference / @graphorin/memory / / CompactionConfig
Interface: CompactionConfig
Defined in: packages/memory/src/context-engine/compaction/types.ts:280
Full compaction config. Either false (explicitly disabled), 'auto' (resolved per-provider at warm-up) or a fully-specified record.
Stable
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
postCompactionHooks? | readonly | readonly PostCompactionHook[] | - | packages/memory/src/context-engine/compaction/types.ts:283 |
preCompactionHooks? | readonly | readonly ( | NamedPreCompactionHook | PreCompactionHook)[] | Pre-compaction hooks (wave-D D4): fired before the summarizer, with the full buffer in context. Default: none - the built-in memoryFlushHook is opt-in. Accepts plain functions or named hooks. | packages/memory/src/context-engine/compaction/types.ts:290 |
strategy? | readonly | CompactionStrategy | - | packages/memory/src/context-engine/compaction/types.ts:282 |
trigger? | readonly | | CompactionTriggerConfig | "never" | - | packages/memory/src/context-engine/compaction/types.ts:281 |