Package com.axelor.ai.tool.data
Class SaveQueryTool
java.lang.Object
com.axelor.ai.tool.data.SaveQueryTool
- All Implemented Interfaces:
SystemTool<SaveQueryTool.Input>
Saves a query directly as a reusable MetaQuery record. Use this for ad-hoc analytics queries —
not for studio app development (use studio_save_query for that).
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode()Unique code matching AiTool.systemTool field.Brief description of what this tool does.execute(SaveQueryTool.Input input, ToolContext context) Execute with the given typed input and agent-scoped context.The input record class.name()Human-readable display name (e.g.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.system.SystemTool
beforeApproval, callTitle, provideContext, refusal, runsOutsideTransaction, safety, undoneByRollback
-
Field Details
-
CODE
- See Also:
-
-
Constructor Details
-
SaveQueryTool
public SaveQueryTool()
-
-
Method Details
-
code
Description copied from interface:SystemToolUnique code matching AiTool.systemTool field.- Specified by:
codein interfaceSystemTool<SaveQueryTool.Input>
-
name
Description copied from interface:SystemToolHuman-readable display name (e.g. "Search Records").- Specified by:
namein interfaceSystemTool<SaveQueryTool.Input>
-
description
Description copied from interface:SystemToolBrief description of what this tool does.- Specified by:
descriptionin interfaceSystemTool<SaveQueryTool.Input>
-
inputType
Description copied from interface:SystemToolThe input record class. ReturnVoid.classfor tools with no input.- Specified by:
inputTypein interfaceSystemTool<SaveQueryTool.Input>
-
execute
Description copied from interface:SystemToolExecute with the given typed input and agent-scoped context.- Specified by:
executein interfaceSystemTool<SaveQueryTool.Input>
-