@smythos/sre 1.5.37 → 1.5.40
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 +65 -45
- package/dist/index.js.map +1 -1
- package/dist/types/Components/ECMASandbox.class.d.ts +14 -0
- package/dist/types/Components/MemoryDeleteKeyVal.class.d.ts +19 -0
- package/dist/types/Components/MemoryReadKeyVal.class.d.ts +17 -0
- package/dist/types/Components/MemoryWriteKeyVal.class.d.ts +17 -0
- package/dist/types/Components/MemoryWriteObject.class.d.ts +19 -0
- package/dist/types/Components/index.d.ts +10 -0
- package/dist/types/Core/ConnectorsService.d.ts +2 -1
- package/dist/types/helpers/ECMASandbox.helper.d.ts +3 -0
- package/dist/types/helpers/Log.helper.d.ts +1 -1
- package/dist/types/index.d.ts +8 -1
- package/dist/types/subsystems/ComputeManager/Code.service/connectors/ECMASandbox.class.d.ts +19 -0
- package/dist/types/subsystems/LLMManager/LLM.helper.d.ts +21 -10
- package/dist/types/subsystems/LLMManager/LLM.service/LLMConnector.d.ts +5 -5
- package/dist/types/subsystems/LLMManager/LLM.service/connectors/Anthropic.class.d.ts +2 -3
- package/dist/types/subsystems/LLMManager/LLM.service/connectors/Bedrock.class.d.ts +2 -3
- package/dist/types/subsystems/LLMManager/LLM.service/connectors/Echo.class.d.ts +2 -3
- package/dist/types/subsystems/LLMManager/LLM.service/connectors/GoogleAI.class.d.ts +2 -3
- package/dist/types/subsystems/LLMManager/LLM.service/connectors/Groq.class.d.ts +2 -3
- package/dist/types/subsystems/LLMManager/LLM.service/connectors/Perplexity.class.d.ts +3 -4
- package/dist/types/subsystems/LLMManager/LLM.service/connectors/VertexAI.class.d.ts +19 -14
- package/dist/types/subsystems/LLMManager/LLM.service/connectors/openai/OpenAIConnector.class.d.ts +95 -0
- package/dist/types/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/ChatCompletionsApiInterface.d.ts +87 -0
- package/dist/types/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/OpenAIApiInterface.d.ts +85 -0
- package/dist/types/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/OpenAIApiInterfaceFactory.d.ts +49 -0
- package/dist/types/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/ResponsesApiInterface.d.ts +146 -0
- package/dist/types/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/constants.d.ts +10 -0
- package/dist/types/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/index.d.ts +4 -0
- package/dist/types/subsystems/LLMManager/LLM.service/connectors/openai/types.d.ts +38 -0
- package/dist/types/subsystems/LLMManager/LLM.service/connectors/xAI.class.d.ts +1 -2
- package/dist/types/subsystems/Security/Vault.service/connectors/JSONFileVault.class.d.ts +5 -0
- package/dist/types/types/LLM.types.d.ts +82 -37
- package/dist/types/utils/data.utils.d.ts +2 -1
- package/package.json +4 -3
- package/src/Components/APICall/APICall.class.ts +2 -1
- package/src/Components/Component.class.ts +1 -1
- package/src/Components/ECMASandbox.class.ts +71 -0
- package/src/Components/GenAILLM.class.ts +1 -1
- package/src/Components/MemoryDeleteKeyVal.class.ts +70 -0
- package/src/Components/MemoryReadKeyVal.class.ts +66 -0
- package/src/Components/MemoryWriteKeyVal.class.ts +62 -0
- package/src/Components/MemoryWriteObject.class.ts +97 -0
- package/src/Components/index.ts +10 -0
- package/src/Core/ConnectorsService.ts +3 -3
- package/src/helpers/Conversation.helper.ts +11 -3
- package/src/helpers/ECMASandbox.helper.ts +54 -0
- package/src/helpers/Log.helper.ts +57 -17
- package/src/index.ts +192 -185
- package/src/index.ts.bak +192 -185
- package/src/subsystems/AgentManager/Agent.class.ts +11 -6
- package/src/subsystems/AgentManager/AgentRuntime.class.ts +13 -13
- package/src/subsystems/ComputeManager/Code.service/connectors/ECMASandbox.class.ts +131 -0
- package/src/subsystems/ComputeManager/Code.service/index.ts +2 -0
- package/src/subsystems/LLMManager/LLM.helper.ts +57 -27
- package/src/subsystems/LLMManager/LLM.inference.ts +4 -0
- package/src/subsystems/LLMManager/LLM.service/LLMConnector.ts +125 -28
- package/src/subsystems/LLMManager/LLM.service/connectors/Anthropic.class.ts +18 -17
- package/src/subsystems/LLMManager/LLM.service/connectors/Bedrock.class.ts +2 -7
- package/src/subsystems/LLMManager/LLM.service/connectors/Echo.class.ts +2 -6
- package/src/subsystems/LLMManager/LLM.service/connectors/GoogleAI.class.ts +26 -17
- package/src/subsystems/LLMManager/LLM.service/connectors/Groq.class.ts +2 -7
- package/src/subsystems/LLMManager/LLM.service/connectors/Perplexity.class.ts +2 -7
- package/src/subsystems/LLMManager/LLM.service/connectors/VertexAI.class.ts +314 -84
- package/src/subsystems/LLMManager/LLM.service/connectors/openai/OpenAIConnector.class.ts +455 -0
- package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/ChatCompletionsApiInterface.ts +528 -0
- package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/OpenAIApiInterface.ts +100 -0
- package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/OpenAIApiInterfaceFactory.ts +81 -0
- package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/ResponsesApiInterface.ts +853 -0
- package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/constants.ts +37 -0
- package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/index.ts +4 -0
- package/src/subsystems/LLMManager/LLM.service/connectors/openai/types.ts +37 -0
- package/src/subsystems/LLMManager/LLM.service/connectors/xAI.class.ts +0 -5
- package/src/subsystems/LLMManager/LLM.service/index.ts +1 -1
- package/src/subsystems/LLMManager/ModelsProvider.service/ModelsProviderConnector.ts +2 -2
- package/src/subsystems/LLMManager/models.ts +1 -1
- package/src/subsystems/MemoryManager/Cache.service/connectors/RedisCache.class.ts +18 -0
- package/src/subsystems/MemoryManager/RuntimeContext.ts +33 -16
- package/src/subsystems/Security/Vault.service/connectors/JSONFileVault.class.ts +68 -42
- package/src/types/LLM.types.ts +91 -43
- package/src/utils/data.utils.ts +3 -2
- package/src/subsystems/LLMManager/LLM.service/connectors/OpenAI.class.ts +0 -848
package/src/index.ts.bak
CHANGED
|
@@ -1,188 +1,195 @@
|
|
|
1
|
-
//!!! This is a generated file, do not edit it directly !!!//
|
|
2
|
-
|
|
3
|
-
export { version } from '../package.json';
|
|
4
|
-
|
|
1
|
+
//!!! This is a generated file, do not edit it directly !!!//
|
|
5
2
|
|
|
3
|
+
export { version } from '../package.json';
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
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 './
|
|
49
|
-
export * from './
|
|
50
|
-
export * from './
|
|
51
|
-
export * from './
|
|
52
|
-
export * from './
|
|
53
|
-
export * from './
|
|
54
|
-
export * from './Core/
|
|
55
|
-
export * from './Core/
|
|
56
|
-
export * from './
|
|
57
|
-
export * from './
|
|
58
|
-
export * from './
|
|
59
|
-
export * from './
|
|
60
|
-
export * from './
|
|
61
|
-
export * from './
|
|
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 './
|
|
69
|
-
export * from './
|
|
70
|
-
export * from './
|
|
71
|
-
export * from './
|
|
72
|
-
export * from './
|
|
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 './
|
|
81
|
-
export * from './
|
|
82
|
-
export * from './
|
|
83
|
-
export * from './
|
|
84
|
-
export * from './
|
|
85
|
-
export * from './
|
|
86
|
-
export * from './
|
|
87
|
-
export * from './Components/APICall/
|
|
88
|
-
export * from './Components/APICall/
|
|
89
|
-
export * from './Components/
|
|
90
|
-
export * from './
|
|
91
|
-
export * from './
|
|
92
|
-
export * from './
|
|
93
|
-
export * from './
|
|
94
|
-
export * from './
|
|
95
|
-
export * from './
|
|
96
|
-
export * from './
|
|
97
|
-
export * from './subsystems/AgentManager/
|
|
98
|
-
export * from './subsystems/AgentManager/
|
|
99
|
-
export * from './subsystems/AgentManager/
|
|
100
|
-
export * from './subsystems/
|
|
101
|
-
export * from './subsystems/
|
|
102
|
-
export * from './subsystems/
|
|
103
|
-
export * from './subsystems/
|
|
104
|
-
export * from './subsystems/
|
|
105
|
-
export * from './subsystems/
|
|
106
|
-
export * from './subsystems/
|
|
107
|
-
export * from './subsystems/
|
|
108
|
-
export * from './subsystems/
|
|
109
|
-
export * from './subsystems/
|
|
110
|
-
export * from './subsystems/
|
|
111
|
-
export * from './subsystems/
|
|
112
|
-
export * from './subsystems/
|
|
113
|
-
export * from './subsystems/
|
|
114
|
-
export * from './subsystems/
|
|
115
|
-
export * from './subsystems/
|
|
116
|
-
export * from './subsystems/
|
|
117
|
-
export * from './subsystems/
|
|
118
|
-
export * from './subsystems/
|
|
119
|
-
export * from './subsystems/
|
|
120
|
-
export * from './subsystems/
|
|
121
|
-
export * from './subsystems/
|
|
122
|
-
export * from './subsystems/
|
|
123
|
-
export * from './subsystems/IO/
|
|
124
|
-
export * from './subsystems/IO/
|
|
125
|
-
export * from './subsystems/IO/
|
|
126
|
-
export * from './subsystems/IO/
|
|
127
|
-
export * from './subsystems/IO/
|
|
128
|
-
export * from './subsystems/IO/
|
|
129
|
-
export * from './subsystems/
|
|
130
|
-
export * from './subsystems/
|
|
131
|
-
export * from './subsystems/
|
|
132
|
-
export * from './subsystems/
|
|
133
|
-
export * from './subsystems/
|
|
134
|
-
export * from './subsystems/
|
|
135
|
-
export * from './subsystems/
|
|
136
|
-
export * from './subsystems/
|
|
137
|
-
export * from './subsystems/
|
|
138
|
-
export * from './subsystems/
|
|
139
|
-
export * from './subsystems/
|
|
140
|
-
export * from './subsystems/
|
|
141
|
-
export * from './subsystems/
|
|
142
|
-
export * from './subsystems/
|
|
143
|
-
export * from './subsystems/
|
|
144
|
-
export * from './subsystems/Security/
|
|
145
|
-
export * from './subsystems/Security/
|
|
146
|
-
export * from './subsystems/Security/
|
|
147
|
-
export * from './subsystems/
|
|
148
|
-
export * from './subsystems/
|
|
149
|
-
export * from './subsystems/
|
|
150
|
-
export * from './subsystems/
|
|
151
|
-
export * from './subsystems/
|
|
152
|
-
export * from './subsystems/
|
|
153
|
-
export * from './subsystems/
|
|
154
|
-
export * from './subsystems/
|
|
155
|
-
export * from './subsystems/
|
|
156
|
-
export * from './subsystems/
|
|
157
|
-
export * from './subsystems/
|
|
158
|
-
export * from './subsystems/
|
|
159
|
-
export * from './subsystems/IO/
|
|
160
|
-
export * from './subsystems/IO/
|
|
161
|
-
export * from './subsystems/IO/
|
|
162
|
-
export * from './subsystems/IO/
|
|
163
|
-
export * from './subsystems/IO/
|
|
164
|
-
export * from './subsystems/IO/
|
|
165
|
-
export * from './subsystems/IO/
|
|
166
|
-
export * from './subsystems/
|
|
167
|
-
export * from './subsystems/
|
|
168
|
-
export * from './subsystems/
|
|
169
|
-
export * from './subsystems/
|
|
170
|
-
export * from './subsystems/
|
|
171
|
-
export * from './subsystems/
|
|
172
|
-
export * from './subsystems/
|
|
173
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
174
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
175
|
-
export * from './subsystems/LLMManager/
|
|
176
|
-
export * from './subsystems/
|
|
177
|
-
export * from './subsystems/
|
|
178
|
-
export * from './subsystems/
|
|
179
|
-
export * from './subsystems/
|
|
180
|
-
export * from './subsystems/
|
|
181
|
-
export * from './subsystems/
|
|
182
|
-
export * from './subsystems/
|
|
183
|
-
export * from './subsystems/
|
|
184
|
-
export * from './subsystems/
|
|
185
|
-
export * from './subsystems/
|
|
186
|
-
export * from './subsystems/Security/
|
|
187
|
-
export * from './subsystems/Security/
|
|
5
|
+
|
|
6
|
+
|
|
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/HookService';
|
|
58
|
+
export * from './Core/SmythRuntime.class';
|
|
59
|
+
export * from './Core/SystemEvents';
|
|
60
|
+
export * from './helpers/AWSLambdaCode.helper';
|
|
61
|
+
export * from './helpers/BinaryInput.helper';
|
|
62
|
+
export * from './helpers/Conversation.helper';
|
|
63
|
+
export * from './helpers/ECMASandbox.helper';
|
|
64
|
+
export * from './helpers/JsonContent.helper';
|
|
65
|
+
export * from './helpers/LocalCache.helper';
|
|
66
|
+
export * from './helpers/Log.helper';
|
|
67
|
+
export * from './helpers/OpenApiParser.helper';
|
|
68
|
+
export * from './helpers/S3Cache.helper';
|
|
69
|
+
export * from './helpers/SmythURI.helper';
|
|
70
|
+
export * from './helpers/Sysconfig.helper';
|
|
71
|
+
export * from './helpers/TemplateString.helper';
|
|
72
|
+
export * from './helpers/TypeChecker.helper';
|
|
73
|
+
export * from './types/ACL.types';
|
|
74
|
+
export * from './types/Agent.types';
|
|
75
|
+
export * from './types/AgentLogger.types';
|
|
76
|
+
export * from './types/AWS.types';
|
|
77
|
+
export * from './types/Cache.types';
|
|
78
|
+
export * from './types/Common.types';
|
|
79
|
+
export * from './types/LLM.types';
|
|
80
|
+
export * from './types/Redis.types';
|
|
81
|
+
export * from './types/Security.types';
|
|
82
|
+
export * from './types/SRE.types';
|
|
83
|
+
export * from './types/Storage.types';
|
|
84
|
+
export * from './types/VectorDB.types';
|
|
85
|
+
export * from './Components/APICall/AccessTokenManager';
|
|
86
|
+
export * from './Components/APICall/APICall.class';
|
|
87
|
+
export * from './Components/APICall/ArrayBufferResponse.helper';
|
|
88
|
+
export * from './Components/APICall/mimeTypeCategories';
|
|
89
|
+
export * from './Components/APICall/OAuth.helper';
|
|
90
|
+
export * from './Components/APICall/parseData';
|
|
91
|
+
export * from './Components/APICall/parseHeaders';
|
|
92
|
+
export * from './Components/APICall/parseProxy';
|
|
93
|
+
export * from './Components/APICall/parseUrl';
|
|
94
|
+
export * from './Components/Image/imageSettings.config';
|
|
95
|
+
export * from './subsystems/AgentManager/Agent.class';
|
|
96
|
+
export * from './subsystems/AgentManager/Agent.helper';
|
|
97
|
+
export * from './subsystems/AgentManager/AgentLogger.class';
|
|
98
|
+
export * from './subsystems/AgentManager/AgentRequest.class';
|
|
99
|
+
export * from './subsystems/AgentManager/AgentRuntime.class';
|
|
100
|
+
export * from './subsystems/AgentManager/AgentSettings.class';
|
|
101
|
+
export * from './subsystems/AgentManager/AgentSSE.class';
|
|
102
|
+
export * from './subsystems/AgentManager/EmbodimentSettings.class';
|
|
103
|
+
export * from './subsystems/AgentManager/ForkedAgent.class';
|
|
104
|
+
export * from './subsystems/AgentManager/OSResourceMonitor';
|
|
105
|
+
export * from './subsystems/LLMManager/custom-models';
|
|
106
|
+
export * from './subsystems/LLMManager/LLM.helper';
|
|
107
|
+
export * from './subsystems/LLMManager/LLM.inference';
|
|
108
|
+
export * from './subsystems/LLMManager/models';
|
|
109
|
+
export * from './subsystems/LLMManager/paramMappings';
|
|
110
|
+
export * from './subsystems/MemoryManager/LLMCache';
|
|
111
|
+
export * from './subsystems/MemoryManager/LLMContext';
|
|
112
|
+
export * from './subsystems/MemoryManager/RuntimeContext';
|
|
113
|
+
export * from './subsystems/Security/Credentials.helper';
|
|
114
|
+
export * from './subsystems/Security/SecureConnector.class';
|
|
115
|
+
export * from './subsystems/AgentManager/AgentData.service/AgentDataConnector';
|
|
116
|
+
export * from './subsystems/AgentManager/AgentData.service/index';
|
|
117
|
+
export * from './subsystems/AgentManager/Component.service/ComponentConnector';
|
|
118
|
+
export * from './subsystems/AgentManager/Component.service/index';
|
|
119
|
+
export * from './subsystems/ComputeManager/Code.service/CodeConnector';
|
|
120
|
+
export * from './subsystems/ComputeManager/Code.service/index';
|
|
121
|
+
export * from './subsystems/IO/CLI.service/CLIConnector';
|
|
122
|
+
export * from './subsystems/IO/CLI.service/index';
|
|
123
|
+
export * from './subsystems/IO/Log.service/index';
|
|
124
|
+
export * from './subsystems/IO/Log.service/LogConnector';
|
|
125
|
+
export * from './subsystems/IO/NKV.service/index';
|
|
126
|
+
export * from './subsystems/IO/NKV.service/NKVConnector';
|
|
127
|
+
export * from './subsystems/IO/Router.service/index';
|
|
128
|
+
export * from './subsystems/IO/Router.service/RouterConnector';
|
|
129
|
+
export * from './subsystems/IO/Storage.service/index';
|
|
130
|
+
export * from './subsystems/IO/Storage.service/SmythFS.class';
|
|
131
|
+
export * from './subsystems/IO/Storage.service/StorageConnector';
|
|
132
|
+
export * from './subsystems/IO/VectorDB.service/index';
|
|
133
|
+
export * from './subsystems/IO/VectorDB.service/VectorDBConnector';
|
|
134
|
+
export * from './subsystems/LLMManager/LLM.service/index';
|
|
135
|
+
export * from './subsystems/LLMManager/LLM.service/LLMConnector';
|
|
136
|
+
export * from './subsystems/LLMManager/LLM.service/LLMCredentials.helper';
|
|
137
|
+
export * from './subsystems/LLMManager/ModelsProvider.service/index';
|
|
138
|
+
export * from './subsystems/LLMManager/ModelsProvider.service/ModelsProviderConnector';
|
|
139
|
+
export * from './subsystems/MemoryManager/Cache.service/CacheConnector';
|
|
140
|
+
export * from './subsystems/MemoryManager/Cache.service/index';
|
|
141
|
+
export * from './subsystems/MemoryManager/LLMMemory.service/LLMMemoryConnector';
|
|
142
|
+
export * from './subsystems/Security/AccessControl/AccessCandidate.class';
|
|
143
|
+
export * from './subsystems/Security/AccessControl/AccessRequest.class';
|
|
144
|
+
export * from './subsystems/Security/AccessControl/ACL.class';
|
|
145
|
+
export * from './subsystems/Security/Account.service/AccountConnector';
|
|
146
|
+
export * from './subsystems/Security/Account.service/index';
|
|
147
|
+
export * from './subsystems/Security/ManagedVault.service/index';
|
|
148
|
+
export * from './subsystems/Security/ManagedVault.service/ManagedVaultConnector';
|
|
149
|
+
export * from './subsystems/Security/Vault.service/index';
|
|
150
|
+
export * from './subsystems/Security/Vault.service/Vault.helper';
|
|
151
|
+
export * from './subsystems/Security/Vault.service/VaultConnector';
|
|
152
|
+
export * from './subsystems/AgentManager/AgentData.service/connectors/CLIAgentDataConnector.class';
|
|
153
|
+
export * from './subsystems/AgentManager/AgentData.service/connectors/LocalAgentDataConnector.class';
|
|
154
|
+
export * from './subsystems/AgentManager/AgentData.service/connectors/NullAgentData.class';
|
|
155
|
+
export * from './subsystems/AgentManager/Component.service/connectors/LocalComponentConnector.class';
|
|
156
|
+
export * from './subsystems/ComputeManager/Code.service/connectors/AWSLambdaCode.class';
|
|
157
|
+
export * from './subsystems/IO/Log.service/connectors/ConsoleLog.class';
|
|
158
|
+
export * from './subsystems/IO/NKV.service/connectors/NKVLocalStorage.class';
|
|
159
|
+
export * from './subsystems/IO/NKV.service/connectors/NKVRAM.class';
|
|
160
|
+
export * from './subsystems/IO/NKV.service/connectors/NKVRedis.class';
|
|
161
|
+
export * from './subsystems/IO/Router.service/connectors/ExpressRouter.class';
|
|
162
|
+
export * from './subsystems/IO/Router.service/connectors/NullRouter.class';
|
|
163
|
+
export * from './subsystems/IO/Storage.service/connectors/LocalStorage.class';
|
|
164
|
+
export * from './subsystems/IO/Storage.service/connectors/S3Storage.class';
|
|
165
|
+
export * from './subsystems/IO/VectorDB.service/connectors/MilvusVectorDB.class';
|
|
166
|
+
export * from './subsystems/IO/VectorDB.service/connectors/PineconeVectorDB.class';
|
|
167
|
+
export * from './subsystems/IO/VectorDB.service/connectors/RAMVecrtorDB.class';
|
|
168
|
+
export * from './subsystems/IO/VectorDB.service/embed/BaseEmbedding';
|
|
169
|
+
export * from './subsystems/IO/VectorDB.service/embed/index';
|
|
170
|
+
export * from './subsystems/IO/VectorDB.service/embed/OpenAIEmbedding';
|
|
171
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Anthropic.class';
|
|
172
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Bedrock.class';
|
|
173
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Echo.class';
|
|
174
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/GoogleAI.class';
|
|
175
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Groq.class';
|
|
176
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Perplexity.class';
|
|
177
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/VertexAI.class';
|
|
178
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/xAI.class';
|
|
179
|
+
export * from './subsystems/LLMManager/ModelsProvider.service/connectors/JSONModelsProvider.class';
|
|
180
|
+
export * from './subsystems/MemoryManager/Cache.service/connectors/LocalStorageCache.class';
|
|
181
|
+
export * from './subsystems/MemoryManager/Cache.service/connectors/RAMCache.class';
|
|
182
|
+
export * from './subsystems/MemoryManager/Cache.service/connectors/RedisCache.class';
|
|
183
|
+
export * from './subsystems/MemoryManager/Cache.service/connectors/S3Cache.class';
|
|
184
|
+
export * from './subsystems/Security/Account.service/connectors/AWSAccount.class';
|
|
185
|
+
export * from './subsystems/Security/Account.service/connectors/DummyAccount.class';
|
|
186
|
+
export * from './subsystems/Security/Account.service/connectors/JSONFileAccount.class';
|
|
187
|
+
export * from './subsystems/Security/ManagedVault.service/connectors/NullManagedVault.class';
|
|
188
|
+
export * from './subsystems/Security/ManagedVault.service/connectors/SecretManagerManagedVault';
|
|
189
|
+
export * from './subsystems/Security/Vault.service/connectors/HashicorpVault.class';
|
|
190
|
+
export * from './subsystems/Security/Vault.service/connectors/JSONFileVault.class';
|
|
191
|
+
export * from './subsystems/Security/Vault.service/connectors/NullVault.class';
|
|
188
192
|
export * from './subsystems/Security/Vault.service/connectors/SecretsManager.class';
|
|
193
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/openai/OpenAIConnector.class';
|
|
194
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/openai/types';
|
|
195
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/constants';
|
|
@@ -148,7 +148,7 @@ export class Agent implements IAgent {
|
|
|
148
148
|
this._componentInstancesLoader.resolve(true);
|
|
149
149
|
});
|
|
150
150
|
} catch (error) {
|
|
151
|
-
console.warn('Could not load custom components');
|
|
151
|
+
console.warn('Could not load custom components', AccessCandidate.agent(this.id));
|
|
152
152
|
this._componentInstancesLoader.reject('Could not load custom components');
|
|
153
153
|
}
|
|
154
154
|
|
|
@@ -323,7 +323,7 @@ export class Agent implements IAgent {
|
|
|
323
323
|
input,
|
|
324
324
|
error: 'Agent killed',
|
|
325
325
|
});
|
|
326
|
-
console.warn(`Agent ${this.id} was killed
|
|
326
|
+
console.warn(`Agent ${this.id} was killed`, AccessCandidate.agent(this.id));
|
|
327
327
|
return { error: 'Agent killed' };
|
|
328
328
|
}
|
|
329
329
|
result = await this.postProcess(step?.finalResult).catch((error) => ({ error }));
|
|
@@ -512,7 +512,7 @@ export class Agent implements IAgent {
|
|
|
512
512
|
private updateStep(sourceId, componentId) {
|
|
513
513
|
const agentRuntime = this.agentRuntime;
|
|
514
514
|
const step = agentRuntime.curStep;
|
|
515
|
-
const componentData = agentRuntime.getComponentData(componentId);
|
|
515
|
+
//const componentData = agentRuntime.getComponentData(componentId);
|
|
516
516
|
|
|
517
517
|
// if (!componentData.steps) componentData.steps = {};
|
|
518
518
|
// if (!componentData.steps[step]) componentData.steps[step] = { sources: [] };
|
|
@@ -545,7 +545,7 @@ export class Agent implements IAgent {
|
|
|
545
545
|
});
|
|
546
546
|
|
|
547
547
|
if (this._kill) {
|
|
548
|
-
console.warn(`Agent ${this.id} was killed, skipping component ${componentData.name}
|
|
548
|
+
console.warn(`Agent ${this.id} was killed, skipping component ${componentData.name}`, AccessCandidate.agent(this.id));
|
|
549
549
|
|
|
550
550
|
const output = { id: componentData.id, name: componentData.displayName, result: null, error: 'Agent killed' };
|
|
551
551
|
|
|
@@ -669,10 +669,15 @@ export class Agent implements IAgent {
|
|
|
669
669
|
await this.parseVariables(); //make sure that any vault variable is loaded before processing the component
|
|
670
670
|
//TODO: apply type inference here instead of in the component .process method
|
|
671
671
|
output = await component.process({ ...this.agentVariables, ..._input }, { ...componentData, eventId }, this);
|
|
672
|
-
console.
|
|
672
|
+
console.debug(output, AccessCandidate.agent(this.id));
|
|
673
673
|
} catch (error: any) {
|
|
674
674
|
//this are fatal errors requiring to cancel the execution of this component.
|
|
675
|
-
console.error(
|
|
675
|
+
console.error(
|
|
676
|
+
'Error on component process: ',
|
|
677
|
+
{ componentId, name: componentData.name, input: _input },
|
|
678
|
+
error,
|
|
679
|
+
AccessCandidate.agent(this.id)
|
|
680
|
+
);
|
|
676
681
|
if (error?.message) output = { Response: undefined, _error: error.message, _debug: error.message };
|
|
677
682
|
else output = { Response: undefined, _error: error.toString(), _debug: error.toString() };
|
|
678
683
|
}
|
|
@@ -24,7 +24,7 @@ const AgentRuntimeUnavailable = new Proxy(
|
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
-
}
|
|
27
|
+
}
|
|
28
28
|
);
|
|
29
29
|
export class AgentRuntime {
|
|
30
30
|
private static processResults: any = {};
|
|
@@ -147,7 +147,7 @@ export class AgentRuntime {
|
|
|
147
147
|
for (let component of this.agent.data.components) {
|
|
148
148
|
const cpt: Component = this.agent.ComponentInstances[component.name];
|
|
149
149
|
if (!cpt) {
|
|
150
|
-
console.warn(`Component ${component.name} Exists in agent but has no implementation
|
|
150
|
+
console.warn(`Component ${component.name} Exists in agent but has no implementation`, AccessCandidate.agent(this.agent.id));
|
|
151
151
|
continue;
|
|
152
152
|
}
|
|
153
153
|
|
|
@@ -198,7 +198,6 @@ export class AgentRuntime {
|
|
|
198
198
|
|
|
199
199
|
const deleteTag = (this.reqTagOwner && this.sessionClosed) || this.circularLimitReached;
|
|
200
200
|
if (deleteTag) {
|
|
201
|
-
console.log('>>>>>>>>>>>> deleting tagsData', this.reqTag);
|
|
202
201
|
delete AgentRuntime.tagsData[this.reqTag];
|
|
203
202
|
}
|
|
204
203
|
|
|
@@ -235,11 +234,11 @@ export class AgentRuntime {
|
|
|
235
234
|
dbgActiveComponents = dbgAllComponents.filter(
|
|
236
235
|
(c: any) =>
|
|
237
236
|
c?.ctx?.active == true ||
|
|
238
|
-
(!c?.ctx?.output?._error && Array.isArray(c?.ctx?._job_components) && c?.ctx?._job_components.length > 0)
|
|
237
|
+
(!c?.ctx?.output?._error && Array.isArray(c?.ctx?._job_components) && c?.ctx?._job_components.length > 0)
|
|
239
238
|
);
|
|
240
239
|
//find waiting components that was not previously run
|
|
241
240
|
const dbgActiveWaitingComponents: any = dbgAllComponents.filter(
|
|
242
|
-
(c: any) => c?.ctx?.active == true && c?.ctx?.status && typeof c?.ctx?.output !== undefined
|
|
241
|
+
(c: any) => c?.ctx?.active == true && c?.ctx?.status && typeof c?.ctx?.output !== undefined
|
|
243
242
|
);
|
|
244
243
|
|
|
245
244
|
const dbgActiveReadyComponents: any = dbgAllComponents.filter((c: any) => c?.ctx?.active == true && !c?.ctx?.status);
|
|
@@ -263,10 +262,10 @@ export class AgentRuntime {
|
|
|
263
262
|
}
|
|
264
263
|
|
|
265
264
|
const remainingActiveComponents: any = Object.values(ctxData?.components || []).filter(
|
|
266
|
-
(c: any) => c?.ctx?.active == true && !c?.ctx?.alwaysActive
|
|
265
|
+
(c: any) => c?.ctx?.active == true && !c?.ctx?.alwaysActive
|
|
267
266
|
);
|
|
268
267
|
const activeAsyncComponents: any = Object.values(ctxData?.components || []).filter(
|
|
269
|
-
(c: any) => !c?.ctx?.output?._error && Array.isArray(c?.ctx?._job_components) && c?.ctx?._job_components.length > 0
|
|
268
|
+
(c: any) => !c?.ctx?.output?._error && Array.isArray(c?.ctx?._job_components) && c?.ctx?._job_components.length > 0
|
|
270
269
|
);
|
|
271
270
|
|
|
272
271
|
if (remainingActiveComponents.length == 0 && activeAsyncComponents.length == 0 /*&& awaitingInputs.length == 0*/) {
|
|
@@ -307,6 +306,7 @@ export class AgentRuntime {
|
|
|
307
306
|
public async runCycle() {
|
|
308
307
|
console.debug(
|
|
309
308
|
`runCycle agentId=${this.agent.id} wfReqId=${this.workflowReqId} reqTag=${this.reqTag} session=${this.xDebugRun} cycleId=${this.processID}`,
|
|
309
|
+
AccessCandidate.agent(this.agent.id)
|
|
310
310
|
);
|
|
311
311
|
//this.checkRuntimeContext();
|
|
312
312
|
|
|
@@ -323,16 +323,16 @@ export class AgentRuntime {
|
|
|
323
323
|
dbgActiveComponents = dbgAllComponents.filter(
|
|
324
324
|
(c: any) =>
|
|
325
325
|
c?.ctx?.active == true ||
|
|
326
|
-
(!c?.ctx?.output?._error && Array.isArray(c?.ctx?._job_components) && c?.ctx?._job_components.length > 0)
|
|
326
|
+
(!c?.ctx?.output?._error && Array.isArray(c?.ctx?._job_components) && c?.ctx?._job_components.length > 0)
|
|
327
327
|
);
|
|
328
328
|
//find waiting components that was not previously run
|
|
329
329
|
const dbgActiveWaitingComponents: any = dbgAllComponents.filter(
|
|
330
|
-
(c: any) => c?.ctx?.active == true && c?.ctx?.status && typeof c?.ctx?.output !== undefined
|
|
330
|
+
(c: any) => c?.ctx?.active == true && c?.ctx?.status && typeof c?.ctx?.output !== undefined
|
|
331
331
|
);
|
|
332
332
|
const dbgActiveReadyComponents: any = dbgAllComponents.filter(
|
|
333
333
|
(c: any) =>
|
|
334
334
|
(c?.ctx?.active == true && !c?.ctx?.status) ||
|
|
335
|
-
(!c?.ctx?.output?._error && Array.isArray(c?.ctx?._job_components) && c?.ctx?._job_components.length > 0)
|
|
335
|
+
(!c?.ctx?.output?._error && Array.isArray(c?.ctx?._job_components) && c?.ctx?._job_components.length > 0)
|
|
336
336
|
);
|
|
337
337
|
//const dbgActiveReadyComponents: any = dbgActiveComponents.filter((c: any) => c?.ctx?.active == true && !c?.ctx?.status);
|
|
338
338
|
|
|
@@ -374,7 +374,7 @@ export class AgentRuntime {
|
|
|
374
374
|
|
|
375
375
|
const remainingActiveComponents: any = Object.values(ctxData?.components || []).filter((c: any) => c?.ctx?.active == true);
|
|
376
376
|
const activeAsyncComponents: any = Object.values(ctxData?.components || []).filter(
|
|
377
|
-
(c: any) => !c?.ctx?.output?._error && Array.isArray(c?.ctx?._job_components) && c?.ctx?._job_components.length > 0
|
|
377
|
+
(c: any) => !c?.ctx?.output?._error && Array.isArray(c?.ctx?._job_components) && c?.ctx?._job_components.length > 0
|
|
378
378
|
);
|
|
379
379
|
const dbgActiveWaitingComponents: any = dbgAllComponents.filter((c: any) => c?.ctx?.status && typeof c?.ctx?.output !== undefined);
|
|
380
380
|
|
|
@@ -389,7 +389,7 @@ export class AgentRuntime {
|
|
|
389
389
|
e.result &&
|
|
390
390
|
!e.result._missing_inputs &&
|
|
391
391
|
//check if this is the last component in the chain
|
|
392
|
-
!agent.connections.find((c) => c.sourceId == e.id)
|
|
392
|
+
!agent.connections.find((c) => c.sourceId == e.id)
|
|
393
393
|
);
|
|
394
394
|
|
|
395
395
|
let errorResults = dbgResults.flat().filter((e) => e.id && (e.error || e.result?._error));
|
|
@@ -469,7 +469,7 @@ export class AgentRuntime {
|
|
|
469
469
|
}
|
|
470
470
|
return acc;
|
|
471
471
|
},
|
|
472
|
-
{ seen: {}, result: [] }
|
|
472
|
+
{ seen: {}, result: [] }
|
|
473
473
|
)
|
|
474
474
|
.result.filter((e) => !e.result?._exclude);
|
|
475
475
|
|