test_decorator_with_parentheses() — anthropic-sdk-python Function Reference
Architecture documentation for the test_decorator_with_parentheses() function in test_functions.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD a3c26e3b_e5fa_4dad_44a9_3400e7c99d09["test_decorator_with_parentheses()"] e25ad18d_e1f6_726f_20bc_ac8e568d4e63["TestFunctionTool"] a3c26e3b_e5fa_4dad_44a9_3400e7c99d09 -->|defined in| e25ad18d_e1f6_726f_20bc_ac8e568d4e63 style a3c26e3b_e5fa_4dad_44a9_3400e7c99d09 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/lib/tools/test_functions.py lines 395–405
def test_decorator_with_parentheses(self) -> None:
"""Test using @function_tool() decorator with parentheses."""
@beta_tool()
def divide(a: float, b: float) -> str:
"""Divide two numbers."""
return str(a / b)
assert divide.name == "divide"
assert divide.description == "Divide two numbers."
assert divide.call({"a": 10.0, "b": 2.0}) == "5.0"
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_decorator_with_parentheses() do?
test_decorator_with_parentheses() is a function in the anthropic-sdk-python codebase, defined in tests/lib/tools/test_functions.py.
Where is test_decorator_with_parentheses() defined?
test_decorator_with_parentheses() is defined in tests/lib/tools/test_functions.py at line 395.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free