test_partial_text_json_output_parser() — langchain Function Reference
Architecture documentation for the test_partial_text_json_output_parser() function in test_json.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD c9c6965b_fc7d_02f6_9d70_339f9ba0a492["test_partial_text_json_output_parser()"] 71a2245f_be01_cacb_537f_fd8695ecf011["test_json.py"] c9c6965b_fc7d_02f6_9d70_339f9ba0a492 -->|defined in| 71a2245f_be01_cacb_537f_fd8695ecf011 style c9c6965b_fc7d_02f6_9d70_339f9ba0a492 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/output_parsers/test_json.py lines 508–514
def test_partial_text_json_output_parser() -> None:
def input_iter(_: Any) -> Iterator[str]:
yield from STREAMED_TOKENS
chain = input_iter | SimpleJsonOutputParser()
assert list(chain.stream(None)) == EXPECTED_STREAMED_JSON
Domain
Subdomains
Source
Frequently Asked Questions
What does test_partial_text_json_output_parser() do?
test_partial_text_json_output_parser() 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() defined?
test_partial_text_json_output_parser() is defined in libs/core/tests/unit_tests/output_parsers/test_json.py at line 508.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free