test_json_schema_evaluator_missing_property() — langchain Function Reference
Architecture documentation for the test_json_schema_evaluator_missing_property() function in test_json_schema.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD b65c29ab_93c6_579e_b436_736b8884166d["test_json_schema_evaluator_missing_property()"] 54803af3_7979_cadf_df7b_bcd305ce919c["test_json_schema.py"] b65c29ab_93c6_579e_b436_736b8884166d -->|defined in| 54803af3_7979_cadf_df7b_bcd305ce919c style b65c29ab_93c6_579e_b436_736b8884166d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/evaluation/parsing/test_json_schema.py lines 66–80
def test_json_schema_evaluator_missing_property(
json_schema_evaluator: JsonSchemaEvaluator,
) -> None:
prediction = '{"name": "John"}' # age property is missing
reference = {
"type": "object",
"properties": {"name": {"type": "string"}, "age": {"type": "integer"}},
"required": ["name", "age"],
}
result = json_schema_evaluator._evaluate_strings(
prediction=prediction,
reference=reference,
)
assert result["score"] is False
assert "reasoning" in result
Domain
Subdomains
Source
Frequently Asked Questions
What does test_json_schema_evaluator_missing_property() do?
test_json_schema_evaluator_missing_property() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/evaluation/parsing/test_json_schema.py.
Where is test_json_schema_evaluator_missing_property() defined?
test_json_schema_evaluator_missing_property() is defined in libs/langchain/tests/unit_tests/evaluation/parsing/test_json_schema.py at line 66.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free