Choice class

Represents a choice generated by the model.

Constructors

Choice({required String text, required int index, required dynamic logprobs, String? finishReason})
Creates a new Choice instance.
Choice.fromJson(Map<String, dynamic> json)
Creates a Choice from a JSON map.
factory

Properties

finishReason String?
The reason the model stopped generating text.
final
hashCode int
The hash code for this object.
no setterinherited
index int
The index of the choice.
final
logprobs → dynamic
The logprobs of the choice.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The text of the choice.
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