% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/llama.R
\name{llama_state_load}
\alias{llama_state_load}
\title{Load context state from file}
\usage{
llama_state_load(ctx, path)
}
\arguments{
\item{ctx}{Context handle returned by [llama_new_context]}

\item{path}{File path to load state from}
}
\value{
A logical scalar: \code{TRUE} on success (errors on failure).
}
\description{
Restores a previously saved context state (including KV cache).
}
\examples{
\dontrun{
llama_state_load(ctx, "state.bin")
# Continue generation from saved state
result <- llama_generate(ctx, "")
}
}
