forked from Archives/langchain
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.
16 lines
364 B
Python
16 lines
364 B
Python
"""Toolkits for agents."""
|
|
from abc import abstractmethod
|
|
from typing import List
|
|
|
|
from pydantic import BaseModel
|
|
|
|
from langchain.tools import BaseTool
|
|
|
|
|
|
class BaseToolkit(BaseModel):
|
|
"""Class responsible for defining a collection of related tools."""
|
|
|
|
@abstractmethod
|
|
def get_tools(self) -> List[BaseTool]:
|
|
"""Get the tools in the toolkit."""
|