CompactionEvent#

Distinguish UI streams, extension notifications, and external replies. See the guide.

class zett_agent.extensions.events.CompactionEvent(compressed_from, compressed_to, kept_from, kept_to, summary)[source]#

A completed context compaction.

Ranges are one-based and inclusive in the non-system message list immediately before this compaction. A previous checkpoint counts as one message. These are context positions, not durable raw-log IDs or user-turn numbers.

Parameters:
  • compressed_from (int)

  • compressed_to (int)

  • kept_from (int)

  • kept_to (int)

  • summary (str)

compressed_from: int#

First and last messages folded into the checkpoint.

kept_from: int#

First and last messages retained without modification.

summary: str#

Exact checkpoint content now present in the active context.