Model BehaviorAutomated release watch

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.

Human read

Why this signal matters

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 parse

Actionable summary

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 usefulness
77/100
Confidence
96%
Canonical data
JSON + Markdown
Next actions

What builders should check

  • 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.
Classification

Tags and routing

anthropicsdkpython
Related signals

Continue the thread