from dataclasses import dataclass, field from typing import Set, Optional @dataclass class FastParseConfig: max_file_size_bytes: int = 100 * 1024 * 1024 max_pdf_pages: int = 500 max_excel_rows: int = 100_000 max_excel_sheets: int = 50 max_text_chars: int = 10_000_000 chunk_size: int = 65536 enable_script_detection: bool = True enable_image_analysis: bool = True image_analysis_timeout: float = 30.0 dangerous_patterns: Set[str] = field(default_factory=lambda: { "