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

\item{i}{Integer index into the last batch (0-based). Use \code{-1} for the last token.}
}
\value{
A numeric vector of length \code{n_vocab}.
}
\description{
Returns the logit vector for token at index \code{i} in the last decoded batch.
Use \code{i = -1} to get the logits for the last token.
}
