StateLoadResult class

Result of BackendStatePersistence.stateLoadFile. Contains the token sequence saved alongside the native KV-cache state.

Loading restores the native KV cache only. Callers using higher-level chat abstractions must persist and reconstruct their chat message history separately; these raw token IDs are exposed mainly for diagnostics and raw-prompt callers.

Constructors

StateLoadResult({required List<int> tokens})
Creates a new StateLoadResult.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokens List<int>
The token IDs that the saved state was produced from.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited