generate

abstract fun generate(json: Json, name: String, serializer: KSerializer<*>, descriptionOverrides: Map<String, String>): LLMParams.Schema.JSON(source)

Generates a JSON schema representation based on the provided input parameters. Should call process to process the schema tree.

Parameters

json

Json instance used for serialization, provides required meta info needed for schema generation that is not available in SerialDescriptor

name

The name of the schema.

serializer

The serializer for the type for which the schema has to be generated.

descriptionOverrides

A map containing overrides for LLMDescription.