TurnEnd enum

How one generation turn ended.

Inheritance
Available extensions

Values

endOfSequence → const TurnEnd

The model ended the reply.

outputLimit → const TurnEnd

The turn reached maxOutputTokens.

contextLimit → const TurnEnd

The context window (maxTokens) was full. If decoding filled it, EngineTurn.text completes and the partial turn stays committed. If the input did not fit, EngineTurn.text fails with ContextLimitException, the engine restores its context to before the turn, and core takes the turn back.

stopped → const TurnEnd

The consumer asked: stopGeneration(), or cancelled the text subscription. A partial reply stays committed; a turn that emitted no non-empty text is taken back.

closed → const TurnEnd

The session or model was closed mid-turn without the consumer asking to stop. When EngineTurn.text completes with this end, core keeps any partial reply and then fails the chat turn. An error on the text instead follows the failed-turn take-back rule.

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<TurnEnd>
A constant List of the values in this enum, in order of their declaration.