test_json_validity_evaluator_evaluate_valid_json() — langchain Function Reference
Architecture documentation for the test_json_validity_evaluator_evaluate_valid_json() function in test_base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 93e30359_08ae_3600_e5c8_706f5c77c5bf["test_json_validity_evaluator_evaluate_valid_json()"] 5699e682_332a_59f6_5c7c_d1fcf8332e65["test_base.py"] 93e30359_08ae_3600_e5c8_706f5c77c5bf -->|defined in| 5699e682_332a_59f6_5c7c_d1fcf8332e65 style 93e30359_08ae_3600_e5c8_706f5c77c5bf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/evaluation/parsing/test_base.py lines 34–39
def test_json_validity_evaluator_evaluate_valid_json(
json_validity_evaluator: JsonValidityEvaluator,
) -> None:
prediction = '{"name": "John", "age": 30, "city": "New York"}'
result = json_validity_evaluator.evaluate_strings(prediction=prediction)
assert result == {"score": 1}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_json_validity_evaluator_evaluate_valid_json() do?
test_json_validity_evaluator_evaluate_valid_json() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/evaluation/parsing/test_base.py.
Where is test_json_validity_evaluator_evaluate_valid_json() defined?
test_json_validity_evaluator_evaluate_valid_json() is defined in libs/langchain/tests/unit_tests/evaluation/parsing/test_base.py at line 34.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free