Home / Function/ test_tools_output_parser() — langchain Function Reference

test_tools_output_parser() — langchain Function Reference

Architecture documentation for the test_tools_output_parser() function in test_output_parsers.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  fa65b906_1139_028e_f379_4caecd50880a["test_tools_output_parser()"]
  d0555d77_871a_515b_e021_71707366ba98["test_output_parsers.py"]
  fa65b906_1139_028e_f379_4caecd50880a -->|defined in| d0555d77_871a_515b_e021_71707366ba98
  style fa65b906_1139_028e_f379_4caecd50880a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/anthropic/tests/unit_tests/test_output_parsers.py lines 33–52

def test_tools_output_parser() -> None:
    output_parser = ToolsOutputParser()
    expected = [
        {
            "name": "_Foo1",
            "args": {"bar": 0},
            "id": "1",
            "index": 1,
            "type": "tool_call",
        },
        {
            "name": "_Foo2",
            "args": {"baz": "a"},
            "id": "2",
            "index": 3,
            "type": "tool_call",
        },
    ]
    actual = output_parser.parse_result(_RESULT)
    assert expected == actual

Domain

Subdomains

Frequently Asked Questions

What does test_tools_output_parser() do?
test_tools_output_parser() is a function in the langchain codebase, defined in libs/partners/anthropic/tests/unit_tests/test_output_parsers.py.
Where is test_tools_output_parser() defined?
test_tools_output_parser() is defined in libs/partners/anthropic/tests/unit_tests/test_output_parsers.py at line 33.

Analyze Your Own Codebase

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

Try Supermodel Free