GenericJsonSchemaGenerator
Generic extensions of JsonSchemaGenerator that provides some common base implementations of visit methods. This class can be used as a base to implement custom generators that share generic schema generation logic.
Note: it does not handle nullability because these might be different in different schema specs. Implementations must handle these themselves.
Inheritors
Functions
Link copied to clipboard
abstract fun generate(json: Json, name: String, serializer: KSerializer<*>, descriptionOverrides: Map<String, String>): LLMParams.Schema.JSON
Generates a JSON schema representation based on the provided input parameters. Should call process to process the schema tree.