BasicJsonSchemaGenerator
Simple implementation of GenericJsonSchemaGenerator that produces LLMParams.Schema.JSON.Basic. 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 BasicJsonSchemaGenerator.Default companion object, which provides a default instance, instead of creating new instances manually.
Inheritors
Types
Link copied to clipboard
Default instance of BasicJsonSchemaGenerator. 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.Basic
Generates generic LLMParams.Schema.JSON.Basic