Package com.axelor.ai.tool.studio
Class StudioCheckAppTool
java.lang.Object
com.axelor.ai.tool.studio.StudioCheckAppTool
- All Implemented Interfaces:
StudioSystemTool<com.axelor.ai.tool.studio.StudioCheckAppTool.Input>,SystemTool<com.axelor.ai.tool.studio.StudioCheckAppTool.Input>
public class StudioCheckAppTool
extends Object
implements StudioSystemTool<com.axelor.ai.tool.studio.StudioCheckAppTool.Input>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncode()Unique code matching AiTool.systemTool field.Brief description of what this tool does.execute(com.axelor.ai.tool.studio.StudioCheckAppTool.Input input, ToolContext context) Execute with the given typed input and agent-scoped context.Class<com.axelor.ai.tool.studio.StudioCheckAppTool.Input> The input record class.name()Human-readable display name (e.g.Provides context text to inject into the system prompt at request time, avoiding the need for the LLM to call this tool just to learn the current state.safety()Safety classification for approval decisions.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.studio.StudioSystemTool
refusalMethods inherited from interface com.axelor.ai.tool.system.SystemTool
beforeApproval, callTitle, runsOutsideTransaction, undoneByRollback
-
Field Details
-
CODE
- See Also:
-
-
Method Details
-
safety
Description copied from interface:SystemToolSafety classification for approval decisions. Tools default toToolSafety.WRITE. Override toToolSafety.READ_ONLYfor safe tools that never require approval orToolSafety.DESTRUCTIVEfor tools that should always require approval.- Specified by:
safetyin interfaceSystemTool<com.axelor.ai.tool.studio.StudioCheckAppTool.Input>
-
code
Description copied from interface:SystemToolUnique code matching AiTool.systemTool field.- Specified by:
codein interfaceSystemTool<com.axelor.ai.tool.studio.StudioCheckAppTool.Input>
-
name
Description copied from interface:SystemToolHuman-readable display name (e.g. "Search Records").- Specified by:
namein interfaceSystemTool<com.axelor.ai.tool.studio.StudioCheckAppTool.Input>
-
description
Description copied from interface:SystemToolBrief description of what this tool does.- Specified by:
descriptionin interfaceSystemTool<com.axelor.ai.tool.studio.StudioCheckAppTool.Input>
-
inputType
Description copied from interface:SystemToolThe input record class. ReturnVoid.classfor tools with no input.- Specified by:
inputTypein interfaceSystemTool<com.axelor.ai.tool.studio.StudioCheckAppTool.Input>
-
provideContext
Description copied from interface:SystemToolProvides context text to inject into the system prompt at request time, avoiding the need for the LLM to call this tool just to learn the current state.Called automatically for each tool assigned to the agent before the LLM runs. Return
null(the default) if this tool has no context to provide.- Specified by:
provideContextin interfaceSystemTool<com.axelor.ai.tool.studio.StudioCheckAppTool.Input>- Returns:
- context text to append to the system prompt, or null
-
execute
public ToolResult execute(com.axelor.ai.tool.studio.StudioCheckAppTool.Input input, ToolContext context) Description copied from interface:SystemToolExecute with the given typed input and agent-scoped context.- Specified by:
executein interfaceSystemTool<com.axelor.ai.tool.studio.StudioCheckAppTool.Input>
-