GenerateResponseChunk class

Available extensions
Annotations
  • @JsonSerializable(explicitToJson: true, includeIfNull: false)

Constructors

GenerateResponseChunk.new({Role? role, double? index, required List<Part?>? content, dynamic custom, bool? aggregated})
GenerateResponseChunk.fromJson(Map<String, dynamic> json)
factory

Properties

aggregated bool?
final
content List<Part?>?
final
custom → dynamic
final
hashCode int
The hash code for this object.
no setterinherited
index double?
final
media Media?

Available on GenerateResponseChunk, provided by the GenerateResponseChunkExtension extension

The media content of the response chunk.
no setter
role Role?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String

Available on GenerateResponseChunk, provided by the GenerateResponseChunkExtension 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>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited