You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
py: type evaluator callbacks as BaseEvalDataPoint #230
Python's EvaluatorFn is typed as taking BaseDataPoint (test_case_id: str | None), but the evaluator stepper always assigns a UUID before calling the callback — same as JS, which types the callback as BaseEvalDataPoint (testCaseId required).
Current behavior
In py/packages/genkit/src/genkit/_ai/_evaluator.py:
hi @jeffdh5 , I was able to reproduce the problem - if you don't mind, I will have a PR that will fix this in a jiff! Would love feedback from you with regards to this.
Confirmed locally: evaluator callbacks now receive BaseEvalDataPoint with a guaranteed test_case_id (UUID fill-in, dataset BaseDataPoint left unmutated), and the related pytest suite is green (10/10).
Activity
a2105z commentedon Aug 8, 2026
hi @jeffdh5 , I was able to reproduce the problem - if you don't mind, I will have a PR that will fix this in a jiff! Would love feedback from you with regards to this.
a2105z commentedon Aug 9, 2026
@jeffdh5 this is ready for review.
Confirmed locally: evaluator callbacks now receive
BaseEvalDataPointwith a guaranteedtest_case_id(UUID fill-in, datasetBaseDataPointleft unmutated), and the related pytest suite is green (10/10).PR: genkit-ai/genkit#5995
fix(py): type evaluator callbacks as BaseEvalDataPoint