@smythos/sre 1.5.39 → 1.5.41
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 +42 -40
- package/dist/index.js.map +1 -1
- package/dist/types/Components/MemoryDeleteKeyVal.class.d.ts +19 -0
- package/dist/types/Components/MemoryReadKeyVal.class.d.ts +17 -0
- package/dist/types/Components/MemoryWriteKeyVal.class.d.ts +17 -0
- package/dist/types/Components/MemoryWriteObject.class.d.ts +19 -0
- package/dist/types/Components/index.d.ts +8 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/subsystems/LLMManager/LLM.service/connectors/VertexAI.class.d.ts +7 -10
- package/dist/types/subsystems/LLMManager/ModelsProvider.service/ModelsProviderConnector.d.ts +1 -1
- package/package.json +1 -1
- package/src/Components/MemoryDeleteKeyVal.class.ts +70 -0
- package/src/Components/MemoryReadKeyVal.class.ts +66 -0
- package/src/Components/MemoryWriteKeyVal.class.ts +62 -0
- package/src/Components/MemoryWriteObject.class.ts +97 -0
- package/src/Components/index.ts +8 -0
- package/src/helpers/Conversation.helper.ts +11 -3
- package/src/index.ts +192 -188
- package/src/index.ts.bak +192 -188
- package/src/subsystems/LLMManager/LLM.service/LLMConnector.ts +4 -2
- package/src/subsystems/LLMManager/LLM.service/connectors/Anthropic.class.ts +5 -3
- package/src/subsystems/LLMManager/LLM.service/connectors/GoogleAI.class.ts +18 -3
- package/src/subsystems/LLMManager/LLM.service/connectors/VertexAI.class.ts +267 -149
- package/src/subsystems/LLMManager/LLM.service/connectors/openai/OpenAIConnector.class.ts +1 -1
- package/src/subsystems/LLMManager/ModelsProvider.service/ModelsProviderConnector.ts +6 -6
- package/src/subsystems/LLMManager/models.ts +1 -1
package/src/index.ts.bak
CHANGED
|
@@ -1,191 +1,195 @@
|
|
|
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 './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 './helpers/
|
|
69
|
-
export * from './
|
|
70
|
-
export * from './
|
|
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 './types/
|
|
81
|
-
export * from './
|
|
82
|
-
export * from './
|
|
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/APICall/
|
|
90
|
-
export * from './Components/
|
|
91
|
-
export * from './
|
|
92
|
-
export * from './
|
|
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/AgentManager/
|
|
101
|
-
export * from './subsystems/
|
|
102
|
-
export * from './subsystems/
|
|
103
|
-
export * from './subsystems/LLMManager/
|
|
104
|
-
export * from './subsystems/LLMManager/
|
|
105
|
-
export * from './subsystems/LLMManager/
|
|
106
|
-
export * from './subsystems/
|
|
107
|
-
export * from './subsystems/
|
|
108
|
-
export * from './subsystems/MemoryManager/
|
|
109
|
-
export * from './subsystems/
|
|
110
|
-
export * from './subsystems/
|
|
111
|
-
export * from './subsystems/
|
|
112
|
-
export * from './subsystems/
|
|
113
|
-
export * from './subsystems/AgentManager/
|
|
114
|
-
export * from './subsystems/AgentManager/
|
|
115
|
-
export * from './subsystems/
|
|
116
|
-
export * from './subsystems/
|
|
117
|
-
export * from './subsystems/
|
|
118
|
-
export * from './subsystems/
|
|
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/
|
|
127
|
-
export * from './subsystems/IO/Storage.service/
|
|
128
|
-
export * from './subsystems/IO/
|
|
129
|
-
export * from './subsystems/IO/
|
|
130
|
-
export * from './subsystems/
|
|
131
|
-
export * from './subsystems/
|
|
132
|
-
export * from './subsystems/LLMManager/LLM.service/
|
|
133
|
-
export * from './subsystems/LLMManager/
|
|
134
|
-
export * from './subsystems/LLMManager/
|
|
135
|
-
export * from './subsystems/
|
|
136
|
-
export * from './subsystems/
|
|
137
|
-
export * from './subsystems/MemoryManager/
|
|
138
|
-
export * from './subsystems/
|
|
139
|
-
export * from './subsystems/
|
|
140
|
-
export * from './subsystems/Security/AccessControl/
|
|
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/
|
|
147
|
-
export * from './subsystems/Security/Vault.service/
|
|
148
|
-
export * from './subsystems/
|
|
149
|
-
export * from './subsystems/
|
|
150
|
-
export * from './subsystems/AgentManager/AgentData.service/connectors/
|
|
151
|
-
export * from './subsystems/AgentManager/
|
|
152
|
-
export * from './subsystems/
|
|
153
|
-
export * from './subsystems/
|
|
154
|
-
export * from './subsystems/
|
|
155
|
-
export * from './subsystems/IO/
|
|
156
|
-
export * from './subsystems/IO/NKV.service/connectors/
|
|
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/
|
|
163
|
-
export * from './subsystems/IO/VectorDB.service/connectors/
|
|
164
|
-
export * from './subsystems/IO/VectorDB.service/
|
|
165
|
-
export * from './subsystems/IO/VectorDB.service/
|
|
166
|
-
export * from './subsystems/IO/VectorDB.service/embed/
|
|
167
|
-
export * from './subsystems/
|
|
168
|
-
export * from './subsystems/
|
|
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/
|
|
188
|
-
export * from './subsystems/Security/Vault.service/connectors/
|
|
189
|
-
export * from './subsystems/
|
|
190
|
-
export * from './subsystems/
|
|
7
|
+
|
|
8
|
+
export * from './config';
|
|
9
|
+
export * from './constants';
|
|
10
|
+
export * from './Components/AgentPlugin.class';
|
|
11
|
+
export * from './Components/APIEndpoint.class';
|
|
12
|
+
export * from './Components/APIOutput.class';
|
|
13
|
+
export * from './Components/Async.class';
|
|
14
|
+
export * from './Components/Await.class';
|
|
15
|
+
export * from './Components/Classifier.class';
|
|
16
|
+
export * from './Components/Component.class';
|
|
17
|
+
export * from './Components/ComponentHost.class';
|
|
18
|
+
export * from './Components/DataSourceCleaner.class';
|
|
19
|
+
export * from './Components/DataSourceIndexer.class';
|
|
20
|
+
export * from './Components/DataSourceLookup.class';
|
|
21
|
+
export * from './Components/FEncDec.class';
|
|
22
|
+
export * from './Components/FHash.class';
|
|
23
|
+
export * from './Components/FileStore.class';
|
|
24
|
+
export * from './Components/ForEach.class';
|
|
25
|
+
export * from './Components/FSign.class';
|
|
26
|
+
export * from './Components/FSleep.class';
|
|
27
|
+
export * from './Components/FTimestamp.class';
|
|
28
|
+
export * from './Components/GenAILLM.class';
|
|
29
|
+
export * from './Components/GPTPlugin.class';
|
|
30
|
+
export * from './Components/HuggingFace.class';
|
|
31
|
+
export * from './Components/ImageGenerator.class';
|
|
32
|
+
export * from './Components/index';
|
|
33
|
+
export * from './Components/JSONFilter.class';
|
|
34
|
+
export * from './Components/LLMAssistant.class';
|
|
35
|
+
export * from './Components/LogicAND.class';
|
|
36
|
+
export * from './Components/LogicAtLeast.class';
|
|
37
|
+
export * from './Components/LogicAtMost.class';
|
|
38
|
+
export * from './Components/LogicOR.class';
|
|
39
|
+
export * from './Components/LogicXOR.class';
|
|
40
|
+
export * from './Components/MCPClient.class';
|
|
41
|
+
export * from './Components/MemoryDeleteKeyVal.class';
|
|
42
|
+
export * from './Components/MemoryReadKeyVal.class';
|
|
43
|
+
export * from './Components/MemoryWriteKeyVal.class';
|
|
44
|
+
export * from './Components/MemoryWriteObject.class';
|
|
45
|
+
export * from './Components/MultimodalLLM.class';
|
|
46
|
+
export * from './Components/PromptGenerator.class';
|
|
47
|
+
export * from './Components/ScrapflyWebScrape.class';
|
|
48
|
+
export * from './Components/ServerlessCode.class';
|
|
49
|
+
export * from './Components/TavilyWebSearch.class';
|
|
50
|
+
export * from './Components/VisionLLM.class';
|
|
51
|
+
export * from './Components/ZapierAction.class';
|
|
52
|
+
export * from './Core/AgentProcess.helper';
|
|
53
|
+
export * from './Core/boot';
|
|
54
|
+
export * from './Core/Connector.class';
|
|
55
|
+
export * from './Core/ConnectorsService';
|
|
56
|
+
export * from './Core/DummyConnector';
|
|
57
|
+
export * from './Core/HookService';
|
|
58
|
+
export * from './Core/SmythRuntime.class';
|
|
59
|
+
export * from './Core/SystemEvents';
|
|
60
|
+
export * from './helpers/AWSLambdaCode.helper';
|
|
61
|
+
export * from './helpers/BinaryInput.helper';
|
|
62
|
+
export * from './helpers/Conversation.helper';
|
|
63
|
+
export * from './helpers/ECMASandbox.helper';
|
|
64
|
+
export * from './helpers/JsonContent.helper';
|
|
65
|
+
export * from './helpers/LocalCache.helper';
|
|
66
|
+
export * from './helpers/Log.helper';
|
|
67
|
+
export * from './helpers/OpenApiParser.helper';
|
|
68
|
+
export * from './helpers/S3Cache.helper';
|
|
69
|
+
export * from './helpers/SmythURI.helper';
|
|
70
|
+
export * from './helpers/Sysconfig.helper';
|
|
71
|
+
export * from './helpers/TemplateString.helper';
|
|
72
|
+
export * from './helpers/TypeChecker.helper';
|
|
73
|
+
export * from './types/ACL.types';
|
|
74
|
+
export * from './types/Agent.types';
|
|
75
|
+
export * from './types/AgentLogger.types';
|
|
76
|
+
export * from './types/AWS.types';
|
|
77
|
+
export * from './types/Cache.types';
|
|
78
|
+
export * from './types/Common.types';
|
|
79
|
+
export * from './types/LLM.types';
|
|
80
|
+
export * from './types/Redis.types';
|
|
81
|
+
export * from './types/Security.types';
|
|
82
|
+
export * from './types/SRE.types';
|
|
83
|
+
export * from './types/Storage.types';
|
|
84
|
+
export * from './types/VectorDB.types';
|
|
85
|
+
export * from './Components/APICall/AccessTokenManager';
|
|
86
|
+
export * from './Components/APICall/APICall.class';
|
|
87
|
+
export * from './Components/APICall/ArrayBufferResponse.helper';
|
|
88
|
+
export * from './Components/APICall/mimeTypeCategories';
|
|
89
|
+
export * from './Components/APICall/OAuth.helper';
|
|
90
|
+
export * from './Components/APICall/parseData';
|
|
91
|
+
export * from './Components/APICall/parseHeaders';
|
|
92
|
+
export * from './Components/APICall/parseProxy';
|
|
93
|
+
export * from './Components/APICall/parseUrl';
|
|
94
|
+
export * from './Components/Image/imageSettings.config';
|
|
95
|
+
export * from './subsystems/AgentManager/Agent.class';
|
|
96
|
+
export * from './subsystems/AgentManager/Agent.helper';
|
|
97
|
+
export * from './subsystems/AgentManager/AgentLogger.class';
|
|
98
|
+
export * from './subsystems/AgentManager/AgentRequest.class';
|
|
99
|
+
export * from './subsystems/AgentManager/AgentRuntime.class';
|
|
100
|
+
export * from './subsystems/AgentManager/AgentSettings.class';
|
|
101
|
+
export * from './subsystems/AgentManager/AgentSSE.class';
|
|
102
|
+
export * from './subsystems/AgentManager/EmbodimentSettings.class';
|
|
103
|
+
export * from './subsystems/AgentManager/ForkedAgent.class';
|
|
104
|
+
export * from './subsystems/AgentManager/OSResourceMonitor';
|
|
105
|
+
export * from './subsystems/LLMManager/custom-models';
|
|
106
|
+
export * from './subsystems/LLMManager/LLM.helper';
|
|
107
|
+
export * from './subsystems/LLMManager/LLM.inference';
|
|
108
|
+
export * from './subsystems/LLMManager/models';
|
|
109
|
+
export * from './subsystems/LLMManager/paramMappings';
|
|
110
|
+
export * from './subsystems/MemoryManager/LLMCache';
|
|
111
|
+
export * from './subsystems/MemoryManager/LLMContext';
|
|
112
|
+
export * from './subsystems/MemoryManager/RuntimeContext';
|
|
113
|
+
export * from './subsystems/Security/Credentials.helper';
|
|
114
|
+
export * from './subsystems/Security/SecureConnector.class';
|
|
115
|
+
export * from './subsystems/AgentManager/AgentData.service/AgentDataConnector';
|
|
116
|
+
export * from './subsystems/AgentManager/AgentData.service/index';
|
|
117
|
+
export * from './subsystems/AgentManager/Component.service/ComponentConnector';
|
|
118
|
+
export * from './subsystems/AgentManager/Component.service/index';
|
|
119
|
+
export * from './subsystems/ComputeManager/Code.service/CodeConnector';
|
|
120
|
+
export * from './subsystems/ComputeManager/Code.service/index';
|
|
121
|
+
export * from './subsystems/IO/CLI.service/CLIConnector';
|
|
122
|
+
export * from './subsystems/IO/CLI.service/index';
|
|
123
|
+
export * from './subsystems/IO/Log.service/index';
|
|
124
|
+
export * from './subsystems/IO/Log.service/LogConnector';
|
|
125
|
+
export * from './subsystems/IO/NKV.service/index';
|
|
126
|
+
export * from './subsystems/IO/NKV.service/NKVConnector';
|
|
127
|
+
export * from './subsystems/IO/Router.service/index';
|
|
128
|
+
export * from './subsystems/IO/Router.service/RouterConnector';
|
|
129
|
+
export * from './subsystems/IO/Storage.service/index';
|
|
130
|
+
export * from './subsystems/IO/Storage.service/SmythFS.class';
|
|
131
|
+
export * from './subsystems/IO/Storage.service/StorageConnector';
|
|
132
|
+
export * from './subsystems/IO/VectorDB.service/index';
|
|
133
|
+
export * from './subsystems/IO/VectorDB.service/VectorDBConnector';
|
|
134
|
+
export * from './subsystems/LLMManager/LLM.service/index';
|
|
135
|
+
export * from './subsystems/LLMManager/LLM.service/LLMConnector';
|
|
136
|
+
export * from './subsystems/LLMManager/LLM.service/LLMCredentials.helper';
|
|
137
|
+
export * from './subsystems/LLMManager/ModelsProvider.service/index';
|
|
138
|
+
export * from './subsystems/LLMManager/ModelsProvider.service/ModelsProviderConnector';
|
|
139
|
+
export * from './subsystems/MemoryManager/Cache.service/CacheConnector';
|
|
140
|
+
export * from './subsystems/MemoryManager/Cache.service/index';
|
|
141
|
+
export * from './subsystems/MemoryManager/LLMMemory.service/LLMMemoryConnector';
|
|
142
|
+
export * from './subsystems/Security/AccessControl/AccessCandidate.class';
|
|
143
|
+
export * from './subsystems/Security/AccessControl/AccessRequest.class';
|
|
144
|
+
export * from './subsystems/Security/AccessControl/ACL.class';
|
|
145
|
+
export * from './subsystems/Security/Account.service/AccountConnector';
|
|
146
|
+
export * from './subsystems/Security/Account.service/index';
|
|
147
|
+
export * from './subsystems/Security/ManagedVault.service/index';
|
|
148
|
+
export * from './subsystems/Security/ManagedVault.service/ManagedVaultConnector';
|
|
149
|
+
export * from './subsystems/Security/Vault.service/index';
|
|
150
|
+
export * from './subsystems/Security/Vault.service/Vault.helper';
|
|
151
|
+
export * from './subsystems/Security/Vault.service/VaultConnector';
|
|
152
|
+
export * from './subsystems/AgentManager/AgentData.service/connectors/CLIAgentDataConnector.class';
|
|
153
|
+
export * from './subsystems/AgentManager/AgentData.service/connectors/LocalAgentDataConnector.class';
|
|
154
|
+
export * from './subsystems/AgentManager/AgentData.service/connectors/NullAgentData.class';
|
|
155
|
+
export * from './subsystems/AgentManager/Component.service/connectors/LocalComponentConnector.class';
|
|
156
|
+
export * from './subsystems/ComputeManager/Code.service/connectors/AWSLambdaCode.class';
|
|
157
|
+
export * from './subsystems/IO/Log.service/connectors/ConsoleLog.class';
|
|
158
|
+
export * from './subsystems/IO/NKV.service/connectors/NKVLocalStorage.class';
|
|
159
|
+
export * from './subsystems/IO/NKV.service/connectors/NKVRAM.class';
|
|
160
|
+
export * from './subsystems/IO/NKV.service/connectors/NKVRedis.class';
|
|
161
|
+
export * from './subsystems/IO/Router.service/connectors/ExpressRouter.class';
|
|
162
|
+
export * from './subsystems/IO/Router.service/connectors/NullRouter.class';
|
|
163
|
+
export * from './subsystems/IO/Storage.service/connectors/LocalStorage.class';
|
|
164
|
+
export * from './subsystems/IO/Storage.service/connectors/S3Storage.class';
|
|
165
|
+
export * from './subsystems/IO/VectorDB.service/connectors/MilvusVectorDB.class';
|
|
166
|
+
export * from './subsystems/IO/VectorDB.service/connectors/PineconeVectorDB.class';
|
|
167
|
+
export * from './subsystems/IO/VectorDB.service/connectors/RAMVecrtorDB.class';
|
|
168
|
+
export * from './subsystems/IO/VectorDB.service/embed/BaseEmbedding';
|
|
169
|
+
export * from './subsystems/IO/VectorDB.service/embed/index';
|
|
170
|
+
export * from './subsystems/IO/VectorDB.service/embed/OpenAIEmbedding';
|
|
171
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Anthropic.class';
|
|
172
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Bedrock.class';
|
|
173
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Echo.class';
|
|
174
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/GoogleAI.class';
|
|
175
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Groq.class';
|
|
176
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/Perplexity.class';
|
|
177
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/VertexAI.class';
|
|
178
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/xAI.class';
|
|
179
|
+
export * from './subsystems/LLMManager/ModelsProvider.service/connectors/JSONModelsProvider.class';
|
|
180
|
+
export * from './subsystems/MemoryManager/Cache.service/connectors/LocalStorageCache.class';
|
|
181
|
+
export * from './subsystems/MemoryManager/Cache.service/connectors/RAMCache.class';
|
|
182
|
+
export * from './subsystems/MemoryManager/Cache.service/connectors/RedisCache.class';
|
|
183
|
+
export * from './subsystems/MemoryManager/Cache.service/connectors/S3Cache.class';
|
|
184
|
+
export * from './subsystems/Security/Account.service/connectors/AWSAccount.class';
|
|
185
|
+
export * from './subsystems/Security/Account.service/connectors/DummyAccount.class';
|
|
186
|
+
export * from './subsystems/Security/Account.service/connectors/JSONFileAccount.class';
|
|
187
|
+
export * from './subsystems/Security/ManagedVault.service/connectors/NullManagedVault.class';
|
|
188
|
+
export * from './subsystems/Security/ManagedVault.service/connectors/SecretManagerManagedVault';
|
|
189
|
+
export * from './subsystems/Security/Vault.service/connectors/HashicorpVault.class';
|
|
190
|
+
export * from './subsystems/Security/Vault.service/connectors/JSONFileVault.class';
|
|
191
|
+
export * from './subsystems/Security/Vault.service/connectors/NullVault.class';
|
|
192
|
+
export * from './subsystems/Security/Vault.service/connectors/SecretsManager.class';
|
|
193
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/openai/OpenAIConnector.class';
|
|
194
|
+
export * from './subsystems/LLMManager/LLM.service/connectors/openai/types';
|
|
191
195
|
export * from './subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/constants';
|
|
@@ -315,8 +315,10 @@ export abstract class LLMConnector extends Connector {
|
|
|
315
315
|
imageGeneration: features.includes('image-generation'),
|
|
316
316
|
};
|
|
317
317
|
|
|
318
|
-
//
|
|
319
|
-
//
|
|
318
|
+
// We're using an object with providers instead of setting toolsInfo directly based on the provider,
|
|
319
|
+
// so the code stays clean and easy to read in connectors like toolsInfo.openai.webSearch or toolsInfo.xai.search.
|
|
320
|
+
// it helps prevent errors such as mistakenly using toolsInfo.search in the OpenAI connector and similar cases.
|
|
321
|
+
// This also helps enable autocomplete, so when typing toolsInfo.openai, it shows suggestions like webSearch.
|
|
320
322
|
_params.toolsInfo = {
|
|
321
323
|
openai: await this.prepareOpenAIToolsInfo(_params),
|
|
322
324
|
xai: await this.prepareXAIToolsInfo(_params),
|
|
@@ -440,9 +440,11 @@ export class AnthropicConnector extends LLMConnector {
|
|
|
440
440
|
}
|
|
441
441
|
//#endregion Prepare system message and add JSON response instruction if needed
|
|
442
442
|
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
if (params?.
|
|
443
|
+
const isReasoningModel = params?.capabilities?.reasoning;
|
|
444
|
+
|
|
445
|
+
if (params?.temperature !== undefined && !isReasoningModel) body.temperature = params.temperature;
|
|
446
|
+
if (params?.topP !== undefined && !isReasoningModel) body.top_p = params.topP;
|
|
447
|
+
if (params?.topK !== undefined && !isReasoningModel) body.top_k = params.topK;
|
|
446
448
|
if (params?.stopSequences?.length) body.stop_sequences = params.stopSequences;
|
|
447
449
|
|
|
448
450
|
// #region Tools
|
|
@@ -3,7 +3,7 @@ import path from 'path';
|
|
|
3
3
|
import EventEmitter from 'events';
|
|
4
4
|
import fs from 'fs';
|
|
5
5
|
|
|
6
|
-
import { GoogleGenerativeAI, ModelParams, GenerationConfig, GenerateContentRequest, UsageMetadata } from '@google/generative-ai';
|
|
6
|
+
import { GoogleGenerativeAI, ModelParams, GenerationConfig, GenerateContentRequest, UsageMetadata, FunctionCallingMode } from '@google/generative-ai';
|
|
7
7
|
import { GoogleAIFileManager, FileState } from '@google/generative-ai/server';
|
|
8
8
|
import { GoogleGenAI } from '@google/genai';
|
|
9
9
|
|
|
@@ -397,7 +397,7 @@ export class GoogleAIConnector extends LLMConnector {
|
|
|
397
397
|
|
|
398
398
|
const transformedToolsData = toolsData.map(
|
|
399
399
|
(toolData): TLLMToolResultMessageBlock => ({
|
|
400
|
-
role: TLLMMessageRole.
|
|
400
|
+
role: TLLMMessageRole.User,
|
|
401
401
|
parts: [
|
|
402
402
|
{
|
|
403
403
|
functionResponse: {
|
|
@@ -565,8 +565,23 @@ export class GoogleAIConnector extends LLMConnector {
|
|
|
565
565
|
|
|
566
566
|
if (params?.toolsConfig?.tools) toolsPrompt.tools = params?.toolsConfig?.tools as any;
|
|
567
567
|
if (params?.toolsConfig?.tool_choice) {
|
|
568
|
+
// Map tool choice to valid Google AI function calling modes
|
|
569
|
+
let mode: FunctionCallingMode = FunctionCallingMode.AUTO; // default
|
|
570
|
+
const toolChoice = params?.toolsConfig?.tool_choice;
|
|
571
|
+
|
|
572
|
+
if (toolChoice === 'auto') {
|
|
573
|
+
mode = FunctionCallingMode.AUTO;
|
|
574
|
+
} else if (toolChoice === 'required') {
|
|
575
|
+
mode = FunctionCallingMode.ANY;
|
|
576
|
+
} else if (toolChoice === 'none') {
|
|
577
|
+
mode = FunctionCallingMode.NONE;
|
|
578
|
+
} else if (typeof toolChoice === 'object' && toolChoice.type === 'function') {
|
|
579
|
+
// Handle OpenAI-style named tool choice - force any function call
|
|
580
|
+
mode = FunctionCallingMode.ANY;
|
|
581
|
+
}
|
|
582
|
+
|
|
568
583
|
toolsPrompt.toolConfig = {
|
|
569
|
-
functionCallingConfig: { mode
|
|
584
|
+
functionCallingConfig: { mode },
|
|
570
585
|
};
|
|
571
586
|
}
|
|
572
587
|
|