AssembledContext class

Assembled context ready for LLM consumption.

Constructors

AssembledContext({required String text, required List<ChunkSearchResult> includedChunks, required int estimatedTokens, required int remainingBudget})
const

Properties

estimatedTokens → int
Exact engine-tokenizer count for text. The legacy field name is kept for backward compatibility.
final
hashCode → int
The hash code for this object.
no setterinherited
includedChunks → List<ChunkSearchResult>
Chunks that were included in the context.
final
remainingBudget → int
Tokens remaining from budget.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
The combined text of all selected chunks.
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