@futdevpro/nts-dynamo 1.14.35 → 1.14.37
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/build/_modules/ai/_models/ai-input-interfaces.d.ts +20 -28
- package/build/_modules/ai/_models/ai-input-interfaces.d.ts.map +1 -1
- package/build/_modules/ai/_models/ai-input-interfaces.js +3 -0
- package/build/_modules/ai/_models/ai-input-interfaces.js.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.d.ts +14 -58
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.d.ts.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.js +138 -147
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.js.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.d.ts +27 -180
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.d.ts.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.js +147 -328
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.js.map +1 -1
- package/build/_modules/ai/_services/ai-llm-chat.service-base.d.ts +22 -14
- package/build/_modules/ai/_services/ai-llm-chat.service-base.d.ts.map +1 -1
- package/build/_modules/ai/_services/ai-llm-chat.service-base.js.map +1 -1
- package/build/_modules/ai/_services/ai-llm.service-base.d.ts +52 -21
- package/build/_modules/ai/_services/ai-llm.service-base.d.ts.map +1 -1
- package/build/_modules/ai/_services/ai-llm.service-base.js +171 -0
- package/build/_modules/ai/_services/ai-llm.service-base.js.map +1 -1
- package/build/_modules/ai/_services/ai-provider.service-base.d.ts +1 -1
- package/build/_modules/ai/_services/ai-provider.service-base.d.ts.map +1 -1
- package/build/_modules/assistant/_services/ass-io.control-service.js +2 -2
- package/build/_modules/assistant/_services/ass-io.control-service.js.map +1 -1
- package/build/_modules/bot/_models/bot-channel-wrapper.interface.d.ts +8 -2
- package/build/_modules/bot/_models/bot-channel-wrapper.interface.d.ts.map +1 -1
- package/build/_modules/bot/_models/bot-channel-wrapper.interface.js +31 -0
- package/build/_modules/bot/_models/bot-channel-wrapper.interface.js.map +1 -1
- package/build/_modules/bot/_models/bot-message-wrapper.interface.d.ts +6 -1
- package/build/_modules/bot/_models/bot-message-wrapper.interface.d.ts.map +1 -1
- package/build/_modules/bot/_models/bot-message-wrapper.interface.js +39 -0
- package/build/_modules/bot/_models/bot-message-wrapper.interface.js.map +1 -1
- package/build/_modules/bot/_models/bot-user-wrapper.interface.d.ts +2 -1
- package/build/_modules/bot/_models/bot-user-wrapper.interface.d.ts.map +1 -1
- package/build/_modules/bot/_models/bot-user-wrapper.interface.js +18 -0
- package/build/_modules/bot/_models/bot-user-wrapper.interface.js.map +1 -1
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.js +9 -6
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.js.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.js +9 -6
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.js.map +1 -1
- package/build/_modules/discord-assistant/_services/dias-chunk.data-service.js +9 -9
- package/build/_modules/discord-assistant/_services/dias-chunk.data-service.js.map +1 -1
- package/build/_modules/discord-assistant/_services/dias-io.control-service.js +2 -2
- package/build/_modules/discord-assistant/_services/dias-io.control-service.js.map +1 -1
- package/package.json +1 -1
- package/src/_modules/ai/_models/ai-input-interfaces.ts +63 -26
- package/src/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.ts +99 -139
- package/src/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.ts +246 -294
- package/src/_modules/ai/_services/ai-llm-chat.service-base.ts +36 -16
- package/src/_modules/ai/_services/ai-llm.service-base.ts +272 -28
- package/src/_modules/ai/_services/ai-provider.service-base.ts +1 -1
- package/src/_modules/assistant/_services/ass-io.control-service.ts +2 -2
- package/src/_modules/bot/_models/bot-channel-wrapper.interface.ts +30 -4
- package/src/_modules/bot/_models/bot-message-wrapper.interface.ts +24 -2
- package/src/_modules/bot/_models/bot-user-wrapper.interface.ts +8 -2
- package/src/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.ts +6 -6
- package/src/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.ts +6 -6
- package/src/_modules/discord-assistant/_services/dias-chunk.data-service.ts +9 -9
- package/src/_modules/discord-assistant/_services/dias-io.control-service.ts +2 -2
|
@@ -61,9 +61,9 @@ export abstract class DyNTS_DiAs_Chunk_DataService<
|
|
|
61
61
|
try {
|
|
62
62
|
DyFM_Log.info('🔍 Document message received:', conversation[conversation.length - 1].content);
|
|
63
63
|
|
|
64
|
-
const vectorSearchNeeded: boolean = await this.llmChat_CS.
|
|
64
|
+
const vectorSearchNeeded: boolean = await this.llmChat_CS.requestYesNoInConversation({
|
|
65
65
|
conversation: conversation,
|
|
66
|
-
|
|
66
|
+
message: DyNTS_OAI_LLMDefaultPredefined_Requests.vectorSearch.doWeNeedVectorSearch,
|
|
67
67
|
issuer: this.issuer,
|
|
68
68
|
settings: {
|
|
69
69
|
systemPrompt: DyNTS_OAI_LLMDefaultPredefined_Requests.defaultSystemPrompt,
|
|
@@ -74,12 +74,12 @@ export abstract class DyNTS_DiAs_Chunk_DataService<
|
|
|
74
74
|
if (vectorSearchNeeded) {
|
|
75
75
|
result = await this.vectorSearchAndResolveConversation(conversation, limit, numberOfCandidates);
|
|
76
76
|
} else {
|
|
77
|
-
result = await this.llmChat_CS.
|
|
77
|
+
result = await this.llmChat_CS.requestSimpleMessageInConversation({
|
|
78
78
|
conversation: conversation,
|
|
79
|
-
issuer: this.issuer,
|
|
80
79
|
settings: {
|
|
81
80
|
systemPrompt: DyNTS_OAI_LLMDefaultPredefined_Requests.defaultSystemPrompt,
|
|
82
81
|
},
|
|
82
|
+
issuer: this.issuer,
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -117,15 +117,15 @@ export abstract class DyNTS_DiAs_Chunk_DataService<
|
|
|
117
117
|
|
|
118
118
|
DyFM_Log.H_success(`✅ Document search results:`, parsedSearchResults);
|
|
119
119
|
|
|
120
|
-
const result: string = await this.llmChat_CS.
|
|
120
|
+
const result: string = await this.llmChat_CS.requestSimpleMessageInConversation({
|
|
121
121
|
conversation: conversation,
|
|
122
|
-
issuer: this.issuer,
|
|
123
122
|
settings: {
|
|
124
123
|
systemPrompt:
|
|
125
124
|
DyNTS_OAI_LLMDefaultPredefined_Requests.defaultSystemPrompt +
|
|
126
125
|
DyNTS_OAI_LLMDefaultPredefined_Requests.vectorSearch.resolveSearchResults +
|
|
127
126
|
parsedSearchResults,
|
|
128
127
|
},
|
|
128
|
+
issuer: this.issuer,
|
|
129
129
|
});
|
|
130
130
|
|
|
131
131
|
return result;
|
|
@@ -146,15 +146,15 @@ export abstract class DyNTS_DiAs_Chunk_DataService<
|
|
|
146
146
|
try {
|
|
147
147
|
const lastMessage: DyFM_AI_Message = conversation[conversation.length - 1];
|
|
148
148
|
|
|
149
|
-
const searchQuestion: string = await this.llmChat_CS.
|
|
149
|
+
const searchQuestion: string = await this.llmChat_CS.requestSimpleMessageInConversation({
|
|
150
150
|
conversation: conversation,
|
|
151
|
-
|
|
152
|
-
issuer: this.issuer,
|
|
151
|
+
message: DyNTS_OAI_LLMDefaultPredefined_Requests.vectorSearch.getSearchQuestion,
|
|
153
152
|
settings: {
|
|
154
153
|
systemPrompt:
|
|
155
154
|
DyNTS_OAI_LLMDefaultPredefined_Requests.defaultSystemPrompt +
|
|
156
155
|
DyNTS_OAI_LLMDefaultPredefined_Requests.vectorSearch.systemPrompt,
|
|
157
156
|
},
|
|
157
|
+
issuer: this.issuer,
|
|
158
158
|
});
|
|
159
159
|
|
|
160
160
|
DyFM_Log.testInfo('🔍 Document search question:', searchQuestion);
|
|
@@ -39,12 +39,12 @@ export abstract class DyNTS_DiAs_IO_ControlService extends DyNTS_DiBo_IO_Control
|
|
|
39
39
|
issuer: issuer,
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
const gptResult: string = await this.llmChat_CS.
|
|
42
|
+
const gptResult: string = await this.llmChat_CS.requestSimpleMessageInConversation({
|
|
43
43
|
conversation: oaiMessages,
|
|
44
|
-
issuer: issuer,
|
|
45
44
|
settings: {
|
|
46
45
|
systemPrompt: this.mainDiscordBot_CS.defaultSystemPrompt,
|
|
47
46
|
},
|
|
47
|
+
issuer: issuer,
|
|
48
48
|
});
|
|
49
49
|
|
|
50
50
|
return await message.reply(gptResult);
|