May 1, 2025 · Anthropic
Cache control must be set on parent block of tool_result and document.source
- 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.