Suite YAML
The main configuration file that defines repositories, agents, and evaluators. Suite YAML Reference →
youBencha uses YAML or JSON configuration files to define evaluation suites. This guide covers all configuration options.
Suite YAML
The main configuration file that defines repositories, agents, and evaluators. Suite YAML Reference →
Prompt Files
External prompt templates for better organization and reusability. Prompt Files Guide →
Create a configuration file using yb init:
yb initOr create suite.yaml manually:
# Repository to evaluaterepo: https://github.com/example/repo.gitbranch: main
# AI Agent Configurationagent: type: copilot-cli config: prompt: "Add error handling to all API endpoints"
# Evaluation Criteriaevaluators: - name: git-diff - name: agentic-judge config: type: copilot-cli assertions: error_handling: "Proper error handling is implemented. Score 1 if yes, 0 if no."youBencha supports both YAML and JSON formats with automatic detection based on file extension.
| Extension | Format |
|---|---|
.yaml, .yml | YAML |
.json | JSON |
Every suite configuration must include:
| Field | Description |
|---|---|
repo | Repository URL (HTTP/HTTPS only) |
agent.type | Agent adapter type (e.g., copilot-cli) |
evaluators | Array of evaluator configurations |
| Field | Description | Default |
|---|---|---|
name | Test case name | Auto-generated |
description | Test case description | None |
branch | Git branch | Repository default |
commit | Specific commit SHA | None |
expected_source | Reference source type | None |
expected | Reference branch/commit | None |
timeout | Operation timeout (ms) | 300000 |
workspace_dir | Custom workspace directory | .youbencha-workspace |
pre_execution | Pre-execution hooks | None |
post_evaluation | Post-evaluation hooks | None |
Always validate your configuration before running:
yb validate -c suite.yamlFor verbose output:
yb validate -c suite.yaml -v