% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/llama.R
\name{llama_memory_can_shift}
\alias{llama_memory_can_shift}
\title{Check if the KV cache supports shifting}
\usage{
llama_memory_can_shift(ctx)
}
\arguments{
\item{ctx}{Context handle returned by [llama_new_context]}
}
\value{
A logical scalar: \code{TRUE} if the memory supports position shifting.
}
\description{
Check if the KV cache supports shifting
}
\examples{
\dontrun{
if (llama_memory_can_shift(ctx)) {
  message("Context shifting is supported")
}
}
}
