Class Tools

java.lang.Object
com.inductiveautomation.ignition.common.ai.Tools

public final class Tools extends Object
Helpers for building CallableTools.
  • Method Details

    • fromAnnotated

      public static List<CallableTool> fromAnnotated(Object... owners)
      Returns one CallableTool per Tool-annotated method declared on the given object. Parameter metadata comes from ToolParam annotations and the methods' reflected parameter types. Inherited methods are not included.
      Parameters:
      owners - the objects whose Tool-annotated methods are exposed as tools.
      Returns:
      a CallableTool for each annotated method, in the order returned by reflection.
      Throws:
      IllegalArgumentException - if any parameter has an unsupported type.