% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/providers.R
\name{llm_provider_anthropic}
\alias{llm_provider_anthropic}
\title{Create an Anthropic Claude LLM provider}
\usage{
llm_provider_anthropic(
  api_key = Sys.getenv("ANTHROPIC_API_KEY"),
  model = "claude-sonnet-4-6",
  anthropic_version = "2023-06-01",
  max_retries = 5L
)
}
\arguments{
\item{api_key}{Defaults to \code{Sys.getenv("ANTHROPIC_API_KEY")}.}

\item{model}{Default \code{"claude-3-5-sonnet-20241022"}.}

\item{anthropic_version}{API version header string.}

\item{max_retries}{Maximum request attempts.}
}
\value{
An \code{llm_provider} object.
}
\description{
Anthropic's API separates the system prompt as a top-level field and uses a
different response shape than the OpenAI format. This constructor handles
both translations internally.
}
\examples{
\dontrun{
p <- llm_provider_anthropic()   # reads ANTHROPIC_API_KEY from env
print(p)
}
}
