@astermind/cybernetic-chatbot-client 2.2.62 → 2.2.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -86,6 +86,7 @@ class ApiClient {
86
86
  let fullText = '';
87
87
  let sources = [];
88
88
  let sessionId;
89
+ let messageId;
89
90
  try {
90
91
  while (true) {
91
92
  const { done, value } = await reader.read();
@@ -114,6 +115,7 @@ class ApiClient {
114
115
  else if (data.sessionId !== undefined) {
115
116
  // Done event
116
117
  sessionId = data.sessionId;
118
+ messageId = data.messageId;
117
119
  }
118
120
  }
119
121
  catch {
@@ -122,7 +124,7 @@ class ApiClient {
122
124
  }
123
125
  }
124
126
  }
125
- options.onComplete?.({ fullText, sessionId, sources });
127
+ options.onComplete?.({ fullText, sessionId, messageId, sources });
126
128
  }
127
129
  catch (error) {
128
130
  options.onError?.(error);
@@ -3095,7 +3097,8 @@ class CyberneticClient {
3095
3097
  confidence: 'high',
3096
3098
  sources: data.sources || [],
3097
3099
  offline: false,
3098
- sessionId: data.sessionId
3100
+ sessionId: data.sessionId,
3101
+ messageId: data.messageId
3099
3102
  });
3100
3103
  },
3101
3104
  onError: (error) => {