Cacheable blocks
Split prompts into stable and variable blocks. Cache the stable portions.
Cache key design
Include model, prompt version, and tool schema hashes in cache keys.
Invalidate safely
Invalidate caches when prompts, tools, or policy rules change.