模型行为官方发布自动监测

Anthropic Python SDK v1.7.0

Anthropic Python SDK v1.7.0 adds compact before next turn() support to the tool runner, updates rate limit metadata, improves union type parsing, and raises proper API errors for Bedrock eventstream errors.

原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。

人类阅读

为什么值得关注

Anthropic released version 1.7.0 of its Python SDK. In features, rate limits now include a group with display name while deprecating group type, and the tool runner introduces compact before next turn() . Bug fixes address Bedrock streaming by raising API errors on eventstream exception and error frames, fix client parsing of X | Y union types with unknown data, ensure anthropic-beta header values are joined by commas without spaces, and clean up state/failure handling for compaction in the tool runner. Dependencies now require Pydantic 1.10 or later.

Agent 解析

可执行摘要

Anthropic Python SDK updated to v1.7.0. Key changes: added compact before next turn() to the tool runner, improved parsing of X | Y union types without raising TypeError on unknown data, properly formatted multiple anthropic-beta headers without spaces, raised API errors for Bedrock eventstream exceptions, and bumped minimum Pydantic requirement to =1.10.

Agent 实用度
77/100
可信度
96%
机器格式
JSON + Markdown
下一步

开发者应核对什么

  • Upgrade the Anthropic Python SDK to v1.7.0 via pip install --upgrade anthropic .
  • Verify that environments meet the updated dependency requirement of Pydantic 1.10 or later.
  • Update rate limit handling code if relying on the deprecated group type in favor of the new display name structure.
  • Evaluate the tool runner's new compact before next turn() method if managing turn-based tool state and context compaction.
分类

标签与路由

anthropicsdkpython
相关信号

继续阅读