Files
2026-07-13 12:43:34 +08:00

17 lines
731 B
Python

from abc import ABC
from typing import List
from superagi.tools.base_tool import BaseTool, BaseToolkit, ToolConfiguration
from superagi.tools.knowledge_search.knowledge_search import KnowledgeSearchTool
from superagi.types.key_type import ToolConfigKeyType
class KnowledgeSearchToolkit(BaseToolkit, ABC):
name: str = "Knowledge Search Toolkit"
description: str = "Toolkit containing tools for performing search on the knowledge base."
def get_tools(self) -> List[BaseTool]:
return [KnowledgeSearchTool()]
def get_env_keys(self) -> List[ToolConfiguration]:
return [
ToolConfiguration(key="OPENAI_API_KEY", key_type=ToolConfigKeyType.STRING, is_required=False, is_secret=True)
]