Simple

@Serializable
data class Simple(val name: String, val schema: JsonObject) : LLMParams.Schema.JSON(source)

Represents a simplified JSON structure with a schema definition.

This data class implements the JSON interface and provides a basic representation of a JSON structure using a name and its corresponding schema in the form of a JsonObject.

Use this class when a lightweight, minimal representation of a JSON schema is sufficient.

Constructors

Link copied to clipboard
constructor(name: String, schema: JsonObject)

Properties

Link copied to clipboard
open override val name: String

The identifier or name of the JSON structure.

Link copied to clipboard
open override val schema: JsonObject

The JSON schema associated with the structure.