Skip to content

Genkit Python SDK v0.9.0

Latest

Choose a tag to compare

@huangjeff5 huangjeff5 released this 31 Jul 22:28
5df1a38

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 Agent and Session abstractions, providing a stateful, streaming layer built on top of generate.
  • 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_agent with 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 (formerly genkit-plugin-anthropic)
    • genkit-django (formerly genkit-plugin-django)
    • genkit-evaluators (formerly genkit-plugin-evaluators)
    • genkit-fastapi (formerly genkit-plugin-fastapi)
    • genkit-flask (formerly genkit-plugin-flask)
    • genkit-google-cloud (formerly genkit-plugin-google-cloud)
    • genkit-google-genai (formerly genkit-plugin-google-genai)
    • genkit-middleware (formerly genkit-plugin-middleware)
    • genkit-ollama (formerly genkit-plugin-ollama)
    • genkit-openai (formerly genkit-plugin-openai)
    • genkit-vertexai (formerly genkit-plugin-vertexai)

Improvements & Bug Fixes

  • Session Management & Tracing: Recorded session state on runTurn spans and added support for client-managed sessionIds (#5871).
  • Gemini Compatibility:
    • Normalized request message roles strictly to model or user for strict API compatibility (#5823).
    • Switched tool request references to model call IDs (#5830).
  • 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.