EventCompaction
@Serializable
A record that a continuous range of session Events has been replaced by a single piece of compactedContent (typically a model-generated summary).
An EventCompaction is attached to a new Event via EventActions.compaction; the original events are left untouched. When the next LLM prompt is built, the contents processor uses the range to skip the covered events and inserts compactedContent in their place.
Properties
Link copied to clipboard
The content that replaces the covered events in the prompt.
Link copied to clipboard
Epoch milliseconds of the latest covered event (inclusive). Must be greater than or equal to startTimestamp.
Link copied to clipboard
Epoch milliseconds of the earliest covered event (inclusive).