beta_server_tool_use_block.py — anthropic-sdk-python Source File
Architecture documentation for beta_server_tool_use_block.py, a python file in the anthropic-sdk-python codebase. 8 imports, 4 dependents.
Entity Profile
Dependency Diagram
graph LR 1b4bf9fe_26d2_d517_8775_4ba0390d6657["beta_server_tool_use_block.py"] 40a4d499_6b34_0763_5e68_275c9212420c["_utils"] 1b4bf9fe_26d2_d517_8775_4ba0390d6657 --> 40a4d499_6b34_0763_5e68_275c9212420c c14e2467_291d_6c7c_2b25_9a24e81f8565["_models"] 1b4bf9fe_26d2_d517_8775_4ba0390d6657 --> c14e2467_291d_6c7c_2b25_9a24e81f8565 c2389c78_4b30_5006_ec34_a6fae854ad5d["beta_direct_caller.py"] 1b4bf9fe_26d2_d517_8775_4ba0390d6657 --> c2389c78_4b30_5006_ec34_a6fae854ad5d 68ebe1cb_62a5_b55e_2bc3_f6f58b2d8537["BetaDirectCaller"] 1b4bf9fe_26d2_d517_8775_4ba0390d6657 --> 68ebe1cb_62a5_b55e_2bc3_f6f58b2d8537 b87213bb_b943_f3b0_91e5_844c0b204712["beta_server_tool_caller.py"] 1b4bf9fe_26d2_d517_8775_4ba0390d6657 --> b87213bb_b943_f3b0_91e5_844c0b204712 7fd17eb6_faf3_fe0b_5568_18b118924602["BetaServerToolCaller"] 1b4bf9fe_26d2_d517_8775_4ba0390d6657 --> 7fd17eb6_faf3_fe0b_5568_18b118924602 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875["typing"] 1b4bf9fe_26d2_d517_8775_4ba0390d6657 --> 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875 37c05070_ca59_d596_7250_de9d1939227f["typing_extensions"] 1b4bf9fe_26d2_d517_8775_4ba0390d6657 --> 37c05070_ca59_d596_7250_de9d1939227f 65f3d77c_c1b2_82e1_f9d7_1e7e05f3fdfd["__init__.py"] 65f3d77c_c1b2_82e1_f9d7_1e7e05f3fdfd --> 1b4bf9fe_26d2_d517_8775_4ba0390d6657 24d3a083_86dc_200b_635d_9637016b3ba5["beta_content_block.py"] 24d3a083_86dc_200b_635d_9637016b3ba5 --> 1b4bf9fe_26d2_d517_8775_4ba0390d6657 9cc96e8a_38a2_2b93_22c9_6dd25aee6cba["beta_raw_content_block_start_event.py"] 9cc96e8a_38a2_2b93_22c9_6dd25aee6cba --> 1b4bf9fe_26d2_d517_8775_4ba0390d6657 91a19aea_7483_201a_3b9c_ae2833f7373f["parsed_beta_message.py"] 91a19aea_7483_201a_3b9c_ae2833f7373f --> 1b4bf9fe_26d2_d517_8775_4ba0390d6657 style 1b4bf9fe_26d2_d517_8775_4ba0390d6657 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__ = ["BetaServerToolUseBlock", "Caller"]
Caller: TypeAlias = Annotated[Union[BetaDirectCaller, BetaServerToolCaller], PropertyInfo(discriminator="type")]
class BetaServerToolUseBlock(BaseModel):
id: str
input: Dict[str, object]
name: Literal[
"web_search",
"web_fetch",
"code_execution",
"bash_code_execution",
"text_editor_code_execution",
"tool_search_tool_regex",
"tool_search_tool_bm25",
]
type: Literal["server_tool_use"]
caller: Optional[Caller] = None
"""Tool invocation directly from the model."""
Domain
Classes
Dependencies
- BetaDirectCaller
- BetaServerToolCaller
- _models
- _utils
- beta_direct_caller.py
- beta_server_tool_caller.py
- typing
- typing_extensions
Imported By
Source
Frequently Asked Questions
What does beta_server_tool_use_block.py do?
beta_server_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_server_tool_use_block.py depend on?
beta_server_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_server_tool_use_block.py?
beta_server_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_server_tool_use_block.py in the architecture?
beta_server_tool_use_block.py is located at src/anthropic/types/beta/beta_server_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