@smythos/sre 1.7.1 → 1.7.7
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 +33 -31
- package/dist/index.js.map +1 -1
- package/dist/types/Core/ConnectorsService.d.ts +2 -1
- package/dist/types/Core/SmythRuntime.class.d.ts +1 -0
- package/dist/types/helpers/BinaryInput.helper.d.ts +1 -1
- package/dist/types/helpers/LocalCache.helper.d.ts +18 -0
- package/dist/types/helpers/TemplateString.helper.d.ts +2 -1
- package/dist/types/subsystems/IO/VectorDB.service/VectorDBConnector.d.ts +4 -4
- package/dist/types/subsystems/IO/VectorDB.service/connectors/MilvusVectorDB.class.d.ts +2 -2
- package/dist/types/subsystems/IO/VectorDB.service/connectors/PineconeVectorDB.class.d.ts +2 -2
- package/dist/types/subsystems/IO/VectorDB.service/connectors/RAMVecrtorDB.class.d.ts +2 -2
- package/dist/types/subsystems/IO/VectorDB.service/embed/BaseEmbedding.d.ts +16 -9
- package/dist/types/subsystems/IO/VectorDB.service/embed/index.d.ts +4 -1
- package/dist/types/subsystems/LLMManager/LLM.inference.d.ts +36 -2
- package/dist/types/types/LLM.types.d.ts +54 -31
- package/dist/types/types/VectorDB.types.d.ts +6 -3
- package/dist/types/utils/string.utils.d.ts +0 -4
- package/package.json +1 -1
- package/src/Components/Classifier.class.ts +8 -2
- package/src/Components/GenAILLM.class.ts +11 -7
- package/src/Components/LLMAssistant.class.ts +12 -3
- package/src/Components/ScrapflyWebScrape.class.ts +8 -1
- package/src/Components/TavilyWebSearch.class.ts +4 -1
- package/src/Core/ConnectorsService.ts +12 -2
- package/src/Core/SmythRuntime.class.ts +32 -17
- package/src/helpers/BinaryInput.helper.ts +8 -8
- package/src/helpers/Conversation.helper.ts +11 -1
- package/src/helpers/LocalCache.helper.ts +18 -0
- package/src/helpers/TemplateString.helper.ts +20 -9
- package/src/index.ts +208 -208
- package/src/index.ts.bak +208 -208
- package/src/subsystems/AgentManager/Agent.class.ts +2 -0
- package/src/subsystems/AgentManager/AgentData.service/AgentDataConnector.ts +6 -5
- package/src/subsystems/AgentManager/AgentLogger.class.ts +1 -1
- package/src/subsystems/IO/VectorDB.service/VectorDBConnector.ts +15 -4
- package/src/subsystems/IO/VectorDB.service/connectors/MilvusVectorDB.class.ts +31 -10
- package/src/subsystems/IO/VectorDB.service/connectors/PineconeVectorDB.class.ts +27 -10
- package/src/subsystems/IO/VectorDB.service/connectors/RAMVecrtorDB.class.ts +25 -9
- package/src/subsystems/IO/VectorDB.service/embed/BaseEmbedding.ts +182 -12
- package/src/subsystems/IO/VectorDB.service/embed/GoogleEmbedding.ts +1 -1
- package/src/subsystems/IO/VectorDB.service/embed/OpenAIEmbedding.ts +1 -1
- package/src/subsystems/IO/VectorDB.service/embed/index.ts +12 -2
- package/src/subsystems/LLMManager/LLM.inference.ts +76 -17
- package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/ChatCompletionsApiInterface.ts +3 -2
- package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/ResponsesApiInterface.ts +2 -2
- package/src/subsystems/LLMManager/ModelsProvider.service/ModelsProviderConnector.ts +2 -2
- package/src/subsystems/LLMManager/ModelsProvider.service/connectors/JSONModelsProvider.class.ts +4 -1
- package/src/subsystems/MemoryManager/Cache.service/connectors/RedisCache.class.ts +12 -0
- package/src/types/LLM.types.ts +66 -38
- package/src/types/VectorDB.types.ts +7 -3
- package/src/utils/string.utils.ts +193 -191
- package/dist/bundle-analysis-lazy.html +0 -4949
- package/dist/bundle-analysis.html +0 -4949
package/src/index.ts.bak
CHANGED
|
@@ -1,211 +1,211 @@
|
|
|
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 './Components/
|
|
48
|
-
export * from './Components/
|
|
49
|
-
export * from './Components/
|
|
50
|
-
export * from './
|
|
51
|
-
export * from './
|
|
52
|
-
export * from './Core/
|
|
53
|
-
export * from './Core/
|
|
54
|
-
export * from './Core/
|
|
55
|
-
export * from './Core/
|
|
56
|
-
export * from './Core/
|
|
57
|
-
export * from './Core/
|
|
58
|
-
export * from './Core/
|
|
59
|
-
export * from './
|
|
60
|
-
export * from './
|
|
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 './helpers/
|
|
71
|
-
export * from './helpers/
|
|
72
|
-
export * from './helpers/
|
|
73
|
-
export * from './
|
|
74
|
-
export * from './
|
|
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 './types/
|
|
83
|
-
export * from './types/
|
|
84
|
-
export * from './types/
|
|
85
|
-
export * from './
|
|
86
|
-
export * from './
|
|
87
|
-
export * from './Components/APICall/
|
|
88
|
-
export * from './Components/APICall/
|
|
89
|
-
export * from './Components/APICall/
|
|
90
|
-
export * from './Components/APICall/
|
|
91
|
-
export * from './Components/APICall/
|
|
92
|
-
export * from './Components/APICall/
|
|
93
|
-
export * from './Components/APICall/
|
|
94
|
-
export * from './Components/
|
|
95
|
-
export * from './Components/
|
|
96
|
-
export * from './Components/
|
|
97
|
-
export * from './Components/Triggers/
|
|
98
|
-
export * from './Components/Triggers/
|
|
99
|
-
export * from './
|
|
100
|
-
export * from './
|
|
101
|
-
export * from './subsystems/AgentManager/
|
|
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/
|
|
110
|
-
export * from './subsystems/
|
|
111
|
-
export * from './subsystems/LLMManager/
|
|
112
|
-
export * from './subsystems/LLMManager/
|
|
113
|
-
export * from './subsystems/LLMManager/
|
|
114
|
-
export * from './subsystems/
|
|
115
|
-
export * from './subsystems/
|
|
116
|
-
export * from './subsystems/MemoryManager/
|
|
117
|
-
export * from './subsystems/
|
|
118
|
-
export * from './subsystems/
|
|
119
|
-
export * from './subsystems/
|
|
120
|
-
export * from './subsystems/
|
|
121
|
-
export * from './subsystems/AgentManager/
|
|
122
|
-
export * from './subsystems/AgentManager/
|
|
123
|
-
export * from './subsystems/AgentManager/
|
|
124
|
-
export * from './subsystems/AgentManager/
|
|
125
|
-
export * from './subsystems/AgentManager/Scheduler.service/
|
|
126
|
-
export * from './subsystems/AgentManager/Scheduler.service/
|
|
127
|
-
export * from './subsystems/
|
|
128
|
-
export * from './subsystems/
|
|
129
|
-
export * from './subsystems/
|
|
130
|
-
export * from './subsystems/
|
|
131
|
-
export * from './subsystems/IO/
|
|
132
|
-
export * from './subsystems/IO/
|
|
133
|
-
export * from './subsystems/IO/
|
|
134
|
-
export * from './subsystems/IO/
|
|
135
|
-
export * from './subsystems/IO/
|
|
136
|
-
export * from './subsystems/IO/
|
|
137
|
-
export * from './subsystems/IO/
|
|
138
|
-
export * from './subsystems/IO/
|
|
139
|
-
export * from './subsystems/IO/Storage.service/
|
|
140
|
-
export * from './subsystems/IO/
|
|
141
|
-
export * from './subsystems/IO/
|
|
142
|
-
export * from './subsystems/
|
|
143
|
-
export * from './subsystems/
|
|
144
|
-
export * from './subsystems/LLMManager/LLM.service/
|
|
145
|
-
export * from './subsystems/LLMManager/
|
|
146
|
-
export * from './subsystems/LLMManager/
|
|
147
|
-
export * from './subsystems/
|
|
148
|
-
export * from './subsystems/
|
|
149
|
-
export * from './subsystems/MemoryManager/
|
|
150
|
-
export * from './subsystems/
|
|
151
|
-
export * from './subsystems/
|
|
152
|
-
export * from './subsystems/Security/AccessControl/
|
|
153
|
-
export * from './subsystems/Security/
|
|
154
|
-
export * from './subsystems/Security/
|
|
155
|
-
export * from './subsystems/Security/
|
|
156
|
-
export * from './subsystems/Security/
|
|
157
|
-
export * from './subsystems/Security/
|
|
158
|
-
export * from './subsystems/Security/
|
|
159
|
-
export * from './subsystems/Security/
|
|
160
|
-
export * from './subsystems/Security/
|
|
161
|
-
export * from './subsystems/Security/Vault.service/
|
|
162
|
-
export * from './subsystems/
|
|
163
|
-
export * from './subsystems/
|
|
164
|
-
export * from './subsystems/AgentManager/AgentData.service/connectors/
|
|
165
|
-
export * from './subsystems/AgentManager/
|
|
166
|
-
export * from './subsystems/AgentManager/
|
|
167
|
-
export * from './subsystems/
|
|
168
|
-
export * from './subsystems/
|
|
169
|
-
export * from './subsystems/
|
|
170
|
-
export * from './subsystems/IO/
|
|
171
|
-
export * from './subsystems/IO/NKV.service/connectors/
|
|
172
|
-
export * from './subsystems/IO/
|
|
173
|
-
export * from './subsystems/IO/
|
|
174
|
-
export * from './subsystems/IO/
|
|
175
|
-
export * from './subsystems/IO/
|
|
176
|
-
export * from './subsystems/IO/
|
|
177
|
-
export * from './subsystems/IO/
|
|
178
|
-
export * from './subsystems/IO/VectorDB.service/connectors/
|
|
179
|
-
export * from './subsystems/IO/VectorDB.service/
|
|
180
|
-
export * from './subsystems/IO/VectorDB.service/
|
|
181
|
-
export * from './subsystems/IO/VectorDB.service/embed/
|
|
182
|
-
export * from './subsystems/IO/VectorDB.service/embed/
|
|
183
|
-
export * from './subsystems/
|
|
184
|
-
export * from './subsystems/
|
|
185
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
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/
|
|
193
|
-
export * from './subsystems/
|
|
194
|
-
export * from './subsystems/
|
|
195
|
-
export * from './subsystems/MemoryManager/Cache.service/connectors/
|
|
196
|
-
export * from './subsystems/MemoryManager/Cache.service/connectors/
|
|
197
|
-
export * from './subsystems/
|
|
198
|
-
export * from './subsystems/
|
|
199
|
-
export * from './subsystems/Security/Account.service/connectors/
|
|
200
|
-
export * from './subsystems/Security/
|
|
201
|
-
export * from './subsystems/Security/
|
|
202
|
-
export * from './subsystems/Security/
|
|
203
|
-
export * from './subsystems/Security/
|
|
204
|
-
export * from './subsystems/Security/Vault.service/connectors/
|
|
205
|
-
export * from './subsystems/Security/Vault.service/connectors/
|
|
206
|
-
export * from './subsystems/
|
|
207
|
-
export * from './subsystems/
|
|
208
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/openai/
|
|
209
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/openai/types';
|
|
210
|
-
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/DataSourceCleaner.class';
|
|
19
|
+
export * from './Components/DataSourceIndexer.class';
|
|
20
|
+
export * from './Components/DataSourceLookup.class';
|
|
21
|
+
export * from './Components/FEncDec.class';
|
|
22
|
+
export * from './Components/FHash.class';
|
|
23
|
+
export * from './Components/FileStore.class';
|
|
24
|
+
export * from './Components/ForEach.class';
|
|
25
|
+
export * from './Components/FSign.class';
|
|
26
|
+
export * from './Components/FSleep.class';
|
|
27
|
+
export * from './Components/FTimestamp.class';
|
|
28
|
+
export * from './Components/GenAILLM.class';
|
|
29
|
+
export * from './Components/GPTPlugin.class';
|
|
30
|
+
export * from './Components/HuggingFace.class';
|
|
31
|
+
export * from './Components/ImageGenerator.class';
|
|
32
|
+
export * from './Components/index';
|
|
33
|
+
export * from './Components/JSONFilter.class';
|
|
34
|
+
export * from './Components/LLMAssistant.class';
|
|
35
|
+
export * from './Components/LogicAND.class';
|
|
36
|
+
export * from './Components/LogicAtLeast.class';
|
|
37
|
+
export * from './Components/LogicAtMost.class';
|
|
38
|
+
export * from './Components/LogicOR.class';
|
|
39
|
+
export * from './Components/LogicXOR.class';
|
|
40
|
+
export * from './Components/MCPClient.class';
|
|
41
|
+
export * from './Components/MemoryDeleteKeyVal.class';
|
|
42
|
+
export * from './Components/MemoryReadKeyVal.class';
|
|
43
|
+
export * from './Components/MemoryWriteKeyVal.class';
|
|
44
|
+
export * from './Components/MemoryWriteObject.class';
|
|
45
|
+
export * from './Components/MultimodalLLM.class';
|
|
46
|
+
export * from './Components/PromptGenerator.class';
|
|
47
|
+
export * from './Components/ScrapflyWebScrape.class';
|
|
48
|
+
export * from './Components/ServerlessCode.class';
|
|
49
|
+
export * from './Components/TavilyWebSearch.class';
|
|
50
|
+
export * from './Components/VisionLLM.class';
|
|
51
|
+
export * from './Components/ZapierAction.class';
|
|
52
|
+
export * from './Core/AgentProcess.helper';
|
|
53
|
+
export * from './Core/boot';
|
|
54
|
+
export * from './Core/Connector.class';
|
|
55
|
+
export * from './Core/ConnectorsService';
|
|
56
|
+
export * from './Core/DummyConnector';
|
|
57
|
+
export * from './Core/ExternalEventsReceiver';
|
|
58
|
+
export * from './Core/HookService';
|
|
59
|
+
export * from './Core/SmythRuntime.class';
|
|
60
|
+
export * from './Core/SystemEvents';
|
|
61
|
+
export * from './helpers/AWSLambdaCode.helper';
|
|
62
|
+
export * from './helpers/BinaryInput.helper';
|
|
63
|
+
export * from './helpers/Conversation.helper';
|
|
64
|
+
export * from './helpers/Crypto.helper';
|
|
65
|
+
export * from './helpers/ECMASandbox.helper';
|
|
66
|
+
export * from './helpers/JsonContent.helper';
|
|
67
|
+
export * from './helpers/LocalCache.helper';
|
|
68
|
+
export * from './helpers/Log.helper';
|
|
69
|
+
export * from './helpers/OpenApiParser.helper';
|
|
70
|
+
export * from './helpers/S3Cache.helper';
|
|
71
|
+
export * from './helpers/SmythURI.helper';
|
|
72
|
+
export * from './helpers/Sysconfig.helper';
|
|
73
|
+
export * from './helpers/TemplateString.helper';
|
|
74
|
+
export * from './helpers/TypeChecker.helper';
|
|
75
|
+
export * from './types/ACL.types';
|
|
76
|
+
export * from './types/Agent.types';
|
|
77
|
+
export * from './types/AgentLogger.types';
|
|
78
|
+
export * from './types/AWS.types';
|
|
79
|
+
export * from './types/Cache.types';
|
|
80
|
+
export * from './types/Common.types';
|
|
81
|
+
export * from './types/LLM.types';
|
|
82
|
+
export * from './types/Redis.types';
|
|
83
|
+
export * from './types/Security.types';
|
|
84
|
+
export * from './types/SRE.types';
|
|
85
|
+
export * from './types/Storage.types';
|
|
86
|
+
export * from './types/VectorDB.types';
|
|
87
|
+
export * from './Components/APICall/AccessTokenManager';
|
|
88
|
+
export * from './Components/APICall/APICall.class';
|
|
89
|
+
export * from './Components/APICall/ArrayBufferResponse.helper';
|
|
90
|
+
export * from './Components/APICall/mimeTypeCategories';
|
|
91
|
+
export * from './Components/APICall/OAuth.helper';
|
|
92
|
+
export * from './Components/APICall/parseData';
|
|
93
|
+
export * from './Components/APICall/parseHeaders';
|
|
94
|
+
export * from './Components/APICall/parseProxy';
|
|
95
|
+
export * from './Components/APICall/parseUrl';
|
|
96
|
+
export * from './Components/Image/imageSettings.config';
|
|
97
|
+
export * from './Components/Triggers/Gmail.trigger';
|
|
98
|
+
export * from './Components/Triggers/JobScheduler.trigger';
|
|
99
|
+
export * from './Components/Triggers/Trigger.class';
|
|
100
|
+
export * from './Components/Triggers/WhatsApp.trigger';
|
|
101
|
+
export * from './subsystems/AgentManager/Agent.class';
|
|
102
|
+
export * from './subsystems/AgentManager/Agent.helper';
|
|
103
|
+
export * from './subsystems/AgentManager/AgentLogger.class';
|
|
104
|
+
export * from './subsystems/AgentManager/AgentRequest.class';
|
|
105
|
+
export * from './subsystems/AgentManager/AgentRuntime.class';
|
|
106
|
+
export * from './subsystems/AgentManager/AgentSettings.class';
|
|
107
|
+
export * from './subsystems/AgentManager/AgentSSE.class';
|
|
108
|
+
export * from './subsystems/AgentManager/EmbodimentSettings.class';
|
|
109
|
+
export * from './subsystems/AgentManager/ForkedAgent.class';
|
|
110
|
+
export * from './subsystems/AgentManager/OSResourceMonitor';
|
|
111
|
+
export * from './subsystems/LLMManager/custom-models';
|
|
112
|
+
export * from './subsystems/LLMManager/LLM.helper';
|
|
113
|
+
export * from './subsystems/LLMManager/LLM.inference';
|
|
114
|
+
export * from './subsystems/LLMManager/models';
|
|
115
|
+
export * from './subsystems/LLMManager/paramMappings';
|
|
116
|
+
export * from './subsystems/MemoryManager/LLMCache';
|
|
117
|
+
export * from './subsystems/MemoryManager/LLMContext';
|
|
118
|
+
export * from './subsystems/MemoryManager/RuntimeContext';
|
|
119
|
+
export * from './subsystems/Security/Credentials.helper';
|
|
120
|
+
export * from './subsystems/Security/SecureConnector.class';
|
|
121
|
+
export * from './subsystems/AgentManager/AgentData.service/AgentDataConnector';
|
|
122
|
+
export * from './subsystems/AgentManager/AgentData.service/index';
|
|
123
|
+
export * from './subsystems/AgentManager/Component.service/ComponentConnector';
|
|
124
|
+
export * from './subsystems/AgentManager/Component.service/index';
|
|
125
|
+
export * from './subsystems/AgentManager/Scheduler.service/index';
|
|
126
|
+
export * from './subsystems/AgentManager/Scheduler.service/Job.class';
|
|
127
|
+
export * from './subsystems/AgentManager/Scheduler.service/Schedule.class';
|
|
128
|
+
export * from './subsystems/AgentManager/Scheduler.service/SchedulerConnector';
|
|
129
|
+
export * from './subsystems/ComputeManager/Code.service/CodeConnector';
|
|
130
|
+
export * from './subsystems/ComputeManager/Code.service/index';
|
|
131
|
+
export * from './subsystems/IO/CLI.service/CLIConnector';
|
|
132
|
+
export * from './subsystems/IO/CLI.service/index';
|
|
133
|
+
export * from './subsystems/IO/Log.service/index';
|
|
134
|
+
export * from './subsystems/IO/Log.service/LogConnector';
|
|
135
|
+
export * from './subsystems/IO/NKV.service/index';
|
|
136
|
+
export * from './subsystems/IO/NKV.service/NKVConnector';
|
|
137
|
+
export * from './subsystems/IO/Router.service/index';
|
|
138
|
+
export * from './subsystems/IO/Router.service/RouterConnector';
|
|
139
|
+
export * from './subsystems/IO/Storage.service/index';
|
|
140
|
+
export * from './subsystems/IO/Storage.service/SmythFS.class';
|
|
141
|
+
export * from './subsystems/IO/Storage.service/StorageConnector';
|
|
142
|
+
export * from './subsystems/IO/VectorDB.service/index';
|
|
143
|
+
export * from './subsystems/IO/VectorDB.service/VectorDBConnector';
|
|
144
|
+
export * from './subsystems/LLMManager/LLM.service/index';
|
|
145
|
+
export * from './subsystems/LLMManager/LLM.service/LLMConnector';
|
|
146
|
+
export * from './subsystems/LLMManager/LLM.service/LLMCredentials.helper';
|
|
147
|
+
export * from './subsystems/LLMManager/ModelsProvider.service/index';
|
|
148
|
+
export * from './subsystems/LLMManager/ModelsProvider.service/ModelsProviderConnector';
|
|
149
|
+
export * from './subsystems/MemoryManager/Cache.service/CacheConnector';
|
|
150
|
+
export * from './subsystems/MemoryManager/Cache.service/index';
|
|
151
|
+
export * from './subsystems/MemoryManager/LLMMemory.service/LLMMemoryConnector';
|
|
152
|
+
export * from './subsystems/Security/AccessControl/AccessCandidate.class';
|
|
153
|
+
export * from './subsystems/Security/AccessControl/AccessRequest.class';
|
|
154
|
+
export * from './subsystems/Security/AccessControl/ACL.class';
|
|
155
|
+
export * from './subsystems/Security/Account.service/AccountConnector';
|
|
156
|
+
export * from './subsystems/Security/Account.service/index';
|
|
157
|
+
export * from './subsystems/Security/Credentials/Credentials.class';
|
|
158
|
+
export * from './subsystems/Security/Credentials/ManagedOAuth2Credentials.class';
|
|
159
|
+
export * from './subsystems/Security/ManagedVault.service/index';
|
|
160
|
+
export * from './subsystems/Security/ManagedVault.service/ManagedVaultConnector';
|
|
161
|
+
export * from './subsystems/Security/Vault.service/index';
|
|
162
|
+
export * from './subsystems/Security/Vault.service/Vault.helper';
|
|
163
|
+
export * from './subsystems/Security/Vault.service/VaultConnector';
|
|
164
|
+
export * from './subsystems/AgentManager/AgentData.service/connectors/CLIAgentDataConnector.class';
|
|
165
|
+
export * from './subsystems/AgentManager/AgentData.service/connectors/LocalAgentDataConnector.class';
|
|
166
|
+
export * from './subsystems/AgentManager/AgentData.service/connectors/NullAgentData.class';
|
|
167
|
+
export * from './subsystems/AgentManager/Component.service/connectors/LocalComponentConnector.class';
|
|
168
|
+
export * from './subsystems/AgentManager/Scheduler.service/connectors/LocalScheduler.class';
|
|
169
|
+
export * from './subsystems/ComputeManager/Code.service/connectors/AWSLambdaCode.class';
|
|
170
|
+
export * from './subsystems/IO/Log.service/connectors/ConsoleLog.class';
|
|
171
|
+
export * from './subsystems/IO/NKV.service/connectors/NKVLocalStorage.class';
|
|
172
|
+
export * from './subsystems/IO/NKV.service/connectors/NKVRAM.class';
|
|
173
|
+
export * from './subsystems/IO/NKV.service/connectors/NKVRedis.class';
|
|
174
|
+
export * from './subsystems/IO/Router.service/connectors/ExpressRouter.class';
|
|
175
|
+
export * from './subsystems/IO/Router.service/connectors/NullRouter.class';
|
|
176
|
+
export * from './subsystems/IO/Storage.service/connectors/LocalStorage.class';
|
|
177
|
+
export * from './subsystems/IO/Storage.service/connectors/S3Storage.class';
|
|
178
|
+
export * from './subsystems/IO/VectorDB.service/connectors/MilvusVectorDB.class';
|
|
179
|
+
export * from './subsystems/IO/VectorDB.service/connectors/PineconeVectorDB.class';
|
|
180
|
+
export * from './subsystems/IO/VectorDB.service/connectors/RAMVecrtorDB.class';
|
|
181
|
+
export * from './subsystems/IO/VectorDB.service/embed/BaseEmbedding';
|
|
182
|
+
export * from './subsystems/IO/VectorDB.service/embed/GoogleEmbedding';
|
|
183
|
+
export * from './subsystems/IO/VectorDB.service/embed/index';
|
|
184
|
+
export * from './subsystems/IO/VectorDB.service/embed/OpenAIEmbedding';
|
|
185
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Anthropic.class';
|
|
186
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Bedrock.class';
|
|
187
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Echo.class';
|
|
188
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/GoogleAI.class';
|
|
189
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Groq.class';
|
|
190
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Ollama.class';
|
|
191
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Perplexity.class';
|
|
192
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/VertexAI.class';
|
|
193
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/xAI.class';
|
|
194
|
+
export * from './subsystems/LLMManager/ModelsProvider.service/connectors/JSONModelsProvider.class';
|
|
195
|
+
export * from './subsystems/MemoryManager/Cache.service/connectors/LocalStorageCache.class';
|
|
196
|
+
export * from './subsystems/MemoryManager/Cache.service/connectors/RAMCache.class';
|
|
197
|
+
export * from './subsystems/MemoryManager/Cache.service/connectors/RedisCache.class';
|
|
198
|
+
export * from './subsystems/MemoryManager/Cache.service/connectors/S3Cache.class';
|
|
199
|
+
export * from './subsystems/Security/Account.service/connectors/DummyAccount.class';
|
|
200
|
+
export * from './subsystems/Security/Account.service/connectors/JSONFileAccount.class';
|
|
201
|
+
export * from './subsystems/Security/Account.service/connectors/MySQLAccount.class';
|
|
202
|
+
export * from './subsystems/Security/ManagedVault.service/connectors/NullManagedVault.class';
|
|
203
|
+
export * from './subsystems/Security/ManagedVault.service/connectors/SecretManagerManagedVault';
|
|
204
|
+
export * from './subsystems/Security/Vault.service/connectors/HashicorpVault.class';
|
|
205
|
+
export * from './subsystems/Security/Vault.service/connectors/JSONFileVault.class';
|
|
206
|
+
export * from './subsystems/Security/Vault.service/connectors/NullVault.class';
|
|
207
|
+
export * from './subsystems/Security/Vault.service/connectors/SecretsManager.class';
|
|
208
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/openai/OpenAIConnector.class';
|
|
209
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/openai/types';
|
|
210
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/constants';
|
|
211
211
|
export * from './subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/utils';
|
|
@@ -417,6 +417,8 @@ export class Agent implements IAgent {
|
|
|
417
417
|
if (!_result) continue;
|
|
418
418
|
if (_result._debug) delete _result._debug;
|
|
419
419
|
if (_result._debug_time) delete _result._debug_time;
|
|
420
|
+
if (_result.result?._debug) delete _result.result._debug;
|
|
421
|
+
if (_result.result?._debug_time) delete _result.result._debug_time;
|
|
420
422
|
const _componentData = this.components[_result.id];
|
|
421
423
|
if (!_componentData) continue;
|
|
422
424
|
const _component: Component = this._componentInstance[_componentData.name];
|
|
@@ -82,13 +82,14 @@ export abstract class AgentDataConnector extends Connector implements IAgentData
|
|
|
82
82
|
|
|
83
83
|
const apiBasePath = version && version != 'latest' ? `/v${version}/api` : '/api';
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
let agentData: any = typeof source === 'object' ? source : await this.getAgentData(source, version);
|
|
86
|
+
if (agentData.data) agentData = agentData.data;
|
|
86
87
|
const name = agentData.name;
|
|
87
88
|
|
|
88
|
-
let description = aiOnly ? agentData.
|
|
89
|
-
if (!description) description = agentData.
|
|
89
|
+
let description = aiOnly ? agentData.behavior : agentData.shortDescription;
|
|
90
|
+
if (!description) description = agentData.description; //data.description is deprecated, we just use it as a fallback for now
|
|
90
91
|
|
|
91
|
-
const _version = agentData.
|
|
92
|
+
const _version = agentData.version || '1.0.0';
|
|
92
93
|
|
|
93
94
|
const openAPITpl = TemplateString(openapiTemplate)
|
|
94
95
|
.parse({
|
|
@@ -100,7 +101,7 @@ export abstract class AgentDataConnector extends Connector implements IAgentData
|
|
|
100
101
|
.clean().result;
|
|
101
102
|
const openAPIObj = JSON.parse(openAPITpl);
|
|
102
103
|
|
|
103
|
-
const components = agentData.
|
|
104
|
+
const components = agentData.components.filter((component: any) => component.name === 'APIEndpoint');
|
|
104
105
|
for (let component of components) {
|
|
105
106
|
const ai_exposed = component.data.ai_exposed || typeof component.data.ai_exposed === 'undefined';
|
|
106
107
|
if (aiOnly && !ai_exposed) continue;
|
|
@@ -261,7 +261,7 @@ export class AgentLogger {
|
|
|
261
261
|
public static log(agent, trId, logData: AgentCallLog) {
|
|
262
262
|
const logConnector = ConnectorService.getLogConnector();
|
|
263
263
|
if (!logConnector.valid) return;
|
|
264
|
-
if (agent
|
|
264
|
+
if (agent?.agentRuntime?.debug || agent?.debugSessionEnabled) logData.tags = 'DEBUG ';
|
|
265
265
|
if (!trId) trId = 'log-' + uid();
|
|
266
266
|
if (!this.transactions[trId]) {
|
|
267
267
|
this.transactions[trId] = new LogTransaction(agent, trId);
|
|
@@ -3,7 +3,14 @@ import { AccessCandidate } from '@sre/Security/AccessControl/AccessCandidate.cla
|
|
|
3
3
|
import { AccessRequest } from '@sre/Security/AccessControl/AccessRequest.class';
|
|
4
4
|
import { SecureConnector } from '@sre/Security/SecureConnector.class';
|
|
5
5
|
import { IAccessCandidate, TAccessRole } from '@sre/types/ACL.types';
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
DatasourceDto,
|
|
8
|
+
IStorageVectorDataSource,
|
|
9
|
+
IVectorDataSourceDto,
|
|
10
|
+
QueryOptions,
|
|
11
|
+
VectorDBResult,
|
|
12
|
+
VectorsResultData,
|
|
13
|
+
} from '@sre/types/VectorDB.types';
|
|
7
14
|
|
|
8
15
|
export type DeleteFilterOptions = {
|
|
9
16
|
datasourceId?: string;
|
|
@@ -12,7 +19,7 @@ export type DeleteFilterOptions = {
|
|
|
12
19
|
export type DeleteTarget = string | string[] | DeleteFilterOptions;
|
|
13
20
|
|
|
14
21
|
export interface IVectorDBRequest {
|
|
15
|
-
search(namespace: string, query: string | number[], options?: QueryOptions): Promise<
|
|
22
|
+
search(namespace: string, query: string | number[], options?: QueryOptions): Promise<VectorDBResult[]>;
|
|
16
23
|
// insert(namespace: string, source: IVectorDataSourceDto | IVectorDataSourceDto[]): Promise<string[]>;
|
|
17
24
|
// delete(namespace: string, id: string | string[]): Promise<void>;
|
|
18
25
|
|
|
@@ -68,9 +75,13 @@ export abstract class VectorDBConnector extends SecureConnector<IVectorDBRequest
|
|
|
68
75
|
namespace: string,
|
|
69
76
|
query: string | number[],
|
|
70
77
|
options: QueryOptions
|
|
71
|
-
): Promise<
|
|
78
|
+
): Promise<VectorDBResult[]>;
|
|
72
79
|
|
|
73
|
-
protected abstract insert(
|
|
80
|
+
protected abstract insert(
|
|
81
|
+
acRequest: AccessRequest,
|
|
82
|
+
namespace: string,
|
|
83
|
+
source: IVectorDataSourceDto | IVectorDataSourceDto[]
|
|
84
|
+
): Promise<VectorDBResult[]>;
|
|
74
85
|
|
|
75
86
|
protected abstract delete(acRequest: AccessRequest, namespace: string, deleteTarget: DeleteTarget): Promise<void>;
|
|
76
87
|
|