Class LoadTools
java.lang.Object
com.hw.langchain.agents.load.tools.LoadTools
Load tools.
- Author:
- HamaWhite
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BaseTool
static BaseTool
getSerpapi
(Map<String, Object> kwargs) loadTools
(List<String> toolNames, BaseLanguageModel llm) Load tools based on their name.
-
Constructor Details
-
LoadTools
public LoadTools()
-
-
Method Details
-
getLLMMath
-
getSerpapi
-
loadTools
-
loadTools
public static List<BaseTool> loadTools(List<String> toolNames, BaseLanguageModel llm, Map<String, Object> kwargs) Load tools based on their name.- Parameters:
toolNames
- name of tools to load.llm
- language model, may be needed to initialize certain tools.kwargs
- keyword arguments- Returns:
- List of tools.
-