Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/memory / / PostCompactionHookContext
Interface: PostCompactionHookContext
Defined in: packages/memory/src/context-engine/compaction/types.ts:193
Per-call context handed to a post-compaction hook.
Stable
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
agentId | readonly | string | - | packages/memory/src/context-engine/compaction/types.ts:198 |
droppedMessages? | readonly | readonly Message[] | C4: the messages this compaction dropped (summarized away / cleared), in original order. Lets re-anchoring hooks recover references - e.g. reanchorRecentResults re-lists the result handles that just left the window. | packages/memory/src/context-engine/compaction/types.ts:206 |
result | readonly | CompactionResult | - | packages/memory/src/context-engine/compaction/types.ts:194 |
runId | readonly | string | - | packages/memory/src/context-engine/compaction/types.ts:196 |
scope | readonly | SessionScope | - | packages/memory/src/context-engine/compaction/types.ts:195 |
sessionId | readonly | string | - | packages/memory/src/context-engine/compaction/types.ts:197 |
source | readonly | CompactionSource | - | packages/memory/src/context-engine/compaction/types.ts:199 |