Home / Function/ test_partial_text_json_output_parser_diff() — langchain Function Reference

test_partial_text_json_output_parser_diff() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/core/tests/unit_tests/output_parsers/test_json.py lines 517–523

def test_partial_text_json_output_parser_diff() -> None:
    def input_iter(_: Any) -> Iterator[str]:
        yield from STREAMED_TOKENS

    chain = input_iter | SimpleJsonOutputParser(diff=True)

    assert list(chain.stream(None)) == EXPECTED_STREAMED_JSON_DIFF

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free