@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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { OpenAI } from 'openai';
|
|
2
2
|
import { DyFM_OAI_Settings, DyFM_OAI_Model, DyFM_OAI_CallSettings } from '@futdevpro/fsm-dynamo/ai/open-ai';
|
|
3
|
-
import { DyFM_AI_Message, DyFM_AI_Provider, DyFM_AI_ProviderCapabilities,
|
|
3
|
+
import { DyFM_AI_Message, DyFM_AI_Provider, DyFM_AI_ProviderCapabilities, DyFM_AI_Config } from '@futdevpro/fsm-dynamo/ai';
|
|
4
4
|
import { ChatCompletion } from 'openai/resources';
|
|
5
5
|
import { ChatCompletionCreateParamsBase } from 'openai/resources/chat/completions';
|
|
6
6
|
import { DyNTS_OAI_LLM_Predefined_Requests } from '../_models/interfaces/oai-llm-predefined-requests.interface';
|
|
7
7
|
import { DyNTS_AI_LLM_ServiceBase } from '../../../_services/ai-llm.service-base';
|
|
8
|
-
import { DyFM_AI_GenericMultiSelect_Input, DyFM_AI_JSONExactKeys_Input,
|
|
8
|
+
import { DyFM_AI_Message_Input, DyFM_AI_GenericSelect_Input, DyFM_AI_GenericMultiSelect_Input, DyFM_AI_JSONKeysDescription_Input, DyFM_AI_JSONExactKeys_Input, DyFM_AI_ConversationBase_Input } from '../../../_models/ai-input-interfaces';
|
|
9
9
|
/**
|
|
10
10
|
* {
|
|
11
11
|
* organization: 'org-XY',
|
|
@@ -18,55 +18,35 @@ export declare class DyNTS_OAI_LLM_ServiceBase extends DyNTS_AI_LLM_ServiceBase
|
|
|
18
18
|
readonly defaultSettings: DyFM_OAI_CallSettings;
|
|
19
19
|
readonly aiProvider: DyFM_AI_Provider;
|
|
20
20
|
readonly capabilities: DyFM_AI_ProviderCapabilities;
|
|
21
|
-
get debugLog(): boolean;
|
|
22
|
-
get defaultSystemPrompt(): string;
|
|
23
21
|
get defaultModel(): DyFM_OAI_Model | string;
|
|
24
22
|
predefinedRequests: DyNTS_OAI_LLM_Predefined_Requests;
|
|
25
23
|
constructor(set?: DyFM_OAI_Settings);
|
|
26
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Inicializálja az OpenAI client-et a megadott config-gal
|
|
26
|
+
*
|
|
27
|
+
* Reinitializes the OpenAI client with the provided config
|
|
28
|
+
*/
|
|
29
|
+
setup(config: DyFM_AI_Config): void;
|
|
27
30
|
/**
|
|
28
31
|
* Asks the AI to answer a yes/no question
|
|
29
32
|
*
|
|
30
33
|
* Uses the {@link DyNTS_OAI_LLM_Predefined_Requests.yesNo.request} to ask the question,
|
|
31
34
|
* and the {@link DyNTS_OAI_LLM_Predefined_Requests.yesNo.upperCaseYes} to check the answer
|
|
32
35
|
*/
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
issuer: string;
|
|
36
|
-
settings?: DyFM_OAI_CallSettings;
|
|
37
|
-
debugLog?: boolean;
|
|
38
|
-
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
39
|
-
replaceThisInLog?: string;
|
|
40
|
-
}): Promise<boolean>;
|
|
41
|
-
/** the exact same as {@link askYesNoQuestion} */
|
|
36
|
+
requestYesNo(set: DyFM_AI_Message_Input): Promise<boolean>;
|
|
37
|
+
/** the exact same as {@link requestYesNo} */
|
|
42
38
|
/**
|
|
43
39
|
* Asks the AI to answer a percentage question
|
|
44
40
|
*
|
|
45
41
|
* Uses the {@link DyNTS_OAI_LLM_Predefined_Requests.percentageOnly} to ask the question
|
|
46
42
|
*/
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
issuer: string;
|
|
50
|
-
settings?: DyFM_OAI_CallSettings;
|
|
51
|
-
debugLog?: boolean;
|
|
52
|
-
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
53
|
-
replaceThisInLog?: string;
|
|
54
|
-
}): Promise<number>;
|
|
55
|
-
/** the exact same as {@link askPercentageQuestion} */
|
|
43
|
+
requestPercentage(set: DyFM_AI_Message_Input): Promise<number>;
|
|
44
|
+
/** the exact same as {@link requestPercentage} */
|
|
56
45
|
/**
|
|
57
46
|
* Asks the AI to select one of the options from the list
|
|
58
47
|
*
|
|
59
48
|
* Uses the {@link DyNTS_OAI_LLM_Predefined_Requests.selectRequest} to ask the question
|
|
60
49
|
*/
|
|
61
|
-
askSelectQuestion(set: {
|
|
62
|
-
question: string;
|
|
63
|
-
selectFrom: string[];
|
|
64
|
-
issuer: string;
|
|
65
|
-
settings?: DyFM_OAI_CallSettings;
|
|
66
|
-
debugLog?: boolean;
|
|
67
|
-
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
68
|
-
replaceThisInLog?: string;
|
|
69
|
-
}): Promise<string>;
|
|
70
50
|
/** the exact same as {@link askSelectQuestion} */
|
|
71
51
|
/**
|
|
72
52
|
* Asks the AI to select one of the options from the list
|
|
@@ -75,15 +55,7 @@ export declare class DyNTS_OAI_LLM_ServiceBase extends DyNTS_AI_LLM_ServiceBase
|
|
|
75
55
|
*
|
|
76
56
|
* Uses the {@link DyNTS_OAI_LLM_Predefined_Requests.selectRequest} to ask the question
|
|
77
57
|
*/
|
|
78
|
-
requestSelect<T>(set: {
|
|
79
|
-
question: string;
|
|
80
|
-
selectFrom: T[];
|
|
81
|
-
issuer: string;
|
|
82
|
-
settings?: DyFM_OAI_CallSettings;
|
|
83
|
-
debugLog?: boolean;
|
|
84
|
-
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
85
|
-
replaceThisInLog?: string;
|
|
86
|
-
}): Promise<T | {
|
|
58
|
+
requestSelect<T>(set: DyFM_AI_GenericSelect_Input<T>): Promise<T | {
|
|
87
59
|
unparsableResult: string;
|
|
88
60
|
}>;
|
|
89
61
|
/** the exact same as {@link requestSelect} */
|
|
@@ -92,15 +64,9 @@ export declare class DyNTS_OAI_LLM_ServiceBase extends DyNTS_AI_LLM_ServiceBase
|
|
|
92
64
|
*
|
|
93
65
|
* Uses the {@link DyNTS_OAI_LLM_Predefined_Requests.multiselect} to ask the question
|
|
94
66
|
*/
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
issuer: string;
|
|
99
|
-
settings?: DyFM_OAI_CallSettings;
|
|
100
|
-
debugLog?: boolean;
|
|
101
|
-
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
102
|
-
replaceThisInLog?: string;
|
|
103
|
-
}): Promise<string[]>;
|
|
67
|
+
requestMultiselect<T>(set: DyFM_AI_GenericMultiSelect_Input<T, DyFM_OAI_CallSettings>): Promise<T[] | {
|
|
68
|
+
unparsableResult: string;
|
|
69
|
+
}>;
|
|
104
70
|
/** the exact same as {@link askMultipleSelectQuestionWithOptions} */
|
|
105
71
|
/**
|
|
106
72
|
* Asks the AI to select one or more of the options from the list
|
|
@@ -109,15 +75,6 @@ export declare class DyNTS_OAI_LLM_ServiceBase extends DyNTS_AI_LLM_ServiceBase
|
|
|
109
75
|
*
|
|
110
76
|
* Uses the {@link DyNTS_OAI_LLM_Predefined_Requests.multiselect} to ask the question
|
|
111
77
|
*/
|
|
112
|
-
requestMultipleSelect<T>(set: {
|
|
113
|
-
question: string;
|
|
114
|
-
options: T[];
|
|
115
|
-
issuer: string;
|
|
116
|
-
settings?: DyFM_OAI_CallSettings;
|
|
117
|
-
debugLog?: boolean;
|
|
118
|
-
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
119
|
-
replaceThisInLog?: string;
|
|
120
|
-
}): Promise<T[]>;
|
|
121
78
|
/** the exact same as {@link requestMultipleSelect} */
|
|
122
79
|
/**
|
|
123
80
|
* Asks the AI to answer a question that must result a JSON object
|
|
@@ -128,14 +85,7 @@ export declare class DyNTS_OAI_LLM_ServiceBase extends DyNTS_AI_LLM_ServiceBase
|
|
|
128
85
|
*
|
|
129
86
|
* (uses {@link DyFM_safeParseJSON})
|
|
130
87
|
*/
|
|
131
|
-
|
|
132
|
-
question: string;
|
|
133
|
-
issuer: string;
|
|
134
|
-
settings?: DyFM_OAI_CallSettings;
|
|
135
|
-
debugLog?: boolean;
|
|
136
|
-
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
137
|
-
replaceThisInLog?: string;
|
|
138
|
-
}): Promise<T | {
|
|
88
|
+
requestJSON<T = any>(set: DyFM_AI_Message_Input<DyFM_OAI_CallSettings>): Promise<T | {
|
|
139
89
|
unparsableResult: string;
|
|
140
90
|
}>;
|
|
141
91
|
/** the exact same as {@link askJSONQuestion} */
|
|
@@ -148,18 +98,10 @@ export declare class DyNTS_OAI_LLM_ServiceBase extends DyNTS_AI_LLM_ServiceBase
|
|
|
148
98
|
*
|
|
149
99
|
* (uses {@link DyFM_safeParseJSON})
|
|
150
100
|
*/
|
|
151
|
-
|
|
152
|
-
question: string;
|
|
153
|
-
keysDescription: string;
|
|
154
|
-
issuer: string;
|
|
155
|
-
settings?: DyFM_OAI_CallSettings;
|
|
156
|
-
debugLog?: boolean;
|
|
157
|
-
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
158
|
-
replaceThisInLog?: string;
|
|
159
|
-
}): Promise<T | {
|
|
101
|
+
requestJSONQuestionWithKeysDescription<T = any>(set: DyFM_AI_JSONKeysDescription_Input<DyFM_OAI_CallSettings>): Promise<T | {
|
|
160
102
|
unparsableResult: string;
|
|
161
103
|
}>;
|
|
162
|
-
/** the exact same as {@link
|
|
104
|
+
/** the exact same as {@link requestJSONQuestionWithKeysDescription} */
|
|
163
105
|
/**
|
|
164
106
|
* Asks the AI to answer a question that must result a JSON object with specific keys
|
|
165
107
|
*
|
|
@@ -169,15 +111,7 @@ export declare class DyNTS_OAI_LLM_ServiceBase extends DyNTS_AI_LLM_ServiceBase
|
|
|
169
111
|
*
|
|
170
112
|
* (uses {@link DyFM_safeParseJSON})
|
|
171
113
|
*/
|
|
172
|
-
|
|
173
|
-
question: string;
|
|
174
|
-
keys: string[];
|
|
175
|
-
issuer: string;
|
|
176
|
-
settings?: DyFM_OAI_CallSettings;
|
|
177
|
-
debugLog?: boolean;
|
|
178
|
-
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
179
|
-
replaceThisInLog?: string;
|
|
180
|
-
}): Promise<T | {
|
|
114
|
+
requestJSONWithExactKeys<T = any>(set: DyFM_AI_JSONExactKeys_Input<DyFM_OAI_CallSettings>): Promise<T | {
|
|
181
115
|
unparsableResult: string;
|
|
182
116
|
}>;
|
|
183
117
|
/** the exact same as {@link askJSONQuestionWithExactKeys} */
|
|
@@ -190,68 +124,31 @@ export declare class DyNTS_OAI_LLM_ServiceBase extends DyNTS_AI_LLM_ServiceBase
|
|
|
190
124
|
*
|
|
191
125
|
* (uses {@link DyFM_Object.safeParseList})
|
|
192
126
|
*/
|
|
193
|
-
askListQuestion(set: {
|
|
194
|
-
question: string;
|
|
195
|
-
issuer: string;
|
|
196
|
-
settings?: DyFM_OAI_CallSettings;
|
|
197
|
-
debugLog?: boolean;
|
|
198
|
-
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
199
|
-
replaceThisInLog?: string;
|
|
200
|
-
}): Promise<string[]>;
|
|
201
127
|
/** the exact same as {@link askListQuestion} */
|
|
202
128
|
/** the exact same as {@link askListQuestion} */
|
|
129
|
+
requestList<T = any>(set: DyFM_AI_Message_Input<DyFM_OAI_CallSettings>): Promise<T[]>;
|
|
203
130
|
/**
|
|
204
131
|
* Asks the AI to answer a question
|
|
205
132
|
*
|
|
206
133
|
* Uses the {@link resolveSimpleUserMessage}
|
|
207
134
|
*/
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
214
|
-
replaceThisInLog?: string;
|
|
215
|
-
}): Promise<string>;
|
|
216
|
-
/** the exact same as {@link askQuestion} */
|
|
217
|
-
/** the exact same as {@link askQuestion} */
|
|
218
|
-
/** the exact same as {@link askQuestion} */
|
|
219
|
-
/** the exact same as {@link askQuestion} */
|
|
135
|
+
requestSimpleMessage(set: DyFM_AI_Message_Input<DyFM_OAI_CallSettings>): Promise<string>;
|
|
136
|
+
/** the exact same as {@link requestSimpleMessage} */
|
|
137
|
+
/** the exact same as {@link requestSimpleMessage} */
|
|
138
|
+
/** the exact same as {@link requestSimpleMessage} */
|
|
139
|
+
/** the exact same as {@link requestSimpleMessage} */
|
|
220
140
|
/**
|
|
221
141
|
* Resolves a simple user message and returns the answer as string
|
|
222
142
|
*
|
|
223
143
|
* Uses the {@link resolveMessage}
|
|
224
144
|
*/
|
|
225
|
-
resolveSimpleUserMessage(set: {
|
|
226
|
-
message: string;
|
|
227
|
-
issuer: string;
|
|
228
|
-
settings?: DyFM_OAI_CallSettings;
|
|
229
|
-
}): Promise<string>;
|
|
230
145
|
/** the exact same as {@link resolveSimpleUserMessage} */
|
|
231
146
|
/**
|
|
232
147
|
* Resolves a conversation
|
|
233
148
|
*
|
|
234
149
|
* Uses the {@link getMessageCreateInput}
|
|
235
150
|
*/
|
|
236
|
-
resolveMessage(set:
|
|
237
|
-
conversation: DyFM_AI_Message[];
|
|
238
|
-
issuer: string;
|
|
239
|
-
settings?: DyFM_OAI_CallSettings;
|
|
240
|
-
getFullResponse?: boolean;
|
|
241
|
-
}): Promise<string | ChatCompletion>;
|
|
242
|
-
/**
|
|
243
|
-
* Logs the question if the debugLog is true
|
|
244
|
-
*/
|
|
245
|
-
protected logQuestion(set: {
|
|
246
|
-
question: string;
|
|
247
|
-
replaceThisInLog?: string;
|
|
248
|
-
debugLog?: boolean;
|
|
249
|
-
}): void;
|
|
250
|
-
/**
|
|
251
|
-
* olvasható mondatszerű-listaszerű formába teszi a listaelemeket
|
|
252
|
-
* pl.: ['a', 'b', 'c'] -> '"a", "b" or "c"'
|
|
253
|
-
*/
|
|
254
|
-
getTextListAsText(list: string[]): string;
|
|
151
|
+
resolveMessage(set: DyFM_AI_ConversationBase_Input<DyFM_OAI_CallSettings>): Promise<string | ChatCompletion>;
|
|
255
152
|
/**
|
|
256
153
|
* Creates a message create input
|
|
257
154
|
*
|
|
@@ -262,61 +159,11 @@ export declare class DyNTS_OAI_LLM_ServiceBase extends DyNTS_AI_LLM_ServiceBase
|
|
|
262
159
|
issuer: string;
|
|
263
160
|
settings?: DyFM_OAI_CallSettings;
|
|
264
161
|
}): ChatCompletionCreateParamsBase;
|
|
265
|
-
protected getDefaultSystemMessage(settings: DyFM_OAI_CallSettings): DyFM_AI_Message;
|
|
266
|
-
protected validateConversation(conversation: DyFM_AI_Message[]): void;
|
|
267
|
-
/**
|
|
268
|
-
* Inicializálja az OpenAI client-et a megadott config-gal
|
|
269
|
-
*
|
|
270
|
-
* Reinitializes the OpenAI client with the provided config
|
|
271
|
-
*/
|
|
272
|
-
initialize(config: DyFM_AI_Config): void;
|
|
273
162
|
/**
|
|
274
163
|
* Teszteli a kapcsolatot az OpenAI API-val
|
|
275
164
|
*
|
|
276
165
|
* Tests the connection to OpenAI API
|
|
277
166
|
*/
|
|
278
167
|
testConnection(issuer: string): Promise<boolean>;
|
|
279
|
-
/**
|
|
280
|
-
* Meghívja az LLM-et system és user message-szel
|
|
281
|
-
*
|
|
282
|
-
* Calls the LLM with system and user messages
|
|
283
|
-
*/
|
|
284
|
-
callLLM(systemMessage: string, userMessage: string, settings?: DyFM_AI_CallSettings, issuer?: string): Promise<string>;
|
|
285
|
-
/**
|
|
286
|
-
* Meghívja az LLM-et üzenet history-val
|
|
287
|
-
*
|
|
288
|
-
* Calls the LLM with message history
|
|
289
|
-
*/
|
|
290
|
-
callLLMWithHistory(messages: DyFM_AI_Message[], settings?: DyFM_AI_CallSettings, issuer?: string): Promise<string>;
|
|
291
|
-
/**
|
|
292
|
-
* Meghívja az LLM-et és visszaadja a raw response-t
|
|
293
|
-
*
|
|
294
|
-
* Calls the LLM and returns raw response
|
|
295
|
-
*/
|
|
296
|
-
callLLMRaw(messages: DyFM_AI_Message[], settings?: DyFM_AI_CallSettings, issuer?: string): Promise<DyFM_AI_LLM_Response>;
|
|
297
|
-
/**
|
|
298
|
-
* Küld egy egyszerű üzenetet az LLM-nek
|
|
299
|
-
*
|
|
300
|
-
* Sends a simple message to the LLM
|
|
301
|
-
*/
|
|
302
|
-
sendMessage(set: DyFM_AI_SimpleMessage_Input): Promise<string>;
|
|
303
|
-
/**
|
|
304
|
-
* Kérdez egy kérdést és JSON választ vár exact keys-szel
|
|
305
|
-
*
|
|
306
|
-
* Asks a question and expects JSON response with exact keys
|
|
307
|
-
*/
|
|
308
|
-
requestJSONWithExactKeys<T = any>(set: DyFM_AI_JSONExactKeys_Input): Promise<T>;
|
|
309
|
-
/**
|
|
310
|
-
* Kérdez egy kérdést és több választ vár
|
|
311
|
-
*
|
|
312
|
-
* Asks a question and expects multiple responses
|
|
313
|
-
*/
|
|
314
|
-
requestMultiselect<T = any>(set: DyFM_AI_GenericMultiSelect_Input<T>): Promise<T[]>;
|
|
315
|
-
/**
|
|
316
|
-
* Konvertálja a generic AI settings-et OpenAI specifikus settings-re
|
|
317
|
-
*
|
|
318
|
-
* Converts generic AI settings to OpenAI-specific settings
|
|
319
|
-
*/
|
|
320
|
-
private convertToOAISettings;
|
|
321
168
|
}
|
|
322
169
|
//# sourceMappingURL=oai-llm.service-base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oai-llm.service-base.d.ts","sourceRoot":"","sources":["../../../../../../src/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAE5G,OAAO,EACL,eAAe,EAEf,gBAAgB,EAChB,4BAA4B,
|
|
1
|
+
{"version":3,"file":"oai-llm.service-base.d.ts","sourceRoot":"","sources":["../../../../../../src/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAE5G,OAAO,EACL,eAAe,EAEf,gBAAgB,EAChB,4BAA4B,EAE5B,cAAc,EAEf,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,8BAA8B,EAA8B,MAAM,mCAAmC,CAAC;AAC/G,OAAO,EAAE,iCAAiC,EAAE,MAAM,6DAA6D,CAAC;AAGhH,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EACL,qBAAqB,EACrB,2BAA2B,EAC3B,gCAAgC,EAChC,iCAAiC,EACjC,2BAA2B,EAE3B,8BAA8B,EAC/B,MAAM,sCAAsC,CAAC;AAG9C;;;;;;GAMG;AAIH,qBAAa,yBAA0B,SAAQ,wBAAwB;IAMrE,MAAM,EAAE,MAAM,CAAC;IAEf,QAAQ,CAAC,eAAe,EAAE,qBAAqB,CAAC;IAGhD,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAA2B;IAEhE,QAAQ,CAAC,YAAY,EAAE,4BAA4B,CAYjD;IAUF,IAAa,YAAY,IAAI,cAAc,GAAG,MAAM,CAEnD;IAED,kBAAkB,EAAE,iCAAiC,CAA2C;gBAG9F,GAAG,CAAC,EAAE,iBAAiB;IAoBzB;;;;OAIG;IACH,KAAK,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI;IAQnC;;;;;OAKG;IACG,YAAY,CAChB,GAAG,EAAE,qBAAqB,GACzB,OAAO,CAAC,OAAO,CAAC;IAOnB,6CAA6C;IAG7C;;;;OAIG;IACG,iBAAiB,CACr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