@smythos/sre 1.5.32 → 1.5.34
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 +10 -10
- package/dist/index.js.map +1 -1
- package/dist/types/Components/ImageGenerator.class.d.ts +2 -2
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/subsystems/LLMManager/LLM.service/connectors/GoogleAI.class.d.ts +3 -0
- package/dist/types/subsystems/LLMManager/LLM.service/connectors/xAI.class.d.ts +121 -0
- package/package.json +2 -1
- package/src/Components/DataSourceLookup.class.ts +2 -1
- package/src/Components/ImageGenerator.class.ts +97 -6
- package/src/Components/LogicAtLeast.class.ts +2 -2
- package/src/Components/LogicAtMost.class.ts +2 -2
- package/src/constants.ts +1 -0
- package/src/index.ts +185 -185
- package/src/index.ts.bak +1 -1
- package/src/subsystems/LLMManager/LLM.service/LLMConnector.ts +3 -3
- package/src/subsystems/LLMManager/LLM.service/connectors/GoogleAI.class.ts +59 -0
- package/src/subsystems/LLMManager/LLM.service/index.ts +1 -1
- package/src/subsystems/Security/Vault.service/connectors/JSONFileVault.class.ts +3 -1
- /package/src/subsystems/LLMManager/LLM.service/connectors/{xAI.ts → xAI.class.ts} +0 -0
package/src/index.ts
CHANGED
|
@@ -1,188 +1,188 @@
|
|
|
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 './Core/
|
|
51
|
-
export * from './Core/
|
|
52
|
-
export * from './Core/
|
|
53
|
-
export * from './Core/
|
|
54
|
-
export * from './Core/
|
|
55
|
-
export * from './Core/
|
|
56
|
-
export * from './
|
|
57
|
-
export * from './
|
|
58
|
-
export * from './helpers/
|
|
59
|
-
export * from './helpers/
|
|
60
|
-
export * from './helpers/
|
|
61
|
-
export * from './helpers/
|
|
62
|
-
export * from './helpers/
|
|
63
|
-
export * from './helpers/
|
|
64
|
-
export * from './helpers/
|
|
65
|
-
export * from './helpers/
|
|
66
|
-
export * from './helpers/
|
|
67
|
-
export * from './helpers/
|
|
68
|
-
export * from './
|
|
69
|
-
export * from './
|
|
70
|
-
export * from './types/
|
|
71
|
-
export * from './types/
|
|
72
|
-
export * from './types/
|
|
73
|
-
export * from './types/
|
|
74
|
-
export * from './types/
|
|
75
|
-
export * from './types/
|
|
76
|
-
export * from './types/
|
|
77
|
-
export * from './types/
|
|
78
|
-
export * from './types/
|
|
79
|
-
export * from './types/
|
|
80
|
-
export * from './
|
|
81
|
-
export * from './
|
|
82
|
-
export * from './Components/APICall/
|
|
83
|
-
export * from './Components/APICall/
|
|
84
|
-
export * from './Components/APICall/
|
|
85
|
-
export * from './Components/APICall/
|
|
86
|
-
export * from './Components/APICall/
|
|
87
|
-
export * from './Components/APICall/
|
|
88
|
-
export * from './Components/APICall/
|
|
89
|
-
export * from './Components/
|
|
90
|
-
export * from './
|
|
91
|
-
export * from './
|
|
92
|
-
export * from './subsystems/AgentManager/
|
|
93
|
-
export * from './subsystems/AgentManager/
|
|
94
|
-
export * from './subsystems/AgentManager/
|
|
95
|
-
export * from './subsystems/AgentManager/
|
|
96
|
-
export * from './subsystems/AgentManager/
|
|
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/LLMManager/
|
|
103
|
-
export * from './subsystems/LLMManager/
|
|
104
|
-
export * from './subsystems/LLMManager/
|
|
105
|
-
export * from './subsystems/
|
|
106
|
-
export * from './subsystems/
|
|
107
|
-
export * from './subsystems/MemoryManager/
|
|
108
|
-
export * from './subsystems/
|
|
109
|
-
export * from './subsystems/
|
|
110
|
-
export * from './subsystems/
|
|
111
|
-
export * from './subsystems/
|
|
112
|
-
export * from './subsystems/AgentManager/
|
|
113
|
-
export * from './subsystems/AgentManager/
|
|
114
|
-
export * from './subsystems/
|
|
115
|
-
export * from './subsystems/
|
|
116
|
-
export * from './subsystems/
|
|
117
|
-
export * from './subsystems/
|
|
118
|
-
export * from './subsystems/IO/
|
|
119
|
-
export * from './subsystems/IO/
|
|
120
|
-
export * from './subsystems/IO/
|
|
121
|
-
export * from './subsystems/IO/
|
|
122
|
-
export * from './subsystems/IO/
|
|
123
|
-
export * from './subsystems/IO/
|
|
124
|
-
export * from './subsystems/IO/
|
|
125
|
-
export * from './subsystems/IO/
|
|
126
|
-
export * from './subsystems/IO/Storage.service/
|
|
127
|
-
export * from './subsystems/IO/
|
|
128
|
-
export * from './subsystems/IO/
|
|
129
|
-
export * from './subsystems/
|
|
130
|
-
export * from './subsystems/
|
|
131
|
-
export * from './subsystems/LLMManager/LLM.service/
|
|
132
|
-
export * from './subsystems/LLMManager/
|
|
133
|
-
export * from './subsystems/LLMManager/
|
|
134
|
-
export * from './subsystems/
|
|
135
|
-
export * from './subsystems/
|
|
136
|
-
export * from './subsystems/MemoryManager/
|
|
137
|
-
export * from './subsystems/
|
|
138
|
-
export * from './subsystems/
|
|
139
|
-
export * from './subsystems/Security/AccessControl/
|
|
140
|
-
export * from './subsystems/Security/
|
|
141
|
-
export * from './subsystems/Security/
|
|
142
|
-
export * from './subsystems/Security/
|
|
143
|
-
export * from './subsystems/Security/
|
|
144
|
-
export * from './subsystems/Security/
|
|
145
|
-
export * from './subsystems/Security/
|
|
146
|
-
export * from './subsystems/Security/Vault.service/
|
|
147
|
-
export * from './subsystems/
|
|
148
|
-
export * from './subsystems/
|
|
149
|
-
export * from './subsystems/AgentManager/AgentData.service/connectors/
|
|
150
|
-
export * from './subsystems/AgentManager/
|
|
151
|
-
export * from './subsystems/
|
|
152
|
-
export * from './subsystems/
|
|
153
|
-
export * from './subsystems/
|
|
154
|
-
export * from './subsystems/IO/
|
|
155
|
-
export * from './subsystems/IO/NKV.service/connectors/
|
|
156
|
-
export * from './subsystems/IO/
|
|
157
|
-
export * from './subsystems/IO/
|
|
158
|
-
export * from './subsystems/IO/
|
|
159
|
-
export * from './subsystems/IO/
|
|
160
|
-
export * from './subsystems/IO/
|
|
161
|
-
export * from './subsystems/IO/
|
|
162
|
-
export * from './subsystems/IO/VectorDB.service/connectors/
|
|
163
|
-
export * from './subsystems/IO/VectorDB.service/
|
|
164
|
-
export * from './subsystems/IO/VectorDB.service/
|
|
165
|
-
export * from './subsystems/IO/VectorDB.service/embed/
|
|
166
|
-
export * from './subsystems/
|
|
167
|
-
export * from './subsystems/
|
|
168
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
169
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
170
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
171
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
172
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
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/MemoryManager/Cache.service/connectors/
|
|
179
|
-
export * from './subsystems/MemoryManager/Cache.service/connectors/
|
|
180
|
-
export * from './subsystems/
|
|
181
|
-
export * from './subsystems/
|
|
182
|
-
export * from './subsystems/Security/Account.service/connectors/
|
|
183
|
-
export * from './subsystems/Security/
|
|
184
|
-
export * from './subsystems/Security/
|
|
185
|
-
export * from './subsystems/Security/
|
|
186
|
-
export * from './subsystems/Security/
|
|
187
|
-
export * from './subsystems/Security/Vault.service/connectors/
|
|
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/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';
|
|
188
188
|
export * from './subsystems/Security/Vault.service/connectors/SecretsManager.class';
|
package/src/index.ts.bak
CHANGED
|
@@ -171,7 +171,7 @@ export * from './subsystems/LLMManager/LLM.service/connectors/Groq.class';
|
|
|
171
171
|
export * from './subsystems/LLMManager/LLM.service/connectors/OpenAI.class';
|
|
172
172
|
export * from './subsystems/LLMManager/LLM.service/connectors/Perplexity.class';
|
|
173
173
|
export * from './subsystems/LLMManager/LLM.service/connectors/VertexAI.class';
|
|
174
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/xAI';
|
|
174
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/xAI.class';
|
|
175
175
|
export * from './subsystems/LLMManager/ModelsProvider.service/connectors/JSONModelsProvider.class';
|
|
176
176
|
export * from './subsystems/MemoryManager/Cache.service/connectors/LocalStorageCache.class';
|
|
177
177
|
export * from './subsystems/MemoryManager/Cache.service/connectors/RAMCache.class';
|
|
@@ -137,7 +137,7 @@ export abstract class LLMConnector extends Connector {
|
|
|
137
137
|
modelEntryName: preparedParams.modelEntryName,
|
|
138
138
|
agentId: preparedParams.agentId,
|
|
139
139
|
teamId: preparedParams.teamId,
|
|
140
|
-
isUserKey: preparedParams.isUserKey,
|
|
140
|
+
isUserKey: (preparedParams.credentials as any)?.isUserKey || preparedParams.isUserKey,
|
|
141
141
|
hasFiles: preparedParams.files?.length > 0,
|
|
142
142
|
modelInfo: preparedParams.modelInfo,
|
|
143
143
|
credentials: preparedParams.credentials,
|
|
@@ -168,7 +168,7 @@ export abstract class LLMConnector extends Connector {
|
|
|
168
168
|
body: preparedParams.body,
|
|
169
169
|
context: {
|
|
170
170
|
modelEntryName: preparedParams.modelEntryName,
|
|
171
|
-
isUserKey: preparedParams.isUserKey,
|
|
171
|
+
isUserKey: (preparedParams.credentials as any)?.isUserKey || preparedParams.isUserKey,
|
|
172
172
|
agentId: preparedParams.agentId,
|
|
173
173
|
teamId: preparedParams.teamId,
|
|
174
174
|
hasFiles: preparedParams.files?.length > 0,
|
|
@@ -187,7 +187,7 @@ export abstract class LLMConnector extends Connector {
|
|
|
187
187
|
body: preparedParams.body,
|
|
188
188
|
context: {
|
|
189
189
|
modelEntryName: preparedParams.modelEntryName,
|
|
190
|
-
isUserKey: preparedParams.isUserKey,
|
|
190
|
+
isUserKey: (preparedParams.credentials as any)?.isUserKey || preparedParams.isUserKey,
|
|
191
191
|
agentId: preparedParams.agentId,
|
|
192
192
|
teamId: preparedParams.teamId,
|
|
193
193
|
hasFiles: preparedParams.files?.length > 0,
|
|
@@ -5,6 +5,7 @@ import fs from 'fs';
|
|
|
5
5
|
|
|
6
6
|
import { GoogleGenerativeAI, ModelParams, GenerationConfig, GenerateContentRequest, UsageMetadata } from '@google/generative-ai';
|
|
7
7
|
import { GoogleAIFileManager, FileState } from '@google/generative-ai/server';
|
|
8
|
+
import { GoogleGenAI } from '@google/genai';
|
|
8
9
|
|
|
9
10
|
import { JSON_RESPONSE_INSTRUCTION, BUILT_IN_MODEL_PREFIX } from '@sre/constants';
|
|
10
11
|
import { BinaryInput } from '@sre/helpers/BinaryInput.helper';
|
|
@@ -197,9 +198,58 @@ export class GoogleAIConnector extends LLMConnector {
|
|
|
197
198
|
throw new Error('Web search is not supported for Google AI');
|
|
198
199
|
}
|
|
199
200
|
|
|
201
|
+
// #region Image Generation, will be moved to a different subsystem/service
|
|
202
|
+
protected async imageGenRequest({ body, context }: ILLMRequestFuncParams): Promise<any> {
|
|
203
|
+
try {
|
|
204
|
+
const apiKey = (context.credentials as BasicCredentials)?.apiKey;
|
|
205
|
+
if (!apiKey) throw new Error('Please provide an API key for Google AI');
|
|
206
|
+
|
|
207
|
+
const model = body.model || 'imagen-3.0-generate-001';
|
|
208
|
+
|
|
209
|
+
// Use Imagen models via GoogleGenAI
|
|
210
|
+
const ai = new GoogleGenAI({ apiKey });
|
|
211
|
+
|
|
212
|
+
// Prepare the configuration for image generation
|
|
213
|
+
const config = {
|
|
214
|
+
numberOfImages: body.n || 1,
|
|
215
|
+
aspectRatio: body.aspect_ratio || body.size || '1:1',
|
|
216
|
+
personGeneration: body.person_generation || 'allow_adult',
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
// Generate images using the SDK
|
|
220
|
+
const response = await ai.models.generateImages({
|
|
221
|
+
model,
|
|
222
|
+
prompt: body.prompt,
|
|
223
|
+
config,
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
// Transform the response to match OpenAI format for compatibility
|
|
227
|
+
return {
|
|
228
|
+
created: Math.floor(Date.now() / 1000),
|
|
229
|
+
data:
|
|
230
|
+
response.generatedImages?.map((generatedImage: any) => ({
|
|
231
|
+
url: generatedImage.image.imageBytes ? `data:image/png;base64,${generatedImage.image.imageBytes}` : undefined,
|
|
232
|
+
b64_json: generatedImage.image.imageBytes,
|
|
233
|
+
revised_prompt: body.prompt,
|
|
234
|
+
})) || [],
|
|
235
|
+
};
|
|
236
|
+
} catch (error: any) {
|
|
237
|
+
throw error;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
protected async imageEditRequest({ body, context }: ILLMRequestFuncParams): Promise<any> {
|
|
242
|
+
throw new Error('Image editing is not supported for Google AI. Imagen models only support image generation.');
|
|
243
|
+
}
|
|
244
|
+
|
|
200
245
|
protected async reqBodyAdapter(params: TLLMParams): Promise<TGoogleAIRequestBody> {
|
|
201
246
|
const model = params?.model;
|
|
202
247
|
|
|
248
|
+
// Check if this is an image generation request based on capabilities
|
|
249
|
+
if (params?.capabilities?.imageGeneration) {
|
|
250
|
+
return this.prepareBodyForImageGenRequest(params) as any;
|
|
251
|
+
}
|
|
252
|
+
|
|
203
253
|
const messages = await this.prepareMessages(params);
|
|
204
254
|
|
|
205
255
|
let body: ModelParams & { messages: string | TLLMMessageBlock[] | GenerateContentRequest } = {
|
|
@@ -565,6 +615,15 @@ export class GoogleAIConnector extends LLMConnector {
|
|
|
565
615
|
return prompt;
|
|
566
616
|
}
|
|
567
617
|
|
|
618
|
+
private async prepareBodyForImageGenRequest(params: TLLMParams): Promise<any> {
|
|
619
|
+
return {
|
|
620
|
+
prompt: params.prompt,
|
|
621
|
+
model: params.model,
|
|
622
|
+
aspectRatio: (params as any).aspectRatio,
|
|
623
|
+
personGeneration: (params as any).personGeneration,
|
|
624
|
+
};
|
|
625
|
+
}
|
|
626
|
+
|
|
568
627
|
// Add this helper method to sanitize function names
|
|
569
628
|
private sanitizeFunctionName(name: string): string {
|
|
570
629
|
// Check if name is undefined or null
|
|
@@ -10,7 +10,7 @@ import { GroqConnector } from './connectors/Groq.class';
|
|
|
10
10
|
import { BedrockConnector } from './connectors/Bedrock.class';
|
|
11
11
|
import { VertexAIConnector } from './connectors/VertexAI.class';
|
|
12
12
|
import { PerplexityConnector } from './connectors/Perplexity.class';
|
|
13
|
-
import { xAIConnector } from './connectors/xAI';
|
|
13
|
+
import { xAIConnector } from './connectors/xAI.class';
|
|
14
14
|
|
|
15
15
|
export class LLMService extends ConnectorServiceProvider {
|
|
16
16
|
public register() {
|
|
@@ -163,7 +163,9 @@ export class JSONFileVault extends VaultConnector {
|
|
|
163
163
|
|
|
164
164
|
@SecureConnector.AccessControl
|
|
165
165
|
protected async listKeys(acRequest: AccessRequest) {
|
|
166
|
-
|
|
166
|
+
const accountConnector = ConnectorService.getAccountConnector();
|
|
167
|
+
const teamId = await accountConnector.getCandidateTeam(acRequest.candidate);
|
|
168
|
+
return Object.keys(this.vaultData?.[teamId] || this.vaultData?.[this.shared] || {});
|
|
167
169
|
}
|
|
168
170
|
|
|
169
171
|
public async getResourceACL(resourceId: string, candidate: IAccessCandidate) {
|
|
File without changes
|