// Generated by alef. Do not edit by hand.
@file:Suppress(
    "ktlint:standard:trailing-comma-on-call-site",
    "ktlint:standard:trailing-comma-on-declaration-site",
    "ktlint:standard:spacing-between-declarations-with-comments",
    "ktlint:standard:spacing-between-declarations-with-annotations",
    "ktlint:standard:when-entry-bracing",
    "ktlint:standard:blank-line-between-when-conditions",
    "ktlint:standard:blank-line-before-declaration",
    "ktlint:standard:chain-method-continuation",
    "ktlint:standard:annotation",
    "ktlint:standard:max-line-length",
    "ktlint:standard:no-semi",
    "ktlint:standard:statement-wrapping",
    "MaxLineLength",
    "TooManyFunctions",
    "FunctionParameterNaming",
    "LongParameterList",
    "CyclomaticComplexMethod",
    "LongMethod",
)

package dev.kreuzberg

/**
 * Configuration for LLM-based structured data extraction.
 *
 * Sends extracted document content to a VLM with a JSON schema,
 * returning structured data that conforms to the schema.
 */
data class StructuredExtractionConfig(
    /** JSON Schema defining the desired output structure. */
    val schema: Any,
    /** Schema name passed to the LLM's structured output mode. */
    val schemaName: String,
    /** Optional schema description for the LLM. */
    val schemaDescription: String? = null,
    /** Enable strict mode — output must exactly match the schema. */
    val strict: Boolean,
    /**
     * Custom Jinja2 extraction prompt template. When `null`, a default template is used.
     *
     * Available template variables:
     *
     * - `{{ content }}` — The extracted document text.
     * - `{{ schema }}` — The JSON schema as a formatted string.
     * - `{{ schema_name }}` — The schema name.
     * - `{{ schema_description }}` — The schema description (may be empty).
     */
    val prompt: String? = null,
    /** LLM configuration for the extraction. */
    val llm: LlmConfig,
)
