@stackfactor/client-api 1.1.15 → 1.1.16
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/lib/aiAssistant.js +10 -2
- package/package.json +1 -1
package/lib/aiAssistant.js
CHANGED
|
@@ -91,15 +91,23 @@ const getConversationByElementId = (elementId, token) => {
|
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* Start conversation with the AI
|
|
94
|
-
* @param {String} context
|
|
95
94
|
* @param {String} elementId
|
|
96
95
|
* @param {String} elementType
|
|
96
|
+
* @param {String} context
|
|
97
|
+
* @param {Boolean} autoContextRefresh
|
|
97
98
|
* @param {String} token
|
|
98
99
|
* @returns {Promise}
|
|
99
100
|
*/
|
|
100
|
-
const startConversation = (
|
|
101
|
+
const startConversation = (
|
|
102
|
+
elementId,
|
|
103
|
+
elementType,
|
|
104
|
+
context,
|
|
105
|
+
autoContextRefresh,
|
|
106
|
+
token
|
|
107
|
+
) => {
|
|
101
108
|
return new Promise(function (resolve, reject) {
|
|
102
109
|
let data = {
|
|
110
|
+
autoContextRefresh: autoContextRefresh,
|
|
103
111
|
context: context,
|
|
104
112
|
elementId: elementId,
|
|
105
113
|
elementType: elementType,
|