EventsCompactionConfig

data class EventsCompactionConfig(val compactionInterval: Int? = null, val overlapSize: Int? = null, val summarizer: EventSummarizer? = null)

Configuration for event compaction.

Constructors

Link copied to clipboard
constructor(compactionInterval: Int? = null, overlapSize: Int? = null, summarizer: EventSummarizer? = null)

Properties

Link copied to clipboard
val compactionInterval: Int? = null

The number of new user-initiated invocations that, once fully represented in the session's events, will trigger a sliding-window compaction. Must be strictly positive when set.

Link copied to clipboard
val overlapSize: Int? = null

The number of preceding invocations to include from the end of the last compacted range when forming the next sliding-window compaction window. Creates an overlap between consecutive summaries for context continuity. Must be non-negative when set.

Link copied to clipboard

The EventSummarizer used to produce the compaction summary. When null, the runner defaults it to an LlmEventSummarizer backed by the root agent's model, requiring the root to be an LlmAgent (otherwise it throws at construction).

Functions

Link copied to clipboard

Returns true when sliding-window compaction is fully configured.