LLMStreamChunk class

Represents a chunk of text or progress emitted during a streaming LLM call.

Constructors

LLMStreamChunk({required String textDelta, bool isDone = false, LLMResponse? finalResponse})
Creates a new LLMStreamChunk instance.
const

Properties

finalResponse → LLMResponse?
The final full response containing the accumulated text and tool calls. This field is only non-null when isDone is true.
final
hashCode → int
The hash code for this object.
no setterinherited
isDone → bool
True when this is the final chunk in the stream.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textDelta → String
The incremental text piece.
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