CompressedContext class

Result of prompt compression.

Constructors

CompressedContext({required String text, required int originalChars, required int compressedChars, required double ratio, required int estimatedTokensSaved, required List<ChunkSearchResult> includedChunks})
const

Properties

compressedChars int
Character count after compression.
final
estimatedTokensSaved int
Estimated token savings.
final
hashCode int
The hash code for this object.
no setterinherited
includedChunks List<ChunkSearchResult>
Chunks included in the context.
final
originalChars int
Original character count before compression.
final
ratio double
Compression ratio (0.0 - 1.0, lower = more compressed).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The compressed text for LLM input.
final

Methods

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

Operators

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