reset method
Clears all state so the next call starts a new sequence.
Implementation
Future<void> reset() async {
_checkOpen();
_hasHiddenState = false;
length = 0;
_history.clear();
_embeddingKeys.clear();
_checkpoints.clear();
_gpu?.reset();
await _executor?.reset();
}