Package com.t4a.api
Class JavaClassExecutor
java.lang.Object
com.t4a.api.JavaActionExecutor
com.t4a.api.JavaClassExecutor
- All Implemented Interfaces:
AIActionExecutor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.cloud.vertexai.api.FunctionDeclarationbuildFunction(String className, String funName, String discription) com.google.gson.GsongetGson()voidmap the class to a map with name and valueMethods inherited from class com.t4a.api.JavaActionExecutor
getBuild, getBuild, getBuildFunction, getPropertyValuesJsonString, getPropertyValuesJsonString, getPropertyValuesMap, mapType, mapType
-
Constructor Details
-
JavaClassExecutor
public JavaClassExecutor() -
JavaClassExecutor
public JavaClassExecutor(com.google.gson.Gson gson)
-
-
Method Details
-
mapClass
map the class to a map with name and value- Parameters:
className-- Throws:
ClassNotFoundException
-
buildFunction
public com.google.cloud.vertexai.api.FunctionDeclaration buildFunction(String className, String funName, String discription) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
getProperties
- Specified by:
getPropertiesin classJavaActionExecutor
-
getGson
public com.google.gson.Gson getGson()- Specified by:
getGsonin classJavaActionExecutor
-
action
-