Skip to content

v0.6.0 — Python SDK v0.80.0 Feature Parity

Choose a tag to compare

@dalehurley dalehurley released this 17 Feb 21:17
· 8 commits to main since this release

What's new

Full parity with the Anthropic Python SDK v0.80.0.

New features

  • Adaptive thinkingthinking: ['type' => 'adaptive'] lets claude-opus-4-6 decide whether and how much to think per request
  • Speed / fast-modespeed: 'fast' on Beta Messages for high-throughput inference
  • output_config — structured output configuration in GA Messages
  • Typed model constantsModelParam::MODEL_CLAUDE_OPUS_4_6, MODEL_CLAUDE_SONNET_4_6, and constants for the full model catalogue
  • Code execution tool — GA versions code_execution_20250522 and code_execution_20250825; Beta REPL-state version code_execution_20260120
  • Memory toolmemory_20250818 with view, create, str_replace, insert, delete, rename commands
  • Web fetch toolweb_fetch_20250910 (GA) and web_fetch_20260209 (Beta) with domain restrictions and token caps
  • Beta web search v2web_search_20260209 with allowed_callers support

New examples

  • examples/adaptive_thinking.php
  • examples/fast_mode.php
  • examples/code_execution.php
  • examples/memory_tool.php
  • examples/web_fetch.php

New tests

  • tests/Integration/V060FeaturesIntegrationTest.php — 33 tests, 112 assertions
  • Full suite: 351 tests, 1002 assertions

New tutorial

  • tutorials/17-v060-features/ — complete walkthrough of all v0.6.0 features

Changes

  • ClaudePhp::SDK_VERSION updated to 0.6.0
  • composer.json version bumped to 0.6.0
  • ModelParam expanded with typed constants for all current models
  • README rewritten for clarity and developer experience

Full changelog: https://github.com/claude-php/Claude-PHP-SDK/blob/main/CHANGELOG.md