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

beta_tool_use_block.py — anthropic-sdk-python Source File

Architecture documentation for beta_tool_use_block.py, a python file in the anthropic-sdk-python codebase. 8 imports, 4 dependents.

File python AnthropicClient 8 imports 4 dependents 1 classes

Entity Profile

Dependency Diagram

graph LR
  3490cc9c_a0ed_ccc0_0bf0_903998b3ac1a["beta_tool_use_block.py"]
  40a4d499_6b34_0763_5e68_275c9212420c["_utils"]
  3490cc9c_a0ed_ccc0_0bf0_903998b3ac1a --> 40a4d499_6b34_0763_5e68_275c9212420c
  c14e2467_291d_6c7c_2b25_9a24e81f8565["_models"]
  3490cc9c_a0ed_ccc0_0bf0_903998b3ac1a --> c14e2467_291d_6c7c_2b25_9a24e81f8565
  c2389c78_4b30_5006_ec34_a6fae854ad5d["beta_direct_caller.py"]
  3490cc9c_a0ed_ccc0_0bf0_903998b3ac1a --> c2389c78_4b30_5006_ec34_a6fae854ad5d
  68ebe1cb_62a5_b55e_2bc3_f6f58b2d8537["BetaDirectCaller"]
  3490cc9c_a0ed_ccc0_0bf0_903998b3ac1a --> 68ebe1cb_62a5_b55e_2bc3_f6f58b2d8537
  b87213bb_b943_f3b0_91e5_844c0b204712["beta_server_tool_caller.py"]
  3490cc9c_a0ed_ccc0_0bf0_903998b3ac1a --> b87213bb_b943_f3b0_91e5_844c0b204712
  7fd17eb6_faf3_fe0b_5568_18b118924602["BetaServerToolCaller"]
  3490cc9c_a0ed_ccc0_0bf0_903998b3ac1a --> 7fd17eb6_faf3_fe0b_5568_18b118924602
  89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875["typing"]
  3490cc9c_a0ed_ccc0_0bf0_903998b3ac1a --> 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875
  37c05070_ca59_d596_7250_de9d1939227f["typing_extensions"]
  3490cc9c_a0ed_ccc0_0bf0_903998b3ac1a --> 37c05070_ca59_d596_7250_de9d1939227f
  65f3d77c_c1b2_82e1_f9d7_1e7e05f3fdfd["__init__.py"]
  65f3d77c_c1b2_82e1_f9d7_1e7e05f3fdfd --> 3490cc9c_a0ed_ccc0_0bf0_903998b3ac1a
  24d3a083_86dc_200b_635d_9637016b3ba5["beta_content_block.py"]
  24d3a083_86dc_200b_635d_9637016b3ba5 --> 3490cc9c_a0ed_ccc0_0bf0_903998b3ac1a
  9cc96e8a_38a2_2b93_22c9_6dd25aee6cba["beta_raw_content_block_start_event.py"]
  9cc96e8a_38a2_2b93_22c9_6dd25aee6cba --> 3490cc9c_a0ed_ccc0_0bf0_903998b3ac1a
  91a19aea_7483_201a_3b9c_ae2833f7373f["parsed_beta_message.py"]
  91a19aea_7483_201a_3b9c_ae2833f7373f --> 3490cc9c_a0ed_ccc0_0bf0_903998b3ac1a
  style 3490cc9c_a0ed_ccc0_0bf0_903998b3ac1a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

from typing import Dict, Union, Optional
from typing_extensions import Literal, Annotated, TypeAlias

from ..._utils import PropertyInfo
from ..._models import BaseModel
from .beta_direct_caller import BetaDirectCaller
from .beta_server_tool_caller import BetaServerToolCaller

__all__ = ["BetaToolUseBlock", "Caller"]

Caller: TypeAlias = Annotated[Union[BetaDirectCaller, BetaServerToolCaller], PropertyInfo(discriminator="type")]


class BetaToolUseBlock(BaseModel):
    id: str

    input: Dict[str, object]

    name: str

    type: Literal["tool_use"]

    caller: Optional[Caller] = None
    """Tool invocation directly from the model."""

Frequently Asked Questions

What does beta_tool_use_block.py do?
beta_tool_use_block.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain.
What does beta_tool_use_block.py depend on?
beta_tool_use_block.py imports 8 module(s): BetaDirectCaller, BetaServerToolCaller, _models, _utils, beta_direct_caller.py, beta_server_tool_caller.py, typing, typing_extensions.
What files import beta_tool_use_block.py?
beta_tool_use_block.py is imported by 4 file(s): __init__.py, beta_content_block.py, beta_raw_content_block_start_event.py, parsed_beta_message.py.
Where is beta_tool_use_block.py in the architecture?
beta_tool_use_block.py is located at src/anthropic/types/beta/beta_tool_use_block.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