Source code for langchain.agents.agent_toolkits.base

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

from pydantic import BaseModel

from langchain.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."""