% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/public__s3_methods.R
\name{asa_result}
\alias{asa_result}
\title{Constructor for asa_result Objects}
\usage{
asa_result(
  prompt,
  message,
  parsed,
  raw_output,
  elapsed_time,
  status,
  search_tier = "unknown",
  parsing_status = NULL,
  trace_json = "",
  execution = NULL
)
}
\arguments{
\item{prompt}{The original prompt}

\item{message}{The agent's response text}

\item{parsed}{Parsed output (list or NULL)}

\item{raw_output}{Full agent trace}

\item{elapsed_time}{Execution time in minutes}

\item{status}{Status ("success" or "error")}

\item{search_tier}{Which search tier was used ("primp", "selenium", "ddgs",
"requests", or "unknown"). Useful for assessing result quality.}

\item{parsing_status}{List with JSON parsing validation info: valid (logical),
reason ("ok", "parsing_failed", "not_object", "missing_fields", "null_values",
"no_validation"), and missing (character vector of missing/invalid fields).}

\item{trace_json}{Structured JSON trace (when available)}

\item{execution}{Optional operational metadata list. Common fields include
\code{thread_id}, \code{stop_reason}, \code{status_code}, tool budget
counters, \code{fold_count}, and action/plan metadata extracted from agent
state. When created via \code{\link{run_task}}, selected execution fields
are also attached as top-level aliases such as \code{token_stats},
\code{fold_stats}, \code{plan}, and \code{action_ascii}.}
}
\value{
An object of class \code{asa_result}
}
\description{
Creates an S3 object representing the result of a research task.
}
