2023-12-07 20:17:21 +08:00
|
|
|
import importlib
|
|
|
|
|
2023-11-07 19:44:47 +08:00
|
|
|
from .base_tool import toLangchainTools, get_tool_schema, BaseToolModel
|
|
|
|
from .weather import WeatherInfo, DistrictInfo
|
|
|
|
from .multiplier import Multiplier
|
|
|
|
from .world_time import WorldTimeGetTimezoneByArea
|
|
|
|
from .abnormal_detection import KSigmaDetector
|
|
|
|
from .metrics_query import MetricsQuery
|
|
|
|
from .duckduckgo_search import DDGSTool
|
|
|
|
from .docs_retrieval import DocRetrieval
|
|
|
|
from .cb_query_tool import CodeRetrieval
|
2023-12-07 20:17:21 +08:00
|
|
|
from .ocr_tool import BaiduOcrTool
|
|
|
|
from .stock_tool import StockInfo, StockName
|
2023-12-26 11:41:53 +08:00
|
|
|
from .codechat_tools import CodeRetrievalSingle, RelatedVerticesRetrival, Vertex2Code
|
2023-12-07 20:17:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
IMPORT_TOOL = [
|
|
|
|
WeatherInfo, DistrictInfo, Multiplier, WorldTimeGetTimezoneByArea,
|
|
|
|
KSigmaDetector, MetricsQuery, DDGSTool, DocRetrieval, CodeRetrieval,
|
2023-12-26 11:41:53 +08:00
|
|
|
BaiduOcrTool, StockInfo, StockName, CodeRetrievalSingle, RelatedVerticesRetrival, Vertex2Code
|
2023-12-07 20:17:21 +08:00
|
|
|
]
|
|
|
|
|
|
|
|
TOOL_SETS = [tool.__name__ for tool in IMPORT_TOOL]
|
|
|
|
|
|
|
|
TOOL_DICT = {tool.__name__: tool for tool in IMPORT_TOOL}
|
2023-11-07 19:44:47 +08:00
|
|
|
|
|
|
|
|
|
|
|
__all__ = [
|
|
|
|
"toLangchainTools", "get_tool_schema", "tool_sets", "BaseToolModel"
|
2023-12-07 20:17:21 +08:00
|
|
|
] + TOOL_SETS
|
2023-11-07 19:44:47 +08:00
|
|
|
|