Class TextResponseFormat.Builder
java.lang.Object
com.google.genai.gaos.models.interactions.TextResponseFormat.Builder
- Enclosing class:
- TextResponseFormat
-
Method Summary
Modifier and TypeMethodDescriptionbuild()mimeType(TextResponseFormatMimeType mimeType) The MIME type of the text output.The JSON schema that the output should conform to.
-
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.Supports a subset of JSON Schema. `minLength`, `maxLength`, `minProperties`, `maxProperties`, `uniqueItems`, `contains`, `minContains`, and `maxContains` are ignored and not enforced; validate these in your application. `minItems` and `maxItems` are enforced. Schemas that are too complex to enforce (for example, large `maxItems` on nested arrays) return a 400 INVALID_ARGUMENT error.
-
build
-