Package com.google.genai.types
Class FunctionResponseBlob
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.FunctionResponseBlob
Raw media bytes for function response.
Text should not be sent as raw bytes, use the FunctionResponse.response field.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for FunctionResponseBlob. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionResponseBlob.Builder
builder()
Instantiates a builder for FunctionResponseBlob.abstract Optional<byte[]>
data()
Required.static FunctionResponseBlob
Deserializes a JSON string to a FunctionResponseBlob object.mimeType()
Required.abstract FunctionResponseBlob.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
FunctionResponseBlob
public FunctionResponseBlob()
-
-
Method Details
-
mimeType
Required. The IANA standard MIME type of the source data. -
data
Required. Inline media bytes. -
builder
Instantiates a builder for FunctionResponseBlob. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a FunctionResponseBlob object.
-