返回全部动态

PydanticAI 发布 v2.60.0:新增沙箱能力与多项兼容性变更

原标题:v2.60.0 (2026-10-22)

PydanticAI Releases一手来源开源质量 69

AI 摘要

PydanticAI 发布 v2.60.0,包含多项兼容性变更与新功能。兼容性方面调整了嵌入模型错误分类、ModelSelectionContext 字段、Bedrock 默认输出上限,并弃用 RetryPromptPart 等旧接口。新功能包括 DockerSandbox 与 BoxLiteSandbox 沙箱能力、ElevenLabs Agents 回复归因、工具定义与运行上下文增强等。

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

正文节选

<!-- Release notes generated using configuration in .github/release.yml at 7bccbb8096be8249ebf0ed1d8f01a6fae7b20acb --> ## What's Changed ### ⚠️ Compatibility Notes * Raise model error categories like `ModelRateLimitError` from embedding models by @DouweM in https://github.com/pydantic/pydantic-ai/pull/10804 * Add `usage_limits`, `deadline`, `run_id` and `conversation_id` to `ModelSelectionContext` by @DouweM in https://github.com/pydantic/pydantic-ai/pull/10856 * Default `BedrockConverseModel`


发布时间:2026-10-23 09:44
抓取时间:2026-10-23 10:23
来源机构:Pydantic
阅读原文github.com