Home / Class/ BetaWebSearchTool20250305Param Class — anthropic-sdk-python Architecture

BetaWebSearchTool20250305Param Class — anthropic-sdk-python Architecture

Architecture documentation for the BetaWebSearchTool20250305Param class in beta_web_search_tool_20250305_param.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  873b9c0d_c9cf_3583_b068_2ec39e5ad831["BetaWebSearchTool20250305Param"]
  8ef2d415_0cc6_1cc0_560b_32581b2d855d["beta_web_search_tool_20250305_param.py"]
  873b9c0d_c9cf_3583_b068_2ec39e5ad831 -->|defined in| 8ef2d415_0cc6_1cc0_560b_32581b2d855d

Relationship Graph

Source Code

src/anthropic/types/beta/beta_web_search_tool_20250305_param.py lines 39–81

class BetaWebSearchTool20250305Param(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_callers: List[Literal["direct", "code_execution_20250825"]]

    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[BetaCacheControlEphemeralParam]
    """Create a cache control breakpoint at this content block."""

    defer_loading: bool
    """If true, tool will not be included in initial system prompt.

    Only loaded when returned via tool_reference from tool search.
    """

    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.
    """

Frequently Asked Questions

What is the BetaWebSearchTool20250305Param class?
BetaWebSearchTool20250305Param is a class in the anthropic-sdk-python codebase, defined in src/anthropic/types/beta/beta_web_search_tool_20250305_param.py.
Where is BetaWebSearchTool20250305Param defined?
BetaWebSearchTool20250305Param is defined in src/anthropic/types/beta/beta_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