StandardJsonSchemaGenerator
Full implementation of GenericJsonSchemaGenerator to generate advanced generic LLMParams.Schema.JSON.Standard. Generates LLM-agnostic schema not tied to any specific provider format. For LLMs requiring custom formats when using native structured output, consider provider-specific generators instead.
It is recommended to use StandardJsonSchemaGenerator.Default companion object, which provides a default instance, instead of creating new instances manually.
Inheritors
Types
Link copied to clipboard
Default instance of StandardJsonSchemaGenerator. Prefer to use it instead of creating new instates manually.
Functions
Link copied to clipboard
open override fun generate(json: Json, name: String, serializer: KSerializer<*>, descriptionOverrides: Map<String, String>): LLMParams.Schema.JSON.Standard
Generates generic LLMParams.Schema.JSON.Standard