Package com.google.genai.types
Class TextResponseFormat
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.TextResponseFormat
Configuration for text-specific output formatting.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for TextResponseFormat. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TextResponseFormat.Builderbuilder()Instantiates a builder for TextResponseFormat.static TextResponseFormatDeserializes a JSON string to a TextResponseFormat object.mimeType()Optional.schema()Optional.abstract TextResponseFormat.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
TextResponseFormat
public TextResponseFormat()
-
-
Method Details
-
mimeType
Optional. The IANA standard MIME type of the response. -
schema
Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON. -
builder
Instantiates a builder for TextResponseFormat. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a TextResponseFormat object.
-