Interface ActionMethodManager
-
- All Implemented Interfaces:
public interface ActionMethodManagerCreates and invokes actions from annotated methods.
-
-
Method Summary
Modifier and Type Method Description abstract ActioncreateAction(Method method, Object instance, List<ToolCallback> toolCallbacksOnInstance)Create an Action from a method abstract <O extends Any> OinvokeActionMethod(Method method, Object instance, TransformationActionContext<List<Object>, O> actionContext)Invoke the action method on the given instance. -
-
Method Detail
-
createAction
abstract Action createAction(Method method, Object instance, List<ToolCallback> toolCallbacksOnInstance)
Create an Action from a method
- Parameters:
method- the method to create an action frominstance- instance of Agent or AgentCapabilities-annotated classtoolCallbacksOnInstance- tool callbacks to use from instance level
-
invokeActionMethod
abstract <O extends Any> O invokeActionMethod(Method method, Object instance, TransformationActionContext<List<Object>, O> actionContext)
Invoke the action method on the given instance.
-
-
-
-