TreeCompactionEvent
Defined in: core/execution-events.ts:193
Emitted when context compaction occurs.
Extends
Section titled “Extends”Properties
Section titled “Properties”depth:
number
Defined in: core/execution-events.ts:33
Nesting depth (0 = root, 1 = child, etc.)
Inherited from
Section titled “Inherited from”eventId
Section titled “eventId”eventId:
number
Defined in: core/execution-events.ts:25
Monotonically increasing event ID
Inherited from
Section titled “Inherited from”messagesRemoved
Section titled “messagesRemoved”messagesRemoved:
number
Defined in: core/execution-events.ts:202
Messages removed
nodeId
Section titled “nodeId”nodeId:
string
Defined in: core/execution-events.ts:29
Node that emitted this event
Inherited from
Section titled “Inherited from”parentId
Section titled “parentId”parentId:
string|null
Defined in: core/execution-events.ts:31
Parent node ID (null for root events)
Inherited from
Section titled “Inherited from”path:
string[]
Defined in: core/execution-events.ts:35
Full path from root to this node
Inherited from
Section titled “Inherited from”strategy
Section titled “strategy”strategy:
string
Defined in: core/execution-events.ts:200
Compaction strategy used
timestamp
Section titled “timestamp”timestamp:
number
Defined in: core/execution-events.ts:27
Event timestamp
Inherited from
Section titled “Inherited from”tokensAfter
Section titled “tokensAfter”tokensAfter:
number
Defined in: core/execution-events.ts:198
Tokens after compaction
tokensBefore
Section titled “tokensBefore”tokensBefore:
number
Defined in: core/execution-events.ts:196
Tokens before compaction
type:
"compaction"
Defined in: core/execution-events.ts:194