Package-level declarations
Types
Link copied to clipboard
data class JsonSchemaConfig(val treatNullableOptionalAsRequired: Boolean = false, val json: Json = Json)
Link copied to clipboard
A utility class for generating JSON schema representations of Kotlin objects.
Link copied to clipboard
class ReflectionClassJsonSchemaGenerator @JvmOverloads constructor(jsonSchemaConfig: JsonSchemaConfig = JsonSchemaConfig.Default) : AbstractSchemaGenerator<KClass<out Any>, JsonSchema>
A generator for producing JSON Schema representations of Kotlin classes using reflection.
Link copied to clipboard
class ReflectionFunctionCallingSchemaGenerator @JvmOverloads constructor(json: Json = Json) : AbstractSchemaGenerator<KCallable<*>, FunctionCallingSchema>
Generates FunctionCallingSchema from Kotlin functions using reflection.
Link copied to clipboard
Strategy for determining which parameters should be marked as required in the function schema.
Link copied to clipboard
class TypeGraphToFunctionCallingSchemaTransformer @JvmOverloads constructor(json: Json = Json { encodeDefaults = false }, requiredFieldStrategy: RequiredFieldStrategy = RequiredFieldStrategy.ALL_REQUIRED) : TypeGraphTransformer<FunctionCallingSchema>
Transforms a TypeGraph into a FunctionCallingSchema for tool/function schema representation.
Link copied to clipboard
Emits JSON Schema from Schema IR following the Standard rules used previously.
Link copied to clipboard
class TypeGraphToJsonSchemaTransformer @JvmOverloads constructor(val config: JsonSchemaConfig = JsonSchemaConfig.Default, json: Json = Json { encodeDefaults = false }) : TypeGraphTransformer<JsonSchema>
Transforms TypeGraph IR into JSON Schema Draft 2020-12 format.