Graphorin API reference v0.8.0
Graphorin API reference / @graphorin/memory / / PreCompactionHookContext
Interface: PreCompactionHookContext
Defined in: packages/memory/src/context-engine/compaction/types.ts:229
Per-call context handed to a PRE-compaction hook (wave-D D4) - fired BEFORE the summarizer runs, while the full buffer is still available. This is the seam the built-in memoryFlushHook uses to salvage durable facts from content that is about to be summarized away.
Stable
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
agentId | readonly | string | - | packages/memory/src/context-engine/compaction/types.ts:233 |
messages | readonly | readonly Message[] | The full pre-compaction buffer (what the summarizer is about to operate on) - the model-visible messages, i.e. post-guardrail content, never the raw blocked turns. | packages/memory/src/context-engine/compaction/types.ts:240 |
runId | readonly | string | - | packages/memory/src/context-engine/compaction/types.ts:231 |
scope | readonly | SessionScope | - | packages/memory/src/context-engine/compaction/types.ts:230 |
sessionId | readonly | string | - | packages/memory/src/context-engine/compaction/types.ts:232 |
source | readonly | CompactionSource | - | packages/memory/src/context-engine/compaction/types.ts:234 |