// 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

/**
 * Layout detection configuration.
 *
 * Controls layout detection behavior in the extraction pipeline.
 * When set on `ExtractionConfig`, layout detection
 * is enabled for PDF extraction.
 */
data class LayoutDetectionConfig(
    /** Confidence threshold override (None = use model default). */
    val confidenceThreshold: Float? = null,
    /** Whether to apply postprocessing heuristics (default: true). */
    val applyHeuristics: Boolean = true,
    /**
     * Table structure recognition model.
     *
     * Controls which model is used for table cell detection within layout-detected
     * table regions. Defaults to `TableModel.Tatr`.
     */
    val tableModel: TableModel = TableModel.TATR,
    /**
     * Hardware acceleration for ONNX models (layout detection + table structure).
     *
     * When set, controls which execution provider (CPU, CUDA, CoreML, TensorRT)
     * is used for inference. Defaults to `null` (auto-select per platform).
     */
    val acceleration: AccelerationConfig? = null,
)
