github anthropics/anthropic-sdk-python v1.5.0

3 hours ago

1.5.0 (2026-09-10)

Full Changelog: v1.4.0...v1.5.0

Features

  • api: add auto mode tool permissions for Managed Agents (62aa21b)
  • api: add content_too_large web_fetch tool error code (4b5dec6)
  • api: add the user-profiles-2026-09-04 beta value and external_user_details to user profiles (5f881a5)
  • api: support mounting public GitHub repositories without an authorization_token in Managed Agents sessions (285937c)
  • client: add Message.to_param() and BetaMessage.to_param() (192a2b2)
  • credentials: add CredentialsError and IdentityTokenFileError (9acd79f)
  • tools: accept tool objects directly in messages.create, parse, stream and count_tokens (ebd2fc5)

Bug Fixes

  • client: merge extra_body before client hooks run (7aaf887)
  • credentials: refuse credentials files accessible by group or others (7af3e2b)
  • streaming: keep partial tool input JSON off content blocks (4605bca)
  • types: leave parsed_output out of dumped text blocks (ca0706d)

Chores

  • client: clean up the unused idempotency request option (c97830c)
  • client: keep the idempotency_key request option as a deprecated no-op (#621) (c2ab92e)
  • docs: correct the environment scope field description (b903ee0)
  • internal: remove generated file header comments (ae671f8)
  • internal: restore package version (f3aefc7)
  • internal: restore package version (e3c70e8)
  • internal: stop stamping the package version into generated files (e7a6a28)
  • tests: restore empty test package marker files (0803af0)

Don't miss a new anthropic-sdk-python release

NewReleases is sending notifications on new releases.