Home / Class/ BaseToolkit Class — langchain Architecture

BaseToolkit Class — langchain Architecture

Architecture documentation for the BaseToolkit class in base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  aa4e58cd_87fb_fce1_d847_f0c0d6b3d3ec["BaseToolkit"]
  80cebff4_efbd_4311_85e9_de0dc81a7eee["base.py"]
  aa4e58cd_87fb_fce1_d847_f0c0d6b3d3ec -->|defined in| 80cebff4_efbd_4311_85e9_de0dc81a7eee
  b09a376b_d385_41b3_b2b9_e18a1bf4c58b["get_tools()"]
  aa4e58cd_87fb_fce1_d847_f0c0d6b3d3ec -->|method| b09a376b_d385_41b3_b2b9_e18a1bf4c58b

Relationship Graph

Source Code

libs/core/langchain_core/tools/base.py lines 1572–1585

class BaseToolkit(BaseModel, ABC):
    """Base class for toolkits containing related tools.

    A toolkit is a collection of related tools that can be used together to accomplish a
    specific task or work with a particular system.
    """

    @abstractmethod
    def get_tools(self) -> list[BaseTool]:
        """Get all tools in the toolkit.

        Returns:
            List of tools contained in this toolkit.
        """

Frequently Asked Questions

What is the BaseToolkit class?
BaseToolkit is a class in the langchain codebase, defined in libs/core/langchain_core/tools/base.py.
Where is BaseToolkit defined?
BaseToolkit is defined in libs/core/langchain_core/tools/base.py at line 1572.

Analyze Your Own Codebase

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

Try Supermodel Free