runDecode method

Future<String> runDecode()

Runs the decode step and returns the generated text.

Implementation

Future<String> runDecode() {
  final handle = _handle;
  if (handle == null) {
    throw const LiteRtLmException('Session is already disposed.');
  }
  return LiteRtLmNativeRuntime.instance.runSessionDecode(handle);
}