1.5.0
What's Changed
Added
Models API
- Add
maxInputTokensandmaxTokensproperties toRetrieveResponse(and every item returned byListResponse) - Add typed
capabilitiestree on model responses:batch,citations,codeExecution,imageInput,pdfInput,structuredOutputs,thinking(withtypes.adaptiveandtypes.enabled), andeffort(withlow,medium,high,maxlevels) - Add
capabilities.contextManagementas a map keyed by the raw API strategy name (clear_thinking_20251015,clear_tool_uses_20250919,compact_20260112, and any future version), so new strategies Anthropic ships are captured automatically without a package update
Messages API
- Add
stop_detailsonCreateResponsewithtype,category, andexplanation— populated whenstop_reasonis'refusal' - Add
callerontool_useandserver_tool_usecontent blocks (typeandtool_id) so direct model calls can be distinguished from calls made inside a code execution sandbox - Add
container_uploadcontent block support withfile_id - Add
inferenceGeotoCreateResponseUsageandCreateStreamedResponseUsage, surfacing which region handled the request ('us','eu', ornull) - Document the new
pause_turnandrefusalstop reasons and the idiom for resuming paused turns
Meta information
- Add
priorityInputTokenLimitandpriorityOutputTokenLimitonMetaInformation, parsing the sixanthropic-priority-*headers into typed properties instead of dropping them into the genericcustombucket
Documentation
- Ship the full documentation site at mozex.dev/docs/anthropic-php/v1 with dedicated pages for every feature: introduction, configuration, messages, tool use, server tools, streaming, thinking, citations, batches, token counting, models, completions, meta information, testing, and error handling
- Every page now links back to the matching Anthropic reference on
platform.claude.com/docs/
Improved
tool_use/server_tool_usetoArray()output now includes thecallerobject when present, so response round-trips stay losslessMetaInformationrate-limit headers (including the new priority tier) round-trip cleanly throughtoArray()
Full Changelog: 1.4.0...1.5.0