Source code for langchain_community.agent_toolkits.base

"""Toolkits for agents."""
from abc import ABC, abstractmethod
from typing import List

from langchain_core.pydantic_v1 import BaseModel

from langchain_community.tools import BaseTool


[docs]class BaseToolkit(BaseModel, ABC): """Base Toolkit representing a collection of related tools."""
[docs] @abstractmethod def get_tools(self) -> List[BaseTool]: """Get the tools in the toolkit."""