createAction

abstract fun createAction(method: Method, instance: Any, toolCallbacksOnInstance: List<<Error class: unknown class>>): Action

Create an Action from a method

Parameters

method

the method to create an action from

instance

instance of Agent or AgentCapabilities-annotated class

toolCallbacksOnInstance

tool callbacks to use from instance level