test_mustache_schema_parent_child() — langchain Function Reference
Architecture documentation for the test_mustache_schema_parent_child() function in test_string.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 60179e9e_15c8_03ed_e1c3_bf2069547c41["test_mustache_schema_parent_child()"] ee8d1d01_dc2d_5490_76fd_b7e7c266afd3["test_string.py"] 60179e9e_15c8_03ed_e1c3_bf2069547c41 -->|defined in| ee8d1d01_dc2d_5490_76fd_b7e7c266afd3 style 60179e9e_15c8_03ed_e1c3_bf2069547c41 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/prompts/test_string.py lines 17–32
def test_mustache_schema_parent_child() -> None:
template = "{{x.y}} {{x}}"
expected = {
"$defs": {
"x": {
"properties": {"y": {"default": None, "title": "Y", "type": "string"}},
"title": "x",
"type": "object",
}
},
"properties": {"x": {"$ref": "#/$defs/x", "default": None}},
"title": "PromptInput",
"type": "object",
}
actual = mustache_schema(template).model_json_schema()
assert expected == actual
Domain
Subdomains
Source
Frequently Asked Questions
What does test_mustache_schema_parent_child() do?
test_mustache_schema_parent_child() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/prompts/test_string.py.
Where is test_mustache_schema_parent_child() defined?
test_mustache_schema_parent_child() is defined in libs/core/tests/unit_tests/prompts/test_string.py at line 17.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free