Download Latest Version v0.2.128 source code.zip (437.0 kB)
Email in envelope

Get an email when there's a new version of Claude Agent SDK for Python

Home / v0.2.126
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-07-22 947 Bytes
v0.2.126 source code.tar.gz 2026-07-22 350.5 kB
v0.2.126 source code.zip 2026-07-22 432.2 kB
Totals: 3 Items   783.6 kB 0

New Features

  • terminal_reason on ResultMessage: ResultMessage.terminal_reason now surfaces why the query loop ended ("completed", "max_turns", "aborted_streaming", "aborted_tools", etc.). A value of "aborted_streaming" or "aborted_tools" means the turn was cancelled via ClaudeSDKClient.interrupt(). Mirrors the TypeScript SDK's SDKResultMessage.terminal_reason (#1142)
  • Typed model_usage on ResultMessage: ResultMessage.model_usage is now typed as dict[str, ModelUsage] instead of dict[str, Any], with a new ModelUsage TypedDict that mirrors the TypeScript SDK's shape. Includes optional canonicalModel and provider fields for stable model identification across provider-specific aliases (#1143)

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.218

PyPI: https://pypi.org/project/claude-agent-sdk/0.2.126/

:::bash
pip install claude-agent-sdk==0.2.126
Source: README.md, updated 2026-07-22