Class DefaultToolExecutor

java.lang.Object
dev.langchain4j.service.tool.DefaultToolExecutor
All Implemented Interfaces:
ToolExecutor

public class DefaultToolExecutor extends Object implements ToolExecutor
  • Constructor Details

  • Method Details

    • execute

      public String execute(ToolExecutionRequest toolExecutionRequest, Object memoryId)
      Description copied from interface: ToolExecutor
      Executes a tool requests.
      Specified by:
      execute in interface ToolExecutor
      Parameters:
      toolExecutionRequest - The tool execution request. Contains tool name and arguments.
      memoryId - The ID of the chat memory. See MemoryId for more details.
      Returns:
      The result of the tool execution.