Skip to main content

EvalBench

EvalBench is a framework for evaluating AI agents. It runs real agents — coding CLIs such as Gemini CLI, Claude Code, Codex CLI, and Antigravity CLI, as well as conversational data agents — through realistic multi-turn scenarios, captures every turn and tool call, and scores the resulting trajectory for correctness, goal completion, behavior, latency, and cost.

The same pipeline also evaluates single-turn generation tasks, most notably NL2SQL: generating and executing DQL, DML, and DDL against AlloyDB, BigQuery, Spanner, PostgreSQL, MySQL, SQLite, and more. Agentic and NL2SQL evaluations share one run config format, one scorer framework, and one reporting stack, so you can measure an agent and the model behind it side by side.

Its modular, plug-and-play architecture lets you bring your own agents, tools, datasets, and scorers while reusing a robust evaluation pipeline, result storage, and dashboards.


How it works

Every evaluation — agentic or NL2SQL — follows the same flow:

flowchart LR
    RC["Run config"] --> O["Orchestrator"]
    DS["Dataset<br/>scenarios or eval items"] --> O
    O --> SUT["System under test<br/>agent CLI, data agent, or model"]
    ENV["Environment<br/>MCP servers, skills, plugins, databases"] <--> SUT
    SUT --> T["Captured trajectory<br/>turns, tool calls, SQL, results"]
    T --> S["Scorers"]
    S --> R["Reporting<br/>CSV, BigQuery, dashboards"]
Concept Agentic evaluation NL2SQL evaluation
Dataset Scenarios with a starting_prompt, conversation_plan, and expected_trajectory (format) Eval items with a prompt, golden SQL, and eval queries (format)
System under test An agent CLI or data agent, selected by generator in the model config A model plus a prompt generator
Environment MCP servers, plugins, extensions, skills, or a fake MCP stub — inside a per-run sandbox One or more databases, with optional setup/teardown for DML and DDL
Interaction Multi-turn, driven by an LLM-based simulated user until the goal is met, a terminal state is reached, or max_turns is hit Single-turn generation and execution; multi-turn interactive variants are available for data agents
Scoring Trajectory matching, goal completion, hallucination and clarification behavior, latency, tokens, and cost Exact/set match, executability, LLM rater, and multi-trial consistency

Because both share a pipeline, features such as multi-trial runs, LLM judges, BigQuery reporting, and A/B experiment comparison work the same way for either.


What you can evaluate

Agents

Agent Generator Orchestrator Guide
Gemini CLI gemini_cli agent / geminicli Gemini CLI guide
Claude Code claude_code agent Claude Code guide
Codex CLI codex_cli agent Codex CLI guide
Antigravity (agy) CLI agy_cli agent Antigravity CLI guide
Conversational data agents dataagent dataagent / interact Data agent spec
Custom agents over gRPC agent_grpc_proxy agent Agentic evaluations

Agents are evaluated against the tools you give them, however those tools are delivered:

  • MCP servers — remote HTTP/SSE or local stdio Model Context Protocol servers.
  • Plugins — bundles installed from a git repo or local directory through each CLI's marketplace; may carry skills, MCP servers, or both.
  • Extensions and skills — installed through each CLI's native mechanism.
  • Fake MCP — a deterministic local stub for fast, offline testing of your harness and datasets without a real tool backend.

Every run is sandboxed: agents execute against an isolated home directory, so they never touch your local CLI settings and scenarios can run concurrently. See Agentic evaluations for the execution model, sandboxing, and tool paradigms.

NL2SQL and other generation tasks

  • NL2SQL across DQL, DML, and DDL on multiple databases and dialects — see the database config for the supported list.
  • Transform tooling — compiling and running generated Dataform and dbt projects.
  • Custom tasks — plug in your own Python scorer for anything else.

Getting started

Note: EvalBench requires Python 3.10 or higher and uv. Agent evaluations also need each CLI's runtime (for example, Node.js and npm for Gemini CLI) — see each agent's guide.

1. Install

Option A — run with uvx, no clone needed. EvalBench is published on PyPI as google-evalbench. uvx downloads it into an isolated, cached environment and runs it in one step:

uvx google-evalbench --help
uvx google-evalbench --experiment_config=path/to/run_config.yaml

Paths inside the run config (model config, evalset, and so on) are resolved relative to the current directory, so run the command from the folder that holds your config files. To pin a release, use uvx google-evalbench@<version>. To keep the command installed, run uv tool install google-evalbench and then call google-evalbench --experiment_config=... directly.

Option B — clone the repo. Clone if you want to run the bundled examples under datasets/ as-is (they reference other files in the repo), use the viewer, or contribute:

git clone git@github.com:GoogleCloudPlatform/evalbench.git
cd evalbench
uv sync

The examples below use the clone and ./evalbench/run.sh, which wraps uv run evalbench/evalbench.py --experiment_config="$EVAL_CONFIG".

2. Configure GCP authentication

The bundled examples use Gemini on Vertex AI — for the simulated user, LLM-based scorers, and NL2SQL generation. If gcloud is not installed already, follow the gcloud installation guide, then:

gcloud auth application-default login

export EVAL_GCP_PROJECT_ID=your_project_id_here
export EVAL_GCP_PROJECT_REGION=your_region_here

3. Run your first agent evaluation

Start with Gemini CLI against a fake MCP server. It exercises the full agentic pipeline — simulated user, tool calls, trajectory capture, and scoring — without a real tool backend:

export EVAL_CONFIG=datasets/gemini-cli-tools/example_run_fake_config.yaml
./evalbench/run.sh

Read through example_run_fake_config.yaml and its evalset to see how scenarios, the model config, and scorers fit together. Results are written to results/.

