Skip to content

Commit 0c8b9e0

Browse files
ronakrmclaude
andcommitted
Add cross-reference links to cache settings in docs
- Add proper mkdocs cross-reference links to anthropic_cache_instructions - Add proper mkdocs cross-reference links to anthropic_cache_tool_definitions - Link to model settings documentation section Per maintainer feedback on PR #3363. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 11e7ab7 commit 0c8b9e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/models/anthropic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async def main():
103103

104104
### 2. Cache System Instructions
105105

106-
Use `anthropic_cache_instructions=True` to cache your system prompt:
106+
Enable the [`AnthropicModelSettings.anthropic_cache_instructions`][pydantic_ai.models.anthropic.AnthropicModelSettings.anthropic_cache_instructions] [model setting](../agents.md#model-run-settings) to cache your system prompt:
107107

108108
```python {test="skip"}
109109
from pydantic_ai import Agent
@@ -124,7 +124,7 @@ async def main():
124124

125125
### 3. Cache Tool Definitions
126126

127-
Use `anthropic_cache_tool_definitions=True` to cache your tool definitions:
127+
Enable the [`AnthropicModelSettings.anthropic_cache_tool_definitions`][pydantic_ai.models.anthropic.AnthropicModelSettings.anthropic_cache_tool_definitions] [model setting](../agents.md#model-run-settings) to cache your tool definitions:
128128

129129
```python {test="skip"}
130130
from pydantic_ai import Agent

0 commit comments

Comments
 (0)