Class NoOpToolExecutor

java.lang.Object
com.axelor.ai.tool.NoOpToolExecutor
All Implemented Interfaces:
ToolExecutor

public class NoOpToolExecutor extends Object implements ToolExecutor
Default no-op tool executor that rejects all tool calls. A ChatPlugin can decorate this with a real executor that dispatches to configured tools.
  • Constructor Details

    • NoOpToolExecutor

      public NoOpToolExecutor()
  • Method Details

    • execute

      public ToolResult execute(String toolName, Object input, boolean approvalGranted)
      Description copied from interface: ToolExecutor
      Invokes the named tool with the given input.
      Specified by:
      execute in interface ToolExecutor
      Parameters:
      toolName - the tool to invoke (matches the name from the LLM's tool call)
      input - the parsed tool input (typically a Map)
      approvalGranted - true if the user has already approved execution of this tool (bypasses the approval check); false for normal execution that may return ToolResult.PendingApproval
      Returns:
      success with output, or error with message — never null