FinishReasonClass enum

finish_reason retryability classification (issue #312).

Vendor finish_reasons are tri-state at the wire: TRANSIENT failures heal on replay, TERMINAL ones (policy/refusal family) never retry — retrying a filter is a safety bug — and UNKNOWN vendor words default to transient so a new term degrades to a retry instead of killing the turn (that terminal-by-default was the #312 bug). Unknown words are loud-logged via onUnknownFinishReason so the table grows from production logs.

Inheritance
Available extensions

Values

transient → const FinishReasonClass
terminal → const FinishReasonClass
unknown → const FinishReasonClass

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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.
inherited

Operators

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

Constants

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