Skip to content

TreeCompactionEvent

Defined in: core/execution-events.ts:193

Emitted when context compaction occurs.

depth: number

Defined in: core/execution-events.ts:33

Nesting depth (0 = root, 1 = child, etc.)

BaseExecutionEvent.depth


eventId: number

Defined in: core/execution-events.ts:25

Monotonically increasing event ID

BaseExecutionEvent.eventId


messagesRemoved: number

Defined in: core/execution-events.ts:202

Messages removed


nodeId: string

Defined in: core/execution-events.ts:29

Node that emitted this event

BaseExecutionEvent.nodeId


parentId: string | null

Defined in: core/execution-events.ts:31

Parent node ID (null for root events)

BaseExecutionEvent.parentId


path: string[]

Defined in: core/execution-events.ts:35

Full path from root to this node

BaseExecutionEvent.path


strategy: string

Defined in: core/execution-events.ts:200

Compaction strategy used


timestamp: number

Defined in: core/execution-events.ts:27

Event timestamp

BaseExecutionEvent.timestamp


tokensAfter: number

Defined in: core/execution-events.ts:198

Tokens after compaction


tokensBefore: number

Defined in: core/execution-events.ts:196

Tokens before compaction


type: "compaction"

Defined in: core/execution-events.ts:194