Home / File/ beta_web_fetch_tool_20250910_param.py — anthropic-sdk-python Source File

beta_web_fetch_tool_20250910_param.py — anthropic-sdk-python Source File

Architecture documentation for beta_web_fetch_tool_20250910_param.py, a python file in the anthropic-sdk-python codebase. 7 imports, 3 dependents.

File python AnthropicClient 7 imports 3 dependents 1 classes

Entity Profile

Dependency Diagram

graph LR
  f0b53427_a06d_3916_1040_1562c8e2e43a["beta_web_fetch_tool_20250910_param.py"]
  c6699053_fad6_38a2_f621_9844eb5aedd2["_types"]
  f0b53427_a06d_3916_1040_1562c8e2e43a --> c6699053_fad6_38a2_f621_9844eb5aedd2
  7acde330_c405_04dd_fd28_742a74feb6fa["beta_citations_config_param.py"]
  f0b53427_a06d_3916_1040_1562c8e2e43a --> 7acde330_c405_04dd_fd28_742a74feb6fa
  0e968bca_5562_bf17_5cf2_720223400f88["BetaCitationsConfigParam"]
  f0b53427_a06d_3916_1040_1562c8e2e43a --> 0e968bca_5562_bf17_5cf2_720223400f88
  2bc64f58_a0bc_b0fb_ccb0_7002d8485a3a["beta_cache_control_ephemeral_param.py"]
  f0b53427_a06d_3916_1040_1562c8e2e43a --> 2bc64f58_a0bc_b0fb_ccb0_7002d8485a3a
  f588de01_21b5_50f2_ffbb_cc9a67f33921["BetaCacheControlEphemeralParam"]
  f0b53427_a06d_3916_1040_1562c8e2e43a --> f588de01_21b5_50f2_ffbb_cc9a67f33921
  89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875["typing"]
  f0b53427_a06d_3916_1040_1562c8e2e43a --> 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875
  37c05070_ca59_d596_7250_de9d1939227f["typing_extensions"]
  f0b53427_a06d_3916_1040_1562c8e2e43a --> 37c05070_ca59_d596_7250_de9d1939227f
  65f3d77c_c1b2_82e1_f9d7_1e7e05f3fdfd["__init__.py"]
  65f3d77c_c1b2_82e1_f9d7_1e7e05f3fdfd --> f0b53427_a06d_3916_1040_1562c8e2e43a
  44d57bee_e2e9_09e6_e442_ea81d4e62e60["beta_tool_union_param.py"]
  44d57bee_e2e9_09e6_e442_ea81d4e62e60 --> f0b53427_a06d_3916_1040_1562c8e2e43a
  579bd2f9_ae1a_5b30_88c4_93179ebb82b6["message_count_tokens_params.py"]
  579bd2f9_ae1a_5b30_88c4_93179ebb82b6 --> f0b53427_a06d_3916_1040_1562c8e2e43a
  style f0b53427_a06d_3916_1040_1562c8e2e43a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

from typing import List, Optional
from typing_extensions import Literal, Required, TypedDict

from ..._types import SequenceNotStr
from .beta_citations_config_param import BetaCitationsConfigParam
from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam

__all__ = ["BetaWebFetchTool20250910Param"]


class BetaWebFetchTool20250910Param(TypedDict, total=False):
    name: Required[Literal["web_fetch"]]
    """Name of the tool.

    This is how the tool will be called by the model and in `tool_use` blocks.
    """

    type: Required[Literal["web_fetch_20250910"]]

    allowed_callers: List[Literal["direct", "code_execution_20250825"]]

    allowed_domains: Optional[SequenceNotStr[str]]
    """List of domains to allow fetching from"""

    blocked_domains: Optional[SequenceNotStr[str]]
    """List of domains to block fetching from"""

    cache_control: Optional[BetaCacheControlEphemeralParam]
    """Create a cache control breakpoint at this content block."""

    citations: Optional[BetaCitationsConfigParam]
    """Citations configuration for fetched documents.

    Citations are disabled by default.
    """

    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_content_tokens: Optional[int]
    """Maximum number of tokens used by including web page text content in the context.

    The limit is approximate and does not apply to binary content such as PDFs.
    """

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

Frequently Asked Questions

What does beta_web_fetch_tool_20250910_param.py do?
beta_web_fetch_tool_20250910_param.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain.
What does beta_web_fetch_tool_20250910_param.py depend on?
beta_web_fetch_tool_20250910_param.py imports 7 module(s): BetaCacheControlEphemeralParam, BetaCitationsConfigParam, _types, beta_cache_control_ephemeral_param.py, beta_citations_config_param.py, typing, typing_extensions.
What files import beta_web_fetch_tool_20250910_param.py?
beta_web_fetch_tool_20250910_param.py is imported by 3 file(s): __init__.py, beta_tool_union_param.py, message_count_tokens_params.py.
Where is beta_web_fetch_tool_20250910_param.py in the architecture?
beta_web_fetch_tool_20250910_param.py is located at src/anthropic/types/beta/beta_web_fetch_tool_20250910_param.py (domain: AnthropicClient, directory: src/anthropic/types/beta).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free