Google Python Gen AI SDK v2.18.0 发布
原标题:v2.18.0
AI 摘要
Google 发布了 Python Gen AI SDK 的 v2.18.0 版本,新增了 LiveServerContent 的 interaction_status、Vertex 上的 deferred service tier、FunctionDeclaration 解析器中的 JSON schema 支持,以及结构化 speech_config 等功能。同时改进了自动函数调用(AFC)在聊天中的表现,并优化了导入性能,如延迟加载模型验证器和 interactions API。
正文节选
## [2.18.0](https://github.com/googleapis/python-genai/compare/v2.17.0...v2.18.0) (2026-08-12) ### Features * Add interaction_status to LiveServerContent ([66e224c](https://github.com/googleapis/python-genai/commit/66e224c39c9527e0fef3a4f049ac33ec941e2f99)) * **api:** Make the deferred service tier publicly available on Vertex ([e1f7c40](https://github.com/googleapis/python-genai/commit/e1f7c40f0a831f25ee71294fc8c195576d5fd126)) * Enable json schema in FunctionDeclaration parser ([62d50d6](ht