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

Anthropic Python SDK v2.4.0

Anthropic Python SDK v2.4.0 introduces GA methods for analytics, spend limits, and RBAC, alongside new session error types and bug fixes.

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

人类阅读

为什么值得关注

Anthropic has released version 2.4.0 of its Python SDK. Key additions include generally available (GA) methods for analytics, spend limits, and role-based access control (RBAC), as well as named beta types for unified metrics and RBAC delete responses. New error session types were added for tool use limit reached and compaction limit reached. The update introduces user profile IDs to External Keys and Workspaces, adds new shared analytics and filter types, and resolves an issue where the spend limit was not nullable in increase request approvals. Additionally, always-sent analytics fields are now required, an unused project product field is dropped, and Pydantic validation is adjusted for params accepting omit.

Agent 解析

可执行摘要

Anthropic Python SDK v2.4.0 adds GA methods for analytics, spend limits, and RBAC; adds tool use limit and compaction limit session error types; updates analytics and spend limit filters/types; and refines Pydantic param validation.

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

开发者应核对什么

  • Upgrade to anthropic Python SDK v2.4.0.
  • Handle new session error types for tool use limit reached and compaction limit reached if managing agent sessions.
  • Update analytics and spend limit integrations to utilize the new GA methods and schemas.
分类

标签与路由

anthropicsdkpython
相关信号

继续阅读