@smythos/sre 1.8.0 → 1.8.1
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/CHANGELOG +311 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Components/ImageGenerator.class.ts +32 -13
- package/src/index.ts +215 -215
- package/src/index.ts.bak +215 -215
- package/src/subsystems/LLMManager/LLM.service/LLMConnector.ts +9 -0
- package/src/subsystems/LLMManager/LLM.service/connectors/GoogleAI.class.ts +31 -35
package/src/index.ts.bak
CHANGED
|
@@ -1,218 +1,218 @@
|
|
|
1
|
-
//!!! This is a generated file, do not edit it directly !!!//
|
|
1
|
+
//!!! This is a generated file, do not edit it directly !!!//
|
|
2
|
+
|
|
3
|
+
export { version } from '../package.json';
|
|
4
|
+
|
|
2
5
|
|
|
3
|
-
export { version } from '../package.json';
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './Components/
|
|
11
|
-
export * from './Components/
|
|
12
|
-
export * from './Components/
|
|
13
|
-
export * from './Components/
|
|
14
|
-
export * from './Components/
|
|
15
|
-
export * from './Components/
|
|
16
|
-
export * from './Components/
|
|
17
|
-
export * from './Components/
|
|
18
|
-
export * from './Components/
|
|
19
|
-
export * from './Components/
|
|
20
|
-
export * from './Components/
|
|
21
|
-
export * from './Components/
|
|
22
|
-
export * from './Components/
|
|
23
|
-
export * from './Components/
|
|
24
|
-
export * from './Components/
|
|
25
|
-
export * from './Components/
|
|
26
|
-
export * from './Components/
|
|
27
|
-
export * from './Components/
|
|
28
|
-
export * from './Components/
|
|
29
|
-
export * from './Components/
|
|
30
|
-
export * from './Components/
|
|
31
|
-
export * from './Components/
|
|
32
|
-
export * from './Components/
|
|
33
|
-
export * from './Components/
|
|
34
|
-
export * from './Components/
|
|
35
|
-
export * from './Components/
|
|
36
|
-
export * from './Components/
|
|
37
|
-
export * from './Components/
|
|
38
|
-
export * from './Components/
|
|
39
|
-
export * from './Components/
|
|
40
|
-
export * from './Components/
|
|
41
|
-
export * from './Components/
|
|
42
|
-
export * from './Components/
|
|
43
|
-
export * from './Components/
|
|
44
|
-
export * from './Components/
|
|
45
|
-
export * from './Components/
|
|
46
|
-
export * from './Components/
|
|
47
|
-
export * from './
|
|
48
|
-
export * from './
|
|
49
|
-
export * from './Core/
|
|
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 './helpers/
|
|
69
|
-
export * from './helpers/
|
|
70
|
-
export * from './
|
|
71
|
-
export * from './
|
|
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 './types/
|
|
81
|
-
export * from './types/
|
|
82
|
-
export * from './
|
|
83
|
-
export * from './
|
|
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/APICall/
|
|
90
|
-
export * from './Components/APICall/
|
|
91
|
-
export * from './Components/
|
|
92
|
-
export * from './Components/
|
|
93
|
-
export * from './Components/
|
|
94
|
-
export * from './Components/RAG/
|
|
95
|
-
export * from './Components/RAG/
|
|
96
|
-
export * from './Components/
|
|
97
|
-
export * from './Components/
|
|
98
|
-
export * from './Components/Triggers/
|
|
99
|
-
export * from './Components/Triggers/
|
|
100
|
-
export * from './
|
|
101
|
-
export * from './
|
|
102
|
-
export * from './subsystems/AgentManager/
|
|
103
|
-
export * from './subsystems/AgentManager/
|
|
104
|
-
export * from './subsystems/AgentManager/
|
|
105
|
-
export * from './subsystems/AgentManager/
|
|
106
|
-
export * from './subsystems/AgentManager/
|
|
107
|
-
export * from './subsystems/AgentManager/
|
|
108
|
-
export * from './subsystems/AgentManager/
|
|
109
|
-
export * from './subsystems/AgentManager/
|
|
110
|
-
export * from './subsystems/
|
|
111
|
-
export * from './subsystems/
|
|
112
|
-
export * from './subsystems/LLMManager/
|
|
113
|
-
export * from './subsystems/LLMManager/
|
|
114
|
-
export * from './subsystems/LLMManager/
|
|
115
|
-
export * from './subsystems/
|
|
116
|
-
export * from './subsystems/
|
|
117
|
-
export * from './subsystems/MemoryManager/
|
|
118
|
-
export * from './subsystems/
|
|
119
|
-
export * from './subsystems/
|
|
120
|
-
export * from './subsystems/
|
|
121
|
-
export * from './subsystems/
|
|
122
|
-
export * from './subsystems/AgentManager/
|
|
123
|
-
export * from './subsystems/AgentManager/
|
|
124
|
-
export * from './subsystems/AgentManager/
|
|
125
|
-
export * from './subsystems/AgentManager/
|
|
126
|
-
export * from './subsystems/AgentManager/Scheduler.service/
|
|
127
|
-
export * from './subsystems/AgentManager/Scheduler.service/
|
|
128
|
-
export * from './subsystems/
|
|
129
|
-
export * from './subsystems/
|
|
130
|
-
export * from './subsystems/
|
|
131
|
-
export * from './subsystems/
|
|
132
|
-
export * from './subsystems/IO/
|
|
133
|
-
export * from './subsystems/IO/
|
|
134
|
-
export * from './subsystems/IO/
|
|
135
|
-
export * from './subsystems/IO/
|
|
136
|
-
export * from './subsystems/IO/
|
|
137
|
-
export * from './subsystems/IO/
|
|
138
|
-
export * from './subsystems/IO/Storage.service/
|
|
139
|
-
export * from './subsystems/IO/
|
|
140
|
-
export * from './subsystems/IO/
|
|
141
|
-
export * from './subsystems/
|
|
142
|
-
export * from './subsystems/
|
|
143
|
-
export * from './subsystems/LLMManager/LLM.service/
|
|
144
|
-
export * from './subsystems/LLMManager/
|
|
145
|
-
export * from './subsystems/LLMManager/
|
|
146
|
-
export * from './subsystems/
|
|
147
|
-
export * from './subsystems/
|
|
148
|
-
export * from './subsystems/MemoryManager/
|
|
149
|
-
export * from './subsystems/
|
|
150
|
-
export * from './subsystems/
|
|
151
|
-
export * from './subsystems/ObservabilityManager/
|
|
152
|
-
export * from './subsystems/ObservabilityManager/
|
|
153
|
-
export * from './subsystems/
|
|
154
|
-
export * from './subsystems/
|
|
155
|
-
export * from './subsystems/Security/AccessControl/
|
|
156
|
-
export * from './subsystems/Security/
|
|
157
|
-
export * from './subsystems/Security/
|
|
158
|
-
export * from './subsystems/Security/
|
|
159
|
-
export * from './subsystems/Security/
|
|
160
|
-
export * from './subsystems/Security/
|
|
161
|
-
export * from './subsystems/Security/
|
|
162
|
-
export * from './subsystems/Security/
|
|
163
|
-
export * from './subsystems/Security/
|
|
164
|
-
export * from './subsystems/Security/Vault.service/
|
|
165
|
-
export * from './subsystems/
|
|
166
|
-
export * from './subsystems/
|
|
167
|
-
export * from './subsystems/AgentManager/AgentData.service/connectors/
|
|
168
|
-
export * from './subsystems/AgentManager/AgentData.service/connectors/
|
|
169
|
-
export * from './subsystems/AgentManager/
|
|
170
|
-
export * from './subsystems/AgentManager/
|
|
171
|
-
export * from './subsystems/
|
|
172
|
-
export * from './subsystems/
|
|
173
|
-
export * from './subsystems/
|
|
174
|
-
export * from './subsystems/IO/NKV.service/connectors/
|
|
175
|
-
export * from './subsystems/IO/
|
|
176
|
-
export * from './subsystems/IO/
|
|
177
|
-
export * from './subsystems/IO/
|
|
178
|
-
export * from './subsystems/IO/
|
|
179
|
-
export * from './subsystems/IO/
|
|
180
|
-
export * from './subsystems/IO/
|
|
181
|
-
export * from './subsystems/IO/VectorDB.service/connectors/
|
|
182
|
-
export * from './subsystems/IO/VectorDB.service/
|
|
183
|
-
export * from './subsystems/IO/VectorDB.service/
|
|
184
|
-
export * from './subsystems/IO/VectorDB.service/embed/
|
|
185
|
-
export * from './subsystems/IO/VectorDB.service/embed/
|
|
186
|
-
export * from './subsystems/
|
|
187
|
-
export * from './subsystems/
|
|
188
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
189
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
190
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
191
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
192
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
193
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
194
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/
|
|
195
|
-
export * from './subsystems/LLMManager/
|
|
196
|
-
export * from './subsystems/
|
|
197
|
-
export * from './subsystems/
|
|
198
|
-
export * from './subsystems/MemoryManager/Cache.service/connectors/
|
|
199
|
-
export * from './subsystems/MemoryManager/Cache.service/connectors/
|
|
200
|
-
export * from './subsystems/
|
|
201
|
-
export * from './subsystems/
|
|
202
|
-
export * from './subsystems/
|
|
203
|
-
export * from './subsystems/Security/Account.service/connectors/
|
|
204
|
-
export * from './subsystems/Security/
|
|
205
|
-
export * from './subsystems/Security/
|
|
206
|
-
export * from './subsystems/Security/
|
|
207
|
-
export * from './subsystems/Security/
|
|
208
|
-
export * from './subsystems/Security/Vault.service/connectors/
|
|
209
|
-
export * from './subsystems/Security/Vault.service/connectors/
|
|
210
|
-
export * from './subsystems/
|
|
211
|
-
export * from './subsystems/
|
|
212
|
-
export * from './subsystems/
|
|
213
|
-
export * from './subsystems/
|
|
214
|
-
export * from './subsystems/ObservabilityManager/Telemetry.service/connectors/OTel/
|
|
215
|
-
export * from './subsystems/
|
|
216
|
-
export * from './subsystems/ObservabilityManager/Telemetry.service/connectors/OTel/OTelContextRegistry';
|
|
217
|
-
export * from './subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/constants';
|
|
7
|
+
|
|
8
|
+
export * from './config';
|
|
9
|
+
export * from './constants';
|
|
10
|
+
export * from './Components/AgentPlugin.class';
|
|
11
|
+
export * from './Components/APIEndpoint.class';
|
|
12
|
+
export * from './Components/APIOutput.class';
|
|
13
|
+
export * from './Components/Async.class';
|
|
14
|
+
export * from './Components/Await.class';
|
|
15
|
+
export * from './Components/Classifier.class';
|
|
16
|
+
export * from './Components/Component.class';
|
|
17
|
+
export * from './Components/ComponentHost.class';
|
|
18
|
+
export * from './Components/FEncDec.class';
|
|
19
|
+
export * from './Components/FHash.class';
|
|
20
|
+
export * from './Components/FileStore.class';
|
|
21
|
+
export * from './Components/ForEach.class';
|
|
22
|
+
export * from './Components/FSign.class';
|
|
23
|
+
export * from './Components/FSleep.class';
|
|
24
|
+
export * from './Components/FTimestamp.class';
|
|
25
|
+
export * from './Components/GenAILLM.class';
|
|
26
|
+
export * from './Components/GPTPlugin.class';
|
|
27
|
+
export * from './Components/HuggingFace.class';
|
|
28
|
+
export * from './Components/ImageGenerator.class';
|
|
29
|
+
export * from './Components/index';
|
|
30
|
+
export * from './Components/JSONFilter.class';
|
|
31
|
+
export * from './Components/LLMAssistant.class';
|
|
32
|
+
export * from './Components/LogicAND.class';
|
|
33
|
+
export * from './Components/LogicAtLeast.class';
|
|
34
|
+
export * from './Components/LogicAtMost.class';
|
|
35
|
+
export * from './Components/LogicOR.class';
|
|
36
|
+
export * from './Components/LogicXOR.class';
|
|
37
|
+
export * from './Components/MCPClient.class';
|
|
38
|
+
export * from './Components/MemoryDeleteKeyVal.class';
|
|
39
|
+
export * from './Components/MemoryReadKeyVal.class';
|
|
40
|
+
export * from './Components/MemoryWriteKeyVal.class';
|
|
41
|
+
export * from './Components/MemoryWriteObject.class';
|
|
42
|
+
export * from './Components/MultimodalLLM.class';
|
|
43
|
+
export * from './Components/PromptGenerator.class';
|
|
44
|
+
export * from './Components/ScrapflyWebScrape.class';
|
|
45
|
+
export * from './Components/ServerlessCode.class';
|
|
46
|
+
export * from './Components/TavilyWebSearch.class';
|
|
47
|
+
export * from './Components/VisionLLM.class';
|
|
48
|
+
export * from './Components/ZapierAction.class';
|
|
49
|
+
export * from './Core/AgentProcess.helper';
|
|
50
|
+
export * from './Core/boot';
|
|
51
|
+
export * from './Core/Connector.class';
|
|
52
|
+
export * from './Core/ConnectorsService';
|
|
53
|
+
export * from './Core/DummyConnector';
|
|
54
|
+
export * from './Core/ExternalEventsReceiver';
|
|
55
|
+
export * from './Core/HookService';
|
|
56
|
+
export * from './Core/SmythRuntime.class';
|
|
57
|
+
export * from './Core/SystemEvents';
|
|
58
|
+
export * from './helpers/AWSLambdaCode.helper';
|
|
59
|
+
export * from './helpers/BinaryInput.helper';
|
|
60
|
+
export * from './helpers/Conversation.helper';
|
|
61
|
+
export * from './helpers/Crypto.helper';
|
|
62
|
+
export * from './helpers/ECMASandbox.helper';
|
|
63
|
+
export * from './helpers/JsonContent.helper';
|
|
64
|
+
export * from './helpers/LocalCache.helper';
|
|
65
|
+
export * from './helpers/Log.helper';
|
|
66
|
+
export * from './helpers/OpenApiParser.helper';
|
|
67
|
+
export * from './helpers/S3Cache.helper';
|
|
68
|
+
export * from './helpers/SmythURI.helper';
|
|
69
|
+
export * from './helpers/Sysconfig.helper';
|
|
70
|
+
export * from './helpers/TemplateString.helper';
|
|
71
|
+
export * from './helpers/TypeChecker.helper';
|
|
72
|
+
export * from './types/ACL.types';
|
|
73
|
+
export * from './types/Agent.types';
|
|
74
|
+
export * from './types/AgentLogger.types';
|
|
75
|
+
export * from './types/AWS.types';
|
|
76
|
+
export * from './types/Cache.types';
|
|
77
|
+
export * from './types/Common.types';
|
|
78
|
+
export * from './types/LLM.types';
|
|
79
|
+
export * from './types/Redis.types';
|
|
80
|
+
export * from './types/Security.types';
|
|
81
|
+
export * from './types/SRE.types';
|
|
82
|
+
export * from './types/Storage.types';
|
|
83
|
+
export * from './types/VectorDB.types';
|
|
84
|
+
export * from './Components/APICall/AccessTokenManager';
|
|
85
|
+
export * from './Components/APICall/APICall.class';
|
|
86
|
+
export * from './Components/APICall/ArrayBufferResponse.helper';
|
|
87
|
+
export * from './Components/APICall/mimeTypeCategories';
|
|
88
|
+
export * from './Components/APICall/OAuth.helper';
|
|
89
|
+
export * from './Components/APICall/parseData';
|
|
90
|
+
export * from './Components/APICall/parseHeaders';
|
|
91
|
+
export * from './Components/APICall/parseProxy';
|
|
92
|
+
export * from './Components/APICall/parseUrl';
|
|
93
|
+
export * from './Components/Image/imageSettings.config';
|
|
94
|
+
export * from './Components/RAG/DataSourceCleaner.class';
|
|
95
|
+
export * from './Components/RAG/DataSourceComponent.class';
|
|
96
|
+
export * from './Components/RAG/DataSourceIndexer.class';
|
|
97
|
+
export * from './Components/RAG/DataSourceLookup.class';
|
|
98
|
+
export * from './Components/Triggers/Gmail.trigger';
|
|
99
|
+
export * from './Components/Triggers/JobScheduler.trigger';
|
|
100
|
+
export * from './Components/Triggers/Trigger.class';
|
|
101
|
+
export * from './Components/Triggers/WhatsApp.trigger';
|
|
102
|
+
export * from './subsystems/AgentManager/Agent.class';
|
|
103
|
+
export * from './subsystems/AgentManager/Agent.helper';
|
|
104
|
+
export * from './subsystems/AgentManager/AgentLogger.class';
|
|
105
|
+
export * from './subsystems/AgentManager/AgentRequest.class';
|
|
106
|
+
export * from './subsystems/AgentManager/AgentRuntime.class';
|
|
107
|
+
export * from './subsystems/AgentManager/AgentSettings.class';
|
|
108
|
+
export * from './subsystems/AgentManager/AgentSSE.class';
|
|
109
|
+
export * from './subsystems/AgentManager/EmbodimentSettings.class';
|
|
110
|
+
export * from './subsystems/AgentManager/ForkedAgent.class';
|
|
111
|
+
export * from './subsystems/AgentManager/OSResourceMonitor';
|
|
112
|
+
export * from './subsystems/LLMManager/custom-models';
|
|
113
|
+
export * from './subsystems/LLMManager/LLM.helper';
|
|
114
|
+
export * from './subsystems/LLMManager/LLM.inference';
|
|
115
|
+
export * from './subsystems/LLMManager/models';
|
|
116
|
+
export * from './subsystems/LLMManager/paramMappings';
|
|
117
|
+
export * from './subsystems/MemoryManager/LLMCache';
|
|
118
|
+
export * from './subsystems/MemoryManager/LLMContext';
|
|
119
|
+
export * from './subsystems/MemoryManager/RuntimeContext';
|
|
120
|
+
export * from './subsystems/Security/Credentials.helper';
|
|
121
|
+
export * from './subsystems/Security/SecureConnector.class';
|
|
122
|
+
export * from './subsystems/AgentManager/AgentData.service/AgentDataConnector';
|
|
123
|
+
export * from './subsystems/AgentManager/AgentData.service/index';
|
|
124
|
+
export * from './subsystems/AgentManager/Component.service/ComponentConnector';
|
|
125
|
+
export * from './subsystems/AgentManager/Component.service/index';
|
|
126
|
+
export * from './subsystems/AgentManager/Scheduler.service/index';
|
|
127
|
+
export * from './subsystems/AgentManager/Scheduler.service/Job.class';
|
|
128
|
+
export * from './subsystems/AgentManager/Scheduler.service/Schedule.class';
|
|
129
|
+
export * from './subsystems/AgentManager/Scheduler.service/SchedulerConnector';
|
|
130
|
+
export * from './subsystems/ComputeManager/Code.service/CodeConnector';
|
|
131
|
+
export * from './subsystems/ComputeManager/Code.service/index';
|
|
132
|
+
export * from './subsystems/IO/CLI.service/CLIConnector';
|
|
133
|
+
export * from './subsystems/IO/CLI.service/index';
|
|
134
|
+
export * from './subsystems/IO/NKV.service/index';
|
|
135
|
+
export * from './subsystems/IO/NKV.service/NKVConnector';
|
|
136
|
+
export * from './subsystems/IO/Router.service/index';
|
|
137
|
+
export * from './subsystems/IO/Router.service/RouterConnector';
|
|
138
|
+
export * from './subsystems/IO/Storage.service/index';
|
|
139
|
+
export * from './subsystems/IO/Storage.service/SmythFS.class';
|
|
140
|
+
export * from './subsystems/IO/Storage.service/StorageConnector';
|
|
141
|
+
export * from './subsystems/IO/VectorDB.service/index';
|
|
142
|
+
export * from './subsystems/IO/VectorDB.service/VectorDBConnector';
|
|
143
|
+
export * from './subsystems/LLMManager/LLM.service/index';
|
|
144
|
+
export * from './subsystems/LLMManager/LLM.service/LLMConnector';
|
|
145
|
+
export * from './subsystems/LLMManager/LLM.service/LLMCredentials.helper';
|
|
146
|
+
export * from './subsystems/LLMManager/ModelsProvider.service/index';
|
|
147
|
+
export * from './subsystems/LLMManager/ModelsProvider.service/ModelsProviderConnector';
|
|
148
|
+
export * from './subsystems/MemoryManager/Cache.service/CacheConnector';
|
|
149
|
+
export * from './subsystems/MemoryManager/Cache.service/index';
|
|
150
|
+
export * from './subsystems/MemoryManager/LLMMemory.service/LLMMemoryConnector';
|
|
151
|
+
export * from './subsystems/ObservabilityManager/Log.service/index';
|
|
152
|
+
export * from './subsystems/ObservabilityManager/Log.service/LogConnector';
|
|
153
|
+
export * from './subsystems/ObservabilityManager/Telemetry.service/index';
|
|
154
|
+
export * from './subsystems/ObservabilityManager/Telemetry.service/TelemetryConnector';
|
|
155
|
+
export * from './subsystems/Security/AccessControl/AccessCandidate.class';
|
|
156
|
+
export * from './subsystems/Security/AccessControl/AccessRequest.class';
|
|
157
|
+
export * from './subsystems/Security/AccessControl/ACL.class';
|
|
158
|
+
export * from './subsystems/Security/Account.service/AccountConnector';
|
|
159
|
+
export * from './subsystems/Security/Account.service/index';
|
|
160
|
+
export * from './subsystems/Security/Credentials/Credentials.class';
|
|
161
|
+
export * from './subsystems/Security/Credentials/ManagedOAuth2Credentials.class';
|
|
162
|
+
export * from './subsystems/Security/ManagedVault.service/index';
|
|
163
|
+
export * from './subsystems/Security/ManagedVault.service/ManagedVaultConnector';
|
|
164
|
+
export * from './subsystems/Security/Vault.service/index';
|
|
165
|
+
export * from './subsystems/Security/Vault.service/Vault.helper';
|
|
166
|
+
export * from './subsystems/Security/Vault.service/VaultConnector';
|
|
167
|
+
export * from './subsystems/AgentManager/AgentData.service/connectors/CLIAgentDataConnector.class';
|
|
168
|
+
export * from './subsystems/AgentManager/AgentData.service/connectors/LocalAgentDataConnector.class';
|
|
169
|
+
export * from './subsystems/AgentManager/AgentData.service/connectors/NullAgentData.class';
|
|
170
|
+
export * from './subsystems/AgentManager/AgentData.service/connectors/SQLiteAgentDataConnector.class';
|
|
171
|
+
export * from './subsystems/AgentManager/Component.service/connectors/LocalComponentConnector.class';
|
|
172
|
+
export * from './subsystems/AgentManager/Scheduler.service/connectors/LocalScheduler.class';
|
|
173
|
+
export * from './subsystems/ComputeManager/Code.service/connectors/AWSLambdaCode.class';
|
|
174
|
+
export * from './subsystems/IO/NKV.service/connectors/NKVLocalStorage.class';
|
|
175
|
+
export * from './subsystems/IO/NKV.service/connectors/NKVRAM.class';
|
|
176
|
+
export * from './subsystems/IO/NKV.service/connectors/NKVRedis.class';
|
|
177
|
+
export * from './subsystems/IO/Router.service/connectors/ExpressRouter.class';
|
|
178
|
+
export * from './subsystems/IO/Router.service/connectors/NullRouter.class';
|
|
179
|
+
export * from './subsystems/IO/Storage.service/connectors/LocalStorage.class';
|
|
180
|
+
export * from './subsystems/IO/Storage.service/connectors/S3Storage.class';
|
|
181
|
+
export * from './subsystems/IO/VectorDB.service/connectors/MilvusVectorDB.class';
|
|
182
|
+
export * from './subsystems/IO/VectorDB.service/connectors/PineconeVectorDB.class';
|
|
183
|
+
export * from './subsystems/IO/VectorDB.service/connectors/RAMVecrtorDB.class';
|
|
184
|
+
export * from './subsystems/IO/VectorDB.service/embed/BaseEmbedding';
|
|
185
|
+
export * from './subsystems/IO/VectorDB.service/embed/GoogleEmbedding';
|
|
186
|
+
export * from './subsystems/IO/VectorDB.service/embed/index';
|
|
187
|
+
export * from './subsystems/IO/VectorDB.service/embed/OpenAIEmbedding';
|
|
188
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Anthropic.class';
|
|
189
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Bedrock.class';
|
|
190
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Echo.class';
|
|
191
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/GoogleAI.class';
|
|
192
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Groq.class';
|
|
193
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Ollama.class';
|
|
194
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Perplexity.class';
|
|
195
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/VertexAI.class';
|
|
196
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/xAI.class';
|
|
197
|
+
export * from './subsystems/LLMManager/ModelsProvider.service/connectors/JSONModelsProvider.class';
|
|
198
|
+
export * from './subsystems/MemoryManager/Cache.service/connectors/LocalStorageCache.class';
|
|
199
|
+
export * from './subsystems/MemoryManager/Cache.service/connectors/RAMCache.class';
|
|
200
|
+
export * from './subsystems/MemoryManager/Cache.service/connectors/RedisCache.class';
|
|
201
|
+
export * from './subsystems/MemoryManager/Cache.service/connectors/S3Cache.class';
|
|
202
|
+
export * from './subsystems/ObservabilityManager/Log.service/connectors/ConsoleLog.class';
|
|
203
|
+
export * from './subsystems/Security/Account.service/connectors/DummyAccount.class';
|
|
204
|
+
export * from './subsystems/Security/Account.service/connectors/JSONFileAccount.class';
|
|
205
|
+
export * from './subsystems/Security/Account.service/connectors/MySQLAccount.class';
|
|
206
|
+
export * from './subsystems/Security/ManagedVault.service/connectors/NullManagedVault.class';
|
|
207
|
+
export * from './subsystems/Security/ManagedVault.service/connectors/SecretManagerManagedVault';
|
|
208
|
+
export * from './subsystems/Security/Vault.service/connectors/HashicorpVault.class';
|
|
209
|
+
export * from './subsystems/Security/Vault.service/connectors/JSONFileVault.class';
|
|
210
|
+
export * from './subsystems/Security/Vault.service/connectors/NullVault.class';
|
|
211
|
+
export * from './subsystems/Security/Vault.service/connectors/SecretsManager.class';
|
|
212
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/openai/OpenAIConnector.class';
|
|
213
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/openai/types';
|
|
214
|
+
export * from './subsystems/ObservabilityManager/Telemetry.service/connectors/OTel/OTel.class';
|
|
215
|
+
export * from './subsystems/ObservabilityManager/Telemetry.service/connectors/OTel/OTel.redaction.helper';
|
|
216
|
+
export * from './subsystems/ObservabilityManager/Telemetry.service/connectors/OTel/OTelContextRegistry';
|
|
217
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/constants';
|
|
218
218
|
export * from './subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/utils';
|
|
@@ -286,6 +286,15 @@ export abstract class LLMConnector extends Connector {
|
|
|
286
286
|
const modelProviderCandidate = modelsProvider.requester(candidate);
|
|
287
287
|
const modelInfo: TLLMModel | TCustomLLMModel = await modelProviderCandidate.getModelInfo(model);
|
|
288
288
|
|
|
289
|
+
// If the model entry has an alias, it means this entry forwards to another model.
|
|
290
|
+
// Usage must be reported against the alias (the actual model being billed),
|
|
291
|
+
// not the forwarding entry (which may have stale/different pricing).
|
|
292
|
+
// Guard: skip for custom/enterprise LLMs — they are not billed and should
|
|
293
|
+
// retain their own entry name (enterprise models use alias only for config inheritance).
|
|
294
|
+
if (modelInfo?.alias && !(modelInfo as TCustomLLMModel)?.isCustomLLM) {
|
|
295
|
+
_params.modelEntryName = modelInfo.alias;
|
|
296
|
+
}
|
|
297
|
+
|
|
289
298
|
//if the model has default params make sure to set them if they are not present
|
|
290
299
|
if (modelInfo.params) {
|
|
291
300
|
for (let key in modelInfo.params) {
|
|
@@ -158,18 +158,18 @@ export class GoogleAIConnector extends LLMConnector {
|
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
160
|
* Stream request implementation.
|
|
161
|
-
*
|
|
161
|
+
*
|
|
162
162
|
* **Error Handling Pattern:**
|
|
163
163
|
* - Always returns emitters, never throws errors - ensures consistent error handling
|
|
164
164
|
* - Uses setImmediate for event emission - prevents race conditions where events fire before listeners attach
|
|
165
165
|
* - Emits End after terminal events (Error, Abort) - ensures cleanup code always runs
|
|
166
|
-
*
|
|
166
|
+
*
|
|
167
167
|
* **Why setImmediate?**
|
|
168
168
|
* Since streamRequest is async, callers must await to get the emitter, creating a timing gap.
|
|
169
169
|
* setImmediate defers event emission to the next event loop tick, ensuring events fire AFTER
|
|
170
170
|
* listeners are attached. This prevents race conditions where synchronous event emission
|
|
171
171
|
* would occur before listeners can be registered.
|
|
172
|
-
*
|
|
172
|
+
*
|
|
173
173
|
* @param acRequest - Access request for authorization
|
|
174
174
|
* @param body - Request body parameters
|
|
175
175
|
* @param context - LLM request context
|
|
@@ -278,27 +278,27 @@ export class GoogleAIConnector extends LLMConnector {
|
|
|
278
278
|
// Note: GoogleAI stream doesn't provide explicit finish reasons
|
|
279
279
|
// If we had a non-stop finish reason, we would emit Interrupted here
|
|
280
280
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
281
|
+
setTimeout(() => {
|
|
282
|
+
emitter.emit(TLLMEvent.End, toolsData, reportedUsage, finishReason);
|
|
283
|
+
}, 100);
|
|
284
|
+
} catch (error) {
|
|
285
|
+
const isAbort = (error as any)?.name === 'AbortError' || abortSignal?.aborted;
|
|
286
|
+
if (isAbort) {
|
|
287
|
+
logger.debug(`streamRequest ${this.name} aborted`, error, acRequest.candidate);
|
|
288
|
+
// Always use DOMException with name 'AbortError' per Web API standards for consistency
|
|
289
|
+
const abortError = new DOMException('Request aborted', 'AbortError');
|
|
290
|
+
setImmediate(() => {
|
|
291
|
+
emitter.emit(TLLMEvent.Abort, abortError);
|
|
292
|
+
emitter.emit(TLLMEvent.End, [], [], TLLMFinishReason.Abort);
|
|
293
|
+
});
|
|
294
|
+
} else {
|
|
295
|
+
logger.error(`streamRequest ${this.name}`, error, acRequest.candidate);
|
|
296
|
+
setImmediate(() => {
|
|
297
|
+
emitter.emit(TLLMEvent.Error, error);
|
|
298
|
+
emitter.emit(TLLMEvent.End, [], [], TLLMFinishReason.Error);
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
302
|
})();
|
|
303
303
|
});
|
|
304
304
|
|
|
@@ -382,7 +382,7 @@ export class GoogleAIConnector extends LLMConnector {
|
|
|
382
382
|
|
|
383
383
|
if (imageData.length === 0) {
|
|
384
384
|
throw new Error(
|
|
385
|
-
'Please enter a valid prompt — for example: "Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme."'
|
|
385
|
+
'Please enter a valid prompt — for example: "Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme."',
|
|
386
386
|
);
|
|
387
387
|
}
|
|
388
388
|
|
|
@@ -619,7 +619,7 @@ export class GoogleAIConnector extends LLMConnector {
|
|
|
619
619
|
|
|
620
620
|
protected reportUsage(
|
|
621
621
|
usage: UsageMetadataWithThoughtsToken,
|
|
622
|
-
metadata: { modelEntryName: string; keySource: APIKeySource; agentId: string; teamId: string }
|
|
622
|
+
metadata: { modelEntryName: string; keySource: APIKeySource; agentId: string; teamId: string },
|
|
623
623
|
) {
|
|
624
624
|
// SmythOS (built-in) models have a prefix, so we need to remove it to get the model name
|
|
625
625
|
const modelName = metadata.modelEntryName.replace(BUILT_IN_MODEL_PREFIX, '');
|
|
@@ -638,17 +638,13 @@ export class GoogleAIConnector extends LLMConnector {
|
|
|
638
638
|
}
|
|
639
639
|
|
|
640
640
|
// #region Find matching model and set tier based on threshold
|
|
641
|
-
const
|
|
642
|
-
|
|
643
|
-
'gemini-2.5-pro': 200_000,
|
|
644
|
-
'gemini-3-pro': 200_000,
|
|
645
|
-
};
|
|
641
|
+
const isProModel = modelName.includes('pro');
|
|
642
|
+
const tierThreshold = 200_000;
|
|
646
643
|
|
|
647
644
|
let tier = '';
|
|
648
645
|
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
tier = inputTokens <= tierThresholds[modelWithTier] ? 'tier1' : 'tier2';
|
|
646
|
+
if (isProModel) {
|
|
647
|
+
tier = inputTokens <= tierThreshold ? 'tier1' : 'tier2';
|
|
652
648
|
}
|
|
653
649
|
// #endregion
|
|
654
650
|
|
|
@@ -1408,7 +1404,7 @@ export class GoogleAIConnector extends LLMConnector {
|
|
|
1408
1404
|
files: {
|
|
1409
1405
|
url: string;
|
|
1410
1406
|
mimetype: string;
|
|
1411
|
-
}[]
|
|
1407
|
+
}[],
|
|
1412
1408
|
): {
|
|
1413
1409
|
fileData: {
|
|
1414
1410
|
mimeType: string;
|