% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vlm-prompts.R
\name{load_prompt}
\alias{load_prompt}
\title{Load and render a packaged prompt template}
\usage{
load_prompt(name, vars = list())
}
\arguments{
\item{name}{Template base name, e.g. \code{"extract_horizons"}.}

\item{vars}{Named list of substitution values. Each value is
coerced to character via \code{as.character}.}
}
\value{
Character scalar with the rendered prompt.
}
\description{
Reads \code{inst/prompts/<name>.md} as UTF-8 and substitutes
\code{\{varname\}} placeholders with values from \code{vars}. The
substitution is intentionally simple (literal string replacement,
no escaping, no logic) -- the prompt templates are author-curated
and the only callers are internal extraction functions.
}
\details{
Unknown placeholders (i.e. \code{\{foo\}} appearing in the template
without a matching entry in \code{vars}) are left as-is, which
makes typos visible at runtime in the rendered prompt.
}
\keyword{internal}
