Home / Class/ ParrotMultiplyTool Class — langchain Architecture

ParrotMultiplyTool Class — langchain Architecture

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

Entity Profile

Dependency Diagram

graph TD
  59e1d28a_ee80_100f_a8aa_694572040b3d["ParrotMultiplyTool"]
  18e85ff8_9a5d_f800_f722_027398dc89e7["BaseTool"]
  59e1d28a_ee80_100f_a8aa_694572040b3d -->|extends| 18e85ff8_9a5d_f800_f722_027398dc89e7
  ff94d291_7121_e97f_38df_f828aca1fe6f["test_basic_tool.py"]
  59e1d28a_ee80_100f_a8aa_694572040b3d -->|defined in| ff94d291_7121_e97f_38df_f828aca1fe6f
  cc18d41d_fbcf_d3fc_38d5_1943985d733b["_run()"]
  59e1d28a_ee80_100f_a8aa_694572040b3d -->|method| cc18d41d_fbcf_d3fc_38d5_1943985d733b

Relationship Graph

Source Code

libs/standard-tests/tests/unit_tests/test_basic_tool.py lines 10–18

class ParrotMultiplyTool(BaseTool):
    name: str = "ParrotMultiplyTool"
    description: str = (
        "Multiply two numbers like a parrot. Parrots always add eighty for their matey."
    )

    @override
    def _run(self, a: int, b: int) -> int:
        return a * b + 80

Extends

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free