Class ToolHelper

java.lang.Object
ai.wanaku.cli.main.support.ToolHelper

public class ToolHelper extends Object
  • Method Details

    • importToolset

      public static void importToolset(List<ToolReference> toolReferences, String host) throws IOException
      Imports a list of tool references to the specified host.

      Creates a Quarkus REST client for the ToolsService at the given host and adds each tool reference from the provided list to the service.

      Parameters:
      toolReferences - a list of tool references to import
      host - the base URI of the host where the ToolsService is deployed
      Throws:
      IllegalArgumentException - if the host URI is invalid
      RuntimeException - if there's an error connecting to or communicating with the service
      IOException
    • importToolset

      public static void importToolset(ToolReference toolReference, String host) throws IOException
      Imports a single tool reference to the specified host.

      Convenience method that wraps the single tool reference in a list and delegates to importToolset(List, String).

      Parameters:
      toolReference - the tool reference to import
      host - the base URI of the host where the ToolsService is deployed
      Throws:
      IllegalArgumentException - if the host URI is invalid
      RuntimeException - if there's an error connecting to or communicating with the service
      IOException
      See Also: