GenerateResponseChunk<O> class
A chunk of a response from a generate action.
- Inheritance
-
- Object
- ModelResponseChunk
- GenerateResponseChunk
- Available extensions
Constructors
-
GenerateResponseChunk(ModelResponseChunk _chunk, {List<
ModelResponseChunk> previousChunks = const [], O? output})
Properties
- accumulatedText → String
-
no setter
- aggregated ↔ bool?
-
getter/setter pairinherited
-
content
↔ List<
Part> -
getter/setter pairinherited
-
custom
↔ Map<
String, dynamic> ? -
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- index ↔ int?
-
getter/setter pairinherited
- jsonOutput → O?
-
Tries to parse the output as JSON.
no setter
- media → Media?
-
Available on ModelResponseChunk, provided by the ModelResponseChunkExtension extension
The media content of the response chunk.no setter - output → O?
-
final
-
previousChunks
→ List<
ModelResponseChunk> -
final
- rawChunk → ModelResponseChunk
-
no setter
- role ↔ Role?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
no setter
- text → String
-
Available on ModelResponseChunk, provided by the ModelResponseChunkExtension extension
The text content of the response chunk.no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited