stateSaveFile abstract method

Future<bool> stateSaveFile(
  1. int contextHandle,
  2. String path,
  3. List<int> tokens
)

Writes the KV cache state of contextHandle together with the token sequence in tokens to path. The file format is the one llama.cpp emits — opaque, version-tied, and not portable across llama.cpp builds.

Returns true on success.

Implementation

Future<bool> stateSaveFile(int contextHandle, String path, List<int> tokens);