@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.
Files changed (82) hide show
  1. package/dist/index.js +65 -45
  2. package/dist/index.js.map +1 -1
  3. package/dist/types/Components/ECMASandbox.class.d.ts +14 -0
  4. package/dist/types/Components/MemoryDeleteKeyVal.class.d.ts +19 -0
  5. package/dist/types/Components/MemoryReadKeyVal.class.d.ts +17 -0
  6. package/dist/types/Components/MemoryWriteKeyVal.class.d.ts +17 -0
  7. package/dist/types/Components/MemoryWriteObject.class.d.ts +19 -0
  8. package/dist/types/Components/index.d.ts +10 -0
  9. package/dist/types/Core/ConnectorsService.d.ts +2 -1
  10. package/dist/types/helpers/ECMASandbox.helper.d.ts +3 -0
  11. package/dist/types/helpers/Log.helper.d.ts +1 -1
  12. package/dist/types/index.d.ts +8 -1
  13. package/dist/types/subsystems/ComputeManager/Code.service/connectors/ECMASandbox.class.d.ts +19 -0
  14. package/dist/types/subsystems/LLMManager/LLM.helper.d.ts +21 -10
  15. package/dist/types/subsystems/LLMManager/LLM.service/LLMConnector.d.ts +5 -5
  16. package/dist/types/subsystems/LLMManager/LLM.service/connectors/Anthropic.class.d.ts +2 -3
  17. package/dist/types/subsystems/LLMManager/LLM.service/connectors/Bedrock.class.d.ts +2 -3
  18. package/dist/types/subsystems/LLMManager/LLM.service/connectors/Echo.class.d.ts +2 -3
  19. package/dist/types/subsystems/LLMManager/LLM.service/connectors/GoogleAI.class.d.ts +2 -3
  20. package/dist/types/subsystems/LLMManager/LLM.service/connectors/Groq.class.d.ts +2 -3
  21. package/dist/types/subsystems/LLMManager/LLM.service/connectors/Perplexity.class.d.ts +3 -4
  22. package/dist/types/subsystems/LLMManager/LLM.service/connectors/VertexAI.class.d.ts +19 -14
  23. package/dist/types/subsystems/LLMManager/LLM.service/connectors/openai/OpenAIConnector.class.d.ts +95 -0
  24. package/dist/types/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/ChatCompletionsApiInterface.d.ts +87 -0
  25. package/dist/types/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/OpenAIApiInterface.d.ts +85 -0
  26. package/dist/types/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/OpenAIApiInterfaceFactory.d.ts +49 -0
  27. package/dist/types/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/ResponsesApiInterface.d.ts +146 -0
  28. package/dist/types/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/constants.d.ts +10 -0
  29. package/dist/types/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/index.d.ts +4 -0
  30. package/dist/types/subsystems/LLMManager/LLM.service/connectors/openai/types.d.ts +38 -0
  31. package/dist/types/subsystems/LLMManager/LLM.service/connectors/xAI.class.d.ts +1 -2
  32. package/dist/types/subsystems/Security/Vault.service/connectors/JSONFileVault.class.d.ts +5 -0
  33. package/dist/types/types/LLM.types.d.ts +82 -37
  34. package/dist/types/utils/data.utils.d.ts +2 -1
  35. package/package.json +4 -3
  36. package/src/Components/APICall/APICall.class.ts +2 -1
  37. package/src/Components/Component.class.ts +1 -1
  38. package/src/Components/ECMASandbox.class.ts +71 -0
  39. package/src/Components/GenAILLM.class.ts +1 -1
  40. package/src/Components/MemoryDeleteKeyVal.class.ts +70 -0
  41. package/src/Components/MemoryReadKeyVal.class.ts +66 -0
  42. package/src/Components/MemoryWriteKeyVal.class.ts +62 -0
  43. package/src/Components/MemoryWriteObject.class.ts +97 -0
  44. package/src/Components/index.ts +10 -0
  45. package/src/Core/ConnectorsService.ts +3 -3
  46. package/src/helpers/Conversation.helper.ts +11 -3
  47. package/src/helpers/ECMASandbox.helper.ts +54 -0
  48. package/src/helpers/Log.helper.ts +57 -17
  49. package/src/index.ts +192 -185
  50. package/src/index.ts.bak +192 -185
  51. package/src/subsystems/AgentManager/Agent.class.ts +11 -6
  52. package/src/subsystems/AgentManager/AgentRuntime.class.ts +13 -13
  53. package/src/subsystems/ComputeManager/Code.service/connectors/ECMASandbox.class.ts +131 -0
  54. package/src/subsystems/ComputeManager/Code.service/index.ts +2 -0
  55. package/src/subsystems/LLMManager/LLM.helper.ts +57 -27
  56. package/src/subsystems/LLMManager/LLM.inference.ts +4 -0
  57. package/src/subsystems/LLMManager/LLM.service/LLMConnector.ts +125 -28
  58. package/src/subsystems/LLMManager/LLM.service/connectors/Anthropic.class.ts +18 -17
  59. package/src/subsystems/LLMManager/LLM.service/connectors/Bedrock.class.ts +2 -7
  60. package/src/subsystems/LLMManager/LLM.service/connectors/Echo.class.ts +2 -6
  61. package/src/subsystems/LLMManager/LLM.service/connectors/GoogleAI.class.ts +26 -17
  62. package/src/subsystems/LLMManager/LLM.service/connectors/Groq.class.ts +2 -7
  63. package/src/subsystems/LLMManager/LLM.service/connectors/Perplexity.class.ts +2 -7
  64. package/src/subsystems/LLMManager/LLM.service/connectors/VertexAI.class.ts +314 -84
  65. package/src/subsystems/LLMManager/LLM.service/connectors/openai/OpenAIConnector.class.ts +455 -0
  66. package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/ChatCompletionsApiInterface.ts +528 -0
  67. package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/OpenAIApiInterface.ts +100 -0
  68. package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/OpenAIApiInterfaceFactory.ts +81 -0
  69. package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/ResponsesApiInterface.ts +853 -0
  70. package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/constants.ts +37 -0
  71. package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/index.ts +4 -0
  72. package/src/subsystems/LLMManager/LLM.service/connectors/openai/types.ts +37 -0
  73. package/src/subsystems/LLMManager/LLM.service/connectors/xAI.class.ts +0 -5
  74. package/src/subsystems/LLMManager/LLM.service/index.ts +1 -1
  75. package/src/subsystems/LLMManager/ModelsProvider.service/ModelsProviderConnector.ts +2 -2
  76. package/src/subsystems/LLMManager/models.ts +1 -1
  77. package/src/subsystems/MemoryManager/Cache.service/connectors/RedisCache.class.ts +18 -0
  78. package/src/subsystems/MemoryManager/RuntimeContext.ts +33 -16
  79. package/src/subsystems/Security/Vault.service/connectors/JSONFileVault.class.ts +68 -42
  80. package/src/types/LLM.types.ts +91 -43
  81. package/src/utils/data.utils.ts +3 -2
  82. 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
