Skip to content

feat(eval): accept rubrics for rubric_based_multi_turn_trajectory_quality_v1 - #299

Merged
krisztianfekete merged 1 commit into
mainfrom
feat/multi-turn-rubric-config
Dec 1, 2026
Merged

krisztianfekete merged 1 commit into
mainfrom
feat/multi-turn-rubric-config

Conversation

@krisztianfekete

Copy link
Copy Markdown
Member

Fixes #252

What and why

rubric_based_multi_turn_trajectory_quality_v1 was listed in the metric catalog but didn't work, because agentevals never passed rubrics to it. This change wires it up the same way ADK runs it: the whole conversation is judged once on the last turn, and earlier turns are reported as NOT_EVALUATED.

  • The eval config now accepts rubrics for the metric. Case and invocation rubrics are filtered by the TRAJECTORY_QUALITY type.
  • Only the last turn needs an applicable rubric. Rubrics on earlier turns are ignored by ADK, so they are now listed in details.warnings.
  • Duplicate rubric ids are still rejected on every turn, as in ADK.
  • The catalog now reports the metric as working (working: true, requiresLLM: true).

It only sees a full conversation when traces are grouped into one (--group-by conversation, a session name, or a multi turn eval set). The docs now say this.

How it was tested

  • New tests in tests/test_rubrics.py run the real ADK evaluator with a fake judge.
  • Full suite passes on Python 3.14 and 3.11.
  • Manual run with a Gemini judge on a recorded 3 turn ADK trace (S3.json), using config rubrics and eval set rubrics. The judge used earlier turns as context, a negative control rubric failed as expected, and the warnings and the missing rubric error were correct.

Checklist

  • Links an issue a maintainer agreed to (or is a typo or broken link fix)
  • Tests added or updated
  • All tests pass (uv run pytest)
  • Documentation updated (if applicable)
  • I understand every line of this change and can explain it in review

AI assistance

  • No significant AI assistance
  • AI helped write and test the code

@krisztianfekete
krisztianfekete merged commit 9b464c8 into main Dec 1, 2026
9 checks passed
@krisztianfekete
krisztianfekete deleted the feat/multi-turn-rubric-config branch December 1, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support user-defined rubrics over a complete conversation

1 participant