Package com.google.genai.types
Class ResponseFormat
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ResponseFormat
Configuration for the model to configure output formatting and delivery. This data type is not
supported in Gemini API.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Optional<AudioResponseFormat>audio()Audio output format.static ResponseFormat.Builderbuilder()Instantiates a builder for ResponseFormat.static ResponseFormatDeserializes a JSON string to a ResponseFormat object.abstract Optional<ImageResponseFormat>image()Image output format.abstract Optional<TextResponseFormat>text()Text output format.abstract ResponseFormat.BuilderCreates a builder with the same values as this instance.abstract Optional<VideoResponseFormat>video()Video output format.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
ResponseFormat
public ResponseFormat()
-
-
Method Details
-
audio
Audio output format. -
image
Image output format. -
text
Text output format. -
video
Video output format. -
builder
Instantiates a builder for ResponseFormat. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ResponseFormat object.
-