Skip to content

CompactionEvent

Defined in: agent/compaction/config.ts:14

Event emitted when compaction occurs. This is included in StreamEvent for UI visibility.

iteration: number

Defined in: agent/compaction/config.ts:28

Agent iteration when compaction occurred


messagesAfter: number

Defined in: agent/compaction/config.ts:24

Number of messages after compaction


messagesBefore: number

Defined in: agent/compaction/config.ts:22

Number of messages before compaction


strategy: string

Defined in: agent/compaction/config.ts:16

The strategy that performed the compaction


optional summary: string

Defined in: agent/compaction/config.ts:26

Summary text if summarization was used


tokensAfter: number

Defined in: agent/compaction/config.ts:20

Token count after compaction


tokensBefore: number

Defined in: agent/compaction/config.ts:18

Token count before compaction