wingbot 3.76.18 → 3.77.0-alpha.1
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/.claude/settings.local.json +11 -0
- package/index.js +2 -0
- package/package.json +2 -2
- package/src/BuildRouter.js +31 -13
- package/src/CallbackAuditLog.js +1 -5
- package/src/ChatGpt.js +46 -18
- package/src/ConversationTester.js +1 -5
- package/src/LLM.js +73 -8
- package/src/LLMDispatcher.js +1 -5
- package/src/LLMSession.js +49 -2
- package/src/LLMToolRunner.js +580 -0
- package/src/Plugins.js +53 -0
- package/src/Processor.js +26 -10
- package/src/Responder.js +25 -0
- package/src/analytics/GA4.js +4 -4
- package/src/graphApi/GraphApi.js +1 -5
- package/src/graphApi/gqlRules.js +3 -7
- package/src/log/types.js +161 -0
- package/src/notifications/Notifications.js +1 -5
- package/src/resolvers/index.js +2 -0
- package/src/resolvers/llmTool.js +41 -0
- package/src/resolvers/message.js +51 -5
- package/src/utils/canaryLog.js +1 -6
- package/src/utils/logSpan.js +36 -0
- package/src/utils/pathUtils.js +8 -2
- package/src/wingbot/CachedModel.js +15 -3
- package/src/wingbot/CustomEntityDetectionModel.js +3 -3
- package/src/wingbot/WingbotModel.js +3 -3
|
@@ -109,7 +109,7 @@ class WingbotModel extends CachedModel {
|
|
|
109
109
|
`matches=${encodeURIComponent(this._matches)}`
|
|
110
110
|
];
|
|
111
111
|
|
|
112
|
-
if (this._options.verbose) this._log.
|
|
112
|
+
if (this._options.verbose) this._log.debug('#NLP query', { text, matches: this._matches, localEntities: entities });
|
|
113
113
|
|
|
114
114
|
if (entities) {
|
|
115
115
|
const buf = await this._brotli(Buffer.from(JSON.stringify({ entities })));
|
|
@@ -124,7 +124,7 @@ class WingbotModel extends CachedModel {
|
|
|
124
124
|
|
|
125
125
|
if (res.status === 403) {
|
|
126
126
|
// model does not exist
|
|
127
|
-
this._log.
|
|
127
|
+
this._log.warn('NLP model does not exist or is not deployed yet', { model: this._model });
|
|
128
128
|
return { intents: [], entities: [] };
|
|
129
129
|
}
|
|
130
130
|
|
|
@@ -136,7 +136,7 @@ class WingbotModel extends CachedModel {
|
|
|
136
136
|
throw new Error(`[${res.status}] Invalid JSON response: ${responseText}`);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
if (this._options.verbose) this._log.
|
|
139
|
+
if (this._options.verbose) this._log.debug('#NLP response', { text, response });
|
|
140
140
|
|
|
141
141
|
if (res.status >= 300) {
|
|
142
142
|
this._log.warn(`AI query failed: ${response.message || res.statusText}`);
|