@carbon/ai-chat 0.1.6-alpha0 → 0.1.6
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.
- package/dist/cjs/Carousel.js +2 -2
- package/dist/cjs/Chat.js +214 -4
- package/dist/cjs/GenesysMessengerServiceDesk.js +3 -3
- package/dist/cjs/HumanAgentServiceImpl.js +2 -2
- package/dist/cjs/NiceDFOServiceDesk.js +3 -3
- package/dist/cjs/PDFViewerContainer.js +2 -2
- package/dist/cjs/ReactPlayer.js +2 -2
- package/dist/cjs/SFServiceDesk.js +2 -2
- package/dist/cjs/ServiceDeskImpl.js +2 -2
- package/dist/cjs/Table.js +2 -2
- package/dist/cjs/ZendeskServiceDesk.js +2 -2
- package/dist/cjs/_node-resolve_empty.js +2 -2
- package/dist/cjs/agentActions.js +2 -2
- package/dist/cjs/aiChatEntry.js +2 -2
- package/dist/cjs/anonymousUserIDStorage.js +2 -2
- package/dist/cjs/ar-dz.js +2 -2
- package/dist/cjs/ar-kw.js +2 -2
- package/dist/cjs/ar-ly.js +2 -2
- package/dist/cjs/ar-ma.js +2 -2
- package/dist/cjs/ar-sa.js +2 -2
- package/dist/cjs/ar-tn.js +2 -2
- package/dist/cjs/ar.js +2 -2
- package/dist/cjs/ar2.js +2 -2
- package/dist/cjs/cds-aichat-container.js +2 -2
- package/dist/cjs/cds-aichat-custom-element.js +2 -2
- package/dist/cjs/cds-aichat-internal.js +303 -102
- package/dist/cjs/cs.js +2 -2
- package/dist/cjs/cs2.js +2 -2
- package/dist/cjs/de-at.js +2 -2
- package/dist/cjs/de-ch.js +2 -2
- package/dist/cjs/de.js +2 -2
- package/dist/cjs/de2.js +2 -2
- package/dist/cjs/en-au.js +2 -2
- package/dist/cjs/en-ca.js +2 -2
- package/dist/cjs/en-gb.js +2 -2
- package/dist/cjs/en-ie.js +2 -2
- package/dist/cjs/en-il.js +2 -2
- package/dist/cjs/en-nz.js +2 -2
- package/dist/cjs/es-do.js +2 -2
- package/dist/cjs/es-us.js +2 -2
- package/dist/cjs/es.js +2 -2
- package/dist/cjs/es2.js +2 -2
- package/dist/cjs/export.js +3 -3
- package/dist/cjs/export.legacy.js +3 -3
- package/dist/cjs/fontUtils.js +2 -2
- package/dist/cjs/fr-ca.js +2 -2
- package/dist/cjs/fr-ch.js +2 -2
- package/dist/cjs/fr.js +2 -2
- package/dist/cjs/fr2.js +2 -2
- package/dist/cjs/highlight_js.js +2 -2
- package/dist/cjs/it-ch.js +2 -2
- package/dist/cjs/it.js +2 -2
- package/dist/cjs/it2.js +2 -2
- package/dist/cjs/ja.js +2 -2
- package/dist/cjs/ja2.js +2 -2
- package/dist/cjs/jstz.min.js +2 -2
- package/dist/cjs/ko.js +2 -2
- package/dist/cjs/ko2.js +2 -2
- package/dist/cjs/markdown.js +2 -2
- package/dist/cjs/markdown_attrs.js +2 -2
- package/dist/cjs/mockServiceDesk.js +4 -4
- package/dist/cjs/nl.js +2 -2
- package/dist/cjs/nl2.js +2 -2
- package/dist/cjs/pt-br.js +2 -2
- package/dist/cjs/pt-br2.js +2 -2
- package/dist/cjs/pt.js +2 -2
- package/dist/cjs/render.js +2 -2
- package/dist/cjs/zh-cn.js +2 -2
- package/dist/cjs/zh-tw.js +2 -2
- package/dist/cjs/zh-tw2.js +2 -2
- package/dist/cjs/zh.js +2 -2
- package/dist/es/Carousel.js +3 -3
- package/dist/es/Chat.js +215 -5
- package/dist/es/GenesysMessengerServiceDesk.js +4 -4
- package/dist/es/HumanAgentServiceImpl.js +3 -3
- package/dist/es/NiceDFOServiceDesk.js +4 -4
- package/dist/es/PDFViewerContainer.js +3 -3
- package/dist/es/ReactPlayer.js +2 -2
- package/dist/es/SFServiceDesk.js +3 -3
- package/dist/es/ServiceDeskImpl.js +2 -2
- package/dist/es/Table.js +3 -3
- package/dist/es/ZendeskServiceDesk.js +2 -2
- package/dist/es/_node-resolve_empty.js +2 -2
- package/dist/es/agentActions.js +2 -2
- package/dist/es/aiChatEntry.js +2 -2
- package/dist/es/anonymousUserIDStorage.js +3 -3
- package/dist/es/ar-dz.js +3 -3
- package/dist/es/ar-kw.js +3 -3
- package/dist/es/ar-ly.js +3 -3
- package/dist/es/ar-ma.js +3 -3
- package/dist/es/ar-sa.js +3 -3
- package/dist/es/ar-tn.js +3 -3
- package/dist/es/ar.js +3 -3
- package/dist/es/ar2.js +2 -2
- package/dist/es/cds-aichat-container.js +2 -2
- package/dist/es/cds-aichat-custom-element.js +2 -2
- package/dist/es/cds-aichat-internal.js +300 -103
- package/dist/es/cs.js +3 -3
- package/dist/es/cs2.js +2 -2
- package/dist/es/de-at.js +3 -3
- package/dist/es/de-ch.js +3 -3
- package/dist/es/de.js +3 -3
- package/dist/es/de2.js +2 -2
- package/dist/es/en-au.js +3 -3
- package/dist/es/en-ca.js +3 -3
- package/dist/es/en-gb.js +3 -3
- package/dist/es/en-ie.js +3 -3
- package/dist/es/en-il.js +3 -3
- package/dist/es/en-nz.js +3 -3
- package/dist/es/es-do.js +3 -3
- package/dist/es/es-us.js +3 -3
- package/dist/es/es.js +3 -3
- package/dist/es/es2.js +2 -2
- package/dist/es/export.js +3 -3
- package/dist/es/export.legacy.js +3 -3
- package/dist/es/fontUtils.js +2 -2
- package/dist/es/fr-ca.js +3 -3
- package/dist/es/fr-ch.js +3 -3
- package/dist/es/fr.js +3 -3
- package/dist/es/fr2.js +2 -2
- package/dist/es/highlight_js.js +2 -2
- package/dist/es/it-ch.js +3 -3
- package/dist/es/it.js +3 -3
- package/dist/es/it2.js +2 -2
- package/dist/es/ja.js +3 -3
- package/dist/es/ja2.js +2 -2
- package/dist/es/jstz.min.js +2 -2
- package/dist/es/ko.js +3 -3
- package/dist/es/ko2.js +2 -2
- package/dist/es/markdown.js +2 -2
- package/dist/es/markdown_attrs.js +2 -2
- package/dist/es/mockServiceDesk.js +5 -5
- package/dist/es/nl.js +3 -3
- package/dist/es/nl2.js +2 -2
- package/dist/es/pt-br.js +3 -3
- package/dist/es/pt-br2.js +2 -2
- package/dist/es/pt.js +3 -3
- package/dist/es/render.js +3 -3
- package/dist/es/zh-cn.js +3 -3
- package/dist/es/zh-tw.js +3 -3
- package/dist/es/zh-tw2.js +2 -2
- package/dist/es/zh.js +2 -2
- package/dist/types/aiChatEntry.d.ts +167 -88
- package/package.json +1 -1
package/dist/cjs/Carousel.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/Chat.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -1349,11 +1349,22 @@ class ChatActionsImpl {
|
|
|
1349
1349
|
*/
|
|
1350
1350
|
receiveChunk(chunk, messageID, options = {}) {
|
|
1351
1351
|
const isCompleteItem = cdsAichatInternal.isStreamCompleteItem(chunk);
|
|
1352
|
-
|
|
1352
|
+
const isPartialItem = cdsAichatInternal.isStreamPartialItem(chunk);
|
|
1353
|
+
const { store } = this.serviceManager;
|
|
1354
|
+
const isStopGeneratingVisible = store.getState().botInputState.stopStreamingButtonState.isVisible;
|
|
1355
|
+
if (isPartialItem) {
|
|
1356
|
+
const streamingData = chunk.partial_item.streaming_metadata;
|
|
1357
|
+
if (streamingData.stream_id) {
|
|
1358
|
+
store.dispatch(cdsAichatInternal.actions.setStreamID(streamingData.stream_id));
|
|
1359
|
+
}
|
|
1360
|
+
if (streamingData.cancellable && !isStopGeneratingVisible) {
|
|
1361
|
+
store.dispatch(cdsAichatInternal.actions.setStopStreamingButtonVisible(true));
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
if (isCompleteItem || isPartialItem) {
|
|
1353
1365
|
if (!messageID) {
|
|
1354
1366
|
messageID = chunk.streaming_metadata.response_id;
|
|
1355
1367
|
}
|
|
1356
|
-
const { store } = this.serviceManager;
|
|
1357
1368
|
if (!store.getState().allMessagesByID[messageID]) {
|
|
1358
1369
|
store.dispatch(cdsAichatInternal.actions.streamingStart(messageID));
|
|
1359
1370
|
}
|
|
@@ -1377,6 +1388,12 @@ class ChatActionsImpl {
|
|
|
1377
1388
|
disableFadeAnimation: true,
|
|
1378
1389
|
});
|
|
1379
1390
|
}
|
|
1391
|
+
if ((isCompleteItem || cdsAichatInternal.isStreamFinalResponse(chunk)) && isStopGeneratingVisible) {
|
|
1392
|
+
// Once a complete or final response is received, reset the visible and disabled states for the "stop streaming"
|
|
1393
|
+
// button.
|
|
1394
|
+
store.dispatch(cdsAichatInternal.actions.setStopStreamingButtonDisabled(false));
|
|
1395
|
+
store.dispatch(cdsAichatInternal.actions.setStopStreamingButtonVisible(false));
|
|
1396
|
+
}
|
|
1380
1397
|
}
|
|
1381
1398
|
/**
|
|
1382
1399
|
* Provides the store parameters to track the event accordingly.
|
|
@@ -4372,6 +4389,163 @@ class MessageService {
|
|
|
4372
4389
|
}
|
|
4373
4390
|
}
|
|
4374
4391
|
}
|
|
4392
|
+
/**
|
|
4393
|
+
* This function sends a message event request to the assistant to trigger stop streaming from the watsonx
|
|
4394
|
+
* Assistant backend.
|
|
4395
|
+
*
|
|
4396
|
+
* @param streamID The ID of the stream to stop.
|
|
4397
|
+
*/
|
|
4398
|
+
async stopStreaming(streamID) {
|
|
4399
|
+
const { store } = this.serviceManager;
|
|
4400
|
+
const eventMessage = cdsAichatInternal.createEventMessageRequest({ name: cdsAichatInternal.EVENT_STOP_STREAMING, stream_id: streamID });
|
|
4401
|
+
// Create a Promise that the caller can wait on that we'll resolve if/when the message is finally successfully sent.
|
|
4402
|
+
const sendMessagePromise = cdsAichatInternal.resolvablePromise();
|
|
4403
|
+
const soloMessageRequest = { message: eventMessage, sendMessagePromise };
|
|
4404
|
+
await this.sendMessageRequest(soloMessageRequest);
|
|
4405
|
+
const { stopStreamingButtonState } = store.getState().botInputState;
|
|
4406
|
+
if (stopStreamingButtonState.isDisabled && sendMessagePromise.isRejected) {
|
|
4407
|
+
store.dispatch(cdsAichatInternal.actions.setStopStreamingButtonDisabled(false));
|
|
4408
|
+
}
|
|
4409
|
+
}
|
|
4410
|
+
/**
|
|
4411
|
+
* This function is for sending message requests independently of the message queue. This can be useful for sending
|
|
4412
|
+
* messages not part of the
|
|
4413
|
+
*
|
|
4414
|
+
* @param current The current message being sent.
|
|
4415
|
+
*/
|
|
4416
|
+
async sendMessageRequest(current) {
|
|
4417
|
+
const transactionID = cdsAichatInternal.uuid(cdsAichatInternal.UUIDType.MISCELLANEOUS);
|
|
4418
|
+
const allowStream = this.serviceManager.store.getState().streaming.enabled;
|
|
4419
|
+
const fetchParameters = createFetchParameters(this.serviceManager, transactionID, allowStream);
|
|
4420
|
+
const chatRequest = await this.createChatRequest(current.message);
|
|
4421
|
+
try {
|
|
4422
|
+
await this.doFetchSingly(chatRequest, fetchParameters, current);
|
|
4423
|
+
}
|
|
4424
|
+
catch (error) {
|
|
4425
|
+
cdsAichatInternal.consoleError('An error occurred trying to send a message request.', error);
|
|
4426
|
+
}
|
|
4427
|
+
}
|
|
4428
|
+
/**
|
|
4429
|
+
* This function will open a fetch event source to handle responses separately from message queue.
|
|
4430
|
+
*/
|
|
4431
|
+
async doFetchSingly(chatRequest, fetchParameters, current) {
|
|
4432
|
+
const { serviceManager, messageURL } = this;
|
|
4433
|
+
const { fetch } = serviceManager;
|
|
4434
|
+
const abortController = new AbortController();
|
|
4435
|
+
// The promise that will be resolved when the whole response is done (streaming or not).
|
|
4436
|
+
const donePromise = cdsAichatInternal.resolvablePromise();
|
|
4437
|
+
// The timeout timer used to trigger a timeout if we stop getting streaming messages.
|
|
4438
|
+
let streamTimeoutTimer;
|
|
4439
|
+
// When web chat gets the beginning of a response from the server, it does not know right away if the response
|
|
4440
|
+
// will just be an immediate regular message response or if it will contain a stream to come later (there seems
|
|
4441
|
+
// to be a short delay between onopen and onmessage). This timer is a hack to try and determine which case we're
|
|
4442
|
+
// dealing with. This affects the display on the stream loading indicator as well as disabling the input field.
|
|
4443
|
+
let streamStartingTimer;
|
|
4444
|
+
/**
|
|
4445
|
+
* Handles when a streaming timeout or error occurs.
|
|
4446
|
+
*/
|
|
4447
|
+
const handleError = () => {
|
|
4448
|
+
cdsAichatInternal.consoleError('[solo streaming] A timeout or error while streaming has occurred.');
|
|
4449
|
+
// Make sure to actually close the stream.
|
|
4450
|
+
abortController.abort();
|
|
4451
|
+
};
|
|
4452
|
+
/**
|
|
4453
|
+
* Starts or restarts the timeout on the streaming.
|
|
4454
|
+
*/
|
|
4455
|
+
const startTimeout = () => {
|
|
4456
|
+
if (streamTimeoutTimer) {
|
|
4457
|
+
clearTimeout(streamTimeoutTimer);
|
|
4458
|
+
}
|
|
4459
|
+
streamTimeoutTimer = setTimeout(handleError, STREAMING_MESSAGE_TIMEOUT_MS);
|
|
4460
|
+
};
|
|
4461
|
+
/**
|
|
4462
|
+
* Called when a response is received from the fetch call. If an error is thrown from here, it will abort the
|
|
4463
|
+
* processing of the stream.
|
|
4464
|
+
*/
|
|
4465
|
+
const onOpen = async (response) => {
|
|
4466
|
+
cdsAichatInternal.debugLog('[solo streaming] onOpen', response);
|
|
4467
|
+
if (!response) {
|
|
4468
|
+
// This generally only occurs in test cases that failed to configure a response on the mock.
|
|
4469
|
+
cdsAichatInternal.consoleError('No result was received for solo message request', JSON.stringify(chatRequest, null, 2));
|
|
4470
|
+
throw new Error('No result was received for solo message request');
|
|
4471
|
+
}
|
|
4472
|
+
if (response.headers.get(cdsAichatInternal.HEADER_CONTENT_TYPE) !== cdsAichatInternal.MIME_STREAM) {
|
|
4473
|
+
// Make sure to sink the entire response so we guarantee it will be available after the fetch closes the
|
|
4474
|
+
// connection. This relies on the fetchWrapper to cache the result.
|
|
4475
|
+
await response.text();
|
|
4476
|
+
donePromise.doResolve();
|
|
4477
|
+
// Throwing this stops the library from processing the response as a streaming response. This will be
|
|
4478
|
+
// caught by the onerror handler. This will terminate the whole fetch process and we will then process the
|
|
4479
|
+
// response below.
|
|
4480
|
+
throw NOT_STREAMING;
|
|
4481
|
+
}
|
|
4482
|
+
// At this point, it means that we are going to start streaming.
|
|
4483
|
+
cdsAichatInternal.debugLog('[solo streaming] onOpen - Waiting for streaming to start');
|
|
4484
|
+
startTimeout();
|
|
4485
|
+
};
|
|
4486
|
+
/**
|
|
4487
|
+
* Called when an error occurs. If an error is thrown from here, it will prevent the library from attempting to
|
|
4488
|
+
* retry the connection.
|
|
4489
|
+
*/
|
|
4490
|
+
const onError = (error) => {
|
|
4491
|
+
if (error !== NOT_STREAMING) {
|
|
4492
|
+
cdsAichatInternal.consoleError('[solo streaming] onError', error);
|
|
4493
|
+
handleError();
|
|
4494
|
+
}
|
|
4495
|
+
current.sendMessagePromise.doReject(error);
|
|
4496
|
+
// This will stop the client from attempting to retry the stream.
|
|
4497
|
+
throw error;
|
|
4498
|
+
};
|
|
4499
|
+
/**
|
|
4500
|
+
* Called when the response is closed.
|
|
4501
|
+
*/
|
|
4502
|
+
const onClose = () => {
|
|
4503
|
+
cdsAichatInternal.debugLog('[solo streaming] onClose');
|
|
4504
|
+
donePromise.doResolve();
|
|
4505
|
+
};
|
|
4506
|
+
/**
|
|
4507
|
+
* Called when a message event is received on a streaming response.
|
|
4508
|
+
*/
|
|
4509
|
+
const onMessage = (event) => {
|
|
4510
|
+
if (donePromise.isResolved) {
|
|
4511
|
+
cdsAichatInternal.debugLog('[solo streaming] onMessage Ignoring message', cdsAichatInternal.tryJSONParse(event.data), event);
|
|
4512
|
+
return;
|
|
4513
|
+
}
|
|
4514
|
+
if (cdsAichatInternal.isEnableDebugLog()) {
|
|
4515
|
+
cdsAichatInternal.debugLog('[solo streaming] onMessage', cdsAichatInternal.tryJSONParse(event.data), event);
|
|
4516
|
+
}
|
|
4517
|
+
const eventType = event.event;
|
|
4518
|
+
if (eventType === 'done' || eventType === 'server_error') {
|
|
4519
|
+
current.sendMessagePromise.doResolve();
|
|
4520
|
+
// This is a signal for the client to close the stream.
|
|
4521
|
+
abortController.abort();
|
|
4522
|
+
}
|
|
4523
|
+
};
|
|
4524
|
+
// Kick off the fetch request.
|
|
4525
|
+
fetchEventSource(messageURL, {
|
|
4526
|
+
...fetchParameters,
|
|
4527
|
+
// Used to close the stream by the client.
|
|
4528
|
+
signal: abortController.signal,
|
|
4529
|
+
fetch,
|
|
4530
|
+
// This prevents the library from closing the stream if the document becomes visibly hidden (like if the user
|
|
4531
|
+
// minimizes the browser window).
|
|
4532
|
+
openWhenHidden: true,
|
|
4533
|
+
body: JSON.stringify(chatRequest),
|
|
4534
|
+
onopen: onOpen,
|
|
4535
|
+
onerror: onError,
|
|
4536
|
+
onclose: onClose,
|
|
4537
|
+
onmessage: onMessage,
|
|
4538
|
+
}).catch(error => {
|
|
4539
|
+
if (error !== NOT_STREAMING) {
|
|
4540
|
+
cdsAichatInternal.consoleError('Error occurred during a singly message fetch', error);
|
|
4541
|
+
}
|
|
4542
|
+
current.sendMessagePromise.doReject(error);
|
|
4543
|
+
});
|
|
4544
|
+
// This will wait for either a regular response to complete or for an entire stream to complete or for a timeout
|
|
4545
|
+
// (while streaming) to occur.
|
|
4546
|
+
await donePromise;
|
|
4547
|
+
clearTimeout(streamStartingTimer);
|
|
4548
|
+
}
|
|
4375
4549
|
/**
|
|
4376
4550
|
* Handles a regular, non-streaming response from the server.
|
|
4377
4551
|
*/
|
|
@@ -7372,6 +7546,42 @@ const reducers = {
|
|
|
7372
7546
|
},
|
|
7373
7547
|
};
|
|
7374
7548
|
},
|
|
7549
|
+
[cdsAichatInternal.SET_STOP_STREAMING_BUTTON_VISIBLE]: (state, { isVisible }) => {
|
|
7550
|
+
return {
|
|
7551
|
+
...state,
|
|
7552
|
+
botInputState: {
|
|
7553
|
+
...state.botInputState,
|
|
7554
|
+
stopStreamingButtonState: {
|
|
7555
|
+
...state.botInputState.stopStreamingButtonState,
|
|
7556
|
+
isVisible,
|
|
7557
|
+
},
|
|
7558
|
+
},
|
|
7559
|
+
};
|
|
7560
|
+
},
|
|
7561
|
+
[cdsAichatInternal.SET_STOP_STREAMING_BUTTON_DISABLED]: (state, { isDisabled }) => {
|
|
7562
|
+
return {
|
|
7563
|
+
...state,
|
|
7564
|
+
botInputState: {
|
|
7565
|
+
...state.botInputState,
|
|
7566
|
+
stopStreamingButtonState: {
|
|
7567
|
+
...state.botInputState.stopStreamingButtonState,
|
|
7568
|
+
isDisabled,
|
|
7569
|
+
},
|
|
7570
|
+
},
|
|
7571
|
+
};
|
|
7572
|
+
},
|
|
7573
|
+
[cdsAichatInternal.SET_STREAM_ID]: (state, { currentStreamID }) => {
|
|
7574
|
+
return {
|
|
7575
|
+
...state,
|
|
7576
|
+
botInputState: {
|
|
7577
|
+
...state.botInputState,
|
|
7578
|
+
stopStreamingButtonState: {
|
|
7579
|
+
...state.botInputState.stopStreamingButtonState,
|
|
7580
|
+
currentStreamID,
|
|
7581
|
+
},
|
|
7582
|
+
},
|
|
7583
|
+
};
|
|
7584
|
+
},
|
|
7375
7585
|
};
|
|
7376
7586
|
/**
|
|
7377
7587
|
* Adds the given full message to the redux store. This will add it global to the global map as well as add the
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -205,7 +205,7 @@ class GenesysMessengerServiceDesk extends ServiceDeskImpl.ServiceDeskImpl {
|
|
|
205
205
|
async handleFileAttachments(message, agentID) {
|
|
206
206
|
const files = this.getFileAttachments(message);
|
|
207
207
|
const items = files.map(({ filename, url }) => cdsAichatInternal.assertType({
|
|
208
|
-
response_type: cdsAichatInternal.
|
|
208
|
+
response_type: cdsAichatInternal.MessageResponseTypes.BUTTON,
|
|
209
209
|
kind: cdsAichatInternal.ButtonItemKind.LINK,
|
|
210
210
|
button_type: cdsAichatInternal.ButtonItemType.URL,
|
|
211
211
|
url,
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -1904,7 +1904,7 @@ class NiceDFOServiceDesk extends ServiceDeskImpl.ServiceDeskImpl {
|
|
|
1904
1904
|
if (message.attachments?.length) {
|
|
1905
1905
|
message.attachments.forEach((attachment) => {
|
|
1906
1906
|
messageItems.push(cdsAichatInternal.assertType({
|
|
1907
|
-
response_type: cdsAichatInternal.
|
|
1907
|
+
response_type: cdsAichatInternal.MessageResponseTypes.BUTTON,
|
|
1908
1908
|
kind: cdsAichatInternal.ButtonItemKind.LINK,
|
|
1909
1909
|
button_type: cdsAichatInternal.ButtonItemType.URL,
|
|
1910
1910
|
url: attachment.url,
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/ReactPlayer.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/Table.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/agentActions.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/aiChatEntry.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/ar-dz.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/ar-kw.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/ar-ly.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/ar-ma.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/ar-sa.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/ar-tn.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/ar.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/ar2.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.6
|
|
16
|
+
@carbon/ai-chat 0.1.6
|
|
17
17
|
|
|
18
|
-
Built:
|
|
18
|
+
Built: Feb 3 2025 9:58 am -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|