% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/llama.R
\name{llama_vocab_get_text}
\alias{llama_vocab_get_text}
\title{Get the text representation of a token}
\usage{
llama_vocab_get_text(model, token)
}
\arguments{
\item{model}{Model handle returned by [llama_load_model]}

\item{token}{Integer token ID (0-based)}
}
\value{
A character string, or `NULL` if the token has no text entry.
}
\description{
Returns the raw text string stored in the vocabulary for a given token ID.
Unlike [llama_token_to_piece], this does not apply any special rendering —
it returns exactly what is stored in the GGUF vocabulary table.
}
