Back
AnthropicClaude API
Cache control must now be specified directly in the parent content block of tool_result and document.source
AI summary
Written by AI from the official notes. Check them for exact details.Cache control must now be specified in the parent content block of tool_result and document.source.
- Cache control must be in parent content block
- Automatic application for last block detected
- Validation error for cache control in other blocks
Why it matters: Developers using Claude should update their implementations to avoid validation errors.
Full release notes
- Cache control must now be specified directly in the parent
contentblock oftool_resultanddocument.source. For backwards compatibility, if cache control is detected on the last block intool_result.contentordocument.source.content, it will be automatically applied to the parent block instead. Cache control on any other blocks withintool_result.contentanddocument.source.contentwill result in a validation error.