_get_description_from_docstring() — anthropic-sdk-python Function Reference
Architecture documentation for the _get_description_from_docstring() function in _beta_functions.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD e4ad5562_f752_5b4b_a011_4481b765ea4c["_get_description_from_docstring()"] 001b1f9e_045c_b009_1c1f_58964c925505["BaseFunctionTool"] e4ad5562_f752_5b4b_a011_4481b765ea4c -->|defined in| 001b1f9e_045c_b009_1c1f_58964c925505 d9fcf820_8cac_9db2_dcbc_d9b37c4e6ce0["__init__()"] d9fcf820_8cac_9db2_dcbc_d9b37c4e6ce0 -->|calls| e4ad5562_f752_5b4b_a011_4481b765ea4c style e4ad5562_f752_5b4b_a011_4481b765ea4c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/anthropic/lib/tools/_beta_functions.py lines 119–126
def _get_description_from_docstring(self) -> str:
"""Extract description from parsed docstring."""
if self._parsed_docstring.short_description:
description = self._parsed_docstring.short_description
if self._parsed_docstring.long_description:
description += f"\n\n{self._parsed_docstring.long_description}"
return description
return ""
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does _get_description_from_docstring() do?
_get_description_from_docstring() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/lib/tools/_beta_functions.py.
Where is _get_description_from_docstring() defined?
_get_description_from_docstring() is defined in src/anthropic/lib/tools/_beta_functions.py at line 119.
What calls _get_description_from_docstring()?
_get_description_from_docstring() is called by 1 function(s): __init__.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free