FunctionCallingSchemaConfig

class FunctionCallingSchemaConfig(respectDefaultPresence: Boolean = JsonSchemaConfig.Default.respectDefaultPresence, requireNullableFields: Boolean = JsonSchemaConfig.Default.requireNullableFields, useUnionTypes: Boolean = JsonSchemaConfig.Default.useUnionTypes, useNullableField: Boolean = JsonSchemaConfig.Default.useNullableField, includePolymorphicDiscriminator: Boolean = JsonSchemaConfig.Default.includePolymorphicDiscriminator, val strictMode: Boolean = true, allowAdditionalProperties: Boolean = false) : JsonSchemaConfig(source)

Configuration for function calling schema transformers.

Extends JsonSchemaConfig with defaults optimized for LLM function calling. By default, uses strict mode settings to comply with OpenAI function calling requirements.

See also

Constructors

Link copied to clipboard
constructor(respectDefaultPresence: Boolean = JsonSchemaConfig.Default.respectDefaultPresence, requireNullableFields: Boolean = JsonSchemaConfig.Default.requireNullableFields, useUnionTypes: Boolean = JsonSchemaConfig.Default.useUnionTypes, useNullableField: Boolean = JsonSchemaConfig.Default.useNullableField, includePolymorphicDiscriminator: Boolean = JsonSchemaConfig.Default.includePolymorphicDiscriminator, strictMode: Boolean = true, allowAdditionalProperties: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether object schemas allow properties that are not declared.

Link copied to clipboard

Whether to include discriminator in polymorphic schemas.

Link copied to clipboard

Whether to include a type discriminator field in polymorphic schemas.

Link copied to clipboard

Whether nullable fields must be present in JSON.

Link copied to clipboard

Whether to derive required fields from each property's optionality and default value.

Link copied to clipboard

Whether $defs keys, $ref targets, the root $id and discriminator const values use the shortest unique dotted suffix of the type's qualified name (com.acme.Payload becomes Payload).

Link copied to clipboard

Whether to set the strict: true flag in function calling schema output.

Link copied to clipboard

Whether to emit the nullable field for nullable types.

Link copied to clipboard

Whether to use union types for nullable fields.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String