Standard

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

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

Note: the flavor across different LLM providers might vary, since not all of them support full JSON schemas.

See also

Constructors

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

Properties

Link copied to clipboard
open override val capability: LLMCapability.Schema

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

Link copied to clipboard
open override val name: String

Name identifier for the JSON schema structure.

Link copied to clipboard
open override val schema: JsonObject

JSON schema definition as JsonObject.