% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/annotate.R
\name{annotate}
\alias{annotate}
\title{Apply an annotation task to input data (deprecated)}
\usage{
annotate(.data, task, model_name, ...)
}
\arguments{
\item{task}{A task object created with \code{\link[=task]{task()}} or \code{\link[=qlm_codebook]{qlm_codebook()}}.}

\item{...}{Additional arguments passed to \code{\link[ellmer:chat-any]{ellmer::chat()}},
\code{\link[ellmer:parallel_chat]{ellmer::parallel_chat_structured()}}, or \code{\link[ellmer:batch_chat]{ellmer::batch_chat_structured()}},
based on argument name. Arguments recognized by
\code{\link[ellmer:parallel_chat]{ellmer::parallel_chat_structured()}} take priority when there are overlaps.
Batch-specific arguments (\code{path}, \code{wait}, \code{ignore_hash}) are only used when
\code{batch = TRUE}. Arguments not recognized by any function will generate a warning.}
}
\value{
A data frame with one row per input element, containing:
\describe{
\item{\code{id}}{Identifier for each input (from names or sequential integers).}
\item{...}{Additional columns as defined by the task's schema.}
}
}
\description{
\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#deprecated}{\figure{lifecycle-deprecated.svg}{options: alt='[Deprecated]'}}}{\strong{[Deprecated]}}
}
\details{
\code{annotate()} has been deprecated in favor of \code{\link[=qlm_code]{qlm_code()}}. The new function
returns a richer object that includes metadata and settings for reproducibility.
}
\examples{
\dontrun{
# Deprecated usage
texts <- c("I love this product!", "This is terrible.")
annotate(texts, task_sentiment(), model_name = "openai")

# New recommended usage
coded <- qlm_code(texts, task_sentiment(), model = "openai")
coded  # Print as tibble
}

}
\seealso{
\code{\link[=qlm_code]{qlm_code()}} for the replacement function.
}
\keyword{internal}
