Home / Function/ test_partial_functions_json_output_parser_async() — langchain Function Reference

test_partial_functions_json_output_parser_async() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  fff463ad_060e_0f41_8be9_95223cffed29["test_partial_functions_json_output_parser_async()"]
  b56ca33d_b590_2278_bddb_7f9e05624561["test_json.py"]
  fff463ad_060e_0f41_8be9_95223cffed29 -->|defined in| b56ca33d_b590_2278_bddb_7f9e05624561
  style fff463ad_060e_0f41_8be9_95223cffed29 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/output_parsers/test_json.py lines 430–440

async def test_partial_functions_json_output_parser_async() -> None:
    async def input_iter(_: Any) -> AsyncIterator[AIMessageChunk]:
        for token in STREAMED_TOKENS:
            yield AIMessageChunk(
                content="",
                additional_kwargs={"function_call": {"arguments": token}},
            )

    chain = input_iter | JsonOutputFunctionsParser()

    assert [p async for p in chain.astream(None)] == EXPECTED_STREAMED_JSON

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free