@futdevpro/nts-dynamo 1.14.34 → 1.14.36

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.
Files changed (42) hide show
  1. package/build/_modules/ai/_models/ai-input-interfaces.d.ts +20 -28
  2. package/build/_modules/ai/_models/ai-input-interfaces.d.ts.map +1 -1
  3. package/build/_modules/ai/_models/ai-input-interfaces.js +3 -0
  4. package/build/_modules/ai/_models/ai-input-interfaces.js.map +1 -1
  5. package/build/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.d.ts +14 -58
  6. package/build/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.d.ts.map +1 -1
  7. package/build/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.js +138 -147
  8. package/build/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.js.map +1 -1
  9. package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.d.ts +27 -180
  10. package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.d.ts.map +1 -1
  11. package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.js +147 -328
  12. package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.js.map +1 -1
  13. package/build/_modules/ai/_services/ai-llm-chat.service-base.d.ts +22 -14
  14. package/build/_modules/ai/_services/ai-llm-chat.service-base.d.ts.map +1 -1
  15. package/build/_modules/ai/_services/ai-llm-chat.service-base.js.map +1 -1
  16. package/build/_modules/ai/_services/ai-llm.service-base.d.ts +52 -21
  17. package/build/_modules/ai/_services/ai-llm.service-base.d.ts.map +1 -1
  18. package/build/_modules/ai/_services/ai-llm.service-base.js +171 -0
  19. package/build/_modules/ai/_services/ai-llm.service-base.js.map +1 -1
  20. package/build/_modules/ai/_services/ai-provider.service-base.d.ts +1 -1
  21. package/build/_modules/ai/_services/ai-provider.service-base.d.ts.map +1 -1
  22. package/build/_modules/assistant/_services/ass-io.control-service.js +2 -2
  23. package/build/_modules/assistant/_services/ass-io.control-service.js.map +1 -1
  24. package/build/_modules/assistant/_services/ass-main.control-service.d.ts +5 -2
  25. package/build/_modules/assistant/_services/ass-main.control-service.d.ts.map +1 -1
  26. package/build/_modules/assistant/_services/ass-main.control-service.js +12 -0
  27. package/build/_modules/assistant/_services/ass-main.control-service.js.map +1 -1
  28. package/build/_modules/discord-assistant/_services/dias-chunk.data-service.js +9 -9
  29. package/build/_modules/discord-assistant/_services/dias-chunk.data-service.js.map +1 -1
  30. package/build/_modules/discord-assistant/_services/dias-io.control-service.js +2 -2
  31. package/build/_modules/discord-assistant/_services/dias-io.control-service.js.map +1 -1
  32. package/package.json +1 -1
  33. package/src/_modules/ai/_models/ai-input-interfaces.ts +63 -26
  34. package/src/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.ts +99 -139
  35. package/src/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.ts +246 -294
  36. package/src/_modules/ai/_services/ai-llm-chat.service-base.ts +36 -16
  37. package/src/_modules/ai/_services/ai-llm.service-base.ts +272 -28
  38. package/src/_modules/ai/_services/ai-provider.service-base.ts +1 -1
  39. package/src/_modules/assistant/_services/ass-io.control-service.ts +2 -2
  40. package/src/_modules/assistant/_services/ass-main.control-service.ts +30 -8
  41. package/src/_modules/discord-assistant/_services/dias-chunk.data-service.ts +9 -9
  42. package/src/_modules/discord-assistant/_services/dias-io.control-service.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@futdevpro/nts-dynamo",
3
- "version": "01.14.34",
3
+ "version": "01.14.36",
4
4
  "description": "Dynamic NodeTS (NodeJS-Typescript), MongoDB Backend System Framework by Future Development Program Ltd.",
