LiteRtLmFinishReason enum

Why a native LiteRT-LM conversation stream ended, as the litert-lm-native stream_proxy_get_finish_reason export reports it.

Inheritance
Available extensions

Values

unknown → const LiteRtLmFinishReason

Not reported: an older runtime, a blocking send, or a turn the runtime could not classify.

stop → const LiteRtLmFinishReason

A stop token or a native stop sequence ended the turn.

length → const LiteRtLmFinishReason

The turn reached its output-token budget (maxTokens).

contextExhausted → const LiteRtLmFinishReason

The prompt and output filled the context window.

cancelled → const LiteRtLmFinishReason

The turn was cancelled.

error → const LiteRtLmFinishReason

The turn ended with an error.

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

Static Methods

fromWire(int value) → LiteRtLmFinishReason
The reason for the export's wire value; values this version does not know map to unknown.

Constants

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