% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/api_llamacpp.R
\name{llamacpp}
\alias{llamacpp}
\title{llama.cpp Provider Function}
\usage{
llamacpp(..., .called_from = NULL)
}
\arguments{
\item{...}{Parameters passed to the appropriate llama.cpp-specific function.}

\item{.called_from}{An internal argument specifying which verb invoked this
function. Managed automatically by tidyllm verbs; do not set manually.}
}
\value{
The result of the requested action (e.g., an updated \code{LLMMessage}
for \code{chat()}, a tibble for \code{embed()} or \code{list_models()}).
}
\description{
The \code{llamacpp()} provider connects tidyllm to a locally running
\href{https://github.com/ggml-org/llama.cpp}{llama.cpp} server. It exposes
the same verb/provider pattern as every other tidyllm provider while
also offering llama.cpp-specific features: BNF grammar constraints
(\code{.grammar}), token logprobs (\code{.logprobs}), and model management helpers.

The server must be started separately before calling \code{llamacpp()}. See
\code{llamacpp_health()} to verify the server is running, and
\code{llamacpp_download_model()} / \code{list_hf_gguf_files()} to obtain models.
}
