Class Tools
java.lang.Object
com.inductiveautomation.ignition.common.ai.Tools
Helpers for building
CallableTools.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic List<CallableTool> fromAnnotated(Object... owners) Returns oneCallableToolperTool-annotated method declared on the given object.
-
Method Details
-
fromAnnotated
Returns oneCallableToolperTool-annotated method declared on the given object. Parameter metadata comes fromToolParamannotations and the methods' reflected parameter types. Inherited methods are not included.- Parameters:
owners- the objects whoseTool-annotated methods are exposed as tools.- Returns:
- a
CallableToolfor each annotated method, in the order returned by reflection. - Throws:
IllegalArgumentException- if any parameter has an unsupported type.
-