@tylertech/forge-ai 0.11.6 → 0.11.7
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/custom-elements.json +3514 -3514
- package/dist/core/chatbot-core-controller.mjs +1 -7
- package/package.json +1 -1
|
@@ -9,7 +9,6 @@ class ChatbotCoreController {
|
|
|
9
9
|
#fileUploadManager;
|
|
10
10
|
#adapterSubscriptions;
|
|
11
11
|
#adapter;
|
|
12
|
-
#toolsMap;
|
|
13
12
|
#executingToolHandlers = 0;
|
|
14
13
|
constructor(host, config) {
|
|
15
14
|
this.#host = host;
|
|
@@ -43,7 +42,6 @@ class ChatbotCoreController {
|
|
|
43
42
|
}
|
|
44
43
|
set adapter(value) {
|
|
45
44
|
this.#adapter = value;
|
|
46
|
-
this.#toolsMap = void 0;
|
|
47
45
|
if (value) {
|
|
48
46
|
this.#setupAdapter();
|
|
49
47
|
}
|
|
@@ -61,10 +59,7 @@ class ChatbotCoreController {
|
|
|
61
59
|
return this.messageItems.length > 0;
|
|
62
60
|
}
|
|
63
61
|
get tools() {
|
|
64
|
-
|
|
65
|
-
this.#toolsMap = new Map(this.#adapter?.getTools().map((t) => [t.name, t]) ?? []);
|
|
66
|
-
}
|
|
67
|
-
return this.#toolsMap;
|
|
62
|
+
return new Map(this.#adapter?.getTools().map((t) => [t.name, t]) ?? []);
|
|
68
63
|
}
|
|
69
64
|
get pendingAttachments() {
|
|
70
65
|
return this.#fileUploadManager?.pendingAttachments ?? [];
|
|
@@ -94,7 +89,6 @@ class ChatbotCoreController {
|
|
|
94
89
|
this.#adapter.onError(this.#handleError.bind(this)),
|
|
95
90
|
this.#adapter.onStateChange(this.#handleStateChange.bind(this))
|
|
96
91
|
);
|
|
97
|
-
this.#toolsMap = void 0;
|
|
98
92
|
this.#messageStateController?.updateConfig({ tools: this.tools });
|
|
99
93
|
this.#callbacks.onDispatchEvent("forge-ai-chatbot-connected");
|
|
100
94
|
}
|