RecordedTurn class
All the chunks that made up one streamed model response, i.e. everything
that arrived after a single call to Transport.sendRequest.
Constructors
-
RecordedTurn({required List<
RecordedChunk> chunks, String? label}) -
Creates a RecordedTurn.
const
-
RecordedTurn.fromJson(Map<
String, dynamic> json) -
Deserializes a RecordedTurn from JSON.
factory
Properties
-
chunks
→ List<
RecordedChunk> -
The ordered chunks that made up the model's response for this turn.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String?
-
An optional human-readable note about what this turn represents, e.g.
"user asks for a 3-day forecast". Purely descriptive; never read by the replay logic.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes this turn to JSON.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited