Class InvalidTool

java.lang.Object
com.hw.langchain.tools.base.BaseTool
com.hw.langchain.agents.tools.InvalidTool

public class InvalidTool extends BaseTool
Tool that is run when invalid tool name is encountered by agent.
Author:
HamaWhite
  • Constructor Details

    • InvalidTool

      public InvalidTool()
  • Method Details

    • innerRun

      public String innerRun(String toolName, Map<String,Object> kwargs)
      Description copied from class: BaseTool
      Use the tool.
      Specified by:
      innerRun in class BaseTool
      Parameters:
      toolName - Tool arguments as a String.
      kwargs - Keyword arguments as a Map<String, Object>.
      Returns:
      Result of using the tool as an Object.