GenerateResponse class

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

Constructors

GenerateResponse.new({Message? message, FinishReason? finishReason, String? finishMessage, double? latencyMs, GenerationUsage? usage, dynamic custom, dynamic raw, GenerateRequest? request, Operation? operation, List<Candidate?>? candidates})
GenerateResponse.fromJson(Map<String, dynamic> json)
factory

Properties

candidates List<Candidate?>?
final
custom → dynamic
final
finishMessage String?
final
finishReason FinishReason?
final
hashCode int
The hash code for this object.
no setterinherited
latencyMs double?
final
media Media?

Available on GenerateResponse, provided by the GenerateResponseExtension extension

The media content of the response.
no setter
message Message?
final
operation Operation?
final
raw → dynamic
final
request GenerateRequest?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String

Available on GenerateResponse, provided by the GenerateResponseExtension extension

The text content of the response.
no setter
usage GenerationUsage?
final

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