Skip to content

feat(cli): Support adk eval --num_runs N as AgentEvaluator - #6622

Closed
copybara-service[bot] wants to merge 1 commit into
mainfrom
copybara/959841339
Closed

feat(cli): Support adk eval --num_runs N as AgentEvaluator#6622
copybara-service[bot] wants to merge 1 commit into
mainfrom
copybara/959841339

Conversation

@copybara-service

Copy link
Copy Markdown

feat(cli): Support adk eval --num_runs N as AgentEvaluator

Merge #4411

Problem:
adk eval did not support repeated runs, so users had to use external loops to
reduce nondeterminism. Also, when adding multi-run support, reporting needs to
stay consistent between summary and detailed output.

Solution:
Added --num_runs to adk eval (default: 1, min: 1) and wired it into
inference execution so each eval set can be run multiple times in a single CLI
invocation.

For reporting:

  • Summary is aggregated per eval case (eval_set_id + eval_id) across runs.
  • Detailed output (--print_detailed_results) keeps per-run details (each run's
    EvalCaseResult) to avoid mismatches between aggregated scores and
    invocation-level debugging info.

Also added unit tests for:

  • Aggregation behavior across runs.
  • CLI validation for invalid --num_runs values.
  • Multi-run summary aggregation and detailed per-run printing behavior.

Related: #4410

Co-authored-by: Haran Rajkumar haranrk@google.com

Merge #4411

**Problem:**
`adk eval` did not support repeated runs, so users had to use external loops to
reduce nondeterminism. Also, when adding multi-run support, reporting needs to
stay consistent between summary and detailed output.

**Solution:**
Added `--num_runs` to `adk eval` (default: `1`, min: `1`) and wired it into
inference execution so each eval set can be run multiple times in a single CLI
invocation.

For reporting:
- Summary is aggregated per eval case (`eval_set_id` + `eval_id`) across runs.
- Detailed output (`--print_detailed_results`) keeps per-run details (each run's
  `EvalCaseResult`) to avoid mismatches between aggregated scores and
  invocation-level debugging info.

Also added unit tests for:
- Aggregation behavior across runs.
- CLI validation for invalid `--num_runs` values.
- Multi-run summary aggregation and detailed per-run printing behavior.

Related: #4410

Co-authored-by: Haran Rajkumar <haranrk@google.com>
PiperOrigin-RevId: 959841339
@wuliang229 wuliang229 closed this Aug 7, 2026
@wuliang229
wuliang229 deleted the copybara/959841339 branch August 7, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants