pyqt_reactive.widgets.llm_chat_panel

LLM Chat Panel Widget

Embeddable chat panel for LLM-powered code generation. Can be integrated into any code editor or dialog.

Classes

LLMChatPanel([parent, color_scheme, ...])

Chat panel for LLM-powered code generation.

LLMStatusIndicator(generate_button, **kwargs)

StatusIndicator that also controls generate button enable/disable.

class pyqt_reactive.widgets.llm_chat_panel.LLMStatusIndicator(generate_button: QPushButton, **kwargs)[source]

StatusIndicator that also controls generate button enable/disable.

__init__(generate_button: QPushButton, **kwargs)[source]
set_state(state: StatusState, message: str = '')[source]

Update visual state.

class pyqt_reactive.widgets.llm_chat_panel.LLMChatPanel(parent=None, color_scheme: ColorScheme | None = None, code_type: str | None = None, llm_service: LLMServiceProtocol | None = None)[source]

Chat panel for LLM-powered code generation.

Designed to be embedded in code editor as a side panel. Emits signal when code is generated for parent to handle insertion.

code_generated

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

__init__(parent=None, color_scheme: ColorScheme | None = None, code_type: str | None = None, llm_service: LLMServiceProtocol | None = None)[source]
closeEvent(self, a0: QCloseEvent | None)[source]