feat: websocket连接成功

This commit is contained in:
2026-01-21 00:58:02 +08:00
parent b6962e5a19
commit 8137a38060
5 changed files with 50 additions and 21 deletions

View File

@@ -18,6 +18,8 @@ export class ChatMessage {
messageContent: string;
// 是否加载中
isLoading?: boolean;
// 是否完成
finished?: boolean;
// 工具调用信息
toolCall?: any;
// 问题信息
@@ -28,13 +30,15 @@ export class ChatMessage {
messageRole: MessageRole,
messageContent: string,
isLoading: boolean = false,
finished: boolean = false,
toolCall?: any,
question?: any
) {
this.messageId = messageId;
this.messageRole = messageRole;
this.messageContent = messageContent;
this.finished = finished;
this.isLoading = isLoading;
this.messageId = messageId;
this.toolCall = toolCall;
this.question = question;
}