% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/api.R
\name{call_llm_history}
\alias{call_llm_history}
\title{Call the configured LLM with full message history}
\usage{
call_llm_history(messages, system_prompt_override = NULL)
}
\arguments{
\item{messages}{List of messages, each element being
\code{list(role = "system"|"user"|"assistant", content = "...")}.
The \strong{last} message must have \code{role = "user"}.}

\item{system_prompt_override}{Optional character string.  If supplied,
it \strong{replaces} the system role message in \code{messages} entirely
(useful for swapping in a custom persona at call-time).}
}
\value{
Character string: the model's response text.
}
\description{
Like \code{\link[=call_llm]{call_llm()}} but accepts a \code{messages} list that preserves the full
conversation context across multiple turns.  This is the engine behind
\code{\link[=addin_chat_panel]{addin_chat_panel()}}.
}
\keyword{internal}
