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

Anthropic Python SDK v2.2.0

Anthropic Python SDK v2.2.0 adds message threads support, multidimensional usage and cost reports, and several tool runner state management fixes.

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

人类阅读

为什么值得关注

Anthropic released version 2.2.0 of its Python SDK. Key features include API support for message threads and new usage and cost reports broken down by dimension, while designating older reports as legacy. Bug fixes target the client retry error messaging (removing references to math.inf ) and resolve several state and parameter handling issues in the tool runner, specifically concerning message history after append messages() , tool definition passing and execution synchronization in set messages params() , and the preservation of metadata (betas, user profile IDs, workspace IDs). Documentation updates and a development dependency bump for certifi are also included.

Agent 解析

可执行摘要

Anthropic Python SDK v2.2.0 introduces API support for message threads and dimensional usage/cost reports (marking older reports as legacy). It fixes tool runner handling of history in append messages() , tool execution tracking and definitions in set messages params() , and context persistence for betas, user profile id , and workspace id .

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

开发者应核对什么

  • Update the Anthropic Python SDK to v2.2.0 via your dependency manager.
  • Review usage and cost tracking integrations to adopt new dimension-based reports and migrate off legacy report formats.
  • Verify tool runner implementations using set messages params() and append messages() to ensure compatibility with updated state handling and parameter behavior.
分类

标签与路由

anthropicsdkpython
相关信号

继续阅读