public class PartMaker
Deprecated. This class and its package are deprecated. See the migration guide for more details.
Helper class to create com.google.cloud.vertexai.api.Part
Static Methods
fromFunctionResponse(String name, Struct response) (deprecated)
public static Part fromFunctionResponse(String name, Struct response)
Makes a com.google.cloud.vertexai.api.Part from the output of com.google.cloud.vertexai.api.FunctionCall.
Parameters | |
---|---|
Name | Description |
name |
String a string represents the name of the com.google.cloud.vertexai.api.FunctionDeclaration |
response |
Struct a structured JSON object containing any output from the function call |
Returns | |
---|---|
Type | Description |
Part |
fromFunctionResponse(String name, Map<String,Object> response) (deprecated)
public static Part fromFunctionResponse(String name, Map<String,Object> response)
Makes a com.google.cloud.vertexai.api.Part from the result output of com.google.cloud.vertexai.api.FunctionCall.
Parameters | |
---|---|
Name | Description |
name |
String a string represents the name of the com.google.cloud.vertexai.api.FunctionDeclaration |
response |
Map<String,Object> a map containing the output from the function call, supported output type: String, Double, Boolean, null |
Returns | |
---|---|
Type | Description |
Part |
fromMimeTypeAndData(String mimeType, Object partData) (deprecated)
public static Part fromMimeTypeAndData(String mimeType, Object partData)
Makes a com.google.cloud.vertexai.api.Part from mimeType and data (or link to the data).
Parameters | |
---|---|
Name | Description |
mimeType |
String currently accepted values are "image/png", "image/jpeg", "video/mp4", "video/mpeg", "video/quicktime", "video/x-msvideo", "video/x-ms-wmv", "video/x-flv" |
partData |
Object the following types can be accepted.
|
Returns | |
---|---|
Type | Description |
Part |