WebSearchTool20250305Param Class — anthropic-sdk-python Architecture
Architecture documentation for the WebSearchTool20250305Param class in web_search_tool_20250305_param.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 42865030_cc12_6f12_4335_0cdea4850aaa["WebSearchTool20250305Param"] 1803970f_f89e_9dee_2cec_267d05b0b743["web_search_tool_20250305_param.py"] 42865030_cc12_6f12_4335_0cdea4850aaa -->|defined in| 1803970f_f89e_9dee_2cec_267d05b0b743
Relationship Graph
Source Code
src/anthropic/types/web_search_tool_20250305_param.py lines 39–73
class WebSearchTool20250305Param(TypedDict, total=False):
name: Required[Literal["web_search"]]
"""Name of the tool.
This is how the tool will be called by the model and in `tool_use` blocks.
"""
type: Required[Literal["web_search_20250305"]]
allowed_domains: Optional[SequenceNotStr[str]]
"""If provided, only these domains will be included in results.
Cannot be used alongside `blocked_domains`.
"""
blocked_domains: Optional[SequenceNotStr[str]]
"""If provided, these domains will never appear in results.
Cannot be used alongside `allowed_domains`.
"""
cache_control: Optional[CacheControlEphemeralParam]
"""Create a cache control breakpoint at this content block."""
max_uses: Optional[int]
"""Maximum number of times the tool can be used in the API request."""
strict: bool
"""When true, guarantees schema validation on tool names and inputs"""
user_location: Optional[UserLocation]
"""Parameters for the user's location.
Used to provide more relevant search results.
"""
Domain
Source
Frequently Asked Questions
What is the WebSearchTool20250305Param class?
WebSearchTool20250305Param is a class in the anthropic-sdk-python codebase, defined in src/anthropic/types/web_search_tool_20250305_param.py.
Where is WebSearchTool20250305Param defined?
WebSearchTool20250305Param is defined in src/anthropic/types/web_search_tool_20250305_param.py at line 39.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free