@smythos/sre 1.7.40 → 1.7.42
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/dist/index.js +49 -42
- package/dist/index.js.map +1 -1
- package/dist/types/Components/AgentPlugin.class.d.ts +1 -1
- package/dist/types/Components/RAG/DataSourceCleaner.class.d.ts +4 -4
- package/dist/types/Components/RAG/DataSourceComponent.class.d.ts +5 -1
- package/dist/types/config.d.ts +1 -0
- package/dist/types/helpers/Conversation.helper.d.ts +10 -13
- package/dist/types/helpers/TemplateString.helper.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/subsystems/IO/VectorDB.service/VectorDBConnector.d.ts +1 -0
- package/dist/types/subsystems/LLMManager/LLM.helper.d.ts +19 -0
- package/dist/types/subsystems/LLMManager/LLM.service/connectors/GoogleAI.class.d.ts +15 -10
- package/dist/types/types/LLM.types.d.ts +23 -0
- package/package.json +1 -1
- package/src/Components/AgentPlugin.class.ts +20 -3
- package/src/Components/Classifier.class.ts +79 -16
- package/src/Components/ForEach.class.ts +34 -6
- package/src/Components/GenAILLM.class.ts +54 -23
- package/src/Components/LLMAssistant.class.ts +56 -21
- package/src/Components/RAG/DataSourceCleaner.class.ts +13 -11
- package/src/Components/RAG/DataSourceComponent.class.ts +39 -13
- package/src/Components/RAG/DataSourceIndexer.class.ts +18 -12
- package/src/Components/RAG/DataSourceLookup.class.ts +14 -10
- package/src/Components/ScrapflyWebScrape.class.ts +7 -0
- package/src/config.ts +1 -0
- package/src/helpers/Conversation.helper.ts +112 -26
- package/src/helpers/TemplateString.helper.ts +6 -5
- package/src/index.ts +213 -212
- package/src/index.ts.bak +213 -212
- package/src/subsystems/IO/VectorDB.service/VectorDBConnector.ts +1 -0
- package/src/subsystems/IO/VectorDB.service/connectors/PineconeVectorDB.class.ts +11 -0
- package/src/subsystems/IO/VectorDB.service/embed/index.ts +9 -11
- package/src/subsystems/LLMManager/LLM.helper.ts +25 -0
- package/src/subsystems/LLMManager/LLM.service/LLMConnector.ts +1 -1
- package/src/subsystems/LLMManager/LLM.service/connectors/GoogleAI.class.ts +190 -146
- package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/utils.ts +1 -1
- package/src/subsystems/ObservabilityManager/Telemetry.service/connectors/OTel/OTel.class.ts +402 -66
- package/src/types/LLM.types.ts +24 -0
- package/src/utils/data.utils.ts +6 -4
- package/src/Components/DataSourceIndexer.class.ts +0 -295
package/src/index.ts.bak
CHANGED
|
@@ -1,215 +1,216 @@
|
|
|
1
|
-
//!!! This is a generated file, do not edit it directly !!!//
|
|
1
|
+
//!!! This is a generated file, do not edit it directly !!!//
|
|
2
|
+
|
|
3
|
+
export { version } from '../package.json';
|
|
4
|
+
|
|
2
5
|
|
|
3
|
-
export { version } from '../package.json';
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './Components/
|
|
11
|
-
export * from './Components/
|
|
12
|
-
export * from './Components/
|
|
13
|
-
export * from './Components/
|
|
14
|
-
export * from './Components/
|
|
15
|
-
export * from './Components/
|
|
16
|
-
export * from './Components/
|
|
17
|
-
export * from './Components/
|
|
18
|
-
export * from './Components/
|
|
19
|
-
export * from './Components/
|
|
20
|
-
export * from './Components/
|
|
21
|
-
export * from './Components/
|
|
22
|
-
export * from './Components/
|
|
23
|
-
export * from './Components/
|
|
24
|
-
export * from './Components/
|
|
25
|
-
export * from './Components/
|
|
26
|
-
export * from './Components/
|
|
27
|
-
export * from './Components/
|
|
28
|
-
export * from './Components/
|
|
29
|
-
export * from './Components/
|
|
30
|
-
export * from './Components/
|
|
31
|
-
export * from './Components/
|
|
32
|
-
export * from './Components/
|
|
33
|
-
export * from './Components/
|
|
34
|
-
export * from './Components/
|
|
35
|
-
export * from './Components/
|
|
36
|
-
export * from './Components/
|
|
37
|
-
export * from './Components/
|
|
38
|
-
export * from './Components/
|
|
39
|
-
export * from './Components/
|
|
40
|
-
export * from './Components/
|
|
41
|
-
export * from './Components/
|
|
42
|
-
export * from './Components/
|
|
43
|
-
export * from './Components/
|
|
44
|
-
export * from './Components/
|
|
45
|
-
export * from './Components/
|
|
46
|
-
export * from './Components/
|
|
47
|
-
export * from './
|
|
48
|
-
export * from './
|
|
49
|
-
export * from './Core/
|
|
50
|
-
export * from './Core/
|
|
51
|
-
export * from './Core/
|
|
52
|
-
export * from './Core/
|
|
53
|
-
export * from './Core/
|
|
54
|
-
export * from './Core/
|
|
55
|
-
export * from './Core/
|
|
56
|
-
export * from './
|
|
57
|
-
export * from './
|
|
58
|
-
export * from './helpers/
|
|
59
|
-
export * from './helpers/
|
|
60
|
-
export * from './helpers/
|
|
61
|
-
export * from './helpers/
|
|
62
|
-
export * from './helpers/
|
|
63
|
-
export * from './helpers/
|
|
64
|
-
export * from './helpers/
|
|
65
|
-
export * from './helpers/
|
|
66
|
-
export * from './helpers/
|
|
67
|
-
export * from './helpers/
|
|
68
|
-
export * from './helpers/
|
|
69
|
-
export * from './helpers/
|
|
70
|
-
export * from './
|
|
71
|
-
export * from './
|
|
72
|
-
export * from './types/
|
|
73
|
-
export * from './types/
|
|
74
|
-
export * from './types/
|
|
75
|
-
export * from './types/
|
|
76
|
-
export * from './types/
|
|
77
|
-
export * from './types/
|
|
78
|
-
export * from './types/
|
|
79
|
-
export * from './types/
|
|
80
|
-
export * from './types/
|
|
81
|
-
export * from './types/
|
|
82
|
-
export * from './
|
|
83
|
-
export * from './
|
|
84
|
-
export * from './Components/APICall/
|
|
85
|
-
export * from './Components/APICall/
|
|
86
|
-
export * from './Components/APICall/
|
|
87
|
-
export * from './Components/APICall/
|
|
88
|
-
export * from './Components/APICall/
|
|
89
|
-
export * from './Components/APICall/
|
|
90
|
-
export * from './Components/APICall/
|
|
91
|
-
export * from './Components/
|
|
92
|
-
export * from './Components/
|
|
93
|
-
export * from './Components/
|
|
94
|
-
export * from './Components/RAG/
|
|
95
|
-
export * from './Components/RAG/
|
|
96
|
-
export * from './Components/
|
|
97
|
-
export * from './Components/Triggers/
|
|
98
|
-
export * from './Components/Triggers/
|
|
99
|
-
export * from './Components/Triggers/
|
|
100
|
-
export * from './
|
|
101
|
-
export * from './subsystems/AgentManager/Agent.
|
|
102
|
-
export * from './subsystems/AgentManager/
|
|
103
|
-
export * from './subsystems/AgentManager/
|
|
104
|
-
export * from './subsystems/AgentManager/
|
|
105
|
-
export * from './subsystems/AgentManager/
|
|
106
|
-
export * from './subsystems/AgentManager/
|
|
107
|
-
export * from './subsystems/AgentManager/
|
|
108
|
-
export * from './subsystems/AgentManager/
|
|
109
|
-
export * from './subsystems/AgentManager/
|
|
110
|
-
export * from './subsystems/
|
|
111
|
-
export * from './subsystems/LLMManager/
|
|
112
|
-
export * from './subsystems/LLMManager/LLM.
|
|
113
|
-
export * from './subsystems/LLMManager/
|
|
114
|
-
export * from './subsystems/LLMManager/
|
|
115
|
-
export * from './subsystems/
|
|
116
|
-
export * from './subsystems/MemoryManager/
|
|
117
|
-
export * from './subsystems/MemoryManager/
|
|
118
|
-
export * from './subsystems/
|
|
119
|
-
export * from './subsystems/Security/
|
|
120
|
-
export * from './subsystems/
|
|
121
|
-
export * from './subsystems/AgentManager/AgentData.service/
|
|
122
|
-
export * from './subsystems/AgentManager/
|
|
123
|
-
export * from './subsystems/AgentManager/Component.service/
|
|
124
|
-
export * from './subsystems/AgentManager/
|
|
125
|
-
export * from './subsystems/AgentManager/Scheduler.service/
|
|
126
|
-
export * from './subsystems/AgentManager/Scheduler.service/
|
|
127
|
-
export * from './subsystems/AgentManager/Scheduler.service/
|
|
128
|
-
export * from './subsystems/
|
|
129
|
-
export * from './subsystems/ComputeManager/Code.service/
|
|
130
|
-
export * from './subsystems/
|
|
131
|
-
export * from './subsystems/IO/CLI.service/
|
|
132
|
-
export * from './subsystems/IO/
|
|
133
|
-
export * from './subsystems/IO/NKV.service/
|
|
134
|
-
export * from './subsystems/IO/
|
|
135
|
-
export * from './subsystems/IO/Router.service/
|
|
136
|
-
export * from './subsystems/IO/
|
|
137
|
-
export * from './subsystems/IO/Storage.service/
|
|
138
|
-
export * from './subsystems/IO/Storage.service/
|
|
139
|
-
export * from './subsystems/IO/
|
|
140
|
-
export * from './subsystems/IO/VectorDB.service/
|
|
141
|
-
export * from './subsystems/
|
|
142
|
-
export * from './subsystems/LLMManager/LLM.service/
|
|
143
|
-
export * from './subsystems/LLMManager/LLM.service/
|
|
144
|
-
export * from './subsystems/LLMManager/
|
|
145
|
-
export * from './subsystems/LLMManager/ModelsProvider.service/
|
|
146
|
-
export * from './subsystems/
|
|
147
|
-
export * from './subsystems/MemoryManager/Cache.service/
|
|
148
|
-
export * from './subsystems/MemoryManager/
|
|
149
|
-
export * from './subsystems/
|
|
150
|
-
export * from './subsystems/ObservabilityManager/Log.service/
|
|
151
|
-
export * from './subsystems/ObservabilityManager/
|
|
152
|
-
export * from './subsystems/ObservabilityManager/Telemetry.service/
|
|
153
|
-
export * from './subsystems/
|
|
154
|
-
export * from './subsystems/Security/AccessControl/
|
|
155
|
-
export * from './subsystems/Security/AccessControl/
|
|
156
|
-
export * from './subsystems/Security/
|
|
157
|
-
export * from './subsystems/Security/Account.service/
|
|
158
|
-
export * from './subsystems/Security/
|
|
159
|
-
export * from './subsystems/Security/Credentials/
|
|
160
|
-
export * from './subsystems/Security/
|
|
161
|
-
export * from './subsystems/Security/ManagedVault.service/
|
|
162
|
-
export * from './subsystems/Security/
|
|
163
|
-
export * from './subsystems/Security/Vault.service/
|
|
164
|
-
export * from './subsystems/Security/Vault.service/
|
|
165
|
-
export * from './subsystems/
|
|
166
|
-
export * from './subsystems/AgentManager/AgentData.service/connectors/
|
|
167
|
-
export * from './subsystems/AgentManager/AgentData.service/connectors/
|
|
168
|
-
export * from './subsystems/AgentManager/
|
|
169
|
-
export * from './subsystems/AgentManager/
|
|
170
|
-
export * from './subsystems/
|
|
171
|
-
export * from './subsystems/
|
|
172
|
-
export * from './subsystems/IO/NKV.service/connectors/
|
|
173
|
-
export * from './subsystems/IO/NKV.service/connectors/
|
|
174
|
-
export * from './subsystems/IO/
|
|
175
|
-
export * from './subsystems/IO/Router.service/connectors/
|
|
176
|
-
export * from './subsystems/IO/
|
|
177
|
-
export * from './subsystems/IO/Storage.service/connectors/
|
|
178
|
-
export * from './subsystems/IO/
|
|
179
|
-
export * from './subsystems/IO/VectorDB.service/connectors/
|
|
180
|
-
export * from './subsystems/IO/VectorDB.service/connectors/
|
|
181
|
-
export * from './subsystems/IO/VectorDB.service/
|
|
182
|
-
export * from './subsystems/IO/VectorDB.service/embed/
|
|
183
|
-
export * from './subsystems/IO/VectorDB.service/embed/
|
|
184
|
-
export * from './subsystems/IO/VectorDB.service/embed/
|
|
185
|
-
export * from './subsystems/
|
|
186
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
187
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
188
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
189
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
190
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
191
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
192
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
193
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
194
|
-
export * from './subsystems/LLMManager/
|
|
195
|
-
export * from './subsystems/
|
|
196
|
-
export * from './subsystems/MemoryManager/Cache.service/connectors/
|
|
197
|
-
export * from './subsystems/MemoryManager/Cache.service/connectors/
|
|
198
|
-
export * from './subsystems/MemoryManager/Cache.service/connectors/
|
|
199
|
-
export * from './subsystems/
|
|
200
|
-
export * from './subsystems/
|
|
201
|
-
export * from './subsystems/Security/Account.service/connectors/
|
|
202
|
-
export * from './subsystems/Security/Account.service/connectors/
|
|
203
|
-
export * from './subsystems/Security/
|
|
204
|
-
export * from './subsystems/Security/ManagedVault.service/connectors/
|
|
205
|
-
export * from './subsystems/Security/
|
|
206
|
-
export * from './subsystems/Security/Vault.service/connectors/
|
|
207
|
-
export * from './subsystems/Security/Vault.service/connectors/
|
|
208
|
-
export * from './subsystems/Security/Vault.service/connectors/
|
|
209
|
-
export * from './subsystems/
|
|
210
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/openai/
|
|
211
|
-
export * from './subsystems/
|
|
212
|
-
export * from './subsystems/ObservabilityManager/Telemetry.service/connectors/OTel/
|
|
213
|
-
export * from './subsystems/
|
|
214
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/constants';
|
|
7
|
+
|
|
8
|
+
export * from './config';
|
|
9
|
+
export * from './constants';
|
|
10
|
+
export * from './Components/AgentPlugin.class';
|
|
11
|
+
export * from './Components/APIEndpoint.class';
|
|
12
|
+
export * from './Components/APIOutput.class';
|
|
13
|
+
export * from './Components/Async.class';
|
|
14
|
+
export * from './Components/Await.class';
|
|
15
|
+
export * from './Components/Classifier.class';
|
|
16
|
+
export * from './Components/Component.class';
|
|
17
|
+
export * from './Components/ComponentHost.class';
|
|
18
|
+
export * from './Components/FEncDec.class';
|
|
19
|
+
export * from './Components/FHash.class';
|
|
20
|
+
export * from './Components/FileStore.class';
|
|
21
|
+
export * from './Components/ForEach.class';
|
|
22
|
+
export * from './Components/FSign.class';
|
|
23
|
+
export * from './Components/FSleep.class';
|
|
24
|
+
export * from './Components/FTimestamp.class';
|
|
25
|
+
export * from './Components/GenAILLM.class';
|
|
26
|
+
export * from './Components/GPTPlugin.class';
|
|
27
|
+
export * from './Components/HuggingFace.class';
|
|
28
|
+
export * from './Components/ImageGenerator.class';
|
|
29
|
+
export * from './Components/index';
|
|
30
|
+
export * from './Components/JSONFilter.class';
|
|
31
|
+
export * from './Components/LLMAssistant.class';
|
|
32
|
+
export * from './Components/LogicAND.class';
|
|
33
|
+
export * from './Components/LogicAtLeast.class';
|
|
34
|
+
export * from './Components/LogicAtMost.class';
|
|
35
|
+
export * from './Components/LogicOR.class';
|
|
36
|
+
export * from './Components/LogicXOR.class';
|
|
37
|
+
export * from './Components/MCPClient.class';
|
|
38
|
+
export * from './Components/MemoryDeleteKeyVal.class';
|
|
39
|
+
export * from './Components/MemoryReadKeyVal.class';
|
|
40
|
+
export * from './Components/MemoryWriteKeyVal.class';
|
|
41
|
+
export * from './Components/MemoryWriteObject.class';
|
|
42
|
+
export * from './Components/MultimodalLLM.class';
|
|
43
|
+
export * from './Components/PromptGenerator.class';
|
|
44
|
+
export * from './Components/ScrapflyWebScrape.class';
|
|
45
|
+
export * from './Components/ServerlessCode.class';
|
|
46
|
+
export * from './Components/TavilyWebSearch.class';
|
|
47
|
+
export * from './Components/VisionLLM.class';
|
|
48
|
+
export * from './Components/ZapierAction.class';
|
|
49
|
+
export * from './Core/AgentProcess.helper';
|
|
50
|
+
export * from './Core/boot';
|
|
51
|
+
export * from './Core/Connector.class';
|
|
52
|
+
export * from './Core/ConnectorsService';
|
|
53
|
+
export * from './Core/DummyConnector';
|
|
54
|
+
export * from './Core/ExternalEventsReceiver';
|
|
55
|
+
export * from './Core/HookService';
|
|
56
|
+
export * from './Core/SmythRuntime.class';
|
|
57
|
+
export * from './Core/SystemEvents';
|
|
58
|
+
export * from './helpers/AWSLambdaCode.helper';
|
|
59
|
+
export * from './helpers/BinaryInput.helper';
|
|
60
|
+
export * from './helpers/Conversation.helper';
|
|
61
|
+
export * from './helpers/Crypto.helper';
|
|
62
|
+
export * from './helpers/ECMASandbox.helper';
|
|
63
|
+
export * from './helpers/JsonContent.helper';
|
|
64
|
+
export * from './helpers/LocalCache.helper';
|
|
65
|
+
export * from './helpers/Log.helper';
|
|
66
|
+
export * from './helpers/OpenApiParser.helper';
|
|
67
|
+
export * from './helpers/S3Cache.helper';
|
|
68
|
+
export * from './helpers/SmythURI.helper';
|
|
69
|
+
export * from './helpers/Sysconfig.helper';
|
|
70
|
+
export * from './helpers/TemplateString.helper';
|
|
71
|
+
export * from './helpers/TypeChecker.helper';
|
|
72
|
+
export * from './types/ACL.types';
|
|
73
|
+
export * from './types/Agent.types';
|
|
74
|
+
export * from './types/AgentLogger.types';
|
|
75
|
+
export * from './types/AWS.types';
|
|
76
|
+
export * from './types/Cache.types';
|
|
77
|
+
export * from './types/Common.types';
|
|
78
|
+
export * from './types/LLM.types';
|
|
79
|
+
export * from './types/Redis.types';
|
|
80
|
+
export * from './types/Security.types';
|
|
81
|
+
export * from './types/SRE.types';
|
|
82
|
+
export * from './types/Storage.types';
|
|
83
|
+
export * from './types/VectorDB.types';
|
|
84
|
+
export * from './Components/APICall/AccessTokenManager';
|
|
85
|
+
export * from './Components/APICall/APICall.class';
|
|
86
|
+
export * from './Components/APICall/ArrayBufferResponse.helper';
|
|
87
|
+
export * from './Components/APICall/mimeTypeCategories';
|
|
88
|
+
export * from './Components/APICall/OAuth.helper';
|
|
89
|
+
export * from './Components/APICall/parseData';
|
|
90
|
+
export * from './Components/APICall/parseHeaders';
|
|
91
|
+
export * from './Components/APICall/parseProxy';
|
|
92
|
+
export * from './Components/APICall/parseUrl';
|
|
93
|
+
export * from './Components/Image/imageSettings.config';
|
|
94
|
+
export * from './Components/RAG/DataSourceCleaner.class';
|
|
95
|
+
export * from './Components/RAG/DataSourceComponent.class';
|
|
96
|
+
export * from './Components/RAG/DataSourceIndexer.class';
|
|
97
|
+
export * from './Components/RAG/DataSourceLookup.class';
|
|
98
|
+
export * from './Components/Triggers/Gmail.trigger';
|
|
99
|
+
export * from './Components/Triggers/JobScheduler.trigger';
|
|
100
|
+
export * from './Components/Triggers/Trigger.class';
|
|
101
|
+
export * from './Components/Triggers/WhatsApp.trigger';
|
|
102
|
+
export * from './subsystems/AgentManager/Agent.class';
|
|
103
|
+
export * from './subsystems/AgentManager/Agent.helper';
|
|
104
|
+
export * from './subsystems/AgentManager/AgentLogger.class';
|
|
105
|
+
export * from './subsystems/AgentManager/AgentRequest.class';
|
|
106
|
+
export * from './subsystems/AgentManager/AgentRuntime.class';
|
|
107
|
+
export * from './subsystems/AgentManager/AgentSettings.class';
|
|
108
|
+
export * from './subsystems/AgentManager/AgentSSE.class';
|
|
109
|
+
export * from './subsystems/AgentManager/EmbodimentSettings.class';
|
|
110
|
+
export * from './subsystems/AgentManager/ForkedAgent.class';
|
|
111
|
+
export * from './subsystems/AgentManager/OSResourceMonitor';
|
|
112
|
+
export * from './subsystems/LLMManager/custom-models';
|
|
113
|
+
export * from './subsystems/LLMManager/LLM.helper';
|
|
114
|
+
export * from './subsystems/LLMManager/LLM.inference';
|
|
115
|
+
export * from './subsystems/LLMManager/models';
|
|
116
|
+
export * from './subsystems/LLMManager/paramMappings';
|
|
117
|
+
export * from './subsystems/MemoryManager/LLMCache';
|
|
118
|
+
export * from './subsystems/MemoryManager/LLMContext';
|
|
119
|
+
export * from './subsystems/MemoryManager/RuntimeContext';
|
|
120
|
+
export * from './subsystems/Security/Credentials.helper';
|
|
121
|
+
export * from './subsystems/Security/SecureConnector.class';
|
|
122
|
+
export * from './subsystems/AgentManager/AgentData.service/AgentDataConnector';
|
|
123
|
+
export * from './subsystems/AgentManager/AgentData.service/index';
|
|
124
|
+
export * from './subsystems/AgentManager/Component.service/ComponentConnector';
|
|
125
|
+
export * from './subsystems/AgentManager/Component.service/index';
|
|
126
|
+
export * from './subsystems/AgentManager/Scheduler.service/index';
|
|
127
|
+
export * from './subsystems/AgentManager/Scheduler.service/Job.class';
|
|
128
|
+
export * from './subsystems/AgentManager/Scheduler.service/Schedule.class';
|
|
129
|
+
export * from './subsystems/AgentManager/Scheduler.service/SchedulerConnector';
|
|
130
|
+
export * from './subsystems/ComputeManager/Code.service/CodeConnector';
|
|
131
|
+
export * from './subsystems/ComputeManager/Code.service/index';
|
|
132
|
+
export * from './subsystems/IO/CLI.service/CLIConnector';
|
|
133
|
+
export * from './subsystems/IO/CLI.service/index';
|
|
134
|
+
export * from './subsystems/IO/NKV.service/index';
|
|
135
|
+
export * from './subsystems/IO/NKV.service/NKVConnector';
|
|
136
|
+
export * from './subsystems/IO/Router.service/index';
|
|
137
|
+
export * from './subsystems/IO/Router.service/RouterConnector';
|
|
138
|
+
export * from './subsystems/IO/Storage.service/index';
|
|
139
|
+
export * from './subsystems/IO/Storage.service/SmythFS.class';
|
|
140
|
+
export * from './subsystems/IO/Storage.service/StorageConnector';
|
|
141
|
+
export * from './subsystems/IO/VectorDB.service/index';
|
|
142
|
+
export * from './subsystems/IO/VectorDB.service/VectorDBConnector';
|
|
143
|
+
export * from './subsystems/LLMManager/LLM.service/index';
|
|
144
|
+
export * from './subsystems/LLMManager/LLM.service/LLMConnector';
|
|
145
|
+
export * from './subsystems/LLMManager/LLM.service/LLMCredentials.helper';
|
|
146
|
+
export * from './subsystems/LLMManager/ModelsProvider.service/index';
|
|
147
|
+
export * from './subsystems/LLMManager/ModelsProvider.service/ModelsProviderConnector';
|
|
148
|
+
export * from './subsystems/MemoryManager/Cache.service/CacheConnector';
|
|
149
|
+
export * from './subsystems/MemoryManager/Cache.service/index';
|
|
150
|
+
export * from './subsystems/MemoryManager/LLMMemory.service/LLMMemoryConnector';
|
|
151
|
+
export * from './subsystems/ObservabilityManager/Log.service/index';
|
|
152
|
+
export * from './subsystems/ObservabilityManager/Log.service/LogConnector';
|
|
153
|
+
export * from './subsystems/ObservabilityManager/Telemetry.service/index';
|
|
154
|
+
export * from './subsystems/ObservabilityManager/Telemetry.service/TelemetryConnector';
|
|
155
|
+
export * from './subsystems/Security/AccessControl/AccessCandidate.class';
|
|
156
|
+
export * from './subsystems/Security/AccessControl/AccessRequest.class';
|
|
157
|
+
export * from './subsystems/Security/AccessControl/ACL.class';
|
|
158
|
+
export * from './subsystems/Security/Account.service/AccountConnector';
|
|
159
|
+
export * from './subsystems/Security/Account.service/index';
|
|
160
|
+
export * from './subsystems/Security/Credentials/Credentials.class';
|
|
161
|
+
export * from './subsystems/Security/Credentials/ManagedOAuth2Credentials.class';
|
|
162
|
+
export * from './subsystems/Security/ManagedVault.service/index';
|
|
163
|
+
export * from './subsystems/Security/ManagedVault.service/ManagedVaultConnector';
|
|
164
|
+
export * from './subsystems/Security/Vault.service/index';
|
|
165
|
+
export * from './subsystems/Security/Vault.service/Vault.helper';
|
|
166
|
+
export * from './subsystems/Security/Vault.service/VaultConnector';
|
|
167
|
+
export * from './subsystems/AgentManager/AgentData.service/connectors/CLIAgentDataConnector.class';
|
|
168
|
+
export * from './subsystems/AgentManager/AgentData.service/connectors/LocalAgentDataConnector.class';
|
|
169
|
+
export * from './subsystems/AgentManager/AgentData.service/connectors/NullAgentData.class';
|
|
170
|
+
export * from './subsystems/AgentManager/Component.service/connectors/LocalComponentConnector.class';
|
|
171
|
+
export * from './subsystems/AgentManager/Scheduler.service/connectors/LocalScheduler.class';
|
|
172
|
+
export * from './subsystems/ComputeManager/Code.service/connectors/AWSLambdaCode.class';
|
|
173
|
+
export * from './subsystems/IO/NKV.service/connectors/NKVLocalStorage.class';
|
|
174
|
+
export * from './subsystems/IO/NKV.service/connectors/NKVRAM.class';
|
|
175
|
+
export * from './subsystems/IO/NKV.service/connectors/NKVRedis.class';
|
|
176
|
+
export * from './subsystems/IO/Router.service/connectors/ExpressRouter.class';
|
|
177
|
+
export * from './subsystems/IO/Router.service/connectors/NullRouter.class';
|
|
178
|
+
export * from './subsystems/IO/Storage.service/connectors/LocalStorage.class';
|
|
179
|
+
export * from './subsystems/IO/Storage.service/connectors/S3Storage.class';
|
|
180
|
+
export * from './subsystems/IO/VectorDB.service/connectors/MilvusVectorDB.class';
|
|
181
|
+
export * from './subsystems/IO/VectorDB.service/connectors/PineconeVectorDB.class';
|
|
182
|
+
export * from './subsystems/IO/VectorDB.service/connectors/RAMVecrtorDB.class';
|
|
183
|
+
export * from './subsystems/IO/VectorDB.service/embed/BaseEmbedding';
|
|
184
|
+
export * from './subsystems/IO/VectorDB.service/embed/GoogleEmbedding';
|
|
185
|
+
export * from './subsystems/IO/VectorDB.service/embed/index';
|
|
186
|
+
export * from './subsystems/IO/VectorDB.service/embed/OpenAIEmbedding';
|
|
187
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Anthropic.class';
|
|
188
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Bedrock.class';
|
|
189
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Echo.class';
|
|
190
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/GoogleAI.class';
|
|
191
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Groq.class';
|
|
192
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Ollama.class';
|
|
193
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Perplexity.class';
|
|
194
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/VertexAI.class';
|
|
195
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/xAI.class';
|
|
196
|
+
export * from './subsystems/LLMManager/ModelsProvider.service/connectors/JSONModelsProvider.class';
|
|
197
|
+
export * from './subsystems/MemoryManager/Cache.service/connectors/LocalStorageCache.class';
|
|
198
|
+
export * from './subsystems/MemoryManager/Cache.service/connectors/RAMCache.class';
|
|
199
|
+
export * from './subsystems/MemoryManager/Cache.service/connectors/RedisCache.class';
|
|
200
|
+
export * from './subsystems/MemoryManager/Cache.service/connectors/S3Cache.class';
|
|
201
|
+
export * from './subsystems/ObservabilityManager/Log.service/connectors/ConsoleLog.class';
|
|
202
|
+
export * from './subsystems/Security/Account.service/connectors/DummyAccount.class';
|
|
203
|
+
export * from './subsystems/Security/Account.service/connectors/JSONFileAccount.class';
|
|
204
|
+
export * from './subsystems/Security/Account.service/connectors/MySQLAccount.class';
|
|
205
|
+
export * from './subsystems/Security/ManagedVault.service/connectors/NullManagedVault.class';
|
|
206
|
+
export * from './subsystems/Security/ManagedVault.service/connectors/SecretManagerManagedVault';
|
|
207
|
+
export * from './subsystems/Security/Vault.service/connectors/HashicorpVault.class';
|
|
208
|
+
export * from './subsystems/Security/Vault.service/connectors/JSONFileVault.class';
|
|
209
|
+
export * from './subsystems/Security/Vault.service/connectors/NullVault.class';
|
|
210
|
+
export * from './subsystems/Security/Vault.service/connectors/SecretsManager.class';
|
|
211
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/openai/OpenAIConnector.class';
|
|
212
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/openai/types';
|
|
213
|
+
export * from './subsystems/ObservabilityManager/Telemetry.service/connectors/OTel/OTel.class';
|
|
214
|
+
export * from './subsystems/ObservabilityManager/Telemetry.service/connectors/OTel/OTelContextRegistry';
|
|
215
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/constants';
|
|
215
216
|
export * from './subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/utils';
|
|
@@ -35,6 +35,7 @@ export interface IVectorDBRequest {
|
|
|
35
35
|
|
|
36
36
|
export abstract class VectorDBConnector extends SecureConnector<IVectorDBRequest> {
|
|
37
37
|
protected readonly USER_METADATA_KEY = 'user_metadata';
|
|
38
|
+
protected readonly LEGACY_USER_METADATA_KEY = 'metadata';
|
|
38
39
|
|
|
39
40
|
public abstract id: string;
|
|
40
41
|
public abstract getResourceACL(resourceId: string, candidate: IAccessCandidate): Promise<ACL>;
|
|
@@ -201,10 +201,21 @@ export class PineconeVectorDB extends VectorDBConnector {
|
|
|
201
201
|
for (const match of results.matches) {
|
|
202
202
|
if (match.metadata?.isSkeletonVector) continue;
|
|
203
203
|
|
|
204
|
+
// priortize user metadata over the default flat metadata
|
|
204
205
|
if (match.metadata?.[this.USER_METADATA_KEY]) {
|
|
205
206
|
match.metadata[this.USER_METADATA_KEY] = JSONContentHelper.create(match.metadata[this.USER_METADATA_KEY].toString()).tryParse();
|
|
206
207
|
}
|
|
207
208
|
|
|
209
|
+
// if legacy metadata is present, we add it to the fallback metadata obj
|
|
210
|
+
if (match.metadata?.[this.LEGACY_USER_METADATA_KEY]) {
|
|
211
|
+
const parsedMetadata = JSONContentHelper.create(match.metadata[this.LEGACY_USER_METADATA_KEY].toString()).tryParse();
|
|
212
|
+
match.metadata = {
|
|
213
|
+
...match.metadata,
|
|
214
|
+
...parsedMetadata,
|
|
215
|
+
};
|
|
216
|
+
delete match.metadata?.[this.LEGACY_USER_METADATA_KEY];
|
|
217
|
+
}
|
|
218
|
+
|
|
208
219
|
const text = match.metadata?.text as string | undefined;
|
|
209
220
|
delete match.metadata?.text; // delete the text metadata to avoid duplication in case we returned the default raw metadata
|
|
210
221
|
|
|
@@ -40,16 +40,14 @@ export class EmbeddingsFactory {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
public static getModels() {
|
|
43
|
-
return Object.keys(supportedProviders)
|
|
44
|
-
.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}, [] as { provider: SupportedProviders; model: SupportedModels[SupportedProviders] }[])
|
|
53
|
-
.filter((item) => item.model !== 'text-embedding-ada-002'); //! SPECIAL case for ada-002, it doesn't support dimensions passing
|
|
43
|
+
return Object.keys(supportedProviders).reduce((acc, provider) => {
|
|
44
|
+
acc.push(
|
|
45
|
+
...supportedProviders[provider].models.map((model) => ({
|
|
46
|
+
provider,
|
|
47
|
+
model,
|
|
48
|
+
}))
|
|
49
|
+
);
|
|
50
|
+
return acc;
|
|
51
|
+
}, [] as { provider: SupportedProviders; model: SupportedModels[SupportedProviders] }[]);
|
|
54
52
|
}
|
|
55
53
|
}
|
|
@@ -248,4 +248,29 @@ export class LLMHelper {
|
|
|
248
248
|
|
|
249
249
|
return _messages;
|
|
250
250
|
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Checks if the given model is part of the Claude 4 family.
|
|
254
|
+
*
|
|
255
|
+
* @param {string} modelId - The model identifier to check.
|
|
256
|
+
* @returns {boolean} True if the model is Claude 4 family, false otherwise.
|
|
257
|
+
*
|
|
258
|
+
* @example
|
|
259
|
+
* const isClaude4 = LLMHelper.isClaude4Family('claude-sonnet-4-20250514');
|
|
260
|
+
* console.log(isClaude4); // true
|
|
261
|
+
*
|
|
262
|
+
* @example
|
|
263
|
+
* const isClaude4 = LLMHelper.isClaude4Family('claude-opus-4-5');
|
|
264
|
+
* console.log(isClaude4); // true
|
|
265
|
+
*
|
|
266
|
+
* @example
|
|
267
|
+
* const isClaude4 = LLMHelper.isClaude4Family('gpt-4-turbo');
|
|
268
|
+
* console.log(isClaude4); // false
|
|
269
|
+
*/
|
|
270
|
+
public static isClaude4Family(modelId: string): boolean {
|
|
271
|
+
if (!modelId) return false;
|
|
272
|
+
// Match patterns like: claude-4-*, claude-{variant}-4-*, claude-{variant}-4
|
|
273
|
+
// Examples: claude-opus-4-5, claude-sonnet-4-20250514, claude-4-opus
|
|
274
|
+
return /claude-(?:\w+-)?4(?:-|$)/i.test(modelId);
|
|
275
|
+
}
|
|
251
276
|
}
|
|
@@ -275,7 +275,7 @@ export abstract class LLMConnector extends Connector {
|
|
|
275
275
|
const teamId = await this.getTeamId(candidate);
|
|
276
276
|
|
|
277
277
|
// We need the model entry name for usage reporting
|
|
278
|
-
_params.modelEntryName = typeof model === 'string' ? model :
|
|
278
|
+
_params.modelEntryName = typeof model === 'string' ? model : model?.modelEntryName || model?.modelId;
|
|
279
279
|
_params.teamId = teamId;
|
|
280
280
|
|
|
281
281
|
const modelProviderCandidate = modelsProvider.requester(candidate);
|