test_json_validity_evaluator_evaluate_invalid_json() — langchain Function Reference
Architecture documentation for the test_json_validity_evaluator_evaluate_invalid_json() function in test_base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD f72488d6_53fe_5d40_ac69_96cb453bfa36["test_json_validity_evaluator_evaluate_invalid_json()"] 5699e682_332a_59f6_5c7c_d1fcf8332e65["test_base.py"] f72488d6_53fe_5d40_ac69_96cb453bfa36 -->|defined in| 5699e682_332a_59f6_5c7c_d1fcf8332e65 style f72488d6_53fe_5d40_ac69_96cb453bfa36 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/evaluation/parsing/test_base.py lines 42–47
def test_json_validity_evaluator_evaluate_invalid_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"] == 0
Domain
Subdomains
Source
Frequently Asked Questions
What does test_json_validity_evaluator_evaluate_invalid_json() do?
test_json_validity_evaluator_evaluate_invalid_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_invalid_json() defined?
test_json_validity_evaluator_evaluate_invalid_json() is defined in libs/langchain/tests/unit_tests/evaluation/parsing/test_base.py at line 42.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free