- 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/MultimodalLLM.class';
42
- export * from './Components/PromptGenerator.class';
43
- export * from './Components/ScrapflyWebScrape.class';
44
- export * from './Components/ServerlessCode.class';
45
- export * from './Components/TavilyWebSearch.class';
46
- export * from './Components/VisionLLM.class';
47
- export * from './Components/ZapierAction.class';
48
- export * from './Core/AgentProcess.helper';
49
- export * from './Core/boot';
50
- export * from './Core/Connector.class';
51
- export * from './Core/ConnectorsService';
52
- export * from './Core/DummyConnector';
53
- export * from './Core/HookService';
54
- export * from './Core/SmythRuntime.class';
55
- export * from './Core/SystemEvents';
56
- export * from './helpers/AWSLambdaCode.helper';
57
- export * from './helpers/BinaryInput.helper';
58
- export * from './helpers/Conversation.helper';
59
- export * from './helpers/JsonContent.helper';
60
- export * from './helpers/LocalCache.helper';
61
- export * from './helpers/Log.helper';
62
- export * from './helpers/OpenApiParser.helper';
63
- export * from './helpers/S3Cache.helper';
64
- export * from './helpers/SmythURI.helper';
65
- export * from './helpers/Sysconfig.helper';
66
- export * from './helpers/TemplateString.helper';
67
- export * from './helpers/TypeChecker.helper';
68
- export * from './types/ACL.types';
69
- export * from './types/Agent.types';
70
- export * from './types/AgentLogger.types';
71
- export * from './types/AWS.types';
72
- export * from './types/Cache.types';
73
- export * from './types/Common.types';
74
- export * from './types/LLM.types';
75
- export * from './types/Redis.types';
76
- export * from './types/Security.types';
77
- export * from './types/SRE.types';
78
- export * from './types/Storage.types';
79
- export * from './types/VectorDB.types';
80
- export * from './Components/APICall/AccessTokenManager';
81
- export * from './Components/APICall/APICall.class';
82
- export * from './Components/APICall/ArrayBufferResponse.helper';
83
- export * from './Components/APICall/mimeTypeCategories';
84
- export * from './Components/APICall/OAuth.helper';
85
- export * from './Components/APICall/parseData';
86
- export * from './Components/APICall/parseHeaders';
87
- export * from './Components/APICall/parseProxy';
88
- export * from './Components/APICall/parseUrl';
89
- export * from './Components/Image/imageSettings.config';
90
- export * from './subsystems/AgentManager/Agent.class';
91
- export * from './subsystems/AgentManager/Agent.helper';
92
- export * from './subsystems/AgentManager/AgentLogger.class';
93
- export * from './subsystems/AgentManager/AgentRequest.class';
94
- export * from './subsystems/AgentManager/AgentRuntime.class';
95
- export * from './subsystems/AgentManager/AgentSettings.class';
96
- export * from './subsystems/AgentManager/AgentSSE.class';
97
- export * from './subsystems/AgentManager/EmbodimentSettings.class';
98
- export * from './subsystems/AgentManager/ForkedAgent.class';
99
- export * from './subsystems/AgentManager/OSResourceMonitor';
100
- export * from './subsystems/LLMManager/custom-models';
101
- export * from './subsystems/LLMManager/LLM.helper';
102
- export * from './subsystems/LLMManager/LLM.inference';
103
- export * from './subsystems/LLMManager/models';
104
- export * from './subsystems/LLMManager/paramMappings';
105
- export * from './subsystems/MemoryManager/LLMCache';
106
- export * from './subsystems/MemoryManager/LLMContext';
107
- export * from './subsystems/MemoryManager/RuntimeContext';
108
- export * from './subsystems/Security/Credentials.helper';
109
- export * from './subsystems/Security/SecureConnector.class';
110
- export * from './subsystems/AgentManager/AgentData.service/AgentDataConnector';
111
- export * from './subsystems/AgentManager/AgentData.service/index';
112
- export * from './subsystems/AgentManager/Component.service/ComponentConnector';
113
- export * from './subsystems/AgentManager/Component.service/index';
114
- export * from './subsystems/ComputeManager/Code.service/CodeConnector';
115
- export * from './subsystems/ComputeManager/Code.service/index';
116
- export * from './subsystems/IO/CLI.service/CLIConnector';
117
- export * from './subsystems/IO/CLI.service/index';
118
- export * from './subsystems/IO/Log.service/index';
119
- export * from './subsystems/IO/Log.service/LogConnector';
120
- export * from './subsystems/IO/NKV.service/index';
121
- export * from './subsystems/IO/NKV.service/NKVConnector';
122
- export * from './subsystems/IO/Router.service/index';
123
- export * from './subsystems/IO/Router.service/RouterConnector';
124
- export * from './subsystems/IO/Storage.service/index';
125
- export * from './subsystems/IO/Storage.service/SmythFS.class';
126
- export * from './subsystems/IO/Storage.service/StorageConnector';
127
- export * from './subsystems/IO/VectorDB.service/index';
128
- export * from './subsystems/IO/VectorDB.service/VectorDBConnector';
129
- export * from './subsystems/LLMManager/LLM.service/index';
130
- export * from './subsystems/LLMManager/LLM.service/LLMConnector';
131
- export * from './subsystems/LLMManager/LLM.service/LLMCredentials.helper';
132
- export * from './subsystems/LLMManager/ModelsProvider.service/index';
133
- export * from './subsystems/LLMManager/ModelsProvider.service/ModelsProviderConnector';
134
- export * from './subsystems/MemoryManager/Cache.service/CacheConnector';
135
- export * from './subsystems/MemoryManager/Cache.service/index';
136
- export * from './subsystems/MemoryManager/LLMMemory.service/LLMMemoryConnector';
137
- export * from './subsystems/Security/AccessControl/AccessCandidate.class';
138
- export * from './subsystems/Security/AccessControl/AccessRequest.class';
139
- export * from './subsystems/Security/AccessControl/ACL.class';
140
- export * from './subsystems/Security/Account.service/AccountConnector';
141
- export * from './subsystems/Security/Account.service/index';
142
- export * from './subsystems/Security/ManagedVault.service/index';
143
- export * from './subsystems/Security/ManagedVault.service/ManagedVaultConnector';
144
- export * from './subsystems/Security/Vault.service/index';
145
- export * from './subsystems/Security/Vault.service/Vault.helper';
146
- export * from './subsystems/Security/Vault.service/VaultConnector';
147
- export * from './subsystems/AgentManager/AgentData.service/connectors/CLIAgentDataConnector.class';
148
- export * from './subsystems/AgentManager/AgentData.service/connectors/LocalAgentDataConnector.class';
149
- export * from './subsystems/AgentManager/AgentData.service/connectors/NullAgentData.class';
150
- export * from './subsystems/AgentManager/Component.service/connectors/LocalComponentConnector.class';
151
- export * from './subsystems/ComputeManager/Code.service/connectors/AWSLambdaCode.class';
152
- export * from './subsystems/IO/Log.service/connectors/ConsoleLog.class';
153
- export * from './subsystems/IO/NKV.service/connectors/NKVLocalStorage.class';
154
- export * from './subsystems/IO/NKV.service/connectors/NKVRAM.class';
155
- export * from './subsystems/IO/NKV.service/connectors/NKVRedis.class';
156
- export * from './subsystems/IO/Router.service/connectors/ExpressRouter.class';
157
- export * from './subsystems/IO/Router.service/connectors/NullRouter.class';
158
- export * from './subsystems/IO/Storage.service/connectors/LocalStorage.class';
159
- export * from './subsystems/IO/Storage.service/connectors/S3Storage.class';
160
- export * from './subsystems/IO/VectorDB.service/connectors/MilvusVectorDB.class';
161
- export * from './subsystems/IO/VectorDB.service/connectors/PineconeVectorDB.class';
162
- export * from './subsystems/IO/VectorDB.service/connectors/RAMVecrtorDB.class';
163
- export * from './subsystems/IO/VectorDB.service/embed/BaseEmbedding';
164
- export * from './subsystems/IO/VectorDB.service/embed/index';
165
- export * from './subsystems/IO/VectorDB.service/embed/OpenAIEmbedding';
166
- export * from './subsystems/LLMManager/LLM.service/connectors/Anthropic.class';
167
- export * from './subsystems/LLMManager/LLM.service/connectors/Bedrock.class';
168
- export * from './subsystems/LLMManager/LLM.service/connectors/Echo.class';
169
- export * from './subsystems/LLMManager/LLM.service/connectors/GoogleAI.class';
170
- export * from './subsystems/LLMManager/LLM.service/connectors/Groq.class';
171
- export * from './subsystems/LLMManager/LLM.service/connectors/OpenAI.class';
172
- export * from './subsystems/LLMManager/LLM.service/connectors/Perplexity.class';
173
- export * from './subsystems/LLMManager/LLM.service/connectors/VertexAI.class';
174
- export * from './subsystems/LLMManager/LLM.service/connectors/xAI.class';
175
- export * from './subsystems/LLMManager/ModelsProvider.service/connectors/JSONModelsProvider.class';
176
- export * from './subsystems/MemoryManager/Cache.service/connectors/LocalStorageCache.class';
177
- export * from './subsystems/MemoryManager/Cache.service/connectors/RAMCache.class';
178
- export * from './subsystems/MemoryManager/Cache.service/connectors/RedisCache.class';
179
- export * from './subsystems/MemoryManager/Cache.service/connectors/S3Cache.class';
180
- export * from './subsystems/Security/Account.service/connectors/AWSAccount.class';
181
- export * from './subsystems/Security/Account.service/connectors/DummyAccount.class';
182
- export * from './subsystems/Security/Account.service/connectors/JSONFileAccount.class';
183
- export * from './subsystems/Security/ManagedVault.service/connectors/NullManagedVault.class';
184
- export * from './subsystems/Security/ManagedVault.service/connectors/SecretManagerManagedVault';
185
- export * from './subsystems/Security/Vault.service/connectors/HashicorpVault.class';
186
- export * from './subsystems/Security/Vault.service/connectors/JSONFileVault.class';
187
- export * from './subsystems/Security/Vault.service/connectors/NullVault.class';
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.log(output);
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('Error on component process: ', { componentId, name: componentData.name, input: _input }, 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