<?php

return [
    'timeout' => (int) env('QUESTION_BANK_TIMEOUT', 10),

    'cache_ttl' => (int) env('QUESTION_BANK_CACHE_SECONDS', 300),

    'retry' => (int) env('QUESTION_BANK_RETRY', 2),

    'retry_delay' => (int) env('QUESTION_BANK_RETRY_DELAY', 200),

    'mode' => env('QUESTION_BANK_MODE', 'local'),

    /** 知识点题量统计：教材章节顺序用哪一册（textbooks.semester，默认 2=下学期） */
    'kp_stats_semester' => (int) env('KP_STATS_SEMESTER', 2),

    /**
     * 智能组卷默认题量（单一配置源：业务代码请用 config('question_bank.default_total_questions')，勿硬编码题数）
     */
    'default_total_questions' => (int) env('DEFAULT_TOTAL_QUESTIONS', 10),
];
