test_partial_json_output_key_parser_first_only() — langchain Function Reference
Architecture documentation for the test_partial_json_output_key_parser_first_only() function in test_openai_tools.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 100ec616_9d71_f29d_306b_f2732e32d00d["test_partial_json_output_key_parser_first_only()"] 0f94a062_f577_31c7_fb9c_0f526b273e64["test_openai_tools.py"] 100ec616_9d71_f29d_306b_f2732e32d00d -->|defined in| 0f94a062_f577_31c7_fb9c_0f526b273e64 fb247906_e10d_6b69_ad23_383ab40a425f["_get_iter()"] 100ec616_9d71_f29d_306b_f2732e32d00d -->|calls| fb247906_e10d_6b69_ad23_383ab40a425f style 100ec616_9d71_f29d_306b_f2732e32d00d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/output_parsers/test_openai_tools.py lines 462–469
def test_partial_json_output_key_parser_first_only(*, use_tool_calls: bool) -> None:
input_iter = _get_iter(use_tool_calls=use_tool_calls)
chain = input_iter | JsonOutputKeyToolsParser(
key_name="NameCollector", first_tool_only=True
)
assert list(chain.stream(None)) == EXPECTED_STREAMED_JSON
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_partial_json_output_key_parser_first_only() do?
test_partial_json_output_key_parser_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_key_parser_first_only() defined?
test_partial_json_output_key_parser_first_only() is defined in libs/core/tests/unit_tests/output_parsers/test_openai_tools.py at line 462.
What does test_partial_json_output_key_parser_first_only() call?
test_partial_json_output_key_parser_first_only() calls 1 function(s): _get_iter.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free