@smythos/sre 1.5.42 → 1.5.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/index.js +16 -17
  2. package/dist/index.js.map +1 -1
  3. package/dist/types/Components/GenAILLM.class.d.ts +22 -5
  4. package/dist/types/helpers/AWSLambdaCode.helper.d.ts +8 -5
  5. package/dist/types/index.d.ts +1 -0
  6. package/dist/types/subsystems/LLMManager/LLM.service/connectors/Groq.class.d.ts +7 -0
  7. package/dist/types/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/ChatCompletionsApiInterface.d.ts +0 -4
  8. package/dist/types/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/ResponsesApiInterface.d.ts +0 -4
  9. package/dist/types/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/utils.d.ts +6 -0
  10. package/dist/types/types/LLM.types.d.ts +8 -0
  11. package/package.json +5 -2
  12. package/src/Components/GenAILLM.class.ts +30 -6
  13. package/src/helpers/AWSLambdaCode.helper.ts +82 -22
  14. package/src/helpers/Conversation.helper.ts +8 -5
  15. package/src/index.ts +193 -192
  16. package/src/index.ts.bak +193 -192
  17. package/src/subsystems/ComputeManager/Code.service/connectors/AWSLambdaCode.class.ts +10 -8
  18. package/src/subsystems/LLMManager/LLM.service/LLMCredentials.helper.ts +3 -1
  19. package/src/subsystems/LLMManager/LLM.service/connectors/Groq.class.ts +112 -92
  20. package/src/subsystems/LLMManager/LLM.service/connectors/openai/OpenAIConnector.class.ts +2 -2
  21. package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/ChatCompletionsApiInterface.ts +31 -31
  22. package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/ResponsesApiInterface.ts +31 -22
  23. package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/utils.ts +11 -0
  24. package/src/subsystems/LLMManager/ModelsProvider.service/ModelsProviderConnector.ts +9 -0
  25. package/src/subsystems/MemoryManager/Cache.service/connectors/RedisCache.class.ts +0 -18
  26. package/src/types/LLM.types.ts +10 -0
package/src/index.ts.bak CHANGED
@@ -1,195 +1,196 @@
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
- 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';
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';
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';
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
195
  export * from './subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/constants';
196
+ export * from './subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/utils';
@@ -5,7 +5,7 @@ import { AccessRequest } from '@sre/Security/AccessControl/AccessRequest.class';
5
5
  import fs from 'fs';
6
6
  import path from 'path';
7
7
  import { execSync } from 'child_process';
8
- import { cacheTTL, createOrUpdateLambdaFunction, generateCodeHash, generateLambdaCode, getDeployedCodeHash, getDeployedFunction, getLambdaFunctionName, invokeLambdaFunction, setDeployedCodeHash, updateDeployedCodeTTL, validateAsyncMainFunction, zipCode } from '@sre/helpers/AWSLambdaCode.helper';
8
+ import { cacheTTL, createOrUpdateLambdaFunction, generateCodeHash, generateLambdaCode, getCurrentEnvironmentVariables, getDeployedCodeHash, getDeployedFunction, getLambdaFunctionName, getSortedObjectValues, invokeLambdaFunction, setDeployedCodeHash, updateDeployedCodeTTL, validateAsyncMainFunction, zipCode } from '@sre/helpers/AWSLambdaCode.helper';
9
9
  import { AWSCredentials, AWSRegionConfig } from '@sre/types/AWS.types';
10
10
  import { Logger } from '@sre/helpers/Log.helper';
11
11
 
@@ -31,14 +31,16 @@ export class AWSLambdaCode extends CodeConnector {
31
31
  public async deploy(acRequest: AccessRequest, codeUID: string, input: CodeInput, config: CodeConfig): Promise<CodeDeployment> {
32
32
  const agentId = acRequest.candidate.id;
33
33
  const functionName = getLambdaFunctionName(agentId, codeUID);
34
-
35
-
36
- const [isLambdaExists, exisitingCodeHash] = await Promise.all([
34
+ const [isLambdaExists, exisitingCodeHash, currentEnvVariables] = await Promise.all([
37
35
  getDeployedFunction(functionName, this.awsConfigs),
38
36
  getDeployedCodeHash(agentId, codeUID),
37
+ getCurrentEnvironmentVariables(acRequest.candidate.id, input.code),
39
38
  ]);
40
39
 
41
- const codeHash = generateCodeHash(input.code, Object.keys(input.inputs));
40
+ // sorting values to get the same hash for the same env variables
41
+ const envValues = getSortedObjectValues(currentEnvVariables);
42
+
43
+ const codeHash = generateCodeHash(input.code, Object.keys(input.inputs), envValues);
42
44
  if (isLambdaExists && exisitingCodeHash === codeHash) {
43
45
  return {
44
46
  id: functionName,
@@ -57,7 +59,7 @@ export class AWSLambdaCode extends CodeConnector {
57
59
  if (!isValid) {
58
60
  throw new Error(error || 'Invalid Code')
59
61
  }
60
- const lambdaCode = generateLambdaCode(input.code, parameters);
62
+ const lambdaCode = generateLambdaCode(input.code, parameters, currentEnvVariables);
61
63
  // create folder
62
64
  fs.mkdirSync(directory);
63
65
  // create index.js file
@@ -68,7 +70,7 @@ export class AWSLambdaCode extends CodeConnector {
68
70
  execSync(`npm install ${dependencies.join(' ')}`, { cwd: directory });
69
71
 
70
72
  const zipFilePath = await zipCode(directory);
71
- await createOrUpdateLambdaFunction(functionName, zipFilePath, this.awsConfigs);
73
+ await createOrUpdateLambdaFunction(functionName, zipFilePath, this.awsConfigs, currentEnvVariables);
72
74
  await setDeployedCodeHash(agentId, codeUID, codeHash);
73
75
  console.debug('Lambda function updated successfully!');
74
76
  return {
@@ -83,7 +85,7 @@ export class AWSLambdaCode extends CodeConnector {
83
85
  try {
84
86
  fs.rmSync(`${directory}`, { recursive: true, force: true });
85
87
  fs.unlinkSync(`${directory}.zip`);
86
- } catch (error) {}
88
+ } catch (error) { }
87
89
  }
88
90
 
89
91
  }
@@ -5,7 +5,9 @@ import { TBedrockSettings, TCustomLLMModel, TLLMCredentials, TLLMModel, TVertexA
5
5
  export async function getLLMCredentials(candidate: AccessCandidate, modelInfo: TLLMModel | TCustomLLMModel) {
6
6
  //create a credentials list that we can iterate over
7
7
  //if the credentials are not provided, we will use None as a default in order to return empty credentials
8
- const credentialsList: any[] = !Array.isArray(modelInfo.credentials) ? [modelInfo.credentials] : modelInfo.credentials || [TLLMCredentials.None];
8
+ const credentialsList: any[] = !Array.isArray(modelInfo.credentials)
9
+ ? [modelInfo.credentials || TLLMCredentials.Internal]
10
+ : modelInfo.credentials || [TLLMCredentials.Internal];
9
11
 
10
12
  for (let credentialsMode of credentialsList) {
11
13
  if (typeof credentialsMode === 'object') {