JSON

@Serializable
sealed interface JSON : LLMParams.Schema(source)

Represents a sealed interface JSON that defines a schema entity. It extends the Schema interface and has a property for schema representation.

Inheritors

Types

Link copied to clipboard
@Serializable
data class Full(val name: String, val schema: JsonObject) : LLMParams.Schema.JSON

Represents a complete JSON schema structure.

Link copied to clipboard
@Serializable
data class Simple(val name: String, val schema: JsonObject) : LLMParams.Schema.JSON

Represents a simplified JSON structure with a schema definition.

Properties

Link copied to clipboard
abstract val name: String

Represents a person's name as a string. This variable is intended to store the full name or a specific format of a name.

Link copied to clipboard
abstract val schema: JsonObject

Represents the JSON schema definition as a JsonObject.