Package com.t4a.api
Class JavaMethodExecutor
java.lang.Object
com.t4a.api.JavaActionExecutor
com.t4a.api.JavaMethodExecutor
- All Implemented Interfaces:
AIActionExecutor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.cloud.vertexai.api.FunctionDeclaration
buildFunciton
(AIAction action) com.google.cloud.vertexai.api.FunctionDeclaration
com.google.gson.Gson
getGson()
Methods inherited from class com.t4a.api.JavaActionExecutor
getBuild, getBuild, getBuildFunction, getPropertyValuesJsonString, getPropertyValuesJsonString, getPropertyValuesMap, mapType, mapType
-
Constructor Details
-
JavaMethodExecutor
public JavaMethodExecutor() -
JavaMethodExecutor
public JavaMethodExecutor(com.google.gson.Gson gson)
-
-
Method Details
-
getProperties
- Specified by:
getProperties
in classJavaActionExecutor
-
getGeneratedFunction
public com.google.cloud.vertexai.api.FunctionDeclaration getGeneratedFunction() -
getGson
public com.google.gson.Gson getGson()- Specified by:
getGson
in classJavaActionExecutor
-
buildFunciton
-
getAction
-
action
public Object action(com.google.cloud.vertexai.api.GenerateContentResponse response, AIAction instance) throws InvocationTargetException, IllegalAccessException
-