YAML Configuration Fields#
This page provides a complete field-by-field reference for each YAML configuration file type, cross-referenced with the corresponding Dart and Python object field names.
Job#
Job files define runtime settings for an evaluation run, including sandbox configuration, rate limits, model selection, variant definitions, tag-based filtering, and pass-through parameters for Inspect AI’s eval_set() and Task constructors. Located in eval/jobs/.
Field name |
YAML type |
Optional |
Dart field |
Python field |
Description |
|---|---|---|---|---|---|
|
string |
Y |
|
|
Human-readable description of the job |
|
string |
N |
|
|
Directory to write evaluation logs to |
|
string/object |
Y |
|
|
Sandbox configuration. String shorthand (e.g. |
|
string |
Y |
Sandbox type: |
||
|
object |
Y |
Pass-through parameters for sandbox plugin configuration |
||
|
string |
Y |
Registry prefix prepended to image names during sandbox resolution (e.g. |
||
|
int |
Y |
|
|
Maximum concurrent API connections (default: |
|
list |
N |
|
|
List of model identifiers to evaluate (required — at least one model must be specified) |
|
map |
Y |
|
|
Named variant definitions (keys are names, values are config maps). Can also be a list of paths to external variant files. |
|
list |
Y |
Paths or glob patterns to context files |
||
|
list |
Y |
MCP server configurations. Each entry is one of: (1) an object with |
||
|
list |
Y |
Paths or glob patterns to skill directories |
||
|
object |
Y |
Optional parameters merged into the task config dict at runtime |
||
|
object |
Y |
|
|
Tag-based task selection filter |
|
list |
Y |
|
|
Only run tasks whose metadata tags include all of these |
|
list |
Y |
|
|
Exclude tasks whose metadata tags include any of these |
|
object |
Y |
|
|
Tag-based sample selection filter (same schema as |
|
list |
Y |
|
|
Glob patterns for discovering task directories (relative to dataset root) |
|
object |
Y |
|
|
Per-task configurations with inline overrides |
|
list |
Y |
|
|
Only run these sample IDs |
|
list |
Y |
|
|
Exclude these sample IDs |
|
object |
Y |
|
|
Per-task argument overrides passed to the task function |
|
list |
Y |
|
|
Only run these variant names for this task |
|
list |
Y |
|
|
Exclude these variant names for this task |
|
bool |
Y |
|
|
Copy final workspace to |
|
object |
Y |
|
|
Pass-through dict of any valid Inspect AI |
Task#
Task files define a single evaluation task with its samples, prompt configuration, and optional Inspect AI Task parameter overrides. Located in eval/tasks/<task_id>/task.yaml.
Task-level Inspect AI Task parameters (model, limits, sandbox, etc.) are nested under inspect_task_args.
Field name |
YAML type |
Optional |
Dart field |
Python field |
Description |
|---|---|---|---|---|---|
|
string |
Y |
|
|
Name of the |
|
string |
Y |
Task identifier (defaults to directory name) |
||
|
string |
Y |
|
|
Human-readable description |
|
object |
Y |
Dataset configuration. Must contain exactly one of |
||
|
object |
Y |
Inline/file-based sample definitions (see |
||
|
list |
Y |
Inline sample definitions (list of sample objects) |
||
|
list |
Y |
Glob patterns for external sample YAML files (relative to task dir) |
||
|
string |
Y |
Path or URL to a JSON/JSONL dataset file (maps to Inspect’s |
||
|
string |
Y |
Path to a CSV dataset file (maps to Inspect’s |
||
|
object |
Y |
|
|
Additional arguments passed through to the dataset constructor (e.g. |
|
string |
Y |
|
|
Custom system prompt for this task |
|
object |
Y |
|
|
Files to copy into sandbox for all samples ( |
|
string |
Y |
|
|
Setup script to run in sandbox before evaluation (overridden by sample-level |
|
string |
Y |
|
|
Task display name (e.g. for plotting) |
|
int |
Y |
|
|
Version of task spec |
|
object |
Y |
|
|
Additional metadata to associate with the task |
|
object |
Y |
Pass-through dict of any valid Inspect AI |
Sample#
Samples are individual test cases defined either inline in task.yaml under dataset.samples.inline, or in external YAML files referenced via dataset.samples.paths. Fields like difficulty and tags should be nested inside the sample’s metadata dict.
Field name |
YAML type |
Optional |
Dart field |
Python field |
Description |
|---|---|---|---|---|---|
|
string |
N |
|
|
Unique sample identifier |
|
string |
N |
|
|
The prompt given to the model |
|
string |
N |
|
|
Expected output or grading criteria |
|
string |
Y |
|
||
|
list |
Y |
Categories for filtering |
||
|
string |
Y |
Override system prompt for this sample |
||
|
list |
Y |
|
|
Answer choices for multiple-choice evaluations |
|
object |
Y |
|
|
Arbitrary metadata |
|
string/object |
Y |
|
|
Override sandbox environment for this sample |
|
object |
Y |
|
|
Files to copy into sandbox ( |
|
string |
Y |
|
|
Setup script to run in sandbox before evaluation |