Table of Contents

Enum EdgeChatStopReason

Namespace
Qavren.Edge.Chat
Assembly
Qavren.Edge.Chat.Onnx.dll

Why a turn ended.

public enum EdgeChatStopReason

Fields

Completed = 0

The model emitted its own end-of-sequence token.

MaxOutputTokens = 1

The per-turn output cap bound.

StopSequence = 2

An effective stop sequence matched the accumulated text.

Cancelled = 3

The caller cancelled.

Suspended = 4

The OS backgrounded the app mid-decode.

MemoryPressure = 5

Critical memory pressure arrived mid-decode.

Thermal = 6

Thermal state reached ChatThermalOptions.AbortAt mid-decode.

Error = 7

The native layer threw; the partial text already streamed stays streamed.

Remarks

MEAI's ChatFinishReason cannot express "the OS suspended us" or "we ran out of memory mid-turn", and a turn that was cut short must never be presented as one that finished. Both are emitted: the nearest ChatFinishReason for the ecosystem, and this for the truth.