You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3.**Cache Tool Definitions**: Set [`AnthropicModelSettings.anthropic_cache_tool_definitions`][pydantic_ai.models.anthropic.AnthropicModelSettings.anthropic_cache_tool_definitions] to `True` (uses 5m TTL by default) or specify `'5m'` / `'1h'` directly
88
88
4.**Cache All Messages**: Set [`AnthropicModelSettings.anthropic_cache_messages`][pydantic_ai.models.anthropic.AnthropicModelSettings.anthropic_cache_messages] to `True` to automatically cache all messages
89
89
90
-
### Example 1: Automatic Last Message Caching
90
+
### Example 1: Automatic Message Caching
91
91
92
-
Use `anthropic_cache_messages` to automatically cache the last user message:
92
+
Use `anthropic_cache_messages` to automatically cache all messages up to and including the newest user message:
0 commit comments