| Metadata | Value |
|---|---|
| Status | Completed |
| Version | 2.0.0 |
| Last Updated | 2026-07-10 |
| Author | Sangeetha Grantha Team |
Batch 3c — Upgrade the Gemini SDK google-genai 1.34.0 → 2.9.0 (major) in the Python extraction/enrichment worker. Likely breaking surface in the worker’s LLM calls; review before raising the floor.
tools/krithi-extract-enrich-worker/pyproject.toml + uv.lock)>=1.0.0 (resolved 1.34.0) → >=2.0.0 (resolved 2.9.0).pyproject.toml; uv lock.current-versions.md (Python tools section).Per the upstream changelog, google-genai 2.0’s breaking changes are Interactions-API-only
(“GenerateContent usage is unaffected”) — the worker’s surface (genai.Client(api_key=),
models.generate_content + GenerateContentConfig(response_mime_type, response_schema),
response.text, batches.create) needed no code changes. Floor raised to >=2.0.0, resolved
2.9.0. Verified: all 144 worker tests green, including the TRACK-113 W3 integration tests that
drive the real 2.x SDK through respx-stubbed HTTP (client init → request → response parsing).
Live-key smoke test not run — no SG_GEMINI_API_KEY available in this environment; the
HTTP-stubbed round-trip is the deepest offline verification.