StreamingState class
Streaming state for a single API call — tracks all content blocks and emits StreamUpdates as deltas arrive.
Constructors
Properties
-
contentBlocks
→ List<
ContentBlockAccumulator> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isComplete → bool
-
no setter
- messageId ↔ String?
-
getter/setter pair
- model ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stopReason ↔ String?
-
getter/setter pair
-
updates
→ Stream<
StreamUpdate> -
The update stream that UI listens to.
no setter
- usage → TokenUsage
-
no setter
Methods
-
close(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMessage(
) → Message - Build the final assembled Message.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited