test_convert_to_openai_function_no_args() — langchain Function Reference
Architecture documentation for the test_convert_to_openai_function_no_args() function in test_function_calling.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD fdf232a1_e7a8_40ec_efdc_18aa9d969c73["test_convert_to_openai_function_no_args()"] 6f1e8e6f_d3f9_e590_b17e_1dc8afafdbe0["test_function_calling.py"] fdf232a1_e7a8_40ec_efdc_18aa9d969c73 -->|defined in| 6f1e8e6f_d3f9_e590_b17e_1dc8afafdbe0 style fdf232a1_e7a8_40ec_efdc_18aa9d969c73 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/utils/test_function_calling.py lines 1061–1077
def test_convert_to_openai_function_no_args() -> None:
@tool
def empty_tool() -> str:
"""No args."""
return "foo"
actual = convert_to_openai_function(empty_tool, strict=True)
assert actual == {
"name": "empty_tool",
"description": "No args.",
"parameters": {
"properties": {},
"additionalProperties": False,
"type": "object",
},
"strict": True,
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_convert_to_openai_function_no_args() do?
test_convert_to_openai_function_no_args() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/utils/test_function_calling.py.
Where is test_convert_to_openai_function_no_args() defined?
test_convert_to_openai_function_no_args() is defined in libs/core/tests/unit_tests/utils/test_function_calling.py at line 1061.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free