% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/llama.R
\name{llama_n_ctx}
\alias{llama_n_ctx}
\title{Get context window size}
\usage{
llama_n_ctx(ctx)
}
\arguments{
\item{ctx}{Context handle returned by [llama_new_context]}
}
\value{
An integer scalar: the context window size (number of tokens).
}
\description{
Get context window size
}
\examples{
\dontrun{
model <- llama_load_model("model.gguf")
ctx <- llama_new_context(model, n_ctx = 4096L)
llama_n_ctx(ctx)  # 4096
}
}
