Home / Function/ dummy_tool() — langchain Function Reference

dummy_tool() — langchain Function Reference

Architecture documentation for the dummy_tool() function in test_function_calling.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  03b5f6b3_b685_d630_f325_716d6defd415["dummy_tool()"]
  6f1e8e6f_d3f9_e590_b17e_1dc8afafdbe0["test_function_calling.py"]
  03b5f6b3_b685_d630_f325_716d6defd415 -->|defined in| 6f1e8e6f_d3f9_e590_b17e_1dc8afafdbe0
  2336aa9d_dad5_647a_41e6_a53f1f1d07c7["_run()"]
  03b5f6b3_b685_d630_f325_716d6defd415 -->|calls| 2336aa9d_dad5_647a_41e6_a53f1f1d07c7
  style 03b5f6b3_b685_d630_f325_716d6defd415 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/utils/test_function_calling.py lines 99–112

def dummy_tool() -> BaseTool:
    class Schema(BaseModel):
        arg1: int = Field(..., description="foo")
        arg2: Literal["bar", "baz"] = Field(..., description="one of 'bar', 'baz'")

    class DummyFunction(BaseTool):
        args_schema: type[BaseModel] = Schema
        name: str = "dummy_function"
        description: str = "Dummy function."

        def _run(self, *args: Any, **kwargs: Any) -> Any:
            pass

    return DummyFunction()

Domain

Subdomains

Calls

Frequently Asked Questions

What does dummy_tool() do?
dummy_tool() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/utils/test_function_calling.py.
Where is dummy_tool() defined?
dummy_tool() is defined in libs/core/tests/unit_tests/utils/test_function_calling.py at line 99.
What does dummy_tool() call?
dummy_tool() calls 1 function(s): _run.

Analyze Your Own Codebase

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

Try Supermodel Free