26class UiChatMessageList;
27class UiChatMessageItem;
29class UiChatEventHandler;
31class UiToolCallTimeline;
64 void sendMessage(
const QString& message);
70 bool isBusy()
const {
return busy_; }
80 void onSendMessage(
const QString& message);
81 void onStopRequested();
84 void onHtmlChunk(
const QString& html);
86 void onContentComplete(
const QString& text);
87 void onReasoningChunk(
const QString& reasoning);
88 void onReasoningComplete(
const QString& reasoning);
89 void onToolCallRequest(
const QString& toolCallId,
90 const QString& functionName,
91 const QString& arguments);
92 void onToolCallResult(
const QString& toolCallId,
93 const QString& functionName,
94 const QString& result);
96 void onError(
const QString& error);
97 void onWorkerFinished(
int errorCode);
101 void setBusy(
bool busy);
107 QLabel* statusLabel_ =
nullptr;
112 QTimer* throttleTimer_ =
nullptr;
113 QString pendingHtml_;
114 std::string accumulatedText_;
聊天会话
定义 ChatSession.hpp:44
流式聊天事件的 Qt 信号桥接器
定义 UiChatEventHandler.hpp:44
单条聊天消息气泡部件
定义 UiChatMessageItem.hpp:34
聊天消息列表(可滚动区域)
定义 UiChatMessageList.hpp:33
聊天面板
定义 UiChatPanel.hpp:46
bool isBusy() const
是否正在等待回复
定义 UiChatPanel.hpp:70
void chatStarted()
对话开始(用户发送消息后)
ChatSession * session() const
获取关联的聊天会话
定义 UiChatPanel.hpp:58