跳到主内容
@wquguru
精选75Google GenAI SDK Python(GitHub Releases)AI 编程与模型

Google GenAI SDK Python v2.18.0:新增 deferred 服务层

v2.18.0

原文
发到 X

2.18.0 (2026-08-12)

2.18.0 (2026-08-12)

Features

功能

  • Add interaction_status to LiveServerContent (66e224c)
  • api: Make the deferred service tier publicly available on Vertex (e1f7c40)
  • Enable json schema in FunctionDeclaration parser (62d50d6)
  • Make speech_config a structured object. (cc0d42e)
  • Support injecting httpx2 client. (012804d), refs #2680
  • 向 LiveServerContent 添加 interaction_status (66e224c)
  • api: 使延迟服务层在 Vertex 上公开可用 (e1f7c40)
  • 在 FunctionDeclaration 解析器中启用 JSON 模式 (62d50d6)
  • 将 speech_config 设为结构化对象。 (cc0d42e)
  • 支持注入 httpx2 客户端。 (012804d),引用 #2680

Bug Fixes

Bug 修复

  • Improve AFC(automatic function calling) in chat including fixing bugs in AFC for generate_content_stream. also log warnings in generate_content, generate_content_stream and their async variants that AFC is meant to be used in chat experience, not directly in models module. (fe6118e)
  • 改进聊天中的 AFC(自动函数调用),包括修复 generate_content_stream 中 AFC 的 bug。同时,在 generate_content、generate_content_stream 及其异步变体中记录警告,提示 AFC 旨在用于聊天体验,而非直接用于 models 模块。 (fe6118e)

Performance Improvements

性能改进

  • Build model validators on first use instead of at import (66bfe95), refs #2784
  • Lazily import the interactions API to speed up import google.genai (89dcfe5)
  • Stop importing the requests HTTP stack at module scope (3a44936)
  • 在首次使用时构建模型验证器,而非在导入时构建 (66bfe95),引用 #2784
  • 延迟导入 interactions API 以加快导入 google.genai 的速度 (89dcfe5)
  • 停止在模块作用域导入 requests HTTP 堆栈 (3a44936)

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

另一事件,读法相近