Package-level declarations
Types
Link copied to clipboard
class JsonSchemaGenerator(json: Json, schemaFormat: JsonSchemaGenerator.SchemaFormat, maxDepth: Int)
JSON schema generator from Kotlin serializable classes, to be used with LLM structured output functionality.
Link copied to clipboard
class JsonStructuredData<TStruct>(id: String, serializer: KSerializer<TStruct>, structureLanguage: JsonStructureLanguage, examples: List<TStruct>, jsonSchema: LLMParams.Schema.JSON) : StructuredData<TStruct>
Represents a structure for handling and interacting with structured data of a specified type.
Link copied to clipboard
Provides utilities for handling JSON structures using Kotlin Serialization. This class facilitates JSON serialization and deserialization with options for custom configurations and pretty-printing.