ResponseFormat

data class ResponseFormat(val type: String, val jsonSchema: ResponseFormat.SchemaDescriptor? = null)(source)

Specifies the format that the model must output.

See also

Constructors

Link copied to clipboard
constructor(type: String, jsonSchema: ResponseFormat.SchemaDescriptor? = null)

Types

Link copied to clipboard
data class SchemaDescriptor(val name: String, val strict: Boolean? = null, val schema: JsonSchema)

Properties

Link copied to clipboard

The JSON schema that the output should conform to.

Link copied to clipboard

The type of response format (e.g., "text", "json_object", "json_schema").