restoreSession
Replaces the session with one saved by saveSession. A following generate whose prompt starts with the restored tokens only evaluates the remainder.
Throws
if session is corrupt, belongs to a different model, or does not fit this engine's context. A container rejected before reaching llama.cpp leaves the current session untouched; if llama.cpp rejects the KV-cache payload, the session is empty afterwards.