fromWire static method

LiteRtLmFinishReason fromWire(
  1. int value
)

The reason for the export's wire value; values this version does not know map to unknown.

Implementation

static LiteRtLmFinishReason fromWire(int value) => switch (value) {
  1 => stop,
  2 => length,
  3 => contextExhausted,
  4 => cancelled,
  5 => error,
  _ => unknown,
};