test_convert_to_openai_function_json_schema_missing_title_with_type() — langchain Function Reference
Architecture documentation for the test_convert_to_openai_function_json_schema_missing_title_with_type() function in test_function_calling.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 799873a5_bbef_2fb7_8b88_a04b9f172e0d["test_convert_to_openai_function_json_schema_missing_title_with_type()"] 6f1e8e6f_d3f9_e590_b17e_1dc8afafdbe0["test_function_calling.py"] 799873a5_bbef_2fb7_8b88_a04b9f172e0d -->|defined in| 6f1e8e6f_d3f9_e590_b17e_1dc8afafdbe0 style 799873a5_bbef_2fb7_8b88_a04b9f172e0d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/utils/test_function_calling.py lines 1185–1192
def test_convert_to_openai_function_json_schema_missing_title_with_type() -> None:
"""Test error for JSON schema with 'type' but no 'title'."""
schema_without_title = {
"type": "object",
"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_with_type() do?
test_convert_to_openai_function_json_schema_missing_title_with_type() 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_with_type() defined?
test_convert_to_openai_function_json_schema_missing_title_with_type() is defined in libs/core/tests/unit_tests/utils/test_function_calling.py at line 1185.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free