Home / Function/ test_parse_json_with_python_dict() — langchain Function Reference

test_parse_json_with_python_dict() — langchain Function Reference

Architecture documentation for the test_parse_json_with_python_dict() function in test_json.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  b272cb2d_7409_b938_489a_4e0d884dfa49["test_parse_json_with_python_dict()"]
  8edb1db9_86b9_7cd9_158b_8b5423c9a6dd["test_json.py"]
  b272cb2d_7409_b938_489a_4e0d884dfa49 -->|defined in| 8edb1db9_86b9_7cd9_158b_8b5423c9a6dd
  style b272cb2d_7409_b938_489a_4e0d884dfa49 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/output_parsers/test_json.py lines 239–244

def test_parse_json_with_python_dict() -> None:
    parsed = parse_json_markdown(JSON_WITH_PYTHON_DICT)
    assert parsed == {
        "action": "Final Answer",
        "action_input": {"foo": "bar", "bar": "foo"},
    }

Subdomains

Frequently Asked Questions

What does test_parse_json_with_python_dict() do?
test_parse_json_with_python_dict() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/output_parsers/test_json.py.
Where is test_parse_json_with_python_dict() defined?
test_parse_json_with_python_dict() is defined in libs/core/tests/unit_tests/output_parsers/test_json.py at line 239.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free