Package-level declarations

Types

Link copied to clipboard
interface EventCompactor

Base interface for compacting events.

Link copied to clipboard
data class EventsCompactionConfig(val compactionInterval: Int? = null, val overlapSize: Int? = null, val summarizer: EventSummarizer? = null, val tokenThreshold: Int? = null, val eventRetentionSize: Int? = null)

Configuration for event compaction.

Link copied to clipboard
interface EventSummarizer

Base interface for producing events summary.

Link copied to clipboard
class LlmEventSummarizer(val model: Model, val promptTemplate: String = DEFAULT_PROMPT_TEMPLATE) : EventSummarizer

An LLM-based event summarizer for context compaction.

Link copied to clipboard

An EventCompactor that compacts events in a sliding window over invocations.

Link copied to clipboard

An EventCompactor that compacts events once the most recent prompt reaches a token threshold, keeping a tail of recent events raw (tail retention).