CompressionResult class

Result returned after a context compression pass.

Constructors

CompressionResult({required List<ChatMessage> compressedMessages, required int originalTokens, required int compressedTokens, required String summary, required int compressedTurnCount, String? archiveId})
const

Properties

archiveId → String?
Optional archive ID referencing the stashed raw messages in EpisodicMemoryStore.
final
compressedMessages → List<ChatMessage>
The updated message list with older turns replaced by a summary.
final
compressedTokens → int
Estimated tokens in the message history after compression.
final
compressedTurnCount → int
The number of conversation turns that were compressed into the summary.
final
compressionRatio → double
Ratio of compressed tokens to original tokens (e.g. 0.35 means 65% reduction).
no setter
hashCode → int
The hash code for this object.
no setterinherited
originalTokens → int
Estimated tokens in the message history before compression.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
summary → String
The generated summary text.
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