% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/llama.R
\name{llama_vocab_is_eog}
\alias{llama_vocab_is_eog}
\title{Check if a token is an end-of-generation token}
\usage{
llama_vocab_is_eog(model, token)
}
\arguments{
\item{model}{Model handle returned by [llama_load_model]}

\item{token}{Integer token ID (0-based)}
}
\value{
A logical scalar.
}
\description{
Returns `TRUE` for EOS, EOT, and other tokens that signal end of output.
Useful for implementing custom generation loops.
}
