% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/api.R
\name{call_anthropic_history}
\alias{call_anthropic_history}
\title{Anthropic Messages API with multi-turn history}
\usage{
call_anthropic_history(messages, api_key, model)
}
\arguments{
\item{messages}{List of message objects.}

\item{api_key}{API key.}

\item{model}{Model name.}
}
\description{
Extracts the system role from \code{messages} and moves it to the top-level
\code{system} field, as required by the Anthropic API.  Only
\code{user} and \code{assistant} roles are allowed.
}
\keyword{internal}
