Skip to content

Commit 5d870ce

Browse files
authored
Fix: Forward max_uses parameter to Anthropic WebSearchTool (#2561)
1 parent f90713b commit 5d870ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pydantic_ai_slim/pydantic_ai/models/anthropic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ def _get_builtin_tools(
359359
BetaWebSearchTool20250305Param(
360360
name='web_search',
361361
type='web_search_20250305',
362+
max_uses=tool.max_uses,
362363
allowed_domains=tool.allowed_domains,
363364
blocked_domains=tool.blocked_domains,
364365
user_location=user_location,

0 commit comments

Comments
 (0)