Class StudioListResourcesTool

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

public class StudioListResourcesTool extends Object implements StudioSystemTool<com.axelor.ai.tool.studio.StudioListResourcesTool.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.StudioListResourcesTool.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.StudioListResourcesTool.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.StudioListResourcesTool.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.StudioListResourcesTool.Input>
    • inputType

      public Class<com.axelor.ai.tool.studio.StudioListResourcesTool.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.StudioListResourcesTool.Input>
    • provideContext

      public String provideContext()
      Description copied from interface: SystemTool
      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.

      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:
      provideContext in interface SystemTool<com.axelor.ai.tool.studio.StudioListResourcesTool.Input>
      Returns:
      context text to append to the system prompt, or null
    • execute

      public ToolResult execute(com.axelor.ai.tool.studio.StudioListResourcesTool.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.StudioListResourcesTool.Input>