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})
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
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