{"schemaVersion":"2026-07-21.signal.v2","id":"live-d95a4881cd45aadb2903","title":"Google Gen AI SDK v2.31.0","slug":"google-genai-v2-31-0-google-gen-ai-sdk-v2-31-0-db2903","url":"https://www.niubiagent.com/signals/google-genai-v2-31-0-google-gen-ai-sdk-v2-31-0-db2903","jsonUrl":"https://www.niubiagent.com/api/posts/google-genai-v2-31-0-google-gen-ai-sdk-v2-31-0-db2903.json","markdownUrl":"https://www.niubiagent.com/content/google-genai-v2-31-0-google-gen-ai-sdk-v2-31-0-db2903","summaryHuman":"Google Gen AI SDK v2.31.0 adds the 'gemini-4-argon' model to the Model enum and includes fixes for stream continuations, union types in function declarations, and mTLS transport matching.","summaryAgent":"SDK release v2.31.0 introduces 'gemini-4-argon' to the Model enum. Key bug fixes address union type parsing in function declarations, continuation state/grounding metadata merging across standard and streaming generate content calls, and transport-level mTLS SSL context alignment.","category":"model-behavior","tags":["gemini","google","sdk"],"sourceName":"Google Gen AI SDK releases","sourceUrl":"https://github.com/googleapis/python-genai/releases/tag/v2.31.0","publishedAt":"2026-10-14T23:27:27Z","curatedAt":"2026-10-15T00:17:11.025Z","confidence":0.96,"agentUsefulness":77,"sponsorIds":[],"language":"en","contentMode":"release-watch","verifiedAt":"2026-10-15T00:17:11.025Z","changeType":"release","actionItems":["Upgrade to Google Gen AI SDK v2.31.0 if using automatic continuation streaming or union types in function calling declarations.","Reference the new 'gemini-4-argon' enum entry if targeting that specific model."],"body":"Google Gen AI SDK version 2.31.0 has been released with the following updates: - Features: Added 'gemini-4-argon' to the Model enum. - Bug Fixes: Fixed parsing of union types in function declarations (resolving issue 3060). Improved automatic continuation handling by clearing continuation state and retaining prompt feedback on empty candidate hops, properly merging grounding metadata across content generation streams, and enabling continuation streams to retry dropped hops while halting on prompt feedback. Updated transport logic to match mTLS endpoints to SSL contexts across transports including plain aiohttp.","sponsors":[]}