-
Notifications
You must be signed in to change notification settings - Fork 16.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
community[patch],core[minor]: Move BaseToolKit to core.tools (#20669)
- Loading branch information
Showing
2 changed files
with
11 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters