Home / Function/ test_partial_functions_json_output_parser() — langchain Function Reference

test_partial_functions_json_output_parser() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/output_parsers/test_json.py lines 404–414

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

    chain = input_iter | JsonOutputFunctionsParser()

    assert list(chain.stream(None)) == EXPECTED_STREAMED_JSON

Domain

Subdomains

Frequently Asked Questions

What does test_partial_functions_json_output_parser() do?
test_partial_functions_json_output_parser() 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() defined?
test_partial_functions_json_output_parser() is defined in libs/langchain/tests/unit_tests/output_parsers/test_json.py at line 404.

Analyze Your Own Codebase

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

Try Supermodel Free