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