AssistantResponseFormat

Represents the format of the response from the assistant.

Constructors

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

Types

Link copied to clipboard
object Companion
Link copied to clipboard
@Serializable
data class JsonSchema(val name: String, val description: String? = null, val schema: JsonObject, val strict: Boolean? = null)

Represents a JSON schema.

Link copied to clipboard

Properties

Link copied to clipboard

The JSON schema associated with the response format, if type is "json_schema" otherwise null.

Link copied to clipboard

The type of the response format.