Package com.google.genai.types
Class FunctionResponsePart
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.FunctionResponsePart
A datatype containing media that is part of a `FunctionResponse` message.
A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`.
A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for FunctionResponsePart. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionResponsePart.Builder
builder()
Instantiates a builder for FunctionResponsePart.abstract Optional<FunctionResponseFileData>
fileData()
Optional.static FunctionResponsePart
Deserializes a JSON string to a FunctionResponsePart object.abstract Optional<FunctionResponseBlob>
Optional.abstract FunctionResponsePart.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
FunctionResponsePart
public FunctionResponsePart()
-
-
Method Details
-
inlineData
Optional. Inline media bytes. -
fileData
Optional. URI based data. -
builder
Instantiates a builder for FunctionResponsePart. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a FunctionResponsePart object.
-