To evaluate a real agent against a real MCP server, switch to one of the ready-to-run configs under datasets/gemini-cli-tools/, datasets/claude-code-tools/, datasets/codex-cli-tools/, or datasets/agy-cli-tools/. For example:

export EVAL_CONFIG=datasets/claude-code-tools/example_run_config.yaml
./evalbench/run.sh

4. Run an NL2SQL evaluation   Open In Colab

The same entry point runs NL2SQL — only the run config changes. This example generates and scores DQL queries against the db_blog dataset on a local SQLite database:

export EVAL_CONFIG=datasets/bat/example_run_config.yaml
./evalbench/run.sh

See example_run_config.yaml for the dataset, database, generation, and scorer settings used, and the NL2SQL guide for query types, database setup, and reporting.


Scoring

Scorers are enabled from the scorers: block of the run config, and agentic and NL2SQL scorers live in the same catalog. A typical agentic starting set:

scorers:
  trajectory_matcher: {}
  turn_count: {}
  end_to_end_latency: {}
  token_consumption: {}
  goal_completion:
    model_config: datasets/model_configs/gemini_2.5_pro_model.yaml
  behavioral_metrics:
    model_config: datasets/model_configs/gemini_2.5_pro_model.yaml
Family Examples
Agentic trajectory_matcher, goal_completion, behavioral_metrics, parameter_analysis, binary_rubric_scorer, turn_count, agent_steps, latency and token scorers
Skills skills_trajectory, skills_best_practices
SQL exact_match, set_match, executable_sql, llmrater
Multi-trial consistency exact_match_consistency, llm_consistency
Custom python_scorer for your own judges

LLM-judged scorers can optionally be given tool access instead of single-shot prompting.


Reporting and dashboards

Every run — agentic or NL2SQL — writes to the reporters enabled in the reporting: block of the run config:

reporting:
  csv:
    output_directory: 'results'
  bigquery:
    gcp_project_id: your_project_id_here
  gcs_artifacts:
    bucket: 'your-artifacts-bucket'
Reporter What you get
csv A results/<job_id>/ folder per run containing configs.csv, evals.csv (every scenario or eval item, including the full conversation and tool calls), scores.csv (one row per scorer per item, with the judge's explanation), and summary.csv (aggregate metrics).
bigquery The same tables in BigQuery for long-term storage, cross-run analysis, and A/B experiment comparison.
gcs_artifacts Each scenario's agent sandbox, zipped and uploaded to a GCS bucket so you can inspect exactly what the agent wrote and configured.

Viewer

The viewer is a local dashboard over your results directory, built for agent runs:

  • Status — an overview of the latest runs, per agent.
  • List — every run, with trajectory match, turn count, token usage, latency, goal completion, and an AI score. You can filter by product, dataset, or requester.
  • Conversations — step through each scenario turn by turn (simulated user and agent), with each scorer's result and explanation next to it.
  • Charts — metric trends across runs over time.
  • Compare — pick two runs and get a Gemini-generated comparison of metrics, errors, and tool-call trajectories.

To run it from a cloned repo:

cd viewer
RESULTS_DIR=../results uv run mesop main.py

For BigQuery experiment reports on NL2SQL runs, such as A/B comparisons and breakdowns by database and dialect, see the NL2SQL guide.


Documentation

Full reference documentation lives in docs/.

Doc Contents
Agentic evaluations Execution model, sandboxing, and tool paradigms — start here
Agentic dataset format Scenarios, conversation plans, and expected trajectories
Run config The top-level YAML that drives every evaluation run
Model config Generator and model selection, and generation settings
Scorers Every available scorer and its configuration options
NL2SQL evaluations How NL2SQL runs work, query types, database setup, and BigQuery experiment reports
NL2SQL dataset format Prompts, golden SQL, and eval queries
Database config Connection details and supported dialects
Examples Runnable notebooks for SQLite, Cloud SQL, BigQuery, and Agent Runtime

Contributions are welcome — see contributing.

Metadata

Release files for google-evalbench 1.20.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for google-evalbench 1.20.0
File Size Uploaded Provenance Actions
google_evalbench-1.20.0.tar.gz 463.1 kB With provenance Details for google_evalbench-1.20.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for google-evalbench 1.20.0
File Interpreter ABI Platform Actions
google_evalbench-1.20.0-py3-none-any.whl Python 3 none any Details for google_evalbench-1.20.0-py3-none-any.whl

Total release size: 1.1 MB

Release files / google_evalbench-1.20.0.tar.gz

Download URL google_evalbench-1.20.0.tar.gz
Size 463.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1eab07af521eac1a0fb877e41d5a9ea6a8080d6339639fe9d14afd09fcea8fe4
BLAKE2b-256 checksum
How to use checksums
516487dc7531e6287ae6e0d0b46375c0fd61d581ec8ec94af10f3671241eccab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.2.0 CPython/3.11.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by Google Cloud, verified by PyPI on Oct 26, 2026.

Transparency log

Release files / google_evalbench-1.20.0-py3-none-any.whl

Download URL google_evalbench-1.20.0-py3-none-any.whl
Size 598.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac31c475bd59a11907059d3ee4c36eb88b1245fe8526ed5afdf854911f45ad3e
BLAKE2b-256 checksum
How to use checksums
33d4678418be87cd730773f649fc9854ed9eb12b361817d56ef5d7c05f1e8b0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.2.0 CPython/3.11.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by Google Cloud, verified by PyPI on Oct 26, 2026.

Transparency log

Security for google-evalbench 1.20.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for google_evalbench-1.20.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by Google Cloud, verified by PyPI on Oct 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page