function_has_argument() — anthropic-sdk-python Function Reference
Architecture documentation for the function_has_argument() function in _reflection.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD f29516bc_4fed_a275_b88a_5b66b26f6cce["function_has_argument()"] 5f498a17_95ee_cd14_01ce_dab1a2bfac8d["_reflection.py"] f29516bc_4fed_a275_b88a_5b66b26f6cce -->|defined in| 5f498a17_95ee_cd14_01ce_dab1a2bfac8d style f29516bc_4fed_a275_b88a_5b66b26f6cce fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/anthropic/_utils/_reflection.py lines 7–10
def function_has_argument(func: Callable[..., Any], arg_name: str) -> bool:
"""Returns whether or not the given function has a specific parameter"""
sig = inspect.signature(func)
return arg_name in sig.parameters
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does function_has_argument() do?
function_has_argument() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/_utils/_reflection.py.
Where is function_has_argument() defined?
function_has_argument() is defined in src/anthropic/_utils/_reflection.py at line 7.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free