返回全部动态

PydanticAI v2.26.0 发布:新增工具隐藏与运行取消功能

原标题:v2.26.0 (2026-08-06)

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

AI 摘要

PydanticAI 发布 v2.26.0 版本,新增了隐藏工具函数、首次运行取消、提示缓存保留解析等多项功能,并修复了多个 bug。该版本还支持 DeepSeek V4 Flash 模型,并改进了 OpenRouter 的流式推理细节处理。

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

正文节选

<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### 🚀 Features * Support hiding function tools until revealed — via tool search, `load_capability`, or `ToolReturn.tools` — using each provider's native deferral/addition channel by @DouweM in https://github.com/pydantic/pydantic-ai/pull/7104 * Add first-party run cancellation: `AgentRun.cancel()`, `RunContext.cancel()`, `RunCancelled` by @DouweM in https://github.com/pydantic/pydantic-ai/pull/


发布时间:2026-08-07 11:14
抓取时间:2026-08-07 14:46
来源机构:Pydantic
阅读原文github.com