% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/llama.R
\name{llama_memory_seq_pos_range}
\alias{llama_memory_seq_pos_range}
\title{Get position range for a sequence}
\usage{
llama_memory_seq_pos_range(ctx, seq_id)
}
\arguments{
\item{ctx}{Context handle returned by [llama_new_context]}

\item{seq_id}{Sequence ID}
}
\value{
A named integer vector with elements \code{min} and \code{max}.
}
\description{
Returns the minimum and maximum token positions for a given sequence
in the KV cache.
}
\examples{
\dontrun{
range <- llama_memory_seq_pos_range(ctx, seq_id = 0L)
cat("Positions:", range["min"], "to", range["max"], "\n")
}
}
