Enum EdgeChatStopReason
Why a turn ended.
public enum EdgeChatStopReason
Fields
Completed = 0The model emitted its own end-of-sequence token.
MaxOutputTokens = 1The per-turn output cap bound.
StopSequence = 2An effective stop sequence matched the accumulated text.
Cancelled = 3The caller cancelled.
Suspended = 4The OS backgrounded the app mid-decode.
MemoryPressure = 5Critical memory pressure arrived mid-decode.
Thermal = 6Thermal state reached
ChatThermalOptions.AbortAtmid-decode.Error = 7The 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.