JSON

Represents a schema in JSON format.

Inheritors

Types

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

Represents a basic JSON schema. Used to specify lightweight or fundamental JSON processing capabilities. This format primarily focuses on nested data definitions without advanced JSON Schema functionalities.

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

Represents a standard JSON schema, according to https://json-schema.org/. This format is a proper subset of the official JSON Schema specification.

Properties

Link copied to clipboard

Related LLM capability that has to be supported for a particular schema type.

Link copied to clipboard
abstract val name: String

Name identifier of the schema.

Link copied to clipboard
abstract val schema: JsonObject

JSON schema definition as JsonObject.