Repository navigation
feat(py)!: remove evaluators from 1.0 - #6947
Closed
huangjeff5 wants to merge 5 commits into
Closed
huangjeff5 wants to merge 5 commits into
huangjeff5 wants to merge 5 commits into
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request completely removes the evaluator functionality from the Genkit Python codebase. This includes deleting the genkit-evaluators package, removing Vertex AI evaluators from genkit-google-genai, removing core evaluator definitions and the evaluate method from the genkit package, deleting the evaluators sample, and updating documentation, configuration files, and lockfiles accordingly. I have no feedback to provide as there are no review comments.
huangjeff5
added a commit
that referenced
this pull request
Oct 29, 2026
Reverts evaluator changes from this PR because evaluators are excluded from the 1.0 cut and will be removed in #6947. Only embedders receive the options-dict guarantee here.
huangjeff5
added a commit
that referenced
this pull request
Oct 29, 2026
Reverts evaluator changes from this PR because evaluators are excluded from the 1.0 cut and will be removed in #6947. Embedders and models receive typed config class support.
This was referenced Oct 29, 2026
Merged
huangjeff5
force-pushed
the
feat/py-remove-evaluators
branch
from
November 2, 2026 04:14
590a955 to
d39b5ea
Compare
huangjeff5
changed the base branch from
main
to
fix/py-generate-hop-recursion
November 2, 2026 04:44
huangjeff5
force-pushed
the
feat/py-remove-evaluators
branch
from
November 2, 2026 04:44
d39b5ea to
119ce80
Compare
huangjeff5
force-pushed
the
feat/py-remove-evaluators
branch
2 times, most recently
from
November 2, 2026 12:07
2f633cc to
7002361
Compare
pavelgj
reviewed
Nov 2, 2026
huangjeff5
force-pushed
the
feat/py-remove-evaluators
branch
3 times, most recently
from
November 2, 2026 23:54
5429db2 to
227f1d0
Compare
huangjeff5
force-pushed
the
feat/py-remove-evaluators
branch
from
November 3, 2026 02:27
7ccb079 to
4790b0c
Compare
Drops genkit.evaluator, Genkit.define_evaluator/define_batch_evaluator/evaluate, the genkit-evaluators package, Vertex AI evaluators, and the evaluators sample. ActionKind.EVALUATOR and the generated wire types stay; they're shared with JS/Go. Evaluators come back after a redesign.
Add the eval types to EXCLUDED in schema_to_typing.py and drop the Python-only eval special cases. Regenerate _core/_typing.py.
huangjeff5
force-pushed
the
feat/py-remove-evaluators
branch
from
November 3, 2026 06:58
cf988d6 to
130dab5
Compare
Contributor
Author
|
Closing: migrated to standalone repository genkit-ai/genkit-python (PR #37): genkit-ai/genkit-python#37 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Python 1.0 ships without evaluators. Evaluators across Genkit are being redesigned; JS and Go already shipped theirs in 1.x so they keep their current surface for now, whereas Python hasn't cut 1.0 yet and shipping the pre-redesign API would freeze a shape we already plan to replace. This removes the Python implementation, not just the exports.
ActionKind.EVALUATORandgenkit-schema.jsonstay untouched, so Python can ship the redesigned evaluator API in a 1.x minor release without a breaking change.Main Changes
genkit.evaluator,Genkit.define_evaluator/define_batch_evaluator/evaluate, andRegistry.resolve_evaluatorare gone. Hiding them from__all__would still leave importable private paths that users pin to. Removing them means 1.0 makes no promise about the pre-redesign shape.genkit-evaluatorsand Vertex evaluators dropped: Thegenkit-evaluatorspackage (regex, deep_equal, jsonata) and thegenkit[evaluators]extra are out of the workspace,uv.lockandpublish_python.yml.jsonata-pythongoes with them.genkit-google-genaistops listing and resolvingvertexai/*evaluators. The sample, tests and docs sections are removed.schema_to_typing.pyputsBaseDataPoint,BaseEvalDataPoint,EvalRequest,EvalResponse,EvalFnResponse,EvalStatusEnum,ScoreandDetailsinEXCLUDEDand drops the Python-only eval special cases._typing.pyis regenerated.genkit-schema.jsonis unchanged, so JS and Go still generate these types.ActionKind.EVALUATORkept: The action kind is part of the protocol shared with JS, Go and the Dev UI. Keeping it lets the redesigned API land in 1.x without a breaking change.What breaks / migration
genkit eval:runfind nothing to run against a Python runtime.ai.generatecall or plain asserts).ai.defineEvaluator,@genkit-ai/evaluator, Vertex evaluators) and Go (genkit.DefineEvaluator,go/plugins/evaluators) keep their 1.x surface until the redesign.Also in this PR
pypa/gh-action-pypi-publishgoes to v1.14.3. Editingpublish_python.ymltriggers zizmor, which flags the v1.14.2 pin.