test_convert_to_openai_function_json_schema_missing_title_properties() — langchain Function Reference
Architecture documentation for the test_convert_to_openai_function_json_schema_missing_title_properties() function in test_function_calling.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 3318c504_3c98_0ac7_aa26_9bb159e2aa95["test_convert_to_openai_function_json_schema_missing_title_properties()"] 6f1e8e6f_d3f9_e590_b17e_1dc8afafdbe0["test_function_calling.py"] 3318c504_3c98_0ac7_aa26_9bb159e2aa95 -->|defined in| 6f1e8e6f_d3f9_e590_b17e_1dc8afafdbe0 style 3318c504_3c98_0ac7_aa26_9bb159e2aa95 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/utils/test_function_calling.py lines 1195–1201
def test_convert_to_openai_function_json_schema_missing_title_properties() -> None:
"""Test error for JSON schema with 'properties' but no 'title'."""
schema_without_title = {
"properties": {"arg1": {"type": "string"}},
}
with pytest.raises(ValueError, match="must have a top-level 'title' key"):
convert_to_openai_function(schema_without_title)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_convert_to_openai_function_json_schema_missing_title_properties() do?
test_convert_to_openai_function_json_schema_missing_title_properties() 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_json_schema_missing_title_properties() defined?
test_convert_to_openai_function_json_schema_missing_title_properties() is defined in libs/core/tests/unit_tests/utils/test_function_calling.py at line 1195.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free