Anthropic Python SDK v2.10.0
Anthropic Python SDK v2.10.0 adds new billing-related error codes, beta billing policy parameters, external key webhook events, and fixes aiohttp timeout reporting.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
Anthropic released version 2.10.0 of its Python SDK. The release includes beta support for a billing policy request parameter and several new API error codes covering contract spend limits reached, linked billing refusals, and unauthorized user profile billing. It introduces webhook events tracking external key failure and recovery. On the bug fix side, failed aiohttp connections will no longer be misreported as timeouts, and backwards compatibility is maintained for deprecated model aliases and nested types. Additionally, error data models have been renamed (with old names deprecated), and documentation has been updated regarding AWS KMS key compatibility, credential endpoints, plugin pin behaviors, and plugin scan error reasons.
可执行摘要
Anthropic Python SDK v2.10.0 introduces billing policy request parameters in beta, adds specific error codes for contract spend limits and billing refusals/authorizations, updates webhook events for external keys, corrects aiohttp connection failure reporting, and renames error data models.
- Agent 实用度
- 94/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Review error handling logic to accommodate new billing-related error codes (spend limits, linked billing refusals, unauthorized profile billing).
- Update code using deprecated error data model names to the new names.
- Verify plugin scan inspection logic to ensure that 'scan.reason' on an errored scan is not mistakenly treated as a security finding without verifying 'status'.