TestParrotMultiplyToolUnit Class — langchain Architecture
Architecture documentation for the TestParrotMultiplyToolUnit class in test_basic_tool.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 868ef7e6_8139_b183_d5d1_f6057a154199["TestParrotMultiplyToolUnit"] 5b8c9c93_fb5c_4750_c17c_9d41c1862020["ToolsUnitTests"] 868ef7e6_8139_b183_d5d1_f6057a154199 -->|extends| 5b8c9c93_fb5c_4750_c17c_9d41c1862020 ff94d291_7121_e97f_38df_f828aca1fe6f["test_basic_tool.py"] 868ef7e6_8139_b183_d5d1_f6057a154199 -->|defined in| ff94d291_7121_e97f_38df_f828aca1fe6f 1eceea48_b671_b148_23af_21149efab76a["tool_constructor()"] 868ef7e6_8139_b183_d5d1_f6057a154199 -->|method| 1eceea48_b671_b148_23af_21149efab76a 8a59a5e6_a3f2_355b_4b21_5a26dd9995fb["tool_constructor_params()"] 868ef7e6_8139_b183_d5d1_f6057a154199 -->|method| 8a59a5e6_a3f2_355b_4b21_5a26dd9995fb 1300afc7_bc95_f334_c2d7_6428db0500b8["tool_invoke_params_example()"] 868ef7e6_8139_b183_d5d1_f6057a154199 -->|method| 1300afc7_bc95_f334_c2d7_6428db0500b8
Relationship Graph
Source Code
libs/standard-tests/tests/unit_tests/test_basic_tool.py lines 33–52
class TestParrotMultiplyToolUnit(ToolsUnitTests):
@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}
Extends
Source
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_basic_tool.py.
Where is TestParrotMultiplyToolUnit defined?
TestParrotMultiplyToolUnit is defined in libs/standard-tests/tests/unit_tests/test_basic_tool.py at line 33.
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