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<Tool> toolsOnInstance, Map<String, CostMethodInfo> costMethods)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. abstract List<ActionMethodArgumentResolver>getArgumentResolvers()Strategies for resolving action method parameters into argument values Handles core types such as Ai and OperationContext, but can be extended to support custom parameter types. abstract ActionQosProvidergetActionQosProvider()-
-
Method Detail
-
createAction
abstract Action createAction(Method method, Object instance, List<Tool> toolsOnInstance, Map<String, CostMethodInfo> costMethods)
Create an Action from a method
- Parameters:
method- the method to create an action frominstance- instance of Agent or AgentCapabilities-annotated classtoolsOnInstance- tools to use from instance levelcostMethods- map of cost method name to CostMethodInfo for dynamic cost/value computation
-
invokeActionMethod
abstract <O extends Any> O invokeActionMethod(Method method, Object instance, TransformationActionContext<List<Object>, O> actionContext)
Invoke the action method on the given instance.
-
getArgumentResolvers
abstract List<ActionMethodArgumentResolver> getArgumentResolvers()
Strategies for resolving action method parameters into argument values Handles core types such as Ai and OperationContext, but can be extended to support custom parameter types.
-
getActionQosProvider
abstract ActionQosProvider getActionQosProvider()
-
-
-
-