TokenThresholdEventCompactor

constructor(config: EventsCompactionConfig, agentName: String, branch: String?)

Parameters

config

The compaction configuration; must have token-threshold fields set.

agentName

The current agent name, used when estimating the prompt token count.

branch

The current invocation branch, used when estimating the prompt token count.