@okf/ootils 1.26.3 → 1.26.4
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/node.d.mts +1 -0
- package/dist/node.d.ts +1 -0
- package/dist/node.js +11 -0
- package/dist/node.mjs +11 -0
- package/package.json +1 -1
package/dist/node.d.mts
CHANGED
package/dist/node.d.ts
CHANGED
package/dist/node.js
CHANGED
|
@@ -1023,6 +1023,17 @@ var init_AIChat = __esm({
|
|
|
1023
1023
|
default: "aiChat",
|
|
1024
1024
|
index: true
|
|
1025
1025
|
},
|
|
1026
|
+
// Deterministic ID linking this chat to a specific WidgetAskAI widget in a report.
|
|
1027
|
+
// The Report Agent generates widget configs on the backend, so at report creation
|
|
1028
|
+
// time no chat exists yet — the LLM query hasn't been fired. Without this ID,
|
|
1029
|
+
// every page load would trigger a fresh LLM call. With it, the first render runs
|
|
1030
|
+
// the LLM and saves the chat under this ID; subsequent renders find the existing
|
|
1031
|
+
// chat and return the cached response immediately.
|
|
1032
|
+
widgetAskAI_Id: {
|
|
1033
|
+
type: String,
|
|
1034
|
+
sparse: true,
|
|
1035
|
+
unique: true
|
|
1036
|
+
},
|
|
1026
1037
|
immutableActiveFilters: {
|
|
1027
1038
|
type: import_mongoose4.default.Schema.Types.Mixed,
|
|
1028
1039
|
default: void 0
|
package/dist/node.mjs
CHANGED
|
@@ -1028,6 +1028,17 @@ var init_AIChat = __esm({
|
|
|
1028
1028
|
default: "aiChat",
|
|
1029
1029
|
index: true
|
|
1030
1030
|
},
|
|
1031
|
+
// Deterministic ID linking this chat to a specific WidgetAskAI widget in a report.
|
|
1032
|
+
// The Report Agent generates widget configs on the backend, so at report creation
|
|
1033
|
+
// time no chat exists yet — the LLM query hasn't been fired. Without this ID,
|
|
1034
|
+
// every page load would trigger a fresh LLM call. With it, the first render runs
|
|
1035
|
+
// the LLM and saves the chat under this ID; subsequent renders find the existing
|
|
1036
|
+
// chat and return the cached response immediately.
|
|
1037
|
+
widgetAskAI_Id: {
|
|
1038
|
+
type: String,
|
|
1039
|
+
sparse: true,
|
|
1040
|
+
unique: true
|
|
1041
|
+
},
|
|
1031
1042
|
immutableActiveFilters: {
|
|
1032
1043
|
type: mongoose4.Schema.Types.Mixed,
|
|
1033
1044
|
default: void 0
|