5
5
  "DyBu_settings": {
6
6
  "packageType": "server-package",
@@ -2,78 +2,115 @@ import { DyFM_AI_MessageRole } from '@futdevpro/fsm-dynamo/ai';
2
2
  import { DyFM_AI_Message } from '@futdevpro/fsm-dynamo/ai';
3
3
  import { DyFM_AI_CallSettings } from '@futdevpro/fsm-dynamo/ai';
4
4
 
5
- export interface DyFM_AI_Base_Input {
5
+ export interface DyFM_AI_Base_Input<
6
+ T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
7
+ > {
8
+ /* message: string; */
6
9
  issuer: string;
7
- settings?: DyFM_AI_CallSettings;
10
+ settings?: T_AISettings;
8
11
  debugLog?: boolean;
12
+ replaceThisInLog?: string;
13
+ getFullResponse?: boolean;
9
14
  }
10
15
 
11
- export interface DyFM_AI_Question_Input extends DyFM_AI_Base_Input {
12
- question: string;
13
- replaceThisInLog?: string;
16
+ export interface DyFM_AI_Message_Input<
17
+ T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
18
+ > extends DyFM_AI_Base_Input<T_AISettings> {
19
+ message: string;
14
20
  }
15
21
 
16
- export interface DyFM_AI_ListSelect_Input extends DyFM_AI_Question_Input {
22
+ export interface DyFM_AI_ListSelect_Input<
23
+ T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings,
24
+ > extends DyFM_AI_Message_Input<T_AISettings> {
17
25
  selectFrom: string[];
18
26
  }
19
27
 
20
- export interface DyFM_AI_GenericSelect_Input<T> extends DyFM_AI_Question_Input {
28
+ export interface DyFM_AI_GenericSelect_Input<
29
+ T,
30
+ T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
31
+ > extends DyFM_AI_Message_Input<T_AISettings> {
21
32
  selectFrom: T[];
22
33
  }
23
34
 
24
- export interface DyFM_AI_MultiSelect_Input extends DyFM_AI_Question_Input {
35
+ export interface DyFM_AI_MultiSelect_Input<
36
+ T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
37
+ > extends DyFM_AI_Message_Input<T_AISettings> {
25
38
  options: string[];
26
39
  }
27
40
 
28
- export interface DyFM_AI_GenericMultiSelect_Input<T> extends DyFM_AI_Question_Input {
41
+ export interface DyFM_AI_GenericMultiSelect_Input<
42
+ T,
43
+ T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
44
+ > extends DyFM_AI_Message_Input<T_AISettings> {
29
45
  options: T[];
30
46
  }
31
47
 
32
- export interface DyFM_AI_JSONKeysDescription_Input extends DyFM_AI_Question_Input {
48
+ export interface DyFM_AI_JSONKeysDescription_Input<
49
+ T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
50
+ > extends DyFM_AI_Message_Input<T_AISettings> {
33
51
  keysDescription: string;
34
52
  }
35
53
 
36
- export interface DyFM_AI_JSONExactKeys_Input extends DyFM_AI_Question_Input {
54
+ export interface DyFM_AI_JSONExactKeys_Input<
55
+ T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
56
+ > extends DyFM_AI_Message_Input<T_AISettings> {
37
57
  keys: string[];
38
58
  }
39
59
 
40
- export interface DyFM_AI_SimpleMessage_Input extends DyFM_AI_Base_Input {
60
+ /* export interface DyFM_AI_SimpleMessage_Input extends DyFM_AI_Base_Input {
41
61
  message: string;
42
- }
62
+ } */
43
63
 
44
- export interface DyFM_AI_ConversationBase_Input extends DyFM_AI_Base_Input {
64
+ export interface DyFM_AI_ConversationBase_Input<
65
+ T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
66
+ > extends DyFM_AI_Base_Input<T_AISettings> {
67
+ message?: string;
45
68
  conversation: DyFM_AI_Message[];
46
- replaceThisInLog?: string;
69
+ /* replaceThisInLog?: string; */
47
70
  }
48
71
 
49
- export interface DyFM_AI_ConversationQuestion_Input extends DyFM_AI_ConversationBase_Input {
50
- question: string;
51
- }
72
+ /* export interface DyFM_AI_ConversationMessage_Input extends DyFM_AI_ConversationBase_Input {
73
+ message: string;
74
+ } */
52
75
 
53
- export interface DyFM_AI_ConversationSelect_Input extends DyFM_AI_ConversationQuestion_Input {
76
+ export interface DyFM_AI_ConversationSelect_Input<
77
+ T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
78
+ > extends DyFM_AI_ConversationBase_Input<T_AISettings> {
54
79
  selectFrom: string[];
55
80
  }
56
81
 
57
- export interface DyFM_AI_ConversationGenericSelect_Input<T> extends DyFM_AI_ConversationQuestion_Input {
82
+ export interface DyFM_AI_ConversationGenericSelect_Input<
83
+ T,
84
+ T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
85
+ > extends DyFM_AI_ConversationBase_Input<T_AISettings> {
58
86
  selectFrom: T[];
59
87
  }
60
88
 
61
- export interface DyFM_AI_ConversationMultiSelect_Input extends DyFM_AI_ConversationQuestion_Input {
89
+ export interface DyFM_AI_ConversationMultiSelect_Input<
90
+ T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
91
+ > extends DyFM_AI_ConversationBase_Input<T_AISettings> {
62
92
  options: string[];
63
93
  }
64
94
 
65
- export interface DyFM_AI_ConversationGenericMultiSelect_Input<T> extends DyFM_AI_ConversationQuestion_Input {
95
+ export interface DyFM_AI_ConversationGenericMultiSelect_Input<
96
+ T,
97
+ T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
98
+ > extends DyFM_AI_ConversationBase_Input<T_AISettings> {
66
99
  options: T[];
67
100
  }
68
101
 
69
- export interface DyFM_AI_ConversationJSONKeysDescription_Input extends DyFM_AI_ConversationQuestion_Input {
102
+ export interface DyFM_AI_ConversationJSONKeysDescription_Input<
103
+ T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
104
+ > extends DyFM_AI_ConversationBase_Input<T_AISettings> {
70
105
  keysDescription: string;
71
106
  }
72
107
 
73
- export interface DyFM_AI_ConversationJSONExactKeys_Input extends DyFM_AI_ConversationQuestion_Input {
108
+ export interface DyFM_AI_ConversationJSONExactKeys_Input<
109
+ T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
110
+ > extends DyFM_AI_ConversationBase_Input<T_AISettings> {
74
111
  keys: string[];
75
112
  }
76
113
 
77
- export interface DyFM_AI_ConversationGetAnswer_Input extends DyFM_AI_ConversationBase_Input {
114
+ /* export interface DyFM_AI_ConversationGetAnswer_Input extends DyFM_AI_ConversationBase_Input {
78
115
  newMessage?: string;
79
- }
116
+ } */