Home / Class/ TestParrotMultiplyToolIntegration Class — langchain Architecture

TestParrotMultiplyToolIntegration Class — langchain Architecture

Architecture documentation for the TestParrotMultiplyToolIntegration class in test_basic_tool.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  c1bc22d4_a7c2_4d03_0e43_2ebb9a6fdb4a["TestParrotMultiplyToolIntegration"]
  1d8fc9eb_6e1b_e6b2_25c1_496643fddc53["ToolsIntegrationTests"]
  c1bc22d4_a7c2_4d03_0e43_2ebb9a6fdb4a -->|extends| 1d8fc9eb_6e1b_e6b2_25c1_496643fddc53
  ff94d291_7121_e97f_38df_f828aca1fe6f["test_basic_tool.py"]
  c1bc22d4_a7c2_4d03_0e43_2ebb9a6fdb4a -->|defined in| ff94d291_7121_e97f_38df_f828aca1fe6f
  86cb4226_f161_85b3_4f16_483e317a6ca3["tool_constructor()"]
  c1bc22d4_a7c2_4d03_0e43_2ebb9a6fdb4a -->|method| 86cb4226_f161_85b3_4f16_483e317a6ca3
  4fa5a00a_e827_c615_7b1c_70a4f7dee9ca["tool_constructor_params()"]
  c1bc22d4_a7c2_4d03_0e43_2ebb9a6fdb4a -->|method| 4fa5a00a_e827_c615_7b1c_70a4f7dee9ca
  cd77c1dc_e611_d8a3_9121_c365507caa8f["tool_invoke_params_example()"]
  c1bc22d4_a7c2_4d03_0e43_2ebb9a6fdb4a -->|method| cd77c1dc_e611_d8a3_9121_c365507caa8f

Relationship Graph

Source Code

libs/standard-tests/tests/unit_tests/test_basic_tool.py lines 55–74

class TestParrotMultiplyToolIntegration(ToolsIntegrationTests):
    @property
    def tool_constructor(self) -> type[ParrotMultiplyTool]:
        return ParrotMultiplyTool

    @property
    def tool_constructor_params(self) -> dict[str, Any]:
        # if your tool constructor instead required initialization arguments like
        # `def __init__(self, some_arg: int):`, you would return those here
        # as a dictionary, e.g.: `return {'some_arg': 42}`
        return {}

    @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}

Frequently Asked Questions

What is the TestParrotMultiplyToolIntegration class?
TestParrotMultiplyToolIntegration is a class in the langchain codebase, defined in libs/standard-tests/tests/unit_tests/test_basic_tool.py.
Where is TestParrotMultiplyToolIntegration defined?
TestParrotMultiplyToolIntegration is defined in libs/standard-tests/tests/unit_tests/test_basic_tool.py at line 55.
What does TestParrotMultiplyToolIntegration extend?
TestParrotMultiplyToolIntegration extends ToolsIntegrationTests.

Analyze Your Own Codebase

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

Try Supermodel Free