spacr.qt.ai.prompts
===================

.. py:module:: spacr.qt.ai.prompts

.. autoapi-nested-parse::

   System prompts used by the AI console.

   Two shapes:
   * `default_system_prompt()` — spacr-aware assistant persona, used for
     the freeform chat panel.
   * `error_explainer_prompt()` — prefix that turns a traceback into a
     concrete, numbered fix list capped at six steps.





Module Contents
---------------

.. py:function:: default_system_prompt() -> str

   Return the spaCR-aware assistant persona used for freeform chat.


.. py:function:: error_explainer_prompt() -> str

   Return the system prompt that turns a traceback into a numbered fix list.


.. py:function:: wrap_error_for_prompt(traceback_text: str, active_app: str = '') -> str

   Turn a raw traceback into the user message body sent to the model.


