mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 19:47:13 +00:00
community[patch],core[minor]: Move BaseToolKit to core.tools (#20669)
This commit is contained in:
@@ -1,15 +1,4 @@
|
||||
"""Toolkits for agents."""
|
||||
from abc import ABC, abstractmethod
|
||||
from typing import List
|
||||
from langchain_core.tools import BaseToolkit
|
||||
|
||||
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."""
|
||||
__all__ = ["BaseToolkit"]
|
||||
|
Reference in New Issue
Block a user