PydanticAI v2.18.0 发布:新增多提供商支持与多项改进
原标题:v2.18.0 (2026-07-24)
AI 摘要
PydanticAI 发布 v2.18.0 版本,新增对 Anthropic 和 OpenRouter 的 AdvisorTool 支持,为 GoogleCloudProvider 增加 'us'/'eu' 多区域位置,为 OpenAI Responses 的 WebSearchTool 添加 external_web_access 选项,并新增 BedrockMantleProvider 及规范化响应级工具调用 ID。同时修复了 GoogleModel 中 google-genai 流式错误的映射问题。
正文节选
<!-- 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