test_partial_text_json_output_parser_diff_async() — langchain Function Reference
Architecture documentation for the test_partial_text_json_output_parser_diff_async() function in test_json.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 33b512cd_1e4a_aeed_b9ed_7a03940767b8["test_partial_text_json_output_parser_diff_async()"] 8edb1db9_86b9_7cd9_158b_8b5423c9a6dd["test_json.py"] 33b512cd_1e4a_aeed_b9ed_7a03940767b8 -->|defined in| 8edb1db9_86b9_7cd9_158b_8b5423c9a6dd style 33b512cd_1e4a_aeed_b9ed_7a03940767b8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/output_parsers/test_json.py lines 536–543
async def test_partial_text_json_output_parser_diff_async() -> None:
async def input_iter(_: Any) -> AsyncIterator[str]:
for token in STREAMED_TOKENS:
yield token
chain = input_iter | SimpleJsonOutputParser(diff=True)
assert [p async for p in chain.astream(None)] == EXPECTED_STREAMED_JSON_DIFF
Domain
Subdomains
Source
Frequently Asked Questions
What does test_partial_text_json_output_parser_diff_async() do?
test_partial_text_json_output_parser_diff_async() 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_async() defined?
test_partial_text_json_output_parser_diff_async() is defined in libs/core/tests/unit_tests/output_parsers/test_json.py at line 536.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free