Home / Class/ TestParrotMultiplyToolUnit Class — langchain Architecture

TestParrotMultiplyToolUnit Class — langchain Architecture

Architecture documentation for the TestParrotMultiplyToolUnit class in test_decorated_tool.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  6de9e834_5ea7_320e_4332_a37afba95ca4["TestParrotMultiplyToolUnit"]
  5b8c9c93_fb5c_4750_c17c_9d41c1862020["ToolsUnitTests"]
  6de9e834_5ea7_320e_4332_a37afba95ca4 -->|extends| 5b8c9c93_fb5c_4750_c17c_9d41c1862020
  be95f8f9_5efc_daec_7294_88a053731239["test_decorated_tool.py"]
  6de9e834_5ea7_320e_4332_a37afba95ca4 -->|defined in| be95f8f9_5efc_daec_7294_88a053731239
  3d2e04a8_7311_9a53_3363_5cff422593db["tool_constructor()"]
  6de9e834_5ea7_320e_4332_a37afba95ca4 -->|method| 3d2e04a8_7311_9a53_3363_5cff422593db
  bf70518b_ad02_c9e4_8bd3_115910014029["tool_invoke_params_example()"]
  6de9e834_5ea7_320e_4332_a37afba95ca4 -->|method| bf70518b_ad02_c9e4_8bd3_115910014029

Relationship Graph

Source Code

libs/standard-tests/tests/unit_tests/test_decorated_tool.py lines 15–27

class TestParrotMultiplyToolUnit(ToolsUnitTests):
    @property
    def tool_constructor(self) -> BaseTool:
        return parrot_multiply_tool

    @property
    def tool_invoke_params_example(self) -> dict[str, Any]:
        """Returns a dictionary representing the "args" of an example tool call.

        This should NOT be a ToolCall dict - i.e. it should not
        have {"name", "id", "args"} keys.
        """
        return {"a": 2, "b": 3}

Extends

Frequently Asked Questions

What is the TestParrotMultiplyToolUnit class?
TestParrotMultiplyToolUnit is a class in the langchain codebase, defined in libs/standard-tests/tests/unit_tests/test_decorated_tool.py.
Where is TestParrotMultiplyToolUnit defined?
TestParrotMultiplyToolUnit is defined in libs/standard-tests/tests/unit_tests/test_decorated_tool.py at line 15.
What does TestParrotMultiplyToolUnit extend?
TestParrotMultiplyToolUnit extends ToolsUnitTests.

Analyze Your Own Codebase

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

Try Supermodel Free