CompactionPreparation class final

Prepared inputs for a compaction run.

Ported from pi's CompactionPreparation.

Constructors

CompactionPreparation({required String firstKeptEntryId, required List<Message> messagesToSummarize, required List<Message> turnPrefixMessages, required bool isSplitTurn, required int tokensBefore, String? previousSummary, List<String> readFiles = const [], List<String> modifiedFiles = const [], CompactionSettings settings = defaultCompactionSettings, List<String?> summarizableRecordIds = const []})
Creates a CompactionPreparation.
const

Properties

firstKeptEntryId → String
Entry id where retained history starts.
final
hashCode → int
The hash code for this object.
no setterinherited
isSplitTurn → bool
Whether compaction splits a turn.
final
messagesToSummarize → List<Message>
Messages summarized into the history summary.
final
modifiedFiles → List<String>
Files modified in the compacted history (accumulated across compactions).
final
previousSummary → String?
Previous compaction summary used for iterative updates.
final
readFiles → List<String>
Files read in the compacted history (accumulated across compactions).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
settings → CompactionSettings
Settings used to prepare compaction.
final
summarizableRecordIds → List<String?>
Session-record id per message of messagesToSummarize (parallel list, null for synthetic messages) — powers the record <id> pointer of the open-request candidates.
final
tokensBefore → int
Estimated context tokens before compaction.
final
turnPrefixMessages → List<Message>
Prefix messages summarized separately when compaction splits a turn.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited