Home / Function/ test_partial_pydantic_output_parser_async() — langchain Function Reference

test_partial_pydantic_output_parser_async() — langchain Function Reference

Architecture documentation for the test_partial_pydantic_output_parser_async() function in test_openai_tools.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  14dc4d94_2925_4767_fe0b_b39033e5dfab["test_partial_pydantic_output_parser_async()"]
  0f94a062_f577_31c7_fb9c_0f526b273e64["test_openai_tools.py"]
  14dc4d94_2925_4767_fe0b_b39033e5dfab -->|defined in| 0f94a062_f577_31c7_fb9c_0f526b273e64
  74dfe3cb_0e9c_1076_46f1_677483710617["_get_aiter()"]
  14dc4d94_2925_4767_fe0b_b39033e5dfab -->|calls| 74dfe3cb_0e9c_1076_46f1_677483710617
  style 14dc4d94_2925_4767_fe0b_b39033e5dfab fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/output_parsers/test_openai_tools.py lines 799–808

async def test_partial_pydantic_output_parser_async() -> None:
    for use_tool_calls in [False, True]:
        input_iter = _get_aiter(use_tool_calls=use_tool_calls)

        chain = input_iter | PydanticToolsParser(
            tools=[NameCollector], first_tool_only=True
        )

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

Domain

Subdomains

Calls

Frequently Asked Questions

What does test_partial_pydantic_output_parser_async() do?
test_partial_pydantic_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_pydantic_output_parser_async() defined?
test_partial_pydantic_output_parser_async() is defined in libs/core/tests/unit_tests/output_parsers/test_openai_tools.py at line 799.
What does test_partial_pydantic_output_parser_async() call?
test_partial_pydantic_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