A summarizer that uses an LLM to generate a compacted representation of existing events.
Configuration specifying the LLM and optional prompt.
Summarizes a list of events into a single CompactedEvent using the configured LLM.
The events to summarize. Must be non-empty.
A promise resolving to the compacted representation.
If events is empty or the LLM returns no content.
events
A summarizer that uses an LLM to generate a compacted representation of existing events.