返回全部动态

PydanticAI v2.18.0 发布:新增多提供商支持与多项改进

原标题:v2.18.0 (2026-07-24)

PydanticAI Releases一手来源产品发布质量 76

AI 摘要

PydanticAI 发布 v2.18.0 版本,新增对 Anthropic 和 OpenRouter 的 AdvisorTool 支持,为 GoogleCloudProvider 增加 'us'/'eu' 多区域位置,为 OpenAI Responses 的 WebSearchTool 添加 external_web_access 选项,并新增 BedrockMantleProvider 及规范化响应级工具调用 ID。同时修复了 GoogleModel 中 google-genai 流式错误的映射问题。

以上摘要由 AI 生成,可能存在误差。事实请以原文为准。

正文节选

<!-- Release notes generated using configuration in .github/release.yml at v2.18.0 --> ## What's Changed ### 🚀 Features * Add `AdvisorTool` support for Anthropic and OpenRouter by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/6605 * Add 'us'/'eu' multi-region locations to GoogleCloudProvider location type by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/6715 * Add `external_web_access` option to `WebSearchTool` for OpenAI Responses by @pydanty[bot] in https://githu


发布时间:2026-07-25 09:01
抓取时间:2026-08-02 00:30
来源机构:Pydantic
阅读原文github.com