Home / Function/ test_custom_name_and_description() — anthropic-sdk-python Function Reference

test_custom_name_and_description() — anthropic-sdk-python Function Reference

Architecture documentation for the test_custom_name_and_description() function in test_functions.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  33532873_f2e1_1b69_0244_a9f6bbf86523["test_custom_name_and_description()"]
  e25ad18d_e1f6_726f_20bc_ac8e568d4e63["TestFunctionTool"]
  33532873_f2e1_1b69_0244_a9f6bbf86523 -->|defined in| e25ad18d_e1f6_726f_20bc_ac8e568d4e63
  style 33532873_f2e1_1b69_0244_a9f6bbf86523 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/lib/tools/test_functions.py lines 123–131

    def test_custom_name_and_description(self) -> None:
        def some_function(x: int) -> str:
            """Original description."""
            return str(x * 2)

        function_tool = beta_tool(some_function, name="custom_name", description="Custom description")

        assert function_tool.name == "custom_name"
        assert function_tool.description == "Custom description"

Subdomains

Frequently Asked Questions

What does test_custom_name_and_description() do?
test_custom_name_and_description() is a function in the anthropic-sdk-python codebase, defined in tests/lib/tools/test_functions.py.
Where is test_custom_name_and_description() defined?
test_custom_name_and_description() is defined in tests/lib/tools/test_functions.py at line 123.

Analyze Your Own Codebase

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

Try Supermodel Free