Class 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.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.
-
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.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.
-
equals
-
hashCode
public int hashCode() -
toString
-