| Modifier and Type | Method and Description |
|---|---|
static Part |
fromFunctionResponse(String name,
Map<String,Object> response)
Makes a
Part from the result output of FunctionCall. |
static Part |
fromFunctionResponse(String name,
com.google.protobuf.Struct response)
Makes a
Part from the output of FunctionCall. |
static Part |
fromMimeTypeAndData(String mimeType,
Object partData)
Makes a
Part from mimeType and data (or link to the
data). |
public static Part fromMimeTypeAndData(String mimeType, Object partData)
Part from mimeType and data (or link to the
data).mimeType - 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 - the following types can be accepted.
public static Part fromFunctionResponse(String name, com.google.protobuf.Struct response)
Part from the output of FunctionCall.name - a string represents the name of the FunctionDeclarationresponse - a structured JSON object containing any output from the function callpublic static Part fromFunctionResponse(String name, Map<String,Object> response)
Part from the result output of FunctionCall.name - a string represents the name of the FunctionDeclarationresponse - a map containing the output from the function call, supported output type:
String, Double, Boolean, nullCopyright © 2025 Google LLC. All rights reserved.