test_convert_to_openai_function_json_schema_missing_title_includes_schema() — langchain Function Reference
Architecture documentation for the test_convert_to_openai_function_json_schema_missing_title_includes_schema() function in test_function_calling.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD b5101489_c804_4221_d6ed_b84cf7de841b["test_convert_to_openai_function_json_schema_missing_title_includes_schema()"] 6f1e8e6f_d3f9_e590_b17e_1dc8afafdbe0["test_function_calling.py"] b5101489_c804_4221_d6ed_b84cf7de841b -->|defined in| 6f1e8e6f_d3f9_e590_b17e_1dc8afafdbe0 style b5101489_c804_4221_d6ed_b84cf7de841b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/utils/test_function_calling.py lines 1204–1211
def test_convert_to_openai_function_json_schema_missing_title_includes_schema() -> None:
"""Test that the error message includes the schema for debugging."""
schema_without_title = {
"type": "object",
"properties": {"my_field": {"type": "integer"}},
}
with pytest.raises(ValueError, match="my_field"):
convert_to_openai_function(schema_without_title)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_convert_to_openai_function_json_schema_missing_title_includes_schema() do?
test_convert_to_openai_function_json_schema_missing_title_includes_schema() 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_includes_schema() defined?
test_convert_to_openai_function_json_schema_missing_title_includes_schema() is defined in libs/core/tests/unit_tests/utils/test_function_calling.py at line 1204.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free