% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/llama.R
\name{llama_memory_seq_keep}
\alias{llama_memory_seq_keep}
\title{Keep only one sequence in the KV cache}
\usage{
llama_memory_seq_keep(ctx, seq_id)
}
\arguments{
\item{ctx}{Context handle returned by [llama_new_context]}

\item{seq_id}{Sequence ID to keep}
}
\value{
No return value, called for side effects.
}
\description{
Removes all sequences except the specified one from the KV cache.
}
\examples{
\dontrun{
llama_memory_seq_keep(ctx, seq_id = 0L)
}
}
