Schema

@Serializable
sealed class Schema : LLMCapability(source)

Represents a structured schema capability for a language model. The schema defines certain characteristics or functionalities related to data interaction and encoding using specific formats.

This class is designed to encapsulate different schema configurations that the language model can support, such as JSON processing.

Inheritors

Types

Link copied to clipboard
@Serializable
sealed class JSON : LLMCapability.Schema

Represents a sealed class defining JSON schema support as a part of an AI model's capability. Each subtype of this class specifies a distinct level of JSON support.

Properties

Link copied to clipboard
val id: String

The unique identifier for this capability.

Link copied to clipboard

The language format associated with the schema.