test_docstring_parsing_simple() — anthropic-sdk-python Function Reference
Architecture documentation for the test_docstring_parsing_simple() function in test_functions.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 1f98972c_69d5_ad15_6d31_35e7b33058a9["test_docstring_parsing_simple()"] e25ad18d_e1f6_726f_20bc_ac8e568d4e63["TestFunctionTool"] 1f98972c_69d5_ad15_6d31_35e7b33058a9 -->|defined in| e25ad18d_e1f6_726f_20bc_ac8e568d4e63 d48c26ed_60f3_c65c_5a30_ff9f3445fe12["_get_parameters_info()"] 1f98972c_69d5_ad15_6d31_35e7b33058a9 -->|calls| d48c26ed_60f3_c65c_5a30_ff9f3445fe12 style 1f98972c_69d5_ad15_6d31_35e7b33058a9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/lib/tools/test_functions.py lines 419–439
def test_docstring_parsing_simple(self) -> None:
"""Test that simple docstrings still work correctly."""
def simple_add(a: int, b: int) -> str:
"""Add two numbers together."""
return str(a + b)
function_tool = beta_tool(simple_add)
assert function_tool.description == "Add two numbers together."
assert _get_parameters_info(function_tool) == {}
# Schema should not have descriptions for parameters
expected_schema = {
"additionalProperties": False,
"type": "object",
"properties": {"a": {"title": "A", "type": "integer"}, "b": {"title": "B", "type": "integer"}},
"required": ["a", "b"],
}
assert function_tool.input_schema == expected_schema
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_docstring_parsing_simple() do?
test_docstring_parsing_simple() is a function in the anthropic-sdk-python codebase, defined in tests/lib/tools/test_functions.py.
Where is test_docstring_parsing_simple() defined?
test_docstring_parsing_simple() is defined in tests/lib/tools/test_functions.py at line 419.
What does test_docstring_parsing_simple() call?
test_docstring_parsing_simple() calls 1 function(s): _get_parameters_info.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free