TextResponseFormat

@Serializable
data class TextResponseFormat(val mimeType: String? = null, val schema: JsonElement? = null)

Configuration for text-specific output formatting.

Constructors

Link copied to clipboard
constructor(mimeType: String? = null, schema: JsonElement? = null)

Properties

Link copied to clipboard
val mimeType: String? = null

Optional. The IANA standard MIME type of the response.

Link copied to clipboard
val schema: JsonElement? = null

Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.