Home / Function/ test_partial_json_output_parser_key_async_first_only() — langchain Function Reference

test_partial_json_output_parser_key_async_first_only() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/core/tests/unit_tests/output_parsers/test_openai_tools.py lines 473–483

async def test_partial_json_output_parser_key_async_first_only(
    *,
    use_tool_calls: bool,
) -> None:
    input_iter = _get_aiter(use_tool_calls=use_tool_calls)

    chain = input_iter | JsonOutputKeyToolsParser(
        key_name="NameCollector", first_tool_only=True
    )

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

Domain

Subdomains

Calls

Frequently Asked Questions

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