Usage
To use prompt caching in your Agno setup, pass thecache_system_prompt argument when initializing the Claude model:
Extended cache
You can also use Anthropic’s extended cache beta feature. This updates the cache duration from 5 minutes to 1 hour. To activate it, pass theextended_cache_time argument and the following beta header:
Working example
cookbook/11_models/anthropic/prompt_caching_extended.py