22#ifndef AICHATSIDEBAR_H
23#define AICHATSIDEBAR_H
27#include "mcp/McpTools.h"
62 wxWindowID
id = wxID_ANY);
75 void OnSend(wxCommandEvent &event);
76 void OnInputKeyDown(wxKeyEvent &event);
85 void OnOpenOptions(wxCommandEvent &event);
86 void AppendToHistory(
const wxString &speaker,
const wxString &text);
87 void SetBusy(
bool busy);
91 wxString BuildContextSnapshot()
const;
92 void UpdateStatusText();
96 std::shared_ptr<AiProvider> m_provider;
97 std::vector<AiChatMessage> m_history;
98 bool m_requestInFlight =
false;
100 wxTextCtrl *m_historyCtrl;
101 wxTextCtrl *m_inputCtrl;
102 wxButton *m_sendButton;
103 wxButton *m_clearButton;
104 wxStaticText *m_statusText;
105 wxButton *m_openOptionsButton;
112 static constexpr std::size_t MAX_CONTEXT_LENGTH = 8000;
Talks to one of a handful of external AI chat APIs for the AI chat sidebar (AiChatSidebar).
The configuration storage for the current worksheet.
Definition: Configuration.h:98
A "variables" sidepane.
Definition: VariablesPane.h:45
The canvas that contains the spreadsheet the whole program is about.
Definition: Worksheet.h:116