Uses of Class
com.hw.langchain.tools.base.BaseTool
Packages that use BaseTool
Package
Description
-
Uses of BaseTool in com.hw.langchain.agents.agent
Method parameters in com.hw.langchain.agents.agent with type arguments of type BaseToolModifier and TypeMethodDescriptionstatic AgentExecutorAgentExecutor.fromAgentAndTools(BaseSingleActionAgent agent, List<BaseTool> tools) Create from agent and tools.static BaseSingleActionAgentAgent.fromLLMAndTools(BaseLanguageModel llm, List<BaseTool> tools, Map<String, Object> kwargs) static BaseSingleActionAgentBaseSingleActionAgent.fromLLMAndTools(BaseLanguageModel llm, List<BaseTool> tools, Map<String, Object> kwargs) AgentExecutor.takeNextStep(Map<String, BaseTool> nameToToolMap, Map<String, Object> inputs, List<org.apache.commons.lang3.tuple.Pair<AgentAction, String>> intermediateSteps) Take a single step in the thought-action-observation loop.static voidAgent.validateTools(List<BaseTool> tools) Validate that appropriate tools are passed in. -
Uses of BaseTool in com.hw.langchain.agents.chat.base
Method parameters in com.hw.langchain.agents.chat.base with type arguments of type BaseToolModifier and TypeMethodDescriptionstatic BasePromptTemplateChatAgent.createPrompt(List<BaseTool> tools, String systemMessagePrefix, String systemMessageSuffix, String humanMessage, String formatInstructions, List<String> inputVariables) static AgentChatAgent.fromLLMAndTools(BaseLanguageModel llm, List<BaseTool> tools, AgentOutputParser outputParser, String systemMessagePrefix, String systemMessageSuffix, String humanMessage, String formatInstructions, List<String> inputVariables, Map<String, Object> kwargs) Construct an agent from an LLM and tools.static AgentChatAgent.fromLLMAndTools(BaseLanguageModel llm, List<BaseTool> tools, Map<String, Object> kwargs) Construct an agent from an LLM and tools.static voidChatAgent.validateTools(List<BaseTool> tools) -
Uses of BaseTool in com.hw.langchain.agents.initialize
Method parameters in com.hw.langchain.agents.initialize with type arguments of type BaseToolModifier and TypeMethodDescriptionstatic AgentExecutorInitialize.initializeAgent(List<BaseTool> tools, BaseLanguageModel llm, AgentType agent) static AgentExecutorInitialize.initializeAgent(List<BaseTool> tools, BaseLanguageModel llm, AgentType agent, String agentPath, Map<String, Object> agentKwargs, Map<String, Object> kwargs) Load an agent executor given tools and LLM. -
Uses of BaseTool in com.hw.langchain.agents.load.tools
Methods in com.hw.langchain.agents.load.tools that return BaseToolModifier and TypeMethodDescriptionstatic BaseToolLoadTools.getLLMMath(BaseLanguageModel llm) static BaseToolLoadTools.getSerpapi(Map<String, Object> kwargs) Methods in com.hw.langchain.agents.load.tools that return types with arguments of type BaseTool -
Uses of BaseTool in com.hw.langchain.agents.mrkl.base
Method parameters in com.hw.langchain.agents.mrkl.base with type arguments of type BaseToolModifier and TypeMethodDescriptionstatic PromptTemplateZeroShotAgent.createPrompt(List<BaseTool> tools, String prefix, String suffix, String formatInstructions, List<String> inputVariables) Create prompt in the style of the zero shot agent.static AgentZeroShotAgent.fromLLMAndTools(BaseLanguageModel llm, List<BaseTool> tools, AgentOutputParser outputParser, String prefix, String suffix, String formatInstructions, List<String> inputVariables, Map<String, Object> kwargs) Construct an agent from an LLM and tools.static AgentZeroShotAgent.fromLLMAndTools(BaseLanguageModel llm, List<BaseTool> tools, Map<String, Object> kwargs) Construct an agent from an LLM and tools.static voidZeroShotAgent.validateTools(List<BaseTool> tools) -
Uses of BaseTool in com.hw.langchain.agents.toolkits.base
Methods in com.hw.langchain.agents.toolkits.base that return types with arguments of type BaseTool -
Uses of BaseTool in com.hw.langchain.agents.tools
Subclasses of BaseTool in com.hw.langchain.agents.toolsModifier and TypeClassDescriptionclassTool that is run when invalid tool name is encountered by agent. -
Uses of BaseTool in com.hw.langchain.agents.utils
Method parameters in com.hw.langchain.agents.utils with type arguments of type BaseToolModifier and TypeMethodDescriptionstatic voidUtils.validateToolsSingleInput(String className, List<BaseTool> tools) -
Uses of BaseTool in com.hw.langchain.tools.base
Subclasses of BaseTool in com.hw.langchain.tools.base