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

\item{path}{File path to save state to}
}
\value{
A logical scalar: \code{TRUE} on success (errors on failure).
}
\description{
Saves the full context state (including KV cache) to a binary file.
This allows resuming generation later from the exact same state.
}
\examples{
\dontrun{
llama_state_save(ctx, "state.bin")
}
}
