返回全部动态

PydanticAI v2.16.0 发布:新增 Mistral 缓存与 Gemini 模型支持

原标题:v2.16.0 (2026-07-22)

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

AI 摘要

PydanticAI 发布 v2.16.0 版本,新增 Mistral 提示缓存键、ToolFailed 错误类型、可选 run_id 参数,并支持 Google Model Armor 及新的 Gemini 模型。同时修复了多个 bug,包括 ctx.enqueue() 错误一致性和工具重试计数问题。

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

正文节选

<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### 🚀 Features * Add `mistral_prompt_cache_key` setting and pass `parallel_tool_calls` to the Mistral SDK by @lionpeloux in https://github.com/pydantic/pydantic-ai/pull/6654 * Add `ToolFailed` for model-visible failures without retries by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/5585 * Add optional `run_id=` to agent runs, durable wrappers, and UI adapters by @grahamcracker12


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