chore(py): bump version to 0.7.0#5505
Conversation
There was a problem hiding this comment.
Code Review
This pull request bumps the version of genkit and its associated plugins from 0.6.0 to 0.7.0 across several pyproject.toml files and the uv.lock file. It also adds Apache 2.0 license files to the django and middleware plugins, introduces PEP 561 marker files (py.typed) for the evaluators and middleware plugins, and fixes minor typos in the docstrings of _tools.py and _middleware.py. There are no review comments, and I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Genkit Python SDK v0.7.0 Release Notes
Genkit Python SDK v0.7.0 is here! In this release, we've focused on giving you more control over the generation pipeline, adding pre-built resilience tools, and making it easier to integrate Genkit into your production web applications.
What's New
Intercept the Generation Loop with Middleware (#5253)
We've added a pluggable middleware architecture to the core generate pipeline. By subclassing
BaseMiddlewareand using the@ai.middlewaredecorator, you can run custom code at key lifecycle points in the generation process.Configure your middleware with a custom configuration model using Pydantic:
Interruptto pause execution (e.g., waiting for user approval).Pre-built, Production-Ready Middleware (#5253)
We also released an official
genkit-plugin-middlewarepackage so you don't have to write common resilience patterns from scratch:Retry).Fallback).ToolApproval, supporting snake_case config options from #5479).Filesystem).Skills).Expose AI Logic as HTTP Endpoints with Django (#5408)
To make it easier to deploy AI workloads, we built
genkit-plugin-djangoto let you expose Genkit flows as standard Django endpoints. You can find a complete example showing how to wire this up in the newdjango-hellosample folder.Fixes & Polish
keyfield toToolDefinitionto maintain parity with the JS SDK (#5267).