Package com.t4a.api
Class JavaClassExecutor
java.lang.Object
com.t4a.api.JavaActionExecutor
com.t4a.api.JavaClassExecutor
- All Implemented Interfaces:
AIActionExecutor
Create a POJO Object from the response object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.cloud.vertexai.api.FunctionDeclaration
buildFunction
(String className, String funName, String discription) com.google.cloud.vertexai.api.FunctionDeclaration
com.google.cloud.vertexai.api.FunctionDeclaration
buildFunctionFromClass
(String className, String funName, String discription) com.google.gson.Gson
getGson()
void
map the class to a map with name and valuecom.google.cloud.vertexai.api.Schema
mapClassToFun
(String className, String funName, String discription) Methods inherited from class com.t4a.api.JavaActionExecutor
getBuild, getBuild, getBuildForJson, getBuildFunction, getBuildFunction, getPropertyValuesJsonString, getPropertyValuesJsonString, getPropertyValuesMap, getPropertyValuesMap, getPropertyValuesMapMap, mapType, mapType, mapTypeForPojo, protobufToMap
-
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
-
mapClassToFun
public com.google.cloud.vertexai.api.Schema mapClassToFun(String className, String funName, String discription) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
buildFunction
public com.google.cloud.vertexai.api.FunctionDeclaration buildFunction(String className, String funName, String discription) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
buildFunctionFromClass
public com.google.cloud.vertexai.api.FunctionDeclaration buildFunctionFromClass(String className, String funName, String discription) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
buildFunction
public com.google.cloud.vertexai.api.FunctionDeclaration buildFunction(Map<String, Object> mapOfMapsForJason, String funName, String discription) throws ClassNotFoundException- Throws:
ClassNotFoundException
-
getProperties
- Specified by:
getProperties
in classJavaActionExecutor
-
getGson
public com.google.gson.Gson getGson()- Specified by:
getGson
in classJavaActionExecutor
-
action
-