FinishReason enum

Reason why a model stopped generating tokens.

Inheritance

Constructors

FinishReason()
const

Values

unspecified → const FinishReason

Default value to use when a finish reason isn't set.

Never used as the reason for finshing.

stop → const FinishReason

Natural stop point of the model or provided stop sequence.

maxTokens → const FinishReason

The maximum number of tokens as specified in the request was reached.

safety → const FinishReason

The candidate content was flagged for safety reasons.

recitation → const FinishReason

The candidate content was flagged for recitation reasons.

other → const FinishReason

Unknown reason.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Constants

values → const List<FinishReason>
A constant List of the values in this enum, in order of their declaration.