CompactionResult class final
Generated compaction data ready to persist as a CompactionRecord.
Ported from pi's CompactionResult.
Constructors
- CompactionResult({required String summary, required String firstKeptEntryId, required int tokensBefore, Object? details})
-
Creates a CompactionResult.
const
Properties
- details → Object?
-
Structured details stored with the compaction entry: a
{'readFiles': [...], 'modifiedFiles': [...]}map.final - firstKeptEntryId → String
-
Entry id where retained history starts.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- summary → String
-
Summary text that replaces compacted history in future context.
final
- tokensBefore → int
-
Estimated context tokens before compaction.
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