Class StudioDeleteResourcesTool

java.lang.Object
com.axelor.ai.tool.studio.StudioDeleteResourcesTool
All Implemented Interfaces:
StudioSystemTool<com.axelor.ai.tool.studio.StudioDeleteResourcesTool.Input>, SystemTool<com.axelor.ai.tool.studio.StudioDeleteResourcesTool.Input>

public class StudioDeleteResourcesTool extends Object implements StudioSystemTool<com.axelor.ai.tool.studio.StudioDeleteResourcesTool.Input>
  • Field Details

  • Method Details

    • safety

      public ToolSafety safety()
      Description copied from interface: SystemTool
      Safety classification for approval decisions. Tools default to ToolSafety.WRITE. Override to ToolSafety.READ_ONLY for safe tools that never require approval or ToolSafety.DESTRUCTIVE for tools that should always require approval.
      Specified by:
      safety in interface SystemTool<com.axelor.ai.tool.studio.StudioDeleteResourcesTool.Input>
    • code

      public String code()
      Description copied from interface: SystemTool
      Unique code matching AiTool.systemTool field.
      Specified by:
      code in interface SystemTool<com.axelor.ai.tool.studio.StudioDeleteResourcesTool.Input>
    • undoneByRollback

      public boolean undoneByRollback()
      Description copied from interface: SystemTool
      Whether rolling back the call's transaction undoes all it did. A tool that also changes what lives outside the database, such as a cache or a registry of what is deployed, returns false, and a trial run does not run it.
      Specified by:
      undoneByRollback in interface SystemTool<com.axelor.ai.tool.studio.StudioDeleteResourcesTool.Input>
    • name

      public String name()
      Description copied from interface: SystemTool
      Human-readable display name (e.g. "Search Records").
      Specified by:
      name in interface SystemTool<com.axelor.ai.tool.studio.StudioDeleteResourcesTool.Input>
    • description

      public String description()
      Description copied from interface: SystemTool
      Brief description of what this tool does.
      Specified by:
      description in interface SystemTool<com.axelor.ai.tool.studio.StudioDeleteResourcesTool.Input>
    • inputType

      public Class<com.axelor.ai.tool.studio.StudioDeleteResourcesTool.Input> inputType()
      Description copied from interface: SystemTool
      The input record class. Return Void.class for tools with no input.
      Specified by:
      inputType in interface SystemTool<com.axelor.ai.tool.studio.StudioDeleteResourcesTool.Input>
    • execute

      public ToolResult execute(com.axelor.ai.tool.studio.StudioDeleteResourcesTool.Input input, ToolContext context)
      Description copied from interface: SystemTool
      Execute with the given typed input and agent-scoped context.
      Specified by:
      execute in interface SystemTool<com.axelor.ai.tool.studio.StudioDeleteResourcesTool.Input>