desktop_chat_qt
Attributes
Classes
Functions
|
|
|
Message bubbles via a two-cell table for rock-solid alignment in QTextBrowser: |
|
|
|
Find command-like content in assistant text; remove from visible message. |
|
|
|
Module Contents
- desktop_chat_qt.render_msg(role: str, content: str) str[source]
Message bubbles via a two-cell table for rock-solid alignment in QTextBrowser: - Assistant: LEFT (pale blue) - User: RIGHT (pale blue)
- desktop_chat_qt.extract_geom_command(text: str) Tuple[str, str | None][source]
Find command-like content in assistant text; remove from visible message. Priority:
First fenced code block
First ‘geom …’ line (optional leading $)
Returns (cleaned_text, command_or_None).
- class desktop_chat_qt.AgentWorker(assistant, messages: List[Dict], parent=None)[source]
Bases:
PySide6.QtCore.QThread
- class desktop_chat_qt.ChatWindow[source]
Bases:
PySide6.QtWidgets.QMainWindow- system_prompt = 'You are a helpful assistant for GEOM. Propose safe shell commands only when appropriate; when...[source]