Release Highlights: Genkit Python SDK v0.9.0
We are excited to announce the v0.9.0 release of the Genkit Python SDK! This landmark update introduces the official launch of Agents—bringing first-class, stateful multi-turn AI workflows to Python—alongside a complete plugin package reorganization on PyPI, enhanced observability, and improved provider compatibility.
Major Features
Official Agents Launch
- Stateful Multi-Turn Workflows: Introduces core
AgentandSessionabstractions, providing a stateful, streaming layer built on top ofgenerate. - Pluggable Session Persistence: Support for both server-managed session stores (
InMemorySessionStore,FileSessionStore, etc.) and client-managed state snapshotting. - Human-in-the-Loop Interruption: Built-in support for tool approval and turn interrupts/resumes, allowing human intervention before executing sensitive operations.
- Remote Agent Client & Transports: Seamless communication with local or remote agents over HTTP/WebSocket transports via
remote_agentwith automatic session history management (#5541). - Artifacts & Custom State: Stream, list, and persist session artifacts and custom state updates across multi-turn agent turns.
Plugin Package Reorganization & PyPI Launch
- All plugins are now organized into dedicated, publishable PyPI packages (
genkit-*). - Backward Compatibility: Existing/legacy plugin packages will continue to work seamlessly. When loaded, a friendly warning will prompt developers to update their dependencies to the new package names:
genkit(Core SDK)genkit-anthropic(formerlygenkit-plugin-anthropic)genkit-django(formerlygenkit-plugin-django)genkit-evaluators(formerlygenkit-plugin-evaluators)genkit-fastapi(formerlygenkit-plugin-fastapi)genkit-flask(formerlygenkit-plugin-flask)genkit-google-cloud(formerlygenkit-plugin-google-cloud)genkit-google-genai(formerlygenkit-plugin-google-genai)genkit-middleware(formerlygenkit-plugin-middleware)genkit-ollama(formerlygenkit-plugin-ollama)genkit-openai(formerlygenkit-plugin-openai)genkit-vertexai(formerlygenkit-plugin-vertexai)
Improvements & Bug Fixes
- Session Management & Tracing: Recorded session state on
runTurnspans and added support for client-managedsessionIds(#5871). - Gemini Compatibility:
- Observability: Seeded span attributes at trace start so live traces render immediately in the Developer UI (#5808).
- Runtime & CLI: Muted dev server health poll logs (#5867) and ensured reliable CLI runtime metadata cleanup on SIGINT/SIGTERM (#5773).
- Anthropic Plugin: Added stable and beta API selection (#5752) and extended thinking capabilities.