Genkit Python SDK v0.5.1
Next release of Genkit Python is here! We added new advanced features to two key model plugins, fixed sync/async bridge issues with several plugins, and overall improved plugin reliability based on testing feedback.
Highlights
- Anthropic — cache control and PDF document support
- DeepSeek — reasoning content extraction for R1 models
Async fixes
Several plugins were still using synchronous clients internally, causing event loop issues. This release migrates them all to proper async:
- DeepSeek: sync
OpenAI→AsyncOpenAI - Compat-OAI: sync →
AsyncOpenAI - Vertex AI: async client creation with threaded credential refresh
- Dev Local Vectorstore:
pathlib→aiofiles - Amazon Bedrock
boto3→aiboto3
Other notable fixes
- Fixed dotprompt deadlock
- Fixed streaming tool requests in Anthropic plugin
- Structured output support for xAI/Grok
- Nullable JSON Schema handling in Gemini plugin
- Data URI redaction in debug logs
- Graceful SIGTERM shutdown in dev runner
- Firebase telemetry refactor with lazy-loaded Google Cloud exporters
Contributors
Yesudeep Mangalapilly, Elisa Shen, Jeff Huang, Niraj Nepal, Prashant Kumar