Class TextResponseFormat
java.lang.Object
com.google.genai.gaos.models.interactions.TextResponseFormat
TextResponseFormat
Configuration for text output format.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTextResponseFormat(TextResponseFormatMimeType mimeType, Map<String, Object> schema) -
Method Summary
Modifier and TypeMethodDescriptionstatic TextResponseFormat.Builderbuilder()booleaninthashCode()mimeType()The MIME type of the text output.schema()The JSON schema that the output should conform to.toString()type()withMimeType(TextResponseFormatMimeType mimeType) The MIME type of the text output.withSchema(Map<String, Object> schema) The JSON schema that the output should conform to.
-
Constructor Details
-
TextResponseFormat
public TextResponseFormat(@Nullable TextResponseFormatMimeType mimeType, @Nullable Map<String, Object> schema) -
TextResponseFormat
public TextResponseFormat()
-
-
Method Details
-
mimeType
The MIME type of the text output. -
schema
The JSON schema that the output should conform to. Only applicable when mime_type is application/json. -
type
-
builder
-
withMimeType
The MIME type of the text output. -
withSchema
The JSON schema that the output should conform to. Only applicable when mime_type is application/json. -
equals
-
hashCode
public int hashCode() -
toString
-