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) : 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)

Types

Link copied to clipboard
object Companion

Properties

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 use hasDefaultValue from introspector to determine required fields.

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