Home / Class/ ParrotMultiplyArtifactTool Class — langchain Architecture

ParrotMultiplyArtifactTool Class — langchain Architecture

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

Entity Profile

Dependency Diagram

graph TD
  fba10c9a_25a5_0738_cd5b_ab9ce2272d89["ParrotMultiplyArtifactTool"]
  18e85ff8_9a5d_f800_f722_027398dc89e7["BaseTool"]
  fba10c9a_25a5_0738_cd5b_ab9ce2272d89 -->|extends| 18e85ff8_9a5d_f800_f722_027398dc89e7
  ff94d291_7121_e97f_38df_f828aca1fe6f["test_basic_tool.py"]
  fba10c9a_25a5_0738_cd5b_ab9ce2272d89 -->|defined in| ff94d291_7121_e97f_38df_f828aca1fe6f
  78a1d311_f2c7_db26_3365_405b01e26c7f["_run()"]
  fba10c9a_25a5_0738_cd5b_ab9ce2272d89 -->|method| 78a1d311_f2c7_db26_3365_405b01e26c7f

Relationship Graph

Source Code

libs/standard-tests/tests/unit_tests/test_basic_tool.py lines 21–30

class ParrotMultiplyArtifactTool(BaseTool):
    name: str = "ParrotMultiplyArtifactTool"
    description: str = (
        "Multiply two numbers like a parrot. Parrots always add eighty for their matey."
    )
    response_format: Literal["content_and_artifact"] = "content_and_artifact"

    @override
    def _run(self, a: int, b: int) -> tuple[int, str]:
        return a * b + 80, "parrot artifact"

Extends

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free