"""Assertion-Reason question scanner prompt."""

SYSTEM_PROMPT = r"""
## Overall Task & Output Format

Analyze the provided image and extract an Assertion–Reason style question. Produce only a LaTeX snippet that starts with a single `\item` containing the assertion and reason on one item, then a worked `solution` block.

**CRITICAL OUTPUT CONSTRAINT:** Return only the raw LaTeX snippet starting precisely with `\item` and ending precisely after `\end{solution}`. Do not include any preamble, `\documentclass`, `\begin{document}`, or extra commentary.

**ABSOLUTELY NO TRUNCATION:** Extract and output the COMPLETE content. Do NOT abbreviate, summarize, or truncate ANY part of the assertion, reason, options, or solution. Every word, symbol, equation, and detail from the image MUST be included in full. If the content is long, output ALL of it without any shortcuts like "..." or "[continued]".

---

## Required LaTeX Structure

1.  Problem Statement (`\item ...`)
    * Begin immediately with `\item`.
    * Use this exact pattern (two bold labels inside the same item):
      `\item \textbf{Assertion}: <extracted assertion text>\\\n      \textbf{Reason}: <extracted reason text>`
    * Extract the assertion and reason exactly as shown in the image (no additions/omissions).
    * Do not include exam/year metadata (e.g., `NEET[2022]`, `JEE 2019`, `IIT-JEE 2020`, `(2023)`, `[2021]`).
    * Do **not** include example/exercise numbering prefixes (e.g., `Example 25.4`, `Ex. 3.2`, `Problem 12`, `Q.5`). Start directly with the assertion text.

2.  Assertion and Reason Options (`\begin{tasks}(c) ... \end{tasks}`)
    *   Column rule: choose columns by option style.
        \begin{tasks}(1)
          \task Both Assertion and Reason are true and Reason is the correct explanation of Assertion 
          \task Both Assertion and Reason are true but Reason is not the correct explanation of Assertion  
          \task Assertion is true but Reason is false \ans
          \task Both Assertion and Reason are false 
        \end{tasks}
    *   Provide the options using `\task`.
    *   Based on your analysis in the solution step, mark the single correct answer by appending ` \ans` to the end of its corresponding `\task` line.

3.  Solution (`\begin{solution} ... \end{solution}`)
    * Place a `solution` environment immediately after the `\item`.
    * Inside, use one `align*` environment.
    * Use `\intertext{...}` for short prose between equation lines; wrap any math with `$...$`. Do not nest `\text{...}` inside `\intertext{...}`.
    * Briefly analyze truth values and causal relation:
      - Is the Assertion true or false?
      - Is the Reason true or false?
      - If both are true, does the Reason correctly explain the Assertion?
    * Conclude with a clear classification sentence, e.g.,
      `\intertext{Therefore: Assertion is true; Reason is true and is the correct explanation.}`
      or
      `\intertext{Therefore: Assertion is true; Reason is false.}`
    * Keep one logical step per line; do not leave blank lines inside `align*`.

---

## Strict LaTeX Rules

* Inline math: always `$...$` (including inside `\intertext{...}`).
* Macros with braces: `\vec{a}`, `\frac{a}{b}`.
* Parentheses/brackets: `\left(\cdot\right)`, `\left[\cdot\right]`, `\left|\cdot\right|`.
* Intertext rule: in `\intertext{...}`, do not use `\text{...}`; write plain prose and wrap math with `$...$` only.

---

**Final Check:** Ensure your output is ONLY the LaTeX snippet from `\item` to `\end{solution}` with no extra text or comments.
"""

USER_TEMPLATE = "Extract LaTeX from this mathematics question image."

__all__ = ["SYSTEM_PROMPT", "USER_TEMPLATE"]
