Repository navigation
feat(py)!: remove evaluators - #278
Merged
Merged
Conversation
genkit-bot
reviewed
Dec 3, 2026
genkit-bot
left a comment
There was a problem hiding this comment.
A few comments
Details
Run 6eddcead-660e-4624-ab97-9612e2c6ab32 · Cloud Run logs · Dashboard
pavelgj
approved these changes
Dec 3, 2026
Merged
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.
Step 3 of the evaluator removal playbook agreed in #131 (reapplying #37 and
4397bd409after0.14.0shipped with the deprecation warning,<0.15cap, and optional Vertex evaluator import).What's in this PR
packages/genkit-evaluators,samples/evaluators, thegenkit[evaluators]extra, core evaluator APIs (define_evaluator,define_batch_evaluator,evaluate, evaluator types), Vertex AI evaluators ingenkit-google-genai, and the corresponding publish/sample workflow entries.genkit.evaluatorstub:packages/genkit/src/genkit/evaluator/__init__.pyraisesModuleNotFoundError(..., name='genkit.evaluator')with a migration message forgenkit-evaluatorsandgenkit-google-genai<0.14. Publishedgenkit-google-genai==0.14.0wheels skip Vertex evaluator registration on that exacte.name == 'genkit.evaluator'check.genkit[evaluators]extra cleanly: Instead of carrying a permanently unsatisfiableevaluatorsextra into1.0(which would also require workspace-level resolver workarounds),genkitno longer declaresevaluators.Upgrade behavior across scenarios
These follow the resolver matrix verified in #131 (assuming
genkit-evaluators 0.13.0is yanked on PyPI alongside0.9.0–0.12.0per step 2 of #131):Apps without evaluators
genkit-google-genai>=0.14.0: Upgrade to0.15.0with no errors. Even an oldergenkit-google-genai==0.14.0wheel paired withgenkit==0.15.0keeps working because0.14.0ignoresModuleNotFoundError(name='genkit.evaluator').genkit-google-genai==0.13.0+ unpinnedgenkit:0.13.0unconditionally importsgenkit.evaluator. Instead of a raw import failure, the stub raisesModuleNotFoundErrortelling the user to runpip install -U genkit-google-genai.Apps with evaluators
genkit-evaluators(pip install genkit genkit-evaluators,uv add, CI rebuilds): Resolve cleanly to0.14.0(becausegenkit-evaluators 0.14.0capsgenkit<0.15) and keep working untilgenkit-evaluatorsis removed.==pins or committed lockfiles (uv sync --frozen,poetry install): Keep installing locked versions unchanged. Full lock upgrades (uv lock --upgrade,poetry update) hold on0.14.0; requestinggenkit==0.15.0fails at solve time.pip install -U genkitin an existing venv:pipreports a dependency conflict (genkit-evaluators 0.14.0requiresgenkit<0.15); if the app still runs, the stub raises immediately on import with instructions to uninstallgenkit-evaluatorsor stay on0.14.0.15.0, then addinggenkit-evaluators:uv add/poetry addreject it at solve time (againstgenkit>=0.15.0);pip install genkit-evaluatorsdowngradesgenkitto0.14.0and reports any conflict with installed0.15plugins.genkit[evaluators]or custom/Vertex-only evaluators withoutgenkit-evaluators: Resolvers warn that0.15.0has noevaluatorsextra and install0.15.0; importinggenkit.evaluatorhits the stub with instructions to pingenkit<0.15or remove evaluators (these apps already saw the0.14FutureWarning).Breaking changes
Evaluators (
genkit-evaluators,genkit[evaluators],genkit.evaluator,ai.define_evaluator,ai.define_batch_evaluator,ai.evaluate, and Vertex AI evaluators ingenkit-google-genai) are removed in0.15.0as announced in0.14.0(#131).Merge order
Merge this PR before #277 (
chore: release v0.15.0), then regenerate #277 withbin/bump_version 0.15.0and update its release notes per step 4 of #131.