% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/workflow__benchmarks.R
\name{benchmark_from_df}
\alias{benchmark_from_df}
\title{Create an ASA Benchmark from a Data Frame}
\usage{
benchmark_from_df(
  df,
  prompt_col,
  expected_col,
  id_col = NULL,
  category_col = NULL,
  output_format_col = NULL,
  match_col = NULL,
  run_args_col = NULL,
  field_matchers_col = NULL,
  name = "CustomBenchmark",
  description = NULL,
  version = "1.0",
  citation = NULL,
  metadata = list(),
  output_format = "text",
  match = "exact"
)
}
\arguments{
\item{df}{data.frame containing benchmark rows}

\item{prompt_col}{Column containing prompts}

\item{expected_col}{Column containing expected values}

\item{id_col}{Optional column containing task ids}

\item{category_col}{Optional column containing task categories}

\item{output_format_col}{Optional column containing per-task output formats}

\item{match_col}{Optional column containing per-task match modes}

\item{run_args_col}{Optional column containing per-task run arguments}

\item{field_matchers_col}{Optional column containing per-task field matcher specs}

\item{name}{Benchmark name (default: "CustomBenchmark")}

\item{description}{Optional benchmark description}

\item{version}{Benchmark version string (default: "1.0")}

\item{citation}{Optional citation string}

\item{metadata}{Optional benchmark metadata}

\item{output_format}{Default output format when \code{output_format_col} is NULL}

\item{match}{Default matcher when \code{match_col} is NULL}
}
\value{
An object of class \code{asa_benchmark}
}
\description{
Converts a tabular benchmark definition into an \code{asa_benchmark}.
}
