You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/community/langchain_community/agent_toolkits/base.py

16 lines
397 B
Python

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