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

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

.. autoapi-nested-parse::

   AI Console for the spacr Qt GUI.

   Three providers (Anthropic Claude, OpenAI, Google Gemini) behind a
   common streaming `ChatProvider` interface. API keys are pulled from
   env vars first (`ANTHROPIC_API_KEY` / `OPENAI_API_KEY` /
   `GOOGLE_API_KEY`), then from the OS keyring under service name
   `spacr-qt-ai`.

   Public entry points:
       list_providers()           -> [ChatProvider, ...]
       get_provider(name)         -> ChatProvider | None
       configured_providers()     -> [ChatProvider, ...] (only ones with a key)
       default_system_prompt()    -> str (spacr-aware assistant persona)
       error_explainer_prompt()   -> str (system prompt for the "Explain error" flow)



Submodules
----------

.. toctree::
   :maxdepth: 1

   /api/spacr/qt/ai/keys/index
   /api/spacr/qt/ai/prompts/index
   /api/spacr/qt/ai/providers/index
   /api/spacr/qt/ai/worker/index


