call() — anthropic-sdk-python Function Reference
Architecture documentation for the call() function in _beta_functions.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD a8a826cb_6a24_e00c_d9e5_15019ac4edb0["call()"] 60a3b209_180b_0680_57e3_9ebdfc101d6b["BetaFunctionTool"] a8a826cb_6a24_e00c_d9e5_15019ac4edb0 -->|defined in| 60a3b209_180b_0680_57e3_9ebdfc101d6b 07f3aff7_f12d_6b31_515c_f0e39d4fad0d["call()"] 07f3aff7_f12d_6b31_515c_f0e39d4fad0d -->|calls| a8a826cb_6a24_e00c_d9e5_15019ac4edb0 d1f2e83f_ca29_2f3a_83b4_5a5af4a46b73["_generate_tool_call_response()"] d1f2e83f_ca29_2f3a_83b4_5a5af4a46b73 -->|calls| a8a826cb_6a24_e00c_d9e5_15019ac4edb0 b5b59a19_0646_9f18_1716_6cbb729f18af["_generate_tool_call_response()"] b5b59a19_0646_9f18_1716_6cbb729f18af -->|calls| a8a826cb_6a24_e00c_d9e5_15019ac4edb0 07f3aff7_f12d_6b31_515c_f0e39d4fad0d["call()"] a8a826cb_6a24_e00c_d9e5_15019ac4edb0 -->|calls| 07f3aff7_f12d_6b31_515c_f0e39d4fad0d style a8a826cb_6a24_e00c_d9e5_15019ac4edb0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/anthropic/lib/tools/_beta_functions.py lines 178–188
def call(self, input: object) -> BetaFunctionToolResultType:
if iscoroutinefunction(self.func):
raise RuntimeError("Cannot call a coroutine function synchronously. Use `@async_tool` instead.")
if not is_dict(input):
raise TypeError(f"Input must be a dictionary, got {type(input).__name__}")
try:
return self._func_with_validate(**cast(Any, input))
except pydantic.ValidationError as e:
raise ValueError(f"Invalid arguments for function {self.name}") from e
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does call() do?
call() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/lib/tools/_beta_functions.py.
Where is call() defined?
call() is defined in src/anthropic/lib/tools/_beta_functions.py at line 178.
What does call() call?
call() calls 1 function(s): call.
What calls call()?
call() is called by 3 function(s): _generate_tool_call_response, _generate_tool_call_response, call.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free