Skip to content

Commit 6cceb59

Browse files
committed
fix doc example issue
1 parent ae63b13 commit 6cceb59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/models/anthropic.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ async def main():
208208
When cache points from all sources (settings + `CachePoint` markers) exceed 4, Pydantic AI automatically removes excess cache points from **older message content** (keeping the most recent ones):
209209

210210
```python {test="skip"}
211+
from pydantic_ai import Agent, CachePoint
212+
from pydantic_ai.models.anthropic import AnthropicModelSettings
211213
agent = Agent(
212214
'anthropic:claude-sonnet-4-5',
213215
system_prompt='Instructions...',

0 commit comments

Comments
 (0)