LlmEventSummarizer
class LlmEventSummarizer(val model: Model, val promptTemplate: String = DEFAULT_PROMPT_TEMPLATE) : EventSummarizer
An LLM-based event summarizer for context compaction.
This class is responsible for summarizing a provided list of events into a single compacted event. It is designed to be used as part of a context-compaction process such as sliding-window or tail-retention compaction.
When summarizeEvents is called with a list of events, this class formats the events, generates a summary using the model, and returns a new Event containing the summary within a com.google.adk.kt.events.EventCompaction on its Event.actions.