foundry_eval_run_data: Define an evaluation run data source

View source: R/evals.R

foundry_eval_run_dataR Documentation

Define an evaluation run data source

Description

Point an evaluation run at its rows: either an uploaded JSONL file (via file_id) or inline content. Exactly one of file_id or content must be supplied.

Usage

foundry_eval_run_data(file_id = NULL, content = NULL)

Arguments

file_id

Character. ID of a JSONL file uploaded with foundry_file_upload().

content

List. Inline rows, each a list with an item element (and an optional sample element).

Value

A named list describing a jsonl run data source, for use in foundry_eval_run_create().

Examples

foundry_eval_run_data(file_id = "file-abc123")

foundry_eval_run_data(content = list(
  list(item = list(question = "2+2?", answer = "4"))
))

foundryR documentation built on Sept. 25, 2026, 1:10 a.m.