test_partial_json_output_parser_async() — langchain Function Reference
Architecture documentation for the test_partial_json_output_parser_async() function in test_openai_tools.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD bf9fa22e_7f68_9161_3ae8_39b858d711f9["test_partial_json_output_parser_async()"] 0f94a062_f577_31c7_fb9c_0f526b273e64["test_openai_tools.py"] bf9fa22e_7f68_9161_3ae8_39b858d711f9 -->|defined in| 0f94a062_f577_31c7_fb9c_0f526b273e64 74dfe3cb_0e9c_1076_46f1_677483710617["_get_aiter()"] bf9fa22e_7f68_9161_3ae8_39b858d711f9 -->|calls| 74dfe3cb_0e9c_1076_46f1_677483710617 style bf9fa22e_7f68_9161_3ae8_39b858d711f9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/output_parsers/test_openai_tools.py lines 406–414
async def test_partial_json_output_parser_async(*, use_tool_calls: bool) -> None:
input_iter = _get_aiter(use_tool_calls=use_tool_calls)
chain = input_iter | JsonOutputToolsParser()
actual = [p async for p in chain.astream(None)]
expected: list[list[dict[str, Any]]] = [[]] + [
[{"type": "NameCollector", "args": chunk}] for chunk in EXPECTED_STREAMED_JSON
]
assert actual == expected
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_partial_json_output_parser_async() do?
test_partial_json_output_parser_async() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/output_parsers/test_openai_tools.py.
Where is test_partial_json_output_parser_async() defined?
test_partial_json_output_parser_async() is defined in libs/core/tests/unit_tests/output_parsers/test_openai_tools.py at line 406.
What does test_partial_json_output_parser_async() call?
test_partial_json_output_parser_async() calls 1 function(s): _get_aiter.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free