Package com.axelor.ai.tool
Class NoOpToolExecutor
java.lang.Object
com.axelor.ai.tool.NoOpToolExecutor
- All Implemented Interfaces:
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.axelor.ai.tool.ToolExecutor
ToolExecutor.Call, ToolExecutor.ToolExecutionMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInvokes the named tool with the given input.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.axelor.ai.tool.ToolExecutor
execute, executionMode, resolveToolTitle
-
Constructor Details
-
NoOpToolExecutor
public NoOpToolExecutor()
-
-
Method Details
-
execute
Description copied from interface:ToolExecutorInvokes the named tool with the given input.- Specified by:
executein interfaceToolExecutor- Parameters:
toolName- the tool to invoke (matches the name from the LLM's tool call)input- the parsed tool input (typically aMap)approvalGranted-trueif the user has already approved execution of this tool (bypasses the approval check);falsefor normal execution that may returnToolResult.PendingApproval- Returns:
- success with output, or error with message — never
null
-