@salesforce/lds-adapters-service-einsteinllm 1.384.0 → 1.386.0
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/es/es2018/service-einsteinllm.js +853 -460
- package/dist/es/es2018/types/src/generated/adapters/getDataProviderTypeConfigs.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/getDataProviders.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplatesDataProviderTypesByTemplateType.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplatesDataProvidersByTemplateType.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderTypeConfigCollectionRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderTypeConfigRepresentation.d.ts +46 -0
- package/package.json +4 -4
- package/sfdc/index.js +890 -477
- package/src/raml/api.raml +98 -15
- package/src/raml/luvio.raml +13 -0
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$8, StoreKeyMap, createResourceParams as createResourceParams$f, typeCheckConfig as typeCheckConfig$f } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -178,7 +178,7 @@ function createLink(ref) {
|
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
function validate$
|
|
181
|
+
function validate$B(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation') {
|
|
182
182
|
const v_error = (() => {
|
|
183
183
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
184
184
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -222,7 +222,7 @@ function validate$z(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepre
|
|
|
222
222
|
return v_error === undefined ? null : v_error;
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
function validate$
|
|
225
|
+
function validate$A(obj, path = 'WrappedListString') {
|
|
226
226
|
const v_error = (() => {
|
|
227
227
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
228
228
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -243,14 +243,14 @@ function validate$y(obj, path = 'WrappedListString') {
|
|
|
243
243
|
return v_error === undefined ? null : v_error;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
function validate$
|
|
246
|
+
function validate$z(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
|
|
247
247
|
const v_error = (() => {
|
|
248
248
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
249
249
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
250
250
|
}
|
|
251
251
|
const obj_additionalConfig = obj.additionalConfig;
|
|
252
252
|
const path_additionalConfig = path + '.additionalConfig';
|
|
253
|
-
const referencepath_additionalConfigValidationError = validate$
|
|
253
|
+
const referencepath_additionalConfigValidationError = validate$B(obj_additionalConfig, path_additionalConfig);
|
|
254
254
|
if (referencepath_additionalConfigValidationError !== null) {
|
|
255
255
|
let message = 'Object doesn\'t match EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
|
|
256
256
|
message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -258,7 +258,7 @@ function validate$x(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
|
|
|
258
258
|
}
|
|
259
259
|
const obj_prompts = obj.prompts;
|
|
260
260
|
const path_prompts = path + '.prompts';
|
|
261
|
-
const referencepath_promptsValidationError = validate$
|
|
261
|
+
const referencepath_promptsValidationError = validate$A(obj_prompts, path_prompts);
|
|
262
262
|
if (referencepath_promptsValidationError !== null) {
|
|
263
263
|
let message = 'Object doesn\'t match WrappedListString (at "' + path_prompts + '")\n';
|
|
264
264
|
message += referencepath_promptsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -275,8 +275,8 @@ function validate$x(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
|
|
|
275
275
|
return v_error === undefined ? null : v_error;
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
const VERSION$
|
|
279
|
-
function validate$
|
|
278
|
+
const VERSION$p = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
|
|
279
|
+
function validate$y(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
|
|
280
280
|
const v_error = (() => {
|
|
281
281
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
282
282
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -297,10 +297,10 @@ function validate$w(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
|
|
|
297
297
|
})();
|
|
298
298
|
return v_error === undefined ? null : v_error;
|
|
299
299
|
}
|
|
300
|
-
const select$
|
|
300
|
+
const select$E = function EinsteinLlmEmbeddingItemRepresentationSelect() {
|
|
301
301
|
return {
|
|
302
302
|
kind: 'Fragment',
|
|
303
|
-
version: VERSION$
|
|
303
|
+
version: VERSION$p,
|
|
304
304
|
private: [],
|
|
305
305
|
selections: [
|
|
306
306
|
{
|
|
@@ -315,7 +315,7 @@ const select$B = function EinsteinLlmEmbeddingItemRepresentationSelect() {
|
|
|
315
315
|
]
|
|
316
316
|
};
|
|
317
317
|
};
|
|
318
|
-
function equals$
|
|
318
|
+
function equals$p(existing, incoming) {
|
|
319
319
|
const existing_index = existing.index;
|
|
320
320
|
const incoming_index = incoming.index;
|
|
321
321
|
if (!(existing_index === incoming_index)) {
|
|
@@ -334,9 +334,9 @@ function equals$o(existing, incoming) {
|
|
|
334
334
|
return true;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
-
const TTL$
|
|
338
|
-
const VERSION$
|
|
339
|
-
function validate$
|
|
337
|
+
const TTL$a = 100;
|
|
338
|
+
const VERSION$o = "d9873651f09d29764ef4d4231eb653d7";
|
|
339
|
+
function validate$x(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
|
|
340
340
|
const v_error = (() => {
|
|
341
341
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
342
342
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -349,7 +349,7 @@ function validate$v(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
|
|
|
349
349
|
for (let i = 0; i < obj_embeddings.length; i++) {
|
|
350
350
|
const obj_embeddings_item = obj_embeddings[i];
|
|
351
351
|
const path_embeddings_item = path_embeddings + '[' + i + ']';
|
|
352
|
-
const referencepath_embeddings_itemValidationError = validate$
|
|
352
|
+
const referencepath_embeddings_itemValidationError = validate$y(obj_embeddings_item, path_embeddings_item);
|
|
353
353
|
if (referencepath_embeddings_itemValidationError !== null) {
|
|
354
354
|
let message = 'Object doesn\'t match EinsteinLlmEmbeddingItemRepresentation (at "' + path_embeddings_item + '")\n';
|
|
355
355
|
message += referencepath_embeddings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -373,15 +373,15 @@ function validate$v(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
|
|
|
373
373
|
})();
|
|
374
374
|
return v_error === undefined ? null : v_error;
|
|
375
375
|
}
|
|
376
|
-
const RepresentationType$
|
|
377
|
-
function normalize$
|
|
376
|
+
const RepresentationType$a = 'EinsteinLlmEmbeddingsRepresentation';
|
|
377
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
378
378
|
return input;
|
|
379
379
|
}
|
|
380
|
-
const select$
|
|
381
|
-
const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$
|
|
380
|
+
const select$D = function EinsteinLlmEmbeddingsRepresentationSelect() {
|
|
381
|
+
const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$E();
|
|
382
382
|
return {
|
|
383
383
|
kind: 'Fragment',
|
|
384
|
-
version: VERSION$
|
|
384
|
+
version: VERSION$o,
|
|
385
385
|
private: [],
|
|
386
386
|
selections: [
|
|
387
387
|
{
|
|
@@ -398,11 +398,11 @@ const select$A = function EinsteinLlmEmbeddingsRepresentationSelect() {
|
|
|
398
398
|
]
|
|
399
399
|
};
|
|
400
400
|
};
|
|
401
|
-
function equals$
|
|
401
|
+
function equals$o(existing, incoming) {
|
|
402
402
|
const existing_embeddings = existing.embeddings;
|
|
403
403
|
const incoming_embeddings = incoming.embeddings;
|
|
404
404
|
const equals_embeddings_items = equalsArray(existing_embeddings, incoming_embeddings, (existing_embeddings_item, incoming_embeddings_item) => {
|
|
405
|
-
if (!(equals$
|
|
405
|
+
if (!(equals$p(existing_embeddings_item, incoming_embeddings_item))) {
|
|
406
406
|
return false;
|
|
407
407
|
}
|
|
408
408
|
});
|
|
@@ -421,44 +421,44 @@ function equals$n(existing, incoming) {
|
|
|
421
421
|
}
|
|
422
422
|
return true;
|
|
423
423
|
}
|
|
424
|
-
const ingest$
|
|
424
|
+
const ingest$a = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
425
425
|
if (process.env.NODE_ENV !== 'production') {
|
|
426
|
-
const validateError = validate$
|
|
426
|
+
const validateError = validate$x(input);
|
|
427
427
|
if (validateError !== null) {
|
|
428
428
|
throw validateError;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
const key = path.fullPath;
|
|
432
|
-
const ttlToUse = TTL$
|
|
433
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
432
|
+
const ttlToUse = TTL$a;
|
|
433
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "EinsteinLLM", VERSION$o, RepresentationType$a, equals$o);
|
|
434
434
|
return createLink(key);
|
|
435
435
|
};
|
|
436
|
-
function getTypeCacheKeys$
|
|
436
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
437
437
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
438
438
|
const rootKey = fullPathFactory();
|
|
439
439
|
rootKeySet.set(rootKey, {
|
|
440
440
|
namespace: keyPrefix,
|
|
441
|
-
representationName: RepresentationType$
|
|
441
|
+
representationName: RepresentationType$a,
|
|
442
442
|
mergeable: false
|
|
443
443
|
});
|
|
444
444
|
}
|
|
445
445
|
|
|
446
|
-
function select$
|
|
447
|
-
return select$
|
|
446
|
+
function select$C(luvio, params) {
|
|
447
|
+
return select$D();
|
|
448
448
|
}
|
|
449
|
-
function keyBuilder$
|
|
449
|
+
function keyBuilder$j(luvio, params) {
|
|
450
450
|
return keyPrefix + '::EinsteinLlmEmbeddingsRepresentation:(' + stableJSONStringify(params.body.embeddingsInput.additionalConfig.additionalParameters) + '::' + 'embeddingsInput.additionalConfig.applicationName:' + params.body.embeddingsInput.additionalConfig.applicationName + '::' + (params.body.embeddingsInput.additionalConfig.enablePiiMasking === undefined ? 'embeddingsInput.additionalConfig.enablePiiMasking' : 'embeddingsInput.additionalConfig.enablePiiMasking:' + params.body.embeddingsInput.additionalConfig.enablePiiMasking) + '::' + (params.body.embeddingsInput.additionalConfig.model === undefined ? 'embeddingsInput.additionalConfig.model' : 'embeddingsInput.additionalConfig.model:' + params.body.embeddingsInput.additionalConfig.model) + '::' + 'embeddingsInput.prompts.wrappedListString:' + params.body.embeddingsInput.prompts.wrappedListString + '::' + (params.body.embeddingsInput.provider === undefined ? 'embeddingsInput.provider' : 'embeddingsInput.provider:' + params.body.embeddingsInput.provider) + ')';
|
|
451
451
|
}
|
|
452
|
-
function getResponseCacheKeys$
|
|
453
|
-
getTypeCacheKeys$
|
|
452
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
453
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
|
|
454
454
|
}
|
|
455
|
-
function ingestSuccess$
|
|
455
|
+
function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
456
456
|
const { body } = response;
|
|
457
|
-
const key = keyBuilder$
|
|
458
|
-
luvio.storeIngest(key, ingest$
|
|
457
|
+
const key = keyBuilder$j(luvio, resourceParams);
|
|
458
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
459
459
|
const snapshot = luvio.storeLookup({
|
|
460
460
|
recordId: key,
|
|
461
|
-
node: select$
|
|
461
|
+
node: select$C(),
|
|
462
462
|
variables: {},
|
|
463
463
|
}, snapshotRefresh);
|
|
464
464
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -469,22 +469,22 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
469
469
|
deepFreeze(snapshot.data);
|
|
470
470
|
return snapshot;
|
|
471
471
|
}
|
|
472
|
-
function ingestError$
|
|
473
|
-
const key = keyBuilder$
|
|
472
|
+
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
473
|
+
const key = keyBuilder$j(luvio, params);
|
|
474
474
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
475
475
|
const storeMetadataParams = {
|
|
476
|
-
ttl: TTL$
|
|
476
|
+
ttl: TTL$a,
|
|
477
477
|
namespace: keyPrefix,
|
|
478
|
-
version: VERSION$
|
|
479
|
-
representationName: RepresentationType$
|
|
478
|
+
version: VERSION$o,
|
|
479
|
+
representationName: RepresentationType$a
|
|
480
480
|
};
|
|
481
481
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
482
482
|
return errorSnapshot;
|
|
483
483
|
}
|
|
484
|
-
function createResourceRequest$
|
|
484
|
+
function createResourceRequest$e(config) {
|
|
485
485
|
const headers = {};
|
|
486
486
|
return {
|
|
487
|
-
baseUri: '/services/data/
|
|
487
|
+
baseUri: '/services/data/v66.0',
|
|
488
488
|
basePath: '/einstein/llm/embeddings',
|
|
489
489
|
method: 'post',
|
|
490
490
|
body: config.body,
|
|
@@ -495,97 +495,97 @@ function createResourceRequest$c(config) {
|
|
|
495
495
|
};
|
|
496
496
|
}
|
|
497
497
|
|
|
498
|
-
const adapterName$
|
|
498
|
+
const adapterName$e = 'createEmbeddings';
|
|
499
499
|
const createEmbeddings_ConfigPropertyMetadata = [
|
|
500
500
|
generateParamConfigMetadata('embeddingsInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
501
501
|
];
|
|
502
|
-
const createEmbeddings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
503
|
-
const createResourceParams$
|
|
504
|
-
function keyBuilder$
|
|
505
|
-
const resourceParams = createResourceParams$
|
|
506
|
-
return keyBuilder$
|
|
502
|
+
const createEmbeddings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, createEmbeddings_ConfigPropertyMetadata);
|
|
503
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$f(createEmbeddings_ConfigPropertyMetadata);
|
|
504
|
+
function keyBuilder$i(luvio, config) {
|
|
505
|
+
const resourceParams = createResourceParams$e(config);
|
|
506
|
+
return keyBuilder$j(luvio, resourceParams);
|
|
507
507
|
}
|
|
508
|
-
function typeCheckConfig$
|
|
508
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
509
509
|
const config = {};
|
|
510
510
|
const untrustedConfig_embeddingsInput = untrustedConfig.embeddingsInput;
|
|
511
|
-
const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$
|
|
511
|
+
const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$z(untrustedConfig_embeddingsInput);
|
|
512
512
|
if (referenceEinsteinLlmEmbeddingsInputRepresentationValidationError === null) {
|
|
513
513
|
config.embeddingsInput = untrustedConfig_embeddingsInput;
|
|
514
514
|
}
|
|
515
515
|
return config;
|
|
516
516
|
}
|
|
517
|
-
function validateAdapterConfig$
|
|
517
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
518
518
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
519
519
|
return null;
|
|
520
520
|
}
|
|
521
521
|
if (process.env.NODE_ENV !== 'production') {
|
|
522
522
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
523
523
|
}
|
|
524
|
-
const config = typeCheckConfig$
|
|
524
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
525
525
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
526
526
|
return null;
|
|
527
527
|
}
|
|
528
528
|
return config;
|
|
529
529
|
}
|
|
530
|
-
function adapterFragment$
|
|
531
|
-
createResourceParams$
|
|
532
|
-
return select$
|
|
530
|
+
function adapterFragment$7(luvio, config) {
|
|
531
|
+
createResourceParams$e(config);
|
|
532
|
+
return select$C();
|
|
533
533
|
}
|
|
534
|
-
function onFetchResponseSuccess$
|
|
535
|
-
const snapshot = ingestSuccess$
|
|
534
|
+
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
535
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
|
|
536
536
|
config,
|
|
537
|
-
resolve: () => buildNetworkSnapshot$
|
|
537
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
538
538
|
});
|
|
539
539
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
540
540
|
}
|
|
541
|
-
function onFetchResponseError$
|
|
542
|
-
const snapshot = ingestError$
|
|
541
|
+
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
542
|
+
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
543
543
|
config,
|
|
544
|
-
resolve: () => buildNetworkSnapshot$
|
|
544
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
545
545
|
});
|
|
546
546
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
547
547
|
}
|
|
548
|
-
function buildNetworkSnapshot$
|
|
549
|
-
const resourceParams = createResourceParams$
|
|
550
|
-
const request = createResourceRequest$
|
|
548
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
549
|
+
const resourceParams = createResourceParams$e(config);
|
|
550
|
+
const request = createResourceRequest$e(resourceParams);
|
|
551
551
|
return luvio.dispatchResourceRequest(request, options)
|
|
552
552
|
.then((response) => {
|
|
553
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
553
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
554
554
|
const cache = new StoreKeyMap();
|
|
555
|
-
getResponseCacheKeys$
|
|
555
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
556
556
|
return cache;
|
|
557
557
|
});
|
|
558
558
|
}, (response) => {
|
|
559
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
559
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
560
560
|
});
|
|
561
561
|
}
|
|
562
|
-
function buildNetworkSnapshotCachePolicy$
|
|
563
|
-
return buildNetworkSnapshotCachePolicy$
|
|
562
|
+
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
563
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, 'get', false);
|
|
564
564
|
}
|
|
565
|
-
function buildCachedSnapshotCachePolicy$
|
|
565
|
+
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
566
566
|
const { luvio, config } = context;
|
|
567
567
|
const selector = {
|
|
568
|
-
recordId: keyBuilder$
|
|
569
|
-
node: adapterFragment$
|
|
568
|
+
recordId: keyBuilder$i(luvio, config),
|
|
569
|
+
node: adapterFragment$7(luvio, config),
|
|
570
570
|
variables: {},
|
|
571
571
|
};
|
|
572
572
|
const cacheSnapshot = storeLookup(selector, {
|
|
573
573
|
config,
|
|
574
|
-
resolve: () => buildNetworkSnapshot$
|
|
574
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
575
575
|
});
|
|
576
576
|
return cacheSnapshot;
|
|
577
577
|
}
|
|
578
578
|
const createEmbeddingsAdapterFactory = (luvio) => function EinsteinLLM__createEmbeddings(untrustedConfig, requestContext) {
|
|
579
|
-
const config = validateAdapterConfig$
|
|
579
|
+
const config = validateAdapterConfig$e(untrustedConfig, createEmbeddings_ConfigPropertyNames);
|
|
580
580
|
// Invalid or incomplete config
|
|
581
581
|
if (config === null) {
|
|
582
582
|
return null;
|
|
583
583
|
}
|
|
584
584
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
585
|
-
buildCachedSnapshotCachePolicy$
|
|
585
|
+
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
586
586
|
};
|
|
587
587
|
|
|
588
|
-
function validate$
|
|
588
|
+
function validate$w(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
|
|
589
589
|
const v_error = (() => {
|
|
590
590
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
591
591
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -632,9 +632,9 @@ function validate$u(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
|
|
|
632
632
|
return v_error === undefined ? null : v_error;
|
|
633
633
|
}
|
|
634
634
|
|
|
635
|
-
const TTL$
|
|
636
|
-
const VERSION$
|
|
637
|
-
function validate$
|
|
635
|
+
const TTL$9 = 100;
|
|
636
|
+
const VERSION$n = "4033328f65865dd5d80c68a7573a4522";
|
|
637
|
+
function validate$v(obj, path = 'EinsteinLlmFeedbackRepresentation') {
|
|
638
638
|
const v_error = (() => {
|
|
639
639
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
640
640
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -647,23 +647,23 @@ function validate$t(obj, path = 'EinsteinLlmFeedbackRepresentation') {
|
|
|
647
647
|
})();
|
|
648
648
|
return v_error === undefined ? null : v_error;
|
|
649
649
|
}
|
|
650
|
-
const RepresentationType$
|
|
651
|
-
function keyBuilder$
|
|
652
|
-
return keyPrefix + '::' + RepresentationType$
|
|
650
|
+
const RepresentationType$9 = 'EinsteinLlmFeedbackRepresentation';
|
|
651
|
+
function keyBuilder$h(luvio, config) {
|
|
652
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.message;
|
|
653
653
|
}
|
|
654
654
|
function keyBuilderFromType$3(luvio, object) {
|
|
655
655
|
const keyParams = {
|
|
656
656
|
message: object.message
|
|
657
657
|
};
|
|
658
|
-
return keyBuilder$
|
|
658
|
+
return keyBuilder$h(luvio, keyParams);
|
|
659
659
|
}
|
|
660
|
-
function normalize$
|
|
660
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
661
661
|
return input;
|
|
662
662
|
}
|
|
663
|
-
const select$
|
|
663
|
+
const select$B = function EinsteinLlmFeedbackRepresentationSelect() {
|
|
664
664
|
return {
|
|
665
665
|
kind: 'Fragment',
|
|
666
|
-
version: VERSION$
|
|
666
|
+
version: VERSION$n,
|
|
667
667
|
private: [],
|
|
668
668
|
selections: [
|
|
669
669
|
{
|
|
@@ -673,7 +673,7 @@ const select$y = function EinsteinLlmFeedbackRepresentationSelect() {
|
|
|
673
673
|
]
|
|
674
674
|
};
|
|
675
675
|
};
|
|
676
|
-
function equals$
|
|
676
|
+
function equals$n(existing, incoming) {
|
|
677
677
|
const existing_message = existing.message;
|
|
678
678
|
const incoming_message = incoming.message;
|
|
679
679
|
if (!(existing_message === incoming_message)) {
|
|
@@ -681,41 +681,41 @@ function equals$m(existing, incoming) {
|
|
|
681
681
|
}
|
|
682
682
|
return true;
|
|
683
683
|
}
|
|
684
|
-
const ingest$
|
|
684
|
+
const ingest$9 = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
685
685
|
if (process.env.NODE_ENV !== 'production') {
|
|
686
|
-
const validateError = validate$
|
|
686
|
+
const validateError = validate$v(input);
|
|
687
687
|
if (validateError !== null) {
|
|
688
688
|
throw validateError;
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
const key = keyBuilderFromType$3(luvio, input);
|
|
692
|
-
const ttlToUse = TTL$
|
|
693
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
692
|
+
const ttlToUse = TTL$9;
|
|
693
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "EinsteinLLM", VERSION$n, RepresentationType$9, equals$n);
|
|
694
694
|
return createLink(key);
|
|
695
695
|
};
|
|
696
|
-
function getTypeCacheKeys$
|
|
696
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
697
697
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
698
698
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
699
699
|
rootKeySet.set(rootKey, {
|
|
700
700
|
namespace: keyPrefix,
|
|
701
|
-
representationName: RepresentationType$
|
|
701
|
+
representationName: RepresentationType$9,
|
|
702
702
|
mergeable: false
|
|
703
703
|
});
|
|
704
704
|
}
|
|
705
705
|
|
|
706
|
-
function select$
|
|
707
|
-
return select$
|
|
706
|
+
function select$A(luvio, params) {
|
|
707
|
+
return select$B();
|
|
708
708
|
}
|
|
709
|
-
function getResponseCacheKeys$
|
|
710
|
-
getTypeCacheKeys$
|
|
709
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
710
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
711
711
|
}
|
|
712
|
-
function ingestSuccess$
|
|
712
|
+
function ingestSuccess$d(luvio, resourceParams, response) {
|
|
713
713
|
const { body } = response;
|
|
714
714
|
const key = keyBuilderFromType$3(luvio, body);
|
|
715
|
-
luvio.storeIngest(key, ingest$
|
|
715
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
716
716
|
const snapshot = luvio.storeLookup({
|
|
717
717
|
recordId: key,
|
|
718
|
-
node: select$
|
|
718
|
+
node: select$A(),
|
|
719
719
|
variables: {},
|
|
720
720
|
});
|
|
721
721
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -726,10 +726,10 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
726
726
|
deepFreeze(snapshot.data);
|
|
727
727
|
return snapshot;
|
|
728
728
|
}
|
|
729
|
-
function createResourceRequest$
|
|
729
|
+
function createResourceRequest$d(config) {
|
|
730
730
|
const headers = {};
|
|
731
731
|
return {
|
|
732
|
-
baseUri: '/services/data/
|
|
732
|
+
baseUri: '/services/data/v66.0',
|
|
733
733
|
basePath: '/einstein/llm/feedback',
|
|
734
734
|
method: 'post',
|
|
735
735
|
body: config.body,
|
|
@@ -740,45 +740,45 @@ function createResourceRequest$b(config) {
|
|
|
740
740
|
};
|
|
741
741
|
}
|
|
742
742
|
|
|
743
|
-
const adapterName$
|
|
743
|
+
const adapterName$d = 'createFeedback';
|
|
744
744
|
const createFeedback_ConfigPropertyMetadata = [
|
|
745
745
|
generateParamConfigMetadata('feedbackInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
746
746
|
];
|
|
747
|
-
const createFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
748
|
-
const createResourceParams$
|
|
749
|
-
function typeCheckConfig$
|
|
747
|
+
const createFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, createFeedback_ConfigPropertyMetadata);
|
|
748
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$f(createFeedback_ConfigPropertyMetadata);
|
|
749
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
750
750
|
const config = {};
|
|
751
751
|
const untrustedConfig_feedbackInput = untrustedConfig.feedbackInput;
|
|
752
|
-
const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$
|
|
752
|
+
const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$w(untrustedConfig_feedbackInput);
|
|
753
753
|
if (referenceEinsteinLlmFeedbackInputRepresentationValidationError === null) {
|
|
754
754
|
config.feedbackInput = untrustedConfig_feedbackInput;
|
|
755
755
|
}
|
|
756
756
|
return config;
|
|
757
757
|
}
|
|
758
|
-
function validateAdapterConfig$
|
|
758
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
759
759
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
760
760
|
return null;
|
|
761
761
|
}
|
|
762
762
|
if (process.env.NODE_ENV !== 'production') {
|
|
763
763
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
764
764
|
}
|
|
765
|
-
const config = typeCheckConfig$
|
|
765
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
766
766
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
767
767
|
return null;
|
|
768
768
|
}
|
|
769
769
|
return config;
|
|
770
770
|
}
|
|
771
|
-
function buildNetworkSnapshot$
|
|
772
|
-
const resourceParams = createResourceParams$
|
|
773
|
-
const request = createResourceRequest$
|
|
771
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
772
|
+
const resourceParams = createResourceParams$d(config);
|
|
773
|
+
const request = createResourceRequest$d(resourceParams);
|
|
774
774
|
return luvio.dispatchResourceRequest(request, options)
|
|
775
775
|
.then((response) => {
|
|
776
776
|
return luvio.handleSuccessResponse(() => {
|
|
777
|
-
const snapshot = ingestSuccess$
|
|
777
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response);
|
|
778
778
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
779
779
|
}, () => {
|
|
780
780
|
const cache = new StoreKeyMap();
|
|
781
|
-
getResponseCacheKeys$
|
|
781
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
782
782
|
return cache;
|
|
783
783
|
});
|
|
784
784
|
}, (response) => {
|
|
@@ -788,16 +788,16 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
788
788
|
}
|
|
789
789
|
const createFeedbackAdapterFactory = (luvio) => {
|
|
790
790
|
return function createFeedback(untrustedConfig) {
|
|
791
|
-
const config = validateAdapterConfig$
|
|
791
|
+
const config = validateAdapterConfig$d(untrustedConfig, createFeedback_ConfigPropertyNames);
|
|
792
792
|
// Invalid or incomplete config
|
|
793
793
|
if (config === null) {
|
|
794
794
|
throw new Error('Invalid config for "createFeedback"');
|
|
795
795
|
}
|
|
796
|
-
return buildNetworkSnapshot$
|
|
796
|
+
return buildNetworkSnapshot$d(luvio, config);
|
|
797
797
|
};
|
|
798
798
|
};
|
|
799
799
|
|
|
800
|
-
function validate$
|
|
800
|
+
function validate$u(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
|
|
801
801
|
const v_error = (() => {
|
|
802
802
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
803
803
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -880,7 +880,7 @@ function validate$s(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation'
|
|
|
880
880
|
return v_error === undefined ? null : v_error;
|
|
881
881
|
}
|
|
882
882
|
|
|
883
|
-
function validate$
|
|
883
|
+
function validate$t(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
|
|
884
884
|
const v_error = (() => {
|
|
885
885
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
886
886
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -888,7 +888,7 @@ function validate$r(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
|
|
|
888
888
|
if (obj.additionalConfig !== undefined) {
|
|
889
889
|
const obj_additionalConfig = obj.additionalConfig;
|
|
890
890
|
const path_additionalConfig = path + '.additionalConfig';
|
|
891
|
-
const referencepath_additionalConfigValidationError = validate$
|
|
891
|
+
const referencepath_additionalConfigValidationError = validate$u(obj_additionalConfig, path_additionalConfig);
|
|
892
892
|
if (referencepath_additionalConfigValidationError !== null) {
|
|
893
893
|
let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
|
|
894
894
|
message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -911,8 +911,8 @@ function validate$r(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
|
|
|
911
911
|
return v_error === undefined ? null : v_error;
|
|
912
912
|
}
|
|
913
913
|
|
|
914
|
-
const VERSION$
|
|
915
|
-
function validate$
|
|
914
|
+
const VERSION$m = "9ebac74e6f964c363d5fd1913df363af";
|
|
915
|
+
function validate$s(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
|
|
916
916
|
const v_error = (() => {
|
|
917
917
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
918
918
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -948,10 +948,10 @@ function validate$q(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentat
|
|
|
948
948
|
})();
|
|
949
949
|
return v_error === undefined ? null : v_error;
|
|
950
950
|
}
|
|
951
|
-
const select$
|
|
951
|
+
const select$z = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
|
|
952
952
|
return {
|
|
953
953
|
kind: 'Fragment',
|
|
954
|
-
version: VERSION$
|
|
954
|
+
version: VERSION$m,
|
|
955
955
|
private: [],
|
|
956
956
|
selections: [
|
|
957
957
|
{
|
|
@@ -962,7 +962,7 @@ const select$w = function EinsteinLlmGenerationsContentQualityRepresentationSele
|
|
|
962
962
|
]
|
|
963
963
|
};
|
|
964
964
|
};
|
|
965
|
-
function equals$
|
|
965
|
+
function equals$m(existing, incoming) {
|
|
966
966
|
const existing_isToxicityDetected = existing.isToxicityDetected;
|
|
967
967
|
const incoming_isToxicityDetected = incoming.isToxicityDetected;
|
|
968
968
|
// if at least one of these optionals is defined
|
|
@@ -979,8 +979,8 @@ function equals$l(existing, incoming) {
|
|
|
979
979
|
return true;
|
|
980
980
|
}
|
|
981
981
|
|
|
982
|
-
const VERSION$
|
|
983
|
-
function validate$
|
|
982
|
+
const VERSION$l = "77af44a252cb5b45b4d9a8101368d2aa";
|
|
983
|
+
function validate$r(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
|
|
984
984
|
const v_error = (() => {
|
|
985
985
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
986
986
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1184,10 +1184,10 @@ function validate$p(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation
|
|
|
1184
1184
|
})();
|
|
1185
1185
|
return v_error === undefined ? null : v_error;
|
|
1186
1186
|
}
|
|
1187
|
-
const select$
|
|
1187
|
+
const select$y = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
|
|
1188
1188
|
return {
|
|
1189
1189
|
kind: 'Fragment',
|
|
1190
|
-
version: VERSION$
|
|
1190
|
+
version: VERSION$l,
|
|
1191
1191
|
private: [],
|
|
1192
1192
|
selections: [
|
|
1193
1193
|
{
|
|
@@ -1228,7 +1228,7 @@ const select$v = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect(
|
|
|
1228
1228
|
]
|
|
1229
1229
|
};
|
|
1230
1230
|
};
|
|
1231
|
-
function equals$
|
|
1231
|
+
function equals$l(existing, incoming) {
|
|
1232
1232
|
const existing_hateScore = existing.hateScore;
|
|
1233
1233
|
const incoming_hateScore = incoming.hateScore;
|
|
1234
1234
|
// if at least one of these optionals is defined
|
|
@@ -1323,8 +1323,8 @@ function equals$k(existing, incoming) {
|
|
|
1323
1323
|
return true;
|
|
1324
1324
|
}
|
|
1325
1325
|
|
|
1326
|
-
const VERSION$
|
|
1327
|
-
function validate$
|
|
1326
|
+
const VERSION$k = "4a07778ff6c595d91c575188146647a1";
|
|
1327
|
+
function validate$q(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
|
|
1328
1328
|
const v_error = (() => {
|
|
1329
1329
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1330
1330
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1334,7 +1334,7 @@ function validate$o(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
|
|
|
1334
1334
|
const path_contentQualityRepresentation = path + '.contentQualityRepresentation';
|
|
1335
1335
|
let obj_contentQualityRepresentation_union0 = null;
|
|
1336
1336
|
const obj_contentQualityRepresentation_union0_error = (() => {
|
|
1337
|
-
const referencepath_contentQualityRepresentationValidationError = validate$
|
|
1337
|
+
const referencepath_contentQualityRepresentationValidationError = validate$s(obj_contentQualityRepresentation, path_contentQualityRepresentation);
|
|
1338
1338
|
if (referencepath_contentQualityRepresentationValidationError !== null) {
|
|
1339
1339
|
let message = 'Object doesn\'t match EinsteinLlmGenerationsContentQualityRepresentation (at "' + path_contentQualityRepresentation + '")\n';
|
|
1340
1340
|
message += referencepath_contentQualityRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1382,7 +1382,7 @@ function validate$o(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
|
|
|
1382
1382
|
const path_safetyScoreRepresentation = path + '.safetyScoreRepresentation';
|
|
1383
1383
|
let obj_safetyScoreRepresentation_union0 = null;
|
|
1384
1384
|
const obj_safetyScoreRepresentation_union0_error = (() => {
|
|
1385
|
-
const referencepath_safetyScoreRepresentationValidationError = validate$
|
|
1385
|
+
const referencepath_safetyScoreRepresentationValidationError = validate$r(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
|
|
1386
1386
|
if (referencepath_safetyScoreRepresentationValidationError !== null) {
|
|
1387
1387
|
let message = 'Object doesn\'t match EinsteinLlmGenerationsSafetyScoreRepresentation (at "' + path_safetyScoreRepresentation + '")\n';
|
|
1388
1388
|
message += referencepath_safetyScoreRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1416,12 +1416,12 @@ function validate$o(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
|
|
|
1416
1416
|
})();
|
|
1417
1417
|
return v_error === undefined ? null : v_error;
|
|
1418
1418
|
}
|
|
1419
|
-
const select$
|
|
1420
|
-
const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$
|
|
1421
|
-
const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$
|
|
1419
|
+
const select$x = function EinsteinLlmGenerationItemRepresentationSelect() {
|
|
1420
|
+
const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$z();
|
|
1421
|
+
const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$y();
|
|
1422
1422
|
return {
|
|
1423
1423
|
kind: 'Fragment',
|
|
1424
|
-
version: VERSION$
|
|
1424
|
+
version: VERSION$k,
|
|
1425
1425
|
private: [],
|
|
1426
1426
|
selections: [
|
|
1427
1427
|
{
|
|
@@ -1458,7 +1458,7 @@ const select$u = function EinsteinLlmGenerationItemRepresentationSelect() {
|
|
|
1458
1458
|
]
|
|
1459
1459
|
};
|
|
1460
1460
|
};
|
|
1461
|
-
function equals$
|
|
1461
|
+
function equals$k(existing, incoming) {
|
|
1462
1462
|
const existing_isSummarized = existing.isSummarized;
|
|
1463
1463
|
const incoming_isSummarized = incoming.isSummarized;
|
|
1464
1464
|
// if at least one of these optionals is defined
|
|
@@ -1499,7 +1499,7 @@ function equals$j(existing, incoming) {
|
|
|
1499
1499
|
if (!(existing_contentQualityRepresentation === incoming_contentQualityRepresentation
|
|
1500
1500
|
|| (existing_contentQualityRepresentation != null &&
|
|
1501
1501
|
incoming_contentQualityRepresentation != null &&
|
|
1502
|
-
equals$
|
|
1502
|
+
equals$m(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
|
|
1503
1503
|
return false;
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
@@ -1515,15 +1515,15 @@ function equals$j(existing, incoming) {
|
|
|
1515
1515
|
if (!(existing_safetyScoreRepresentation === incoming_safetyScoreRepresentation
|
|
1516
1516
|
|| (existing_safetyScoreRepresentation != null &&
|
|
1517
1517
|
incoming_safetyScoreRepresentation != null &&
|
|
1518
|
-
equals$
|
|
1518
|
+
equals$l(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
|
|
1519
1519
|
return false;
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
1522
1522
|
return true;
|
|
1523
1523
|
}
|
|
1524
1524
|
|
|
1525
|
-
const VERSION$
|
|
1526
|
-
function validate$
|
|
1525
|
+
const VERSION$j = "4656c961c9d093a9e206c1db7d4de0b0";
|
|
1526
|
+
function validate$p(obj, path = 'WrappedMap') {
|
|
1527
1527
|
const v_error = (() => {
|
|
1528
1528
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1529
1529
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1545,15 +1545,15 @@ function validate$n(obj, path = 'WrappedMap') {
|
|
|
1545
1545
|
})();
|
|
1546
1546
|
return v_error === undefined ? null : v_error;
|
|
1547
1547
|
}
|
|
1548
|
-
const select$
|
|
1548
|
+
const select$w = function WrappedMapSelect() {
|
|
1549
1549
|
return {
|
|
1550
1550
|
kind: 'Fragment',
|
|
1551
|
-
version: VERSION$
|
|
1551
|
+
version: VERSION$j,
|
|
1552
1552
|
private: [],
|
|
1553
1553
|
selections: []
|
|
1554
1554
|
};
|
|
1555
1555
|
};
|
|
1556
|
-
function equals$
|
|
1556
|
+
function equals$j(existing, incoming) {
|
|
1557
1557
|
const existing_wrappedMap = existing.wrappedMap;
|
|
1558
1558
|
const incoming_wrappedMap = incoming.wrappedMap;
|
|
1559
1559
|
const equals_wrappedMap_props = equalsObject(existing_wrappedMap, incoming_wrappedMap, (existing_wrappedMap_prop, incoming_wrappedMap_prop) => {
|
|
@@ -1564,9 +1564,9 @@ function equals$i(existing, incoming) {
|
|
|
1564
1564
|
return true;
|
|
1565
1565
|
}
|
|
1566
1566
|
|
|
1567
|
-
const TTL$
|
|
1568
|
-
const VERSION$
|
|
1569
|
-
function validate$
|
|
1567
|
+
const TTL$8 = 100;
|
|
1568
|
+
const VERSION$i = "d8abd72a42e842b253da1c38954dafbc";
|
|
1569
|
+
function validate$o(obj, path = 'EinsteinLlmGenerationsRepresentation') {
|
|
1570
1570
|
const v_error = (() => {
|
|
1571
1571
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1572
1572
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1579,7 +1579,7 @@ function validate$m(obj, path = 'EinsteinLlmGenerationsRepresentation') {
|
|
|
1579
1579
|
for (let i = 0; i < obj_generations.length; i++) {
|
|
1580
1580
|
const obj_generations_item = obj_generations[i];
|
|
1581
1581
|
const path_generations_item = path_generations + '[' + i + ']';
|
|
1582
|
-
const referencepath_generations_itemValidationError = validate$
|
|
1582
|
+
const referencepath_generations_itemValidationError = validate$q(obj_generations_item, path_generations_item);
|
|
1583
1583
|
if (referencepath_generations_itemValidationError !== null) {
|
|
1584
1584
|
let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
|
|
1585
1585
|
message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1590,7 +1590,7 @@ function validate$m(obj, path = 'EinsteinLlmGenerationsRepresentation') {
|
|
|
1590
1590
|
const path_parameters = path + '.parameters';
|
|
1591
1591
|
let obj_parameters_union0 = null;
|
|
1592
1592
|
const obj_parameters_union0_error = (() => {
|
|
1593
|
-
const referencepath_parametersValidationError = validate$
|
|
1593
|
+
const referencepath_parametersValidationError = validate$p(obj_parameters, path_parameters);
|
|
1594
1594
|
if (referencepath_parametersValidationError !== null) {
|
|
1595
1595
|
let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
|
|
1596
1596
|
message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1649,25 +1649,25 @@ function validate$m(obj, path = 'EinsteinLlmGenerationsRepresentation') {
|
|
|
1649
1649
|
})();
|
|
1650
1650
|
return v_error === undefined ? null : v_error;
|
|
1651
1651
|
}
|
|
1652
|
-
const RepresentationType$
|
|
1653
|
-
function keyBuilder$
|
|
1654
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1652
|
+
const RepresentationType$8 = 'EinsteinLlmGenerationsRepresentation';
|
|
1653
|
+
function keyBuilder$g(luvio, config) {
|
|
1654
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + config.requestId;
|
|
1655
1655
|
}
|
|
1656
1656
|
function keyBuilderFromType$2(luvio, object) {
|
|
1657
1657
|
const keyParams = {
|
|
1658
1658
|
requestId: object.requestId
|
|
1659
1659
|
};
|
|
1660
|
-
return keyBuilder$
|
|
1660
|
+
return keyBuilder$g(luvio, keyParams);
|
|
1661
1661
|
}
|
|
1662
|
-
function normalize$
|
|
1662
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
1663
1663
|
return input;
|
|
1664
1664
|
}
|
|
1665
|
-
const select$
|
|
1666
|
-
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$
|
|
1667
|
-
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$
|
|
1665
|
+
const select$v = function EinsteinLlmGenerationsRepresentationSelect() {
|
|
1666
|
+
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$x();
|
|
1667
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$w();
|
|
1668
1668
|
return {
|
|
1669
1669
|
kind: 'Fragment',
|
|
1670
|
-
version: VERSION$
|
|
1670
|
+
version: VERSION$i,
|
|
1671
1671
|
private: [],
|
|
1672
1672
|
selections: [
|
|
1673
1673
|
{
|
|
@@ -1693,7 +1693,7 @@ const select$s = function EinsteinLlmGenerationsRepresentationSelect() {
|
|
|
1693
1693
|
]
|
|
1694
1694
|
};
|
|
1695
1695
|
};
|
|
1696
|
-
function equals$
|
|
1696
|
+
function equals$i(existing, incoming) {
|
|
1697
1697
|
const existing_requestId = existing.requestId;
|
|
1698
1698
|
const incoming_requestId = incoming.requestId;
|
|
1699
1699
|
if (!(existing_requestId === incoming_requestId)) {
|
|
@@ -1702,7 +1702,7 @@ function equals$h(existing, incoming) {
|
|
|
1702
1702
|
const existing_generations = existing.generations;
|
|
1703
1703
|
const incoming_generations = incoming.generations;
|
|
1704
1704
|
const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
|
|
1705
|
-
if (!(equals$
|
|
1705
|
+
if (!(equals$k(existing_generations_item, incoming_generations_item))) {
|
|
1706
1706
|
return false;
|
|
1707
1707
|
}
|
|
1708
1708
|
});
|
|
@@ -1714,7 +1714,7 @@ function equals$h(existing, incoming) {
|
|
|
1714
1714
|
if (!(existing_parameters === incoming_parameters
|
|
1715
1715
|
|| (existing_parameters != null &&
|
|
1716
1716
|
incoming_parameters != null &&
|
|
1717
|
-
equals$
|
|
1717
|
+
equals$j(existing_parameters, incoming_parameters)))) {
|
|
1718
1718
|
return false;
|
|
1719
1719
|
}
|
|
1720
1720
|
const existing_prompt = existing.prompt;
|
|
@@ -1724,41 +1724,41 @@ function equals$h(existing, incoming) {
|
|
|
1724
1724
|
}
|
|
1725
1725
|
return true;
|
|
1726
1726
|
}
|
|
1727
|
-
const ingest$
|
|
1727
|
+
const ingest$8 = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1728
1728
|
if (process.env.NODE_ENV !== 'production') {
|
|
1729
|
-
const validateError = validate$
|
|
1729
|
+
const validateError = validate$o(input);
|
|
1730
1730
|
if (validateError !== null) {
|
|
1731
1731
|
throw validateError;
|
|
1732
1732
|
}
|
|
1733
1733
|
}
|
|
1734
1734
|
const key = keyBuilderFromType$2(luvio, input);
|
|
1735
|
-
const ttlToUse = TTL$
|
|
1736
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1735
|
+
const ttlToUse = TTL$8;
|
|
1736
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "EinsteinLLM", VERSION$i, RepresentationType$8, equals$i);
|
|
1737
1737
|
return createLink(key);
|
|
1738
1738
|
};
|
|
1739
|
-
function getTypeCacheKeys$
|
|
1739
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
1740
1740
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1741
1741
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
1742
1742
|
rootKeySet.set(rootKey, {
|
|
1743
1743
|
namespace: keyPrefix,
|
|
1744
|
-
representationName: RepresentationType$
|
|
1744
|
+
representationName: RepresentationType$8,
|
|
1745
1745
|
mergeable: false
|
|
1746
1746
|
});
|
|
1747
1747
|
}
|
|
1748
1748
|
|
|
1749
|
-
function select$
|
|
1750
|
-
return select$
|
|
1749
|
+
function select$u(luvio, params) {
|
|
1750
|
+
return select$v();
|
|
1751
1751
|
}
|
|
1752
|
-
function getResponseCacheKeys$
|
|
1753
|
-
getTypeCacheKeys$
|
|
1752
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
1753
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
1754
1754
|
}
|
|
1755
|
-
function ingestSuccess$
|
|
1755
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
1756
1756
|
const { body } = response;
|
|
1757
1757
|
const key = keyBuilderFromType$2(luvio, body);
|
|
1758
|
-
luvio.storeIngest(key, ingest$
|
|
1758
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
1759
1759
|
const snapshot = luvio.storeLookup({
|
|
1760
1760
|
recordId: key,
|
|
1761
|
-
node: select$
|
|
1761
|
+
node: select$u(),
|
|
1762
1762
|
variables: {},
|
|
1763
1763
|
});
|
|
1764
1764
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1769,10 +1769,10 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
1769
1769
|
deepFreeze(snapshot.data);
|
|
1770
1770
|
return snapshot;
|
|
1771
1771
|
}
|
|
1772
|
-
function createResourceRequest$
|
|
1772
|
+
function createResourceRequest$c(config) {
|
|
1773
1773
|
const headers = {};
|
|
1774
1774
|
return {
|
|
1775
|
-
baseUri: '/services/data/
|
|
1775
|
+
baseUri: '/services/data/v66.0',
|
|
1776
1776
|
basePath: '/einstein/llm/prompt/generations',
|
|
1777
1777
|
method: 'post',
|
|
1778
1778
|
body: config.body,
|
|
@@ -1783,45 +1783,45 @@ function createResourceRequest$a(config) {
|
|
|
1783
1783
|
};
|
|
1784
1784
|
}
|
|
1785
1785
|
|
|
1786
|
-
const adapterName$
|
|
1786
|
+
const adapterName$c = 'createGenerations';
|
|
1787
1787
|
const createGenerations_ConfigPropertyMetadata = [
|
|
1788
1788
|
generateParamConfigMetadata('generationsInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1789
1789
|
];
|
|
1790
|
-
const createGenerations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1791
|
-
const createResourceParams$
|
|
1792
|
-
function typeCheckConfig$
|
|
1790
|
+
const createGenerations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createGenerations_ConfigPropertyMetadata);
|
|
1791
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$f(createGenerations_ConfigPropertyMetadata);
|
|
1792
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
1793
1793
|
const config = {};
|
|
1794
1794
|
const untrustedConfig_generationsInput = untrustedConfig.generationsInput;
|
|
1795
|
-
const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$
|
|
1795
|
+
const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$t(untrustedConfig_generationsInput);
|
|
1796
1796
|
if (referenceEinsteinLlmGenerationsInputRepresentationValidationError === null) {
|
|
1797
1797
|
config.generationsInput = untrustedConfig_generationsInput;
|
|
1798
1798
|
}
|
|
1799
1799
|
return config;
|
|
1800
1800
|
}
|
|
1801
|
-
function validateAdapterConfig$
|
|
1801
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
1802
1802
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1803
1803
|
return null;
|
|
1804
1804
|
}
|
|
1805
1805
|
if (process.env.NODE_ENV !== 'production') {
|
|
1806
1806
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1807
1807
|
}
|
|
1808
|
-
const config = typeCheckConfig$
|
|
1808
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
1809
1809
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1810
1810
|
return null;
|
|
1811
1811
|
}
|
|
1812
1812
|
return config;
|
|
1813
1813
|
}
|
|
1814
|
-
function buildNetworkSnapshot$
|
|
1815
|
-
const resourceParams = createResourceParams$
|
|
1816
|
-
const request = createResourceRequest$
|
|
1814
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
1815
|
+
const resourceParams = createResourceParams$c(config);
|
|
1816
|
+
const request = createResourceRequest$c(resourceParams);
|
|
1817
1817
|
return luvio.dispatchResourceRequest(request, options)
|
|
1818
1818
|
.then((response) => {
|
|
1819
1819
|
return luvio.handleSuccessResponse(() => {
|
|
1820
|
-
const snapshot = ingestSuccess$
|
|
1820
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
1821
1821
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1822
1822
|
}, () => {
|
|
1823
1823
|
const cache = new StoreKeyMap();
|
|
1824
|
-
getResponseCacheKeys$
|
|
1824
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
1825
1825
|
return cache;
|
|
1826
1826
|
});
|
|
1827
1827
|
}, (response) => {
|
|
@@ -1831,16 +1831,16 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
1831
1831
|
}
|
|
1832
1832
|
const createGenerationsAdapterFactory = (luvio) => {
|
|
1833
1833
|
return function createGenerations(untrustedConfig) {
|
|
1834
|
-
const config = validateAdapterConfig$
|
|
1834
|
+
const config = validateAdapterConfig$c(untrustedConfig, createGenerations_ConfigPropertyNames);
|
|
1835
1835
|
// Invalid or incomplete config
|
|
1836
1836
|
if (config === null) {
|
|
1837
1837
|
throw new Error('Invalid config for "createGenerations"');
|
|
1838
1838
|
}
|
|
1839
|
-
return buildNetworkSnapshot$
|
|
1839
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
1840
1840
|
};
|
|
1841
1841
|
};
|
|
1842
1842
|
|
|
1843
|
-
function validate$
|
|
1843
|
+
function validate$n(obj, path = 'WrappedValueMap') {
|
|
1844
1844
|
const v_error = (() => {
|
|
1845
1845
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1846
1846
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1863,7 +1863,7 @@ function validate$l(obj, path = 'WrappedValueMap') {
|
|
|
1863
1863
|
return v_error === undefined ? null : v_error;
|
|
1864
1864
|
}
|
|
1865
1865
|
|
|
1866
|
-
function validate$
|
|
1866
|
+
function validate$m(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
|
|
1867
1867
|
const v_error = (() => {
|
|
1868
1868
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1869
1869
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1871,7 +1871,7 @@ function validate$k(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
|
|
|
1871
1871
|
if (obj.additionalConfig !== undefined) {
|
|
1872
1872
|
const obj_additionalConfig = obj.additionalConfig;
|
|
1873
1873
|
const path_additionalConfig = path + '.additionalConfig';
|
|
1874
|
-
const referencepath_additionalConfigValidationError = validate$
|
|
1874
|
+
const referencepath_additionalConfigValidationError = validate$u(obj_additionalConfig, path_additionalConfig);
|
|
1875
1875
|
if (referencepath_additionalConfigValidationError !== null) {
|
|
1876
1876
|
let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
|
|
1877
1877
|
message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1880,7 +1880,7 @@ function validate$k(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
|
|
|
1880
1880
|
}
|
|
1881
1881
|
const obj_inputParams = obj.inputParams;
|
|
1882
1882
|
const path_inputParams = path + '.inputParams';
|
|
1883
|
-
const referencepath_inputParamsValidationError = validate$
|
|
1883
|
+
const referencepath_inputParamsValidationError = validate$n(obj_inputParams, path_inputParams);
|
|
1884
1884
|
if (referencepath_inputParamsValidationError !== null) {
|
|
1885
1885
|
let message = 'Object doesn\'t match WrappedValueMap (at "' + path_inputParams + '")\n';
|
|
1886
1886
|
message += referencepath_inputParamsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1916,8 +1916,8 @@ function validate$k(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
|
|
|
1916
1916
|
return v_error === undefined ? null : v_error;
|
|
1917
1917
|
}
|
|
1918
1918
|
|
|
1919
|
-
const VERSION$
|
|
1920
|
-
function validate$
|
|
1919
|
+
const VERSION$h = "63584d83290e21bdff26b1bef3db119c";
|
|
1920
|
+
function validate$l(obj, path = 'EinsteinLlmGenerationGenAiCitedReferenceRepresentation') {
|
|
1921
1921
|
const v_error = (() => {
|
|
1922
1922
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1923
1923
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1974,10 +1974,10 @@ function validate$j(obj, path = 'EinsteinLlmGenerationGenAiCitedReferenceReprese
|
|
|
1974
1974
|
})();
|
|
1975
1975
|
return v_error === undefined ? null : v_error;
|
|
1976
1976
|
}
|
|
1977
|
-
const select$
|
|
1977
|
+
const select$t = function EinsteinLlmGenerationGenAiCitedReferenceRepresentationSelect() {
|
|
1978
1978
|
return {
|
|
1979
1979
|
kind: 'Fragment',
|
|
1980
|
-
version: VERSION$
|
|
1980
|
+
version: VERSION$h,
|
|
1981
1981
|
private: [],
|
|
1982
1982
|
selections: [
|
|
1983
1983
|
{
|
|
@@ -2010,7 +2010,7 @@ const select$q = function EinsteinLlmGenerationGenAiCitedReferenceRepresentation
|
|
|
2010
2010
|
]
|
|
2011
2011
|
};
|
|
2012
2012
|
};
|
|
2013
|
-
function equals$
|
|
2013
|
+
function equals$h(existing, incoming) {
|
|
2014
2014
|
const existing_link = existing.link;
|
|
2015
2015
|
const incoming_link = incoming.link;
|
|
2016
2016
|
// if at least one of these optionals is defined
|
|
@@ -2089,8 +2089,8 @@ function equals$g(existing, incoming) {
|
|
|
2089
2089
|
return true;
|
|
2090
2090
|
}
|
|
2091
2091
|
|
|
2092
|
-
const VERSION$
|
|
2093
|
-
function validate$
|
|
2092
|
+
const VERSION$g = "bcc0ea08323732f4187dd2b9f70fea6c";
|
|
2093
|
+
function validate$k(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
|
|
2094
2094
|
const v_error = (() => {
|
|
2095
2095
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2096
2096
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2104,7 +2104,7 @@ function validate$i(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
|
|
|
2104
2104
|
for (let i = 0; i < obj_citedReferences.length; i++) {
|
|
2105
2105
|
const obj_citedReferences_item = obj_citedReferences[i];
|
|
2106
2106
|
const path_citedReferences_item = path_citedReferences + '[' + i + ']';
|
|
2107
|
-
const referencepath_citedReferences_itemValidationError = validate$
|
|
2107
|
+
const referencepath_citedReferences_itemValidationError = validate$l(obj_citedReferences_item, path_citedReferences_item);
|
|
2108
2108
|
if (referencepath_citedReferences_itemValidationError !== null) {
|
|
2109
2109
|
let message = 'Object doesn\'t match EinsteinLlmGenerationGenAiCitedReferenceRepresentation (at "' + path_citedReferences_item + '")\n';
|
|
2110
2110
|
message += referencepath_citedReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2115,11 +2115,11 @@ function validate$i(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
|
|
|
2115
2115
|
})();
|
|
2116
2116
|
return v_error === undefined ? null : v_error;
|
|
2117
2117
|
}
|
|
2118
|
-
const select$
|
|
2119
|
-
const { selections: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__selections, opaque: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__opaque, } = select$
|
|
2118
|
+
const select$s = function EinsteinLlmGenerationCitationRepresentationSelect() {
|
|
2119
|
+
const { selections: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__selections, opaque: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__opaque, } = select$t();
|
|
2120
2120
|
return {
|
|
2121
2121
|
kind: 'Fragment',
|
|
2122
|
-
version: VERSION$
|
|
2122
|
+
version: VERSION$g,
|
|
2123
2123
|
private: [],
|
|
2124
2124
|
selections: [
|
|
2125
2125
|
{
|
|
@@ -2132,7 +2132,7 @@ const select$p = function EinsteinLlmGenerationCitationRepresentationSelect() {
|
|
|
2132
2132
|
]
|
|
2133
2133
|
};
|
|
2134
2134
|
};
|
|
2135
|
-
function equals$
|
|
2135
|
+
function equals$g(existing, incoming) {
|
|
2136
2136
|
const existing_citedReferences = existing.citedReferences;
|
|
2137
2137
|
const incoming_citedReferences = incoming.citedReferences;
|
|
2138
2138
|
// if at least one of these optionals is defined
|
|
@@ -2143,7 +2143,7 @@ function equals$f(existing, incoming) {
|
|
|
2143
2143
|
return false;
|
|
2144
2144
|
}
|
|
2145
2145
|
const equals_citedReferences_items = equalsArray(existing_citedReferences, incoming_citedReferences, (existing_citedReferences_item, incoming_citedReferences_item) => {
|
|
2146
|
-
if (!(equals$
|
|
2146
|
+
if (!(equals$h(existing_citedReferences_item, incoming_citedReferences_item))) {
|
|
2147
2147
|
return false;
|
|
2148
2148
|
}
|
|
2149
2149
|
});
|
|
@@ -2154,8 +2154,8 @@ function equals$f(existing, incoming) {
|
|
|
2154
2154
|
return true;
|
|
2155
2155
|
}
|
|
2156
2156
|
|
|
2157
|
-
const VERSION$
|
|
2158
|
-
function validate$
|
|
2157
|
+
const VERSION$f = "f62ac44b024b123f079b57f349e05230";
|
|
2158
|
+
function validate$j(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRepresentation') {
|
|
2159
2159
|
const v_error = (() => {
|
|
2160
2160
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2161
2161
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2173,10 +2173,10 @@ function validate$h(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRe
|
|
|
2173
2173
|
})();
|
|
2174
2174
|
return v_error === undefined ? null : v_error;
|
|
2175
2175
|
}
|
|
2176
|
-
const select$
|
|
2176
|
+
const select$r = function EinsteinPromptTemplateAttachmentExclusionInfoRepresentationSelect() {
|
|
2177
2177
|
return {
|
|
2178
2178
|
kind: 'Fragment',
|
|
2179
|
-
version: VERSION$
|
|
2179
|
+
version: VERSION$f,
|
|
2180
2180
|
private: [],
|
|
2181
2181
|
selections: [
|
|
2182
2182
|
{
|
|
@@ -2190,7 +2190,7 @@ const select$o = function EinsteinPromptTemplateAttachmentExclusionInfoRepresent
|
|
|
2190
2190
|
]
|
|
2191
2191
|
};
|
|
2192
2192
|
};
|
|
2193
|
-
function equals$
|
|
2193
|
+
function equals$f(existing, incoming) {
|
|
2194
2194
|
const existing_isExcluded = existing.isExcluded;
|
|
2195
2195
|
const incoming_isExcluded = incoming.isExcluded;
|
|
2196
2196
|
if (!(existing_isExcluded === incoming_isExcluded)) {
|
|
@@ -2204,8 +2204,8 @@ function equals$e(existing, incoming) {
|
|
|
2204
2204
|
return true;
|
|
2205
2205
|
}
|
|
2206
2206
|
|
|
2207
|
-
const VERSION$
|
|
2208
|
-
function validate$
|
|
2207
|
+
const VERSION$e = "b85a5621c60125d9f1644af130f67680";
|
|
2208
|
+
function validate$i(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation') {
|
|
2209
2209
|
const v_error = (() => {
|
|
2210
2210
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2211
2211
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2213,7 +2213,7 @@ function validate$g(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
|
|
|
2213
2213
|
if (obj.exclusionInfo !== undefined) {
|
|
2214
2214
|
const obj_exclusionInfo = obj.exclusionInfo;
|
|
2215
2215
|
const path_exclusionInfo = path + '.exclusionInfo';
|
|
2216
|
-
const referencepath_exclusionInfoValidationError = validate$
|
|
2216
|
+
const referencepath_exclusionInfoValidationError = validate$j(obj_exclusionInfo, path_exclusionInfo);
|
|
2217
2217
|
if (referencepath_exclusionInfoValidationError !== null) {
|
|
2218
2218
|
let message = 'Object doesn\'t match EinsteinPromptTemplateAttachmentExclusionInfoRepresentation (at "' + path_exclusionInfo + '")\n';
|
|
2219
2219
|
message += referencepath_exclusionInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2250,11 +2250,11 @@ function validate$g(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
|
|
|
2250
2250
|
})();
|
|
2251
2251
|
return v_error === undefined ? null : v_error;
|
|
2252
2252
|
}
|
|
2253
|
-
const select$
|
|
2254
|
-
const { selections: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__opaque, } = select$
|
|
2253
|
+
const select$q = function EinsteinPromptTemplateAttachmentRepresentationSelect() {
|
|
2254
|
+
const { selections: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__opaque, } = select$r();
|
|
2255
2255
|
return {
|
|
2256
2256
|
kind: 'Fragment',
|
|
2257
|
-
version: VERSION$
|
|
2257
|
+
version: VERSION$e,
|
|
2258
2258
|
private: [],
|
|
2259
2259
|
selections: [
|
|
2260
2260
|
{
|
|
@@ -2287,7 +2287,7 @@ const select$n = function EinsteinPromptTemplateAttachmentRepresentationSelect()
|
|
|
2287
2287
|
]
|
|
2288
2288
|
};
|
|
2289
2289
|
};
|
|
2290
|
-
function equals$
|
|
2290
|
+
function equals$e(existing, incoming) {
|
|
2291
2291
|
const existing_fileExtension = existing.fileExtension;
|
|
2292
2292
|
const incoming_fileExtension = incoming.fileExtension;
|
|
2293
2293
|
if (!(existing_fileExtension === incoming_fileExtension)) {
|
|
@@ -2330,15 +2330,15 @@ function equals$d(existing, incoming) {
|
|
|
2330
2330
|
if (existing_exclusionInfo === undefined || incoming_exclusionInfo === undefined) {
|
|
2331
2331
|
return false;
|
|
2332
2332
|
}
|
|
2333
|
-
if (!(equals$
|
|
2333
|
+
if (!(equals$f(existing_exclusionInfo, incoming_exclusionInfo))) {
|
|
2334
2334
|
return false;
|
|
2335
2335
|
}
|
|
2336
2336
|
}
|
|
2337
2337
|
return true;
|
|
2338
2338
|
}
|
|
2339
2339
|
|
|
2340
|
-
const VERSION$
|
|
2341
|
-
function validate$
|
|
2340
|
+
const VERSION$d = "6458d624e5a1691821c764b6de0badb3";
|
|
2341
|
+
function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresentation') {
|
|
2342
2342
|
const v_error = (() => {
|
|
2343
2343
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2344
2344
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2368,10 +2368,10 @@ function validate$f(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresent
|
|
|
2368
2368
|
})();
|
|
2369
2369
|
return v_error === undefined ? null : v_error;
|
|
2370
2370
|
}
|
|
2371
|
-
const select$
|
|
2371
|
+
const select$p = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
|
|
2372
2372
|
return {
|
|
2373
2373
|
kind: 'Fragment',
|
|
2374
|
-
version: VERSION$
|
|
2374
|
+
version: VERSION$d,
|
|
2375
2375
|
private: [],
|
|
2376
2376
|
selections: [
|
|
2377
2377
|
{
|
|
@@ -2394,7 +2394,7 @@ const select$m = function EinsteinPromptTemplateGenerationsErrorRepresentationSe
|
|
|
2394
2394
|
]
|
|
2395
2395
|
};
|
|
2396
2396
|
};
|
|
2397
|
-
function equals$
|
|
2397
|
+
function equals$d(existing, incoming) {
|
|
2398
2398
|
const existing_errorMessage = existing.errorMessage;
|
|
2399
2399
|
const incoming_errorMessage = incoming.errorMessage;
|
|
2400
2400
|
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
@@ -2426,8 +2426,8 @@ function equals$c(existing, incoming) {
|
|
|
2426
2426
|
return true;
|
|
2427
2427
|
}
|
|
2428
2428
|
|
|
2429
|
-
const VERSION$
|
|
2430
|
-
function validate$
|
|
2429
|
+
const VERSION$c = "7c417ce44e4bc05dfcc454e6825590e8";
|
|
2430
|
+
function validate$g(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentation') {
|
|
2431
2431
|
const v_error = (() => {
|
|
2432
2432
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2433
2433
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2440,10 +2440,10 @@ function validate$e(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentatio
|
|
|
2440
2440
|
})();
|
|
2441
2441
|
return v_error === undefined ? null : v_error;
|
|
2442
2442
|
}
|
|
2443
|
-
const select$
|
|
2443
|
+
const select$o = function EinsteinPromptTemplateMaskSettingsRepresentationSelect() {
|
|
2444
2444
|
return {
|
|
2445
2445
|
kind: 'Fragment',
|
|
2446
|
-
version: VERSION$
|
|
2446
|
+
version: VERSION$c,
|
|
2447
2447
|
private: [],
|
|
2448
2448
|
selections: [
|
|
2449
2449
|
{
|
|
@@ -2453,7 +2453,7 @@ const select$l = function EinsteinPromptTemplateMaskSettingsRepresentationSelect
|
|
|
2453
2453
|
]
|
|
2454
2454
|
};
|
|
2455
2455
|
};
|
|
2456
|
-
function equals$
|
|
2456
|
+
function equals$c(existing, incoming) {
|
|
2457
2457
|
const existing_enableModeration = existing.enableModeration;
|
|
2458
2458
|
const incoming_enableModeration = incoming.enableModeration;
|
|
2459
2459
|
if (!(existing_enableModeration === incoming_enableModeration)) {
|
|
@@ -2462,8 +2462,8 @@ function equals$b(existing, incoming) {
|
|
|
2462
2462
|
return true;
|
|
2463
2463
|
}
|
|
2464
2464
|
|
|
2465
|
-
const VERSION$
|
|
2466
|
-
function validate$
|
|
2465
|
+
const VERSION$b = "92ad1abd0e2a60bc36941409cadda7e2";
|
|
2466
|
+
function validate$f(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation') {
|
|
2467
2467
|
const v_error = (() => {
|
|
2468
2468
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2469
2469
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2478,7 +2478,7 @@ function validate$d(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation
|
|
|
2478
2478
|
const path_moderationSettings = path + '.moderationSettings';
|
|
2479
2479
|
let obj_moderationSettings_union0 = null;
|
|
2480
2480
|
const obj_moderationSettings_union0_error = (() => {
|
|
2481
|
-
const referencepath_moderationSettingsValidationError = validate$
|
|
2481
|
+
const referencepath_moderationSettingsValidationError = validate$g(obj_moderationSettings, path_moderationSettings);
|
|
2482
2482
|
if (referencepath_moderationSettingsValidationError !== null) {
|
|
2483
2483
|
let message = 'Object doesn\'t match EinsteinPromptTemplateMaskSettingsRepresentation (at "' + path_moderationSettings + '")\n';
|
|
2484
2484
|
message += referencepath_moderationSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2514,11 +2514,11 @@ function validate$d(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation
|
|
|
2514
2514
|
})();
|
|
2515
2515
|
return v_error === undefined ? null : v_error;
|
|
2516
2516
|
}
|
|
2517
|
-
const select$
|
|
2518
|
-
const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$
|
|
2517
|
+
const select$n = function EinsteinPromptTemplateMaskContentRepresentationSelect() {
|
|
2518
|
+
const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$o();
|
|
2519
2519
|
return {
|
|
2520
2520
|
kind: 'Fragment',
|
|
2521
|
-
version: VERSION$
|
|
2521
|
+
version: VERSION$b,
|
|
2522
2522
|
private: [],
|
|
2523
2523
|
selections: [
|
|
2524
2524
|
{
|
|
@@ -2540,7 +2540,7 @@ const select$k = function EinsteinPromptTemplateMaskContentRepresentationSelect(
|
|
|
2540
2540
|
]
|
|
2541
2541
|
};
|
|
2542
2542
|
};
|
|
2543
|
-
function equals$
|
|
2543
|
+
function equals$b(existing, incoming) {
|
|
2544
2544
|
const existing_content = existing.content;
|
|
2545
2545
|
const incoming_content = incoming.content;
|
|
2546
2546
|
if (!(existing_content === incoming_content)) {
|
|
@@ -2571,15 +2571,15 @@ function equals$a(existing, incoming) {
|
|
|
2571
2571
|
if (!(existing_moderationSettings === incoming_moderationSettings
|
|
2572
2572
|
|| (existing_moderationSettings != null &&
|
|
2573
2573
|
incoming_moderationSettings != null &&
|
|
2574
|
-
equals$
|
|
2574
|
+
equals$c(existing_moderationSettings, incoming_moderationSettings)))) {
|
|
2575
2575
|
return false;
|
|
2576
2576
|
}
|
|
2577
2577
|
}
|
|
2578
2578
|
return true;
|
|
2579
2579
|
}
|
|
2580
2580
|
|
|
2581
|
-
const VERSION$
|
|
2582
|
-
function validate$
|
|
2581
|
+
const VERSION$a = "507a815605f8d30ae9b52b0ec513d25e";
|
|
2582
|
+
function validate$e(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation') {
|
|
2583
2583
|
const v_error = (() => {
|
|
2584
2584
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2585
2585
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2609,10 +2609,10 @@ function validate$c(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation')
|
|
|
2609
2609
|
})();
|
|
2610
2610
|
return v_error === undefined ? null : v_error;
|
|
2611
2611
|
}
|
|
2612
|
-
const select$
|
|
2612
|
+
const select$m = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
|
|
2613
2613
|
return {
|
|
2614
2614
|
kind: 'Fragment',
|
|
2615
|
-
version: VERSION$
|
|
2615
|
+
version: VERSION$a,
|
|
2616
2616
|
private: [],
|
|
2617
2617
|
selections: [
|
|
2618
2618
|
{
|
|
@@ -2631,7 +2631,7 @@ const select$j = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
|
|
|
2631
2631
|
]
|
|
2632
2632
|
};
|
|
2633
2633
|
};
|
|
2634
|
-
function equals$
|
|
2634
|
+
function equals$a(existing, incoming) {
|
|
2635
2635
|
const existing_originalValue = existing.originalValue;
|
|
2636
2636
|
const incoming_originalValue = incoming.originalValue;
|
|
2637
2637
|
if (!(existing_originalValue === incoming_originalValue)) {
|
|
@@ -2655,9 +2655,9 @@ function equals$9(existing, incoming) {
|
|
|
2655
2655
|
return true;
|
|
2656
2656
|
}
|
|
2657
2657
|
|
|
2658
|
-
const TTL$
|
|
2659
|
-
const VERSION$
|
|
2660
|
-
function validate$
|
|
2658
|
+
const TTL$7 = 100;
|
|
2659
|
+
const VERSION$9 = "25461f267931be0754b36e2788461191";
|
|
2660
|
+
function validate$d(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
|
|
2661
2661
|
const v_error = (() => {
|
|
2662
2662
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2663
2663
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2665,7 +2665,7 @@ function validate$b(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2665
2665
|
if (obj.citations !== undefined) {
|
|
2666
2666
|
const obj_citations = obj.citations;
|
|
2667
2667
|
const path_citations = path + '.citations';
|
|
2668
|
-
const referencepath_citationsValidationError = validate$
|
|
2668
|
+
const referencepath_citationsValidationError = validate$k(obj_citations, path_citations);
|
|
2669
2669
|
if (referencepath_citationsValidationError !== null) {
|
|
2670
2670
|
let message = 'Object doesn\'t match EinsteinLlmGenerationCitationRepresentation (at "' + path_citations + '")\n';
|
|
2671
2671
|
message += referencepath_citationsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2681,7 +2681,7 @@ function validate$b(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2681
2681
|
for (let i = 0; i < obj_fileData.length; i++) {
|
|
2682
2682
|
const obj_fileData_item = obj_fileData[i];
|
|
2683
2683
|
const path_fileData_item = path_fileData + '[' + i + ']';
|
|
2684
|
-
const referencepath_fileData_itemValidationError = validate$
|
|
2684
|
+
const referencepath_fileData_itemValidationError = validate$i(obj_fileData_item, path_fileData_item);
|
|
2685
2685
|
if (referencepath_fileData_itemValidationError !== null) {
|
|
2686
2686
|
let message = 'Object doesn\'t match EinsteinPromptTemplateAttachmentRepresentation (at "' + path_fileData_item + '")\n';
|
|
2687
2687
|
message += referencepath_fileData_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2698,7 +2698,7 @@ function validate$b(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2698
2698
|
for (let i = 0; i < obj_generationErrors.length; i++) {
|
|
2699
2699
|
const obj_generationErrors_item = obj_generationErrors[i];
|
|
2700
2700
|
const path_generationErrors_item = path_generationErrors + '[' + i + ']';
|
|
2701
|
-
const referencepath_generationErrors_itemValidationError = validate$
|
|
2701
|
+
const referencepath_generationErrors_itemValidationError = validate$h(obj_generationErrors_item, path_generationErrors_item);
|
|
2702
2702
|
if (referencepath_generationErrors_itemValidationError !== null) {
|
|
2703
2703
|
let message = 'Object doesn\'t match EinsteinPromptTemplateGenerationsErrorRepresentation (at "' + path_generationErrors_item + '")\n';
|
|
2704
2704
|
message += referencepath_generationErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2714,7 +2714,7 @@ function validate$b(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2714
2714
|
for (let i = 0; i < obj_generations.length; i++) {
|
|
2715
2715
|
const obj_generations_item = obj_generations[i];
|
|
2716
2716
|
const path_generations_item = path_generations + '[' + i + ']';
|
|
2717
|
-
const referencepath_generations_itemValidationError = validate$
|
|
2717
|
+
const referencepath_generations_itemValidationError = validate$q(obj_generations_item, path_generations_item);
|
|
2718
2718
|
if (referencepath_generations_itemValidationError !== null) {
|
|
2719
2719
|
let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
|
|
2720
2720
|
message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2741,7 +2741,7 @@ function validate$b(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2741
2741
|
const path_parameters = path + '.parameters';
|
|
2742
2742
|
let obj_parameters_union0 = null;
|
|
2743
2743
|
const obj_parameters_union0_error = (() => {
|
|
2744
|
-
const referencepath_parametersValidationError = validate$
|
|
2744
|
+
const referencepath_parametersValidationError = validate$p(obj_parameters, path_parameters);
|
|
2745
2745
|
if (referencepath_parametersValidationError !== null) {
|
|
2746
2746
|
let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
|
|
2747
2747
|
message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2811,7 +2811,7 @@ function validate$b(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2811
2811
|
for (let i = 0; i < obj_requestMessages.length; i++) {
|
|
2812
2812
|
const obj_requestMessages_item = obj_requestMessages[i];
|
|
2813
2813
|
const path_requestMessages_item = path_requestMessages + '[' + i + ']';
|
|
2814
|
-
const referencepath_requestMessages_itemValidationError = validate$
|
|
2814
|
+
const referencepath_requestMessages_itemValidationError = validate$f(obj_requestMessages_item, path_requestMessages_item);
|
|
2815
2815
|
if (referencepath_requestMessages_itemValidationError !== null) {
|
|
2816
2816
|
let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_requestMessages_item + '")\n';
|
|
2817
2817
|
message += referencepath_requestMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2828,7 +2828,7 @@ function validate$b(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2828
2828
|
for (let i = 0; i < obj_responseMessages.length; i++) {
|
|
2829
2829
|
const obj_responseMessages_item = obj_responseMessages[i];
|
|
2830
2830
|
const path_responseMessages_item = path_responseMessages + '[' + i + ']';
|
|
2831
|
-
const referencepath_responseMessages_itemValidationError = validate$
|
|
2831
|
+
const referencepath_responseMessages_itemValidationError = validate$f(obj_responseMessages_item, path_responseMessages_item);
|
|
2832
2832
|
if (referencepath_responseMessages_itemValidationError !== null) {
|
|
2833
2833
|
let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_responseMessages_item + '")\n';
|
|
2834
2834
|
message += referencepath_responseMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2845,7 +2845,7 @@ function validate$b(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2845
2845
|
for (let i = 0; i < obj_slotsMaskingInformation.length; i++) {
|
|
2846
2846
|
const obj_slotsMaskingInformation_item = obj_slotsMaskingInformation[i];
|
|
2847
2847
|
const path_slotsMaskingInformation_item = path_slotsMaskingInformation + '[' + i + ']';
|
|
2848
|
-
const referencepath_slotsMaskingInformation_itemValidationError = validate$
|
|
2848
|
+
const referencepath_slotsMaskingInformation_itemValidationError = validate$e(obj_slotsMaskingInformation_item, path_slotsMaskingInformation_item);
|
|
2849
2849
|
if (referencepath_slotsMaskingInformation_itemValidationError !== null) {
|
|
2850
2850
|
let message = 'Object doesn\'t match EinsteinPromptTemplateMaskDataRepresentation (at "' + path_slotsMaskingInformation_item + '")\n';
|
|
2851
2851
|
message += referencepath_slotsMaskingInformation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2856,30 +2856,30 @@ function validate$b(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2856
2856
|
})();
|
|
2857
2857
|
return v_error === undefined ? null : v_error;
|
|
2858
2858
|
}
|
|
2859
|
-
const RepresentationType$
|
|
2860
|
-
function keyBuilder$
|
|
2861
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2859
|
+
const RepresentationType$7 = 'EinsteinPromptTemplateGenerationsRepresentation';
|
|
2860
|
+
function keyBuilder$f(luvio, config) {
|
|
2861
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.requestId;
|
|
2862
2862
|
}
|
|
2863
2863
|
function keyBuilderFromType$1(luvio, object) {
|
|
2864
2864
|
const keyParams = {
|
|
2865
2865
|
requestId: object.requestId
|
|
2866
2866
|
};
|
|
2867
|
-
return keyBuilder$
|
|
2867
|
+
return keyBuilder$f(luvio, keyParams);
|
|
2868
2868
|
}
|
|
2869
|
-
function normalize$
|
|
2869
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
2870
2870
|
return input;
|
|
2871
2871
|
}
|
|
2872
|
-
const select$
|
|
2873
|
-
const { selections: EinsteinLlmGenerationCitationRepresentation__selections, opaque: EinsteinLlmGenerationCitationRepresentation__opaque, } = select$
|
|
2874
|
-
const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$
|
|
2875
|
-
const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$
|
|
2876
|
-
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$
|
|
2877
|
-
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$
|
|
2878
|
-
const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$
|
|
2879
|
-
const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$
|
|
2872
|
+
const select$l = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
|
|
2873
|
+
const { selections: EinsteinLlmGenerationCitationRepresentation__selections, opaque: EinsteinLlmGenerationCitationRepresentation__opaque, } = select$s();
|
|
2874
|
+
const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$q();
|
|
2875
|
+
const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$p();
|
|
2876
|
+
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$x();
|
|
2877
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$w();
|
|
2878
|
+
const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$n();
|
|
2879
|
+
const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$m();
|
|
2880
2880
|
return {
|
|
2881
2881
|
kind: 'Fragment',
|
|
2882
|
-
version: VERSION$
|
|
2882
|
+
version: VERSION$9,
|
|
2883
2883
|
private: [],
|
|
2884
2884
|
selections: [
|
|
2885
2885
|
{
|
|
@@ -2955,7 +2955,7 @@ const select$i = function EinsteinPromptTemplateGenerationsRepresentationSelect(
|
|
|
2955
2955
|
]
|
|
2956
2956
|
};
|
|
2957
2957
|
};
|
|
2958
|
-
function equals$
|
|
2958
|
+
function equals$9(existing, incoming) {
|
|
2959
2959
|
const existing_promptTemplateDevName = existing.promptTemplateDevName;
|
|
2960
2960
|
const incoming_promptTemplateDevName = incoming.promptTemplateDevName;
|
|
2961
2961
|
if (!(existing_promptTemplateDevName === incoming_promptTemplateDevName)) {
|
|
@@ -2975,7 +2975,7 @@ function equals$8(existing, incoming) {
|
|
|
2975
2975
|
if (existing_citations === undefined || incoming_citations === undefined) {
|
|
2976
2976
|
return false;
|
|
2977
2977
|
}
|
|
2978
|
-
if (!(equals$
|
|
2978
|
+
if (!(equals$g(existing_citations, incoming_citations))) {
|
|
2979
2979
|
return false;
|
|
2980
2980
|
}
|
|
2981
2981
|
}
|
|
@@ -2989,7 +2989,7 @@ function equals$8(existing, incoming) {
|
|
|
2989
2989
|
return false;
|
|
2990
2990
|
}
|
|
2991
2991
|
const equals_fileData_items = equalsArray(existing_fileData, incoming_fileData, (existing_fileData_item, incoming_fileData_item) => {
|
|
2992
|
-
if (!(equals$
|
|
2992
|
+
if (!(equals$e(existing_fileData_item, incoming_fileData_item))) {
|
|
2993
2993
|
return false;
|
|
2994
2994
|
}
|
|
2995
2995
|
});
|
|
@@ -3007,7 +3007,7 @@ function equals$8(existing, incoming) {
|
|
|
3007
3007
|
return false;
|
|
3008
3008
|
}
|
|
3009
3009
|
const equals_generationErrors_items = equalsArray(existing_generationErrors, incoming_generationErrors, (existing_generationErrors_item, incoming_generationErrors_item) => {
|
|
3010
|
-
if (!(equals$
|
|
3010
|
+
if (!(equals$d(existing_generationErrors_item, incoming_generationErrors_item))) {
|
|
3011
3011
|
return false;
|
|
3012
3012
|
}
|
|
3013
3013
|
});
|
|
@@ -3018,7 +3018,7 @@ function equals$8(existing, incoming) {
|
|
|
3018
3018
|
const existing_generations = existing.generations;
|
|
3019
3019
|
const incoming_generations = incoming.generations;
|
|
3020
3020
|
const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
|
|
3021
|
-
if (!(equals$
|
|
3021
|
+
if (!(equals$k(existing_generations_item, incoming_generations_item))) {
|
|
3022
3022
|
return false;
|
|
3023
3023
|
}
|
|
3024
3024
|
});
|
|
@@ -3048,7 +3048,7 @@ function equals$8(existing, incoming) {
|
|
|
3048
3048
|
if (!(existing_parameters === incoming_parameters
|
|
3049
3049
|
|| (existing_parameters != null &&
|
|
3050
3050
|
incoming_parameters != null &&
|
|
3051
|
-
equals$
|
|
3051
|
+
equals$j(existing_parameters, incoming_parameters)))) {
|
|
3052
3052
|
return false;
|
|
3053
3053
|
}
|
|
3054
3054
|
const existing_prompt = existing.prompt;
|
|
@@ -3066,7 +3066,7 @@ function equals$8(existing, incoming) {
|
|
|
3066
3066
|
return false;
|
|
3067
3067
|
}
|
|
3068
3068
|
const equals_requestMessages_items = equalsArray(existing_requestMessages, incoming_requestMessages, (existing_requestMessages_item, incoming_requestMessages_item) => {
|
|
3069
|
-
if (!(equals$
|
|
3069
|
+
if (!(equals$b(existing_requestMessages_item, incoming_requestMessages_item))) {
|
|
3070
3070
|
return false;
|
|
3071
3071
|
}
|
|
3072
3072
|
});
|
|
@@ -3084,7 +3084,7 @@ function equals$8(existing, incoming) {
|
|
|
3084
3084
|
return false;
|
|
3085
3085
|
}
|
|
3086
3086
|
const equals_responseMessages_items = equalsArray(existing_responseMessages, incoming_responseMessages, (existing_responseMessages_item, incoming_responseMessages_item) => {
|
|
3087
|
-
if (!(equals$
|
|
3087
|
+
if (!(equals$b(existing_responseMessages_item, incoming_responseMessages_item))) {
|
|
3088
3088
|
return false;
|
|
3089
3089
|
}
|
|
3090
3090
|
});
|
|
@@ -3102,7 +3102,7 @@ function equals$8(existing, incoming) {
|
|
|
3102
3102
|
return false;
|
|
3103
3103
|
}
|
|
3104
3104
|
const equals_slotsMaskingInformation_items = equalsArray(existing_slotsMaskingInformation, incoming_slotsMaskingInformation, (existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item) => {
|
|
3105
|
-
if (!(equals$
|
|
3105
|
+
if (!(equals$a(existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item))) {
|
|
3106
3106
|
return false;
|
|
3107
3107
|
}
|
|
3108
3108
|
});
|
|
@@ -3112,41 +3112,41 @@ function equals$8(existing, incoming) {
|
|
|
3112
3112
|
}
|
|
3113
3113
|
return true;
|
|
3114
3114
|
}
|
|
3115
|
-
const ingest$
|
|
3115
|
+
const ingest$7 = function EinsteinPromptTemplateGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3116
3116
|
if (process.env.NODE_ENV !== 'production') {
|
|
3117
|
-
const validateError = validate$
|
|
3117
|
+
const validateError = validate$d(input);
|
|
3118
3118
|
if (validateError !== null) {
|
|
3119
3119
|
throw validateError;
|
|
3120
3120
|
}
|
|
3121
3121
|
}
|
|
3122
3122
|
const key = keyBuilderFromType$1(luvio, input);
|
|
3123
|
-
const ttlToUse = TTL$
|
|
3124
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3123
|
+
const ttlToUse = TTL$7;
|
|
3124
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "EinsteinLLM", VERSION$9, RepresentationType$7, equals$9);
|
|
3125
3125
|
return createLink(key);
|
|
3126
3126
|
};
|
|
3127
|
-
function getTypeCacheKeys$
|
|
3127
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
3128
3128
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3129
3129
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
3130
3130
|
rootKeySet.set(rootKey, {
|
|
3131
3131
|
namespace: keyPrefix,
|
|
3132
|
-
representationName: RepresentationType$
|
|
3132
|
+
representationName: RepresentationType$7,
|
|
3133
3133
|
mergeable: false
|
|
3134
3134
|
});
|
|
3135
3135
|
}
|
|
3136
3136
|
|
|
3137
|
-
function select$
|
|
3138
|
-
return select$
|
|
3137
|
+
function select$k(luvio, params) {
|
|
3138
|
+
return select$l();
|
|
3139
3139
|
}
|
|
3140
|
-
function getResponseCacheKeys$
|
|
3141
|
-
getTypeCacheKeys$
|
|
3140
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
3141
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
3142
3142
|
}
|
|
3143
|
-
function ingestSuccess$
|
|
3143
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
3144
3144
|
const { body } = response;
|
|
3145
3145
|
const key = keyBuilderFromType$1(luvio, body);
|
|
3146
|
-
luvio.storeIngest(key, ingest$
|
|
3146
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
3147
3147
|
const snapshot = luvio.storeLookup({
|
|
3148
3148
|
recordId: key,
|
|
3149
|
-
node: select$
|
|
3149
|
+
node: select$k(),
|
|
3150
3150
|
variables: {},
|
|
3151
3151
|
});
|
|
3152
3152
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3157,10 +3157,10 @@ function ingestSuccess$9(luvio, resourceParams, response) {
|
|
|
3157
3157
|
deepFreeze(snapshot.data);
|
|
3158
3158
|
return snapshot;
|
|
3159
3159
|
}
|
|
3160
|
-
function createResourceRequest$
|
|
3160
|
+
function createResourceRequest$b(config) {
|
|
3161
3161
|
const headers = {};
|
|
3162
3162
|
return {
|
|
3163
|
-
baseUri: '/services/data/
|
|
3163
|
+
baseUri: '/services/data/v66.0',
|
|
3164
3164
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/generations',
|
|
3165
3165
|
method: 'post',
|
|
3166
3166
|
body: config.body,
|
|
@@ -3171,48 +3171,48 @@ function createResourceRequest$9(config) {
|
|
|
3171
3171
|
};
|
|
3172
3172
|
}
|
|
3173
3173
|
|
|
3174
|
-
const adapterName$
|
|
3174
|
+
const adapterName$b = 'createGenerationsForPromptTemplate';
|
|
3175
3175
|
const createGenerationsForPromptTemplate_ConfigPropertyMetadata = [
|
|
3176
3176
|
generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3177
3177
|
generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3178
3178
|
generateParamConfigMetadata('promptTemplateGenerationsInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3179
3179
|
];
|
|
3180
|
-
const createGenerationsForPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3181
|
-
const createResourceParams$
|
|
3182
|
-
function typeCheckConfig$
|
|
3180
|
+
const createGenerationsForPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
|
|
3181
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$f(createGenerationsForPromptTemplate_ConfigPropertyMetadata);
|
|
3182
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
3183
3183
|
const config = {};
|
|
3184
|
-
typeCheckConfig$
|
|
3184
|
+
typeCheckConfig$f(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
|
|
3185
3185
|
const untrustedConfig_promptTemplateGenerationsInput = untrustedConfig.promptTemplateGenerationsInput;
|
|
3186
|
-
const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$
|
|
3186
|
+
const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$m(untrustedConfig_promptTemplateGenerationsInput);
|
|
3187
3187
|
if (referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError === null) {
|
|
3188
3188
|
config.promptTemplateGenerationsInput = untrustedConfig_promptTemplateGenerationsInput;
|
|
3189
3189
|
}
|
|
3190
3190
|
return config;
|
|
3191
3191
|
}
|
|
3192
|
-
function validateAdapterConfig$
|
|
3192
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
3193
3193
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3194
3194
|
return null;
|
|
3195
3195
|
}
|
|
3196
3196
|
if (process.env.NODE_ENV !== 'production') {
|
|
3197
3197
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3198
3198
|
}
|
|
3199
|
-
const config = typeCheckConfig$
|
|
3199
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
3200
3200
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3201
3201
|
return null;
|
|
3202
3202
|
}
|
|
3203
3203
|
return config;
|
|
3204
3204
|
}
|
|
3205
|
-
function buildNetworkSnapshot$
|
|
3206
|
-
const resourceParams = createResourceParams$
|
|
3207
|
-
const request = createResourceRequest$
|
|
3205
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
3206
|
+
const resourceParams = createResourceParams$b(config);
|
|
3207
|
+
const request = createResourceRequest$b(resourceParams);
|
|
3208
3208
|
return luvio.dispatchResourceRequest(request, options)
|
|
3209
3209
|
.then((response) => {
|
|
3210
3210
|
return luvio.handleSuccessResponse(() => {
|
|
3211
|
-
const snapshot = ingestSuccess$
|
|
3211
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
3212
3212
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3213
3213
|
}, () => {
|
|
3214
3214
|
const cache = new StoreKeyMap();
|
|
3215
|
-
getResponseCacheKeys$
|
|
3215
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
3216
3216
|
return cache;
|
|
3217
3217
|
});
|
|
3218
3218
|
}, (response) => {
|
|
@@ -3222,18 +3222,18 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
3222
3222
|
}
|
|
3223
3223
|
const createGenerationsForPromptTemplateAdapterFactory = (luvio) => {
|
|
3224
3224
|
return function createGenerationsForPromptTemplate(untrustedConfig) {
|
|
3225
|
-
const config = validateAdapterConfig$
|
|
3225
|
+
const config = validateAdapterConfig$b(untrustedConfig, createGenerationsForPromptTemplate_ConfigPropertyNames);
|
|
3226
3226
|
// Invalid or incomplete config
|
|
3227
3227
|
if (config === null) {
|
|
3228
3228
|
throw new Error('Invalid config for "createGenerationsForPromptTemplate"');
|
|
3229
3229
|
}
|
|
3230
|
-
return buildNetworkSnapshot$
|
|
3230
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
3231
3231
|
};
|
|
3232
3232
|
};
|
|
3233
3233
|
|
|
3234
|
-
const TTL$
|
|
3235
|
-
const VERSION$
|
|
3236
|
-
function validate$
|
|
3234
|
+
const TTL$6 = 100;
|
|
3235
|
+
const VERSION$8 = "a90a51578e2fdd7a9741d310bed22b1d";
|
|
3236
|
+
function validate$c(obj, path = 'EinsteinPromptTemplateRepresentation') {
|
|
3237
3237
|
const v_error = (() => {
|
|
3238
3238
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3239
3239
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3241,7 +3241,7 @@ function validate$a(obj, path = 'EinsteinPromptTemplateRepresentation') {
|
|
|
3241
3241
|
if (obj.additionalData !== undefined) {
|
|
3242
3242
|
const obj_additionalData = obj.additionalData;
|
|
3243
3243
|
const path_additionalData = path + '.additionalData';
|
|
3244
|
-
const referencepath_additionalDataValidationError = validate$
|
|
3244
|
+
const referencepath_additionalDataValidationError = validate$p(obj_additionalData, path_additionalData);
|
|
3245
3245
|
if (referencepath_additionalDataValidationError !== null) {
|
|
3246
3246
|
let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
|
|
3247
3247
|
message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3309,24 +3309,24 @@ function validate$a(obj, path = 'EinsteinPromptTemplateRepresentation') {
|
|
|
3309
3309
|
})();
|
|
3310
3310
|
return v_error === undefined ? null : v_error;
|
|
3311
3311
|
}
|
|
3312
|
-
const RepresentationType$
|
|
3313
|
-
function keyBuilder$
|
|
3314
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3312
|
+
const RepresentationType$6 = 'EinsteinPromptTemplateRepresentation';
|
|
3313
|
+
function keyBuilder$e(luvio, config) {
|
|
3314
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.versionId;
|
|
3315
3315
|
}
|
|
3316
3316
|
function keyBuilderFromType(luvio, object) {
|
|
3317
3317
|
const keyParams = {
|
|
3318
3318
|
versionId: object.versionId
|
|
3319
3319
|
};
|
|
3320
|
-
return keyBuilder$
|
|
3320
|
+
return keyBuilder$e(luvio, keyParams);
|
|
3321
3321
|
}
|
|
3322
|
-
function normalize$
|
|
3322
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
3323
3323
|
return input;
|
|
3324
3324
|
}
|
|
3325
|
-
const select$
|
|
3326
|
-
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$
|
|
3325
|
+
const select$j = function EinsteinPromptTemplateRepresentationSelect() {
|
|
3326
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$w();
|
|
3327
3327
|
return {
|
|
3328
3328
|
kind: 'Fragment',
|
|
3329
|
-
version: VERSION$
|
|
3329
|
+
version: VERSION$8,
|
|
3330
3330
|
private: [],
|
|
3331
3331
|
selections: [
|
|
3332
3332
|
{
|
|
@@ -3374,7 +3374,7 @@ const select$g = function EinsteinPromptTemplateRepresentationSelect() {
|
|
|
3374
3374
|
]
|
|
3375
3375
|
};
|
|
3376
3376
|
};
|
|
3377
|
-
function equals$
|
|
3377
|
+
function equals$8(existing, incoming) {
|
|
3378
3378
|
const existing_hasWarning = existing.hasWarning;
|
|
3379
3379
|
const incoming_hasWarning = incoming.hasWarning;
|
|
3380
3380
|
if (!(existing_hasWarning === incoming_hasWarning)) {
|
|
@@ -3430,7 +3430,7 @@ function equals$7(existing, incoming) {
|
|
|
3430
3430
|
if (existing_additionalData === undefined || incoming_additionalData === undefined) {
|
|
3431
3431
|
return false;
|
|
3432
3432
|
}
|
|
3433
|
-
if (!(equals$
|
|
3433
|
+
if (!(equals$j(existing_additionalData, incoming_additionalData))) {
|
|
3434
3434
|
return false;
|
|
3435
3435
|
}
|
|
3436
3436
|
}
|
|
@@ -3456,41 +3456,41 @@ function equals$7(existing, incoming) {
|
|
|
3456
3456
|
}
|
|
3457
3457
|
return true;
|
|
3458
3458
|
}
|
|
3459
|
-
const ingest$
|
|
3459
|
+
const ingest$6 = function EinsteinPromptTemplateRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3460
3460
|
if (process.env.NODE_ENV !== 'production') {
|
|
3461
|
-
const validateError = validate$
|
|
3461
|
+
const validateError = validate$c(input);
|
|
3462
3462
|
if (validateError !== null) {
|
|
3463
3463
|
throw validateError;
|
|
3464
3464
|
}
|
|
3465
3465
|
}
|
|
3466
3466
|
const key = keyBuilderFromType(luvio, input);
|
|
3467
|
-
const ttlToUse = TTL$
|
|
3468
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3467
|
+
const ttlToUse = TTL$6;
|
|
3468
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "EinsteinLLM", VERSION$8, RepresentationType$6, equals$8);
|
|
3469
3469
|
return createLink(key);
|
|
3470
3470
|
};
|
|
3471
|
-
function getTypeCacheKeys$
|
|
3471
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
3472
3472
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3473
3473
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
3474
3474
|
rootKeySet.set(rootKey, {
|
|
3475
3475
|
namespace: keyPrefix,
|
|
3476
|
-
representationName: RepresentationType$
|
|
3476
|
+
representationName: RepresentationType$6,
|
|
3477
3477
|
mergeable: false
|
|
3478
3478
|
});
|
|
3479
3479
|
}
|
|
3480
3480
|
|
|
3481
|
-
function select$
|
|
3482
|
-
return select$
|
|
3481
|
+
function select$i(luvio, params) {
|
|
3482
|
+
return select$j();
|
|
3483
3483
|
}
|
|
3484
|
-
function getResponseCacheKeys$
|
|
3485
|
-
getTypeCacheKeys$
|
|
3484
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
3485
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
3486
3486
|
}
|
|
3487
|
-
function ingestSuccess$
|
|
3487
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
3488
3488
|
const { body } = response;
|
|
3489
3489
|
const key = keyBuilderFromType(luvio, body);
|
|
3490
|
-
luvio.storeIngest(key, ingest$
|
|
3490
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
3491
3491
|
const snapshot = luvio.storeLookup({
|
|
3492
3492
|
recordId: key,
|
|
3493
|
-
node: select$
|
|
3493
|
+
node: select$i(),
|
|
3494
3494
|
variables: {},
|
|
3495
3495
|
});
|
|
3496
3496
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3501,10 +3501,10 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
3501
3501
|
deepFreeze(snapshot.data);
|
|
3502
3502
|
return snapshot;
|
|
3503
3503
|
}
|
|
3504
|
-
function createResourceRequest$
|
|
3504
|
+
function createResourceRequest$a(config) {
|
|
3505
3505
|
const headers = {};
|
|
3506
3506
|
return {
|
|
3507
|
-
baseUri: '/services/data/
|
|
3507
|
+
baseUri: '/services/data/v66.0',
|
|
3508
3508
|
basePath: '/einstein/prompt-templates',
|
|
3509
3509
|
method: 'post',
|
|
3510
3510
|
body: config.body,
|
|
@@ -3515,7 +3515,7 @@ function createResourceRequest$8(config) {
|
|
|
3515
3515
|
};
|
|
3516
3516
|
}
|
|
3517
3517
|
|
|
3518
|
-
const adapterName$
|
|
3518
|
+
const adapterName$a = 'createPromptTemplate';
|
|
3519
3519
|
const createPromptTemplate_ConfigPropertyMetadata = [
|
|
3520
3520
|
generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
|
|
3521
3521
|
generateParamConfigMetadata('childRelationships', true, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -3523,11 +3523,11 @@ const createPromptTemplate_ConfigPropertyMetadata = [
|
|
|
3523
3523
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
3524
3524
|
generateParamConfigMetadata('isStandard', true, 2 /* Body */, 1 /* Boolean */),
|
|
3525
3525
|
];
|
|
3526
|
-
const createPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3527
|
-
const createResourceParams$
|
|
3528
|
-
function typeCheckConfig$
|
|
3526
|
+
const createPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createPromptTemplate_ConfigPropertyMetadata);
|
|
3527
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$f(createPromptTemplate_ConfigPropertyMetadata);
|
|
3528
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
3529
3529
|
const config = {};
|
|
3530
|
-
typeCheckConfig$
|
|
3530
|
+
typeCheckConfig$f(untrustedConfig, config, createPromptTemplate_ConfigPropertyMetadata);
|
|
3531
3531
|
const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
|
|
3532
3532
|
if (untrustedIsObject(untrustedConfig_childRelationships)) {
|
|
3533
3533
|
const untrustedConfig_childRelationships_object = {};
|
|
@@ -3567,30 +3567,30 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
3567
3567
|
}
|
|
3568
3568
|
return config;
|
|
3569
3569
|
}
|
|
3570
|
-
function validateAdapterConfig$
|
|
3570
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
3571
3571
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3572
3572
|
return null;
|
|
3573
3573
|
}
|
|
3574
3574
|
if (process.env.NODE_ENV !== 'production') {
|
|
3575
3575
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3576
3576
|
}
|
|
3577
|
-
const config = typeCheckConfig$
|
|
3577
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
3578
3578
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3579
3579
|
return null;
|
|
3580
3580
|
}
|
|
3581
3581
|
return config;
|
|
3582
3582
|
}
|
|
3583
|
-
function buildNetworkSnapshot$
|
|
3584
|
-
const resourceParams = createResourceParams$
|
|
3585
|
-
const request = createResourceRequest$
|
|
3583
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
3584
|
+
const resourceParams = createResourceParams$a(config);
|
|
3585
|
+
const request = createResourceRequest$a(resourceParams);
|
|
3586
3586
|
return luvio.dispatchResourceRequest(request, options)
|
|
3587
3587
|
.then((response) => {
|
|
3588
3588
|
return luvio.handleSuccessResponse(() => {
|
|
3589
|
-
const snapshot = ingestSuccess$
|
|
3589
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response);
|
|
3590
3590
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3591
3591
|
}, () => {
|
|
3592
3592
|
const cache = new StoreKeyMap();
|
|
3593
|
-
getResponseCacheKeys$
|
|
3593
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
3594
3594
|
return cache;
|
|
3595
3595
|
});
|
|
3596
3596
|
}, (response) => {
|
|
@@ -3600,28 +3600,28 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
3600
3600
|
}
|
|
3601
3601
|
const createPromptTemplateAdapterFactory = (luvio) => {
|
|
3602
3602
|
return function createPromptTemplate(untrustedConfig) {
|
|
3603
|
-
const config = validateAdapterConfig$
|
|
3603
|
+
const config = validateAdapterConfig$a(untrustedConfig, createPromptTemplate_ConfigPropertyNames);
|
|
3604
3604
|
// Invalid or incomplete config
|
|
3605
3605
|
if (config === null) {
|
|
3606
3606
|
throw new Error('Invalid config for "createPromptTemplate"');
|
|
3607
3607
|
}
|
|
3608
|
-
return buildNetworkSnapshot$
|
|
3608
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
3609
3609
|
};
|
|
3610
3610
|
};
|
|
3611
3611
|
|
|
3612
|
-
function select$
|
|
3613
|
-
return select$
|
|
3612
|
+
function select$h(luvio, params) {
|
|
3613
|
+
return select$j();
|
|
3614
3614
|
}
|
|
3615
|
-
function getResponseCacheKeys$
|
|
3616
|
-
getTypeCacheKeys$
|
|
3615
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
3616
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
3617
3617
|
}
|
|
3618
|
-
function ingestSuccess$
|
|
3618
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
3619
3619
|
const { body } = response;
|
|
3620
3620
|
const key = keyBuilderFromType(luvio, body);
|
|
3621
|
-
luvio.storeIngest(key, ingest$
|
|
3621
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
3622
3622
|
const snapshot = luvio.storeLookup({
|
|
3623
3623
|
recordId: key,
|
|
3624
|
-
node: select$
|
|
3624
|
+
node: select$h(),
|
|
3625
3625
|
variables: {},
|
|
3626
3626
|
});
|
|
3627
3627
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3632,10 +3632,10 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
3632
3632
|
deepFreeze(snapshot.data);
|
|
3633
3633
|
return snapshot;
|
|
3634
3634
|
}
|
|
3635
|
-
function createResourceRequest$
|
|
3635
|
+
function createResourceRequest$9(config) {
|
|
3636
3636
|
const headers = {};
|
|
3637
3637
|
return {
|
|
3638
|
-
baseUri: '/services/data/
|
|
3638
|
+
baseUri: '/services/data/v66.0',
|
|
3639
3639
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions',
|
|
3640
3640
|
method: 'post',
|
|
3641
3641
|
body: config.body,
|
|
@@ -3646,7 +3646,7 @@ function createResourceRequest$7(config) {
|
|
|
3646
3646
|
};
|
|
3647
3647
|
}
|
|
3648
3648
|
|
|
3649
|
-
const adapterName$
|
|
3649
|
+
const adapterName$9 = 'createPromptTemplateVersion';
|
|
3650
3650
|
const createPromptTemplateVersion_ConfigPropertyMetadata = [
|
|
3651
3651
|
generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3652
3652
|
generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
|
|
@@ -3655,11 +3655,11 @@ const createPromptTemplateVersion_ConfigPropertyMetadata = [
|
|
|
3655
3655
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
3656
3656
|
generateParamConfigMetadata('isStandard', true, 2 /* Body */, 1 /* Boolean */),
|
|
3657
3657
|
];
|
|
3658
|
-
const createPromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3659
|
-
const createResourceParams$
|
|
3660
|
-
function typeCheckConfig$
|
|
3658
|
+
const createPromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createPromptTemplateVersion_ConfigPropertyMetadata);
|
|
3659
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$f(createPromptTemplateVersion_ConfigPropertyMetadata);
|
|
3660
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
3661
3661
|
const config = {};
|
|
3662
|
-
typeCheckConfig$
|
|
3662
|
+
typeCheckConfig$f(untrustedConfig, config, createPromptTemplateVersion_ConfigPropertyMetadata);
|
|
3663
3663
|
const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
|
|
3664
3664
|
if (untrustedIsObject(untrustedConfig_childRelationships)) {
|
|
3665
3665
|
const untrustedConfig_childRelationships_object = {};
|
|
@@ -3699,30 +3699,30 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
3699
3699
|
}
|
|
3700
3700
|
return config;
|
|
3701
3701
|
}
|
|
3702
|
-
function validateAdapterConfig$
|
|
3702
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
3703
3703
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3704
3704
|
return null;
|
|
3705
3705
|
}
|
|
3706
3706
|
if (process.env.NODE_ENV !== 'production') {
|
|
3707
3707
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3708
3708
|
}
|
|
3709
|
-
const config = typeCheckConfig$
|
|
3709
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
3710
3710
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3711
3711
|
return null;
|
|
3712
3712
|
}
|
|
3713
3713
|
return config;
|
|
3714
3714
|
}
|
|
3715
|
-
function buildNetworkSnapshot$
|
|
3716
|
-
const resourceParams = createResourceParams$
|
|
3717
|
-
const request = createResourceRequest$
|
|
3715
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
3716
|
+
const resourceParams = createResourceParams$9(config);
|
|
3717
|
+
const request = createResourceRequest$9(resourceParams);
|
|
3718
3718
|
return luvio.dispatchResourceRequest(request, options)
|
|
3719
3719
|
.then((response) => {
|
|
3720
3720
|
return luvio.handleSuccessResponse(() => {
|
|
3721
|
-
const snapshot = ingestSuccess$
|
|
3721
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
3722
3722
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3723
3723
|
}, () => {
|
|
3724
3724
|
const cache = new StoreKeyMap();
|
|
3725
|
-
getResponseCacheKeys$
|
|
3725
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
3726
3726
|
return cache;
|
|
3727
3727
|
});
|
|
3728
3728
|
}, (response) => {
|
|
@@ -3732,16 +3732,16 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
3732
3732
|
}
|
|
3733
3733
|
const createPromptTemplateVersionAdapterFactory = (luvio) => {
|
|
3734
3734
|
return function createPromptTemplateVersion(untrustedConfig) {
|
|
3735
|
-
const config = validateAdapterConfig$
|
|
3735
|
+
const config = validateAdapterConfig$9(untrustedConfig, createPromptTemplateVersion_ConfigPropertyNames);
|
|
3736
3736
|
// Invalid or incomplete config
|
|
3737
3737
|
if (config === null) {
|
|
3738
3738
|
throw new Error('Invalid config for "createPromptTemplateVersion"');
|
|
3739
3739
|
}
|
|
3740
|
-
return buildNetworkSnapshot$
|
|
3740
|
+
return buildNetworkSnapshot$9(luvio, config);
|
|
3741
3741
|
};
|
|
3742
3742
|
};
|
|
3743
3743
|
|
|
3744
|
-
function validate$
|
|
3744
|
+
function validate$b(obj, path = 'PromptTemplateDataProviderOutputParamRepresentation') {
|
|
3745
3745
|
const v_error = (() => {
|
|
3746
3746
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3747
3747
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3760,7 +3760,7 @@ function validate$9(obj, path = 'PromptTemplateDataProviderOutputParamRepresenta
|
|
|
3760
3760
|
return v_error === undefined ? null : v_error;
|
|
3761
3761
|
}
|
|
3762
3762
|
|
|
3763
|
-
function validate$
|
|
3763
|
+
function validate$a(obj, path = 'PromptTemplateDataProviderInputParamRepresentation') {
|
|
3764
3764
|
const v_error = (() => {
|
|
3765
3765
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3766
3766
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3789,9 +3789,9 @@ function validate$8(obj, path = 'PromptTemplateDataProviderInputParamRepresentat
|
|
|
3789
3789
|
return v_error === undefined ? null : v_error;
|
|
3790
3790
|
}
|
|
3791
3791
|
|
|
3792
|
-
const TTL$
|
|
3793
|
-
const VERSION$
|
|
3794
|
-
function validate$
|
|
3792
|
+
const TTL$5 = 300;
|
|
3793
|
+
const VERSION$7 = "d4824d8c6e7848df0de89295e6d9d434";
|
|
3794
|
+
function validate$9(obj, path = 'PromptTemplateDataProviderInstanceConfigRepresentation') {
|
|
3795
3795
|
const v_error = (() => {
|
|
3796
3796
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3797
3797
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3820,7 +3820,7 @@ function validate$7(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
|
|
|
3820
3820
|
if (obj.defaultOutputParam !== undefined) {
|
|
3821
3821
|
const obj_defaultOutputParam = obj.defaultOutputParam;
|
|
3822
3822
|
const path_defaultOutputParam = path + '.defaultOutputParam';
|
|
3823
|
-
const referencepath_defaultOutputParamValidationError = validate$
|
|
3823
|
+
const referencepath_defaultOutputParamValidationError = validate$b(obj_defaultOutputParam, path_defaultOutputParam);
|
|
3824
3824
|
if (referencepath_defaultOutputParamValidationError !== null) {
|
|
3825
3825
|
let message = 'Object doesn\'t match PromptTemplateDataProviderOutputParamRepresentation (at "' + path_defaultOutputParam + '")\n';
|
|
3826
3826
|
message += referencepath_defaultOutputParamValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3874,7 +3874,7 @@ function validate$7(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
|
|
|
3874
3874
|
for (let i = 0; i < obj_inputParams.length; i++) {
|
|
3875
3875
|
const obj_inputParams_item = obj_inputParams[i];
|
|
3876
3876
|
const path_inputParams_item = path_inputParams + '[' + i + ']';
|
|
3877
|
-
const referencepath_inputParams_itemValidationError = validate$
|
|
3877
|
+
const referencepath_inputParams_itemValidationError = validate$a(obj_inputParams_item, path_inputParams_item);
|
|
3878
3878
|
if (referencepath_inputParams_itemValidationError !== null) {
|
|
3879
3879
|
let message = 'Object doesn\'t match PromptTemplateDataProviderInputParamRepresentation (at "' + path_inputParams_item + '")\n';
|
|
3880
3880
|
message += referencepath_inputParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3940,7 +3940,7 @@ function validate$7(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
|
|
|
3940
3940
|
for (let i = 0; i < obj_outputParams.length; i++) {
|
|
3941
3941
|
const obj_outputParams_item = obj_outputParams[i];
|
|
3942
3942
|
const path_outputParams_item = path_outputParams + '[' + i + ']';
|
|
3943
|
-
const referencepath_outputParams_itemValidationError = validate$
|
|
3943
|
+
const referencepath_outputParams_itemValidationError = validate$b(obj_outputParams_item, path_outputParams_item);
|
|
3944
3944
|
if (referencepath_outputParams_itemValidationError !== null) {
|
|
3945
3945
|
let message = 'Object doesn\'t match PromptTemplateDataProviderOutputParamRepresentation (at "' + path_outputParams_item + '")\n';
|
|
3946
3946
|
message += referencepath_outputParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4012,62 +4012,62 @@ function validate$7(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
|
|
|
4012
4012
|
})();
|
|
4013
4013
|
return v_error === undefined ? null : v_error;
|
|
4014
4014
|
}
|
|
4015
|
-
const RepresentationType$
|
|
4016
|
-
function normalize$
|
|
4015
|
+
const RepresentationType$5 = 'PromptTemplateDataProviderInstanceConfigRepresentation';
|
|
4016
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
4017
4017
|
return input;
|
|
4018
4018
|
}
|
|
4019
|
-
const select$
|
|
4019
|
+
const select$g = function PromptTemplateDataProviderInstanceConfigRepresentationSelect() {
|
|
4020
4020
|
return {
|
|
4021
4021
|
kind: 'Fragment',
|
|
4022
|
-
version: VERSION$
|
|
4022
|
+
version: VERSION$7,
|
|
4023
4023
|
private: [],
|
|
4024
4024
|
opaque: true
|
|
4025
4025
|
};
|
|
4026
4026
|
};
|
|
4027
|
-
function equals$
|
|
4027
|
+
function equals$7(existing, incoming) {
|
|
4028
4028
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4029
4029
|
return false;
|
|
4030
4030
|
}
|
|
4031
4031
|
return true;
|
|
4032
4032
|
}
|
|
4033
|
-
const ingest$
|
|
4033
|
+
const ingest$5 = function PromptTemplateDataProviderInstanceConfigRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4034
4034
|
if (process.env.NODE_ENV !== 'production') {
|
|
4035
|
-
const validateError = validate$
|
|
4035
|
+
const validateError = validate$9(input);
|
|
4036
4036
|
if (validateError !== null) {
|
|
4037
4037
|
throw validateError;
|
|
4038
4038
|
}
|
|
4039
4039
|
}
|
|
4040
4040
|
const key = path.fullPath;
|
|
4041
|
-
const ttlToUse = TTL$
|
|
4042
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4041
|
+
const ttlToUse = TTL$5;
|
|
4042
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$7, RepresentationType$5, equals$7);
|
|
4043
4043
|
return createLink(key);
|
|
4044
4044
|
};
|
|
4045
|
-
function getTypeCacheKeys$
|
|
4045
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
4046
4046
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4047
4047
|
const rootKey = fullPathFactory();
|
|
4048
4048
|
rootKeySet.set(rootKey, {
|
|
4049
4049
|
namespace: keyPrefix,
|
|
4050
|
-
representationName: RepresentationType$
|
|
4050
|
+
representationName: RepresentationType$5,
|
|
4051
4051
|
mergeable: false
|
|
4052
4052
|
});
|
|
4053
4053
|
}
|
|
4054
4054
|
|
|
4055
|
-
function select$
|
|
4056
|
-
return select$
|
|
4055
|
+
function select$f(luvio, params) {
|
|
4056
|
+
return select$g();
|
|
4057
4057
|
}
|
|
4058
|
-
function keyBuilder$
|
|
4058
|
+
function keyBuilder$d(luvio, params) {
|
|
4059
4059
|
return keyPrefix + '::PromptTemplateDataProviderInstanceConfigRepresentation:(' + stableJSONStringify(params.body.additionalParam) + '::' + 'definition:' + params.body.definition + '::' + 'groupName:' + params.body.groupName + ')';
|
|
4060
4060
|
}
|
|
4061
|
-
function getResponseCacheKeys$
|
|
4062
|
-
getTypeCacheKeys$
|
|
4061
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
4062
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
|
|
4063
4063
|
}
|
|
4064
|
-
function ingestSuccess$
|
|
4064
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
4065
4065
|
const { body } = response;
|
|
4066
|
-
const key = keyBuilder$
|
|
4067
|
-
luvio.storeIngest(key, ingest$
|
|
4066
|
+
const key = keyBuilder$d(luvio, resourceParams);
|
|
4067
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
4068
4068
|
const snapshot = luvio.storeLookup({
|
|
4069
4069
|
recordId: key,
|
|
4070
|
-
node: select$
|
|
4070
|
+
node: select$f(),
|
|
4071
4071
|
variables: {},
|
|
4072
4072
|
}, snapshotRefresh);
|
|
4073
4073
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4078,22 +4078,22 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4078
4078
|
deepFreeze(snapshot.data);
|
|
4079
4079
|
return snapshot;
|
|
4080
4080
|
}
|
|
4081
|
-
function ingestError$
|
|
4082
|
-
const key = keyBuilder$
|
|
4081
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
4082
|
+
const key = keyBuilder$d(luvio, params);
|
|
4083
4083
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4084
4084
|
const storeMetadataParams = {
|
|
4085
|
-
ttl: TTL$
|
|
4085
|
+
ttl: TTL$5,
|
|
4086
4086
|
namespace: keyPrefix,
|
|
4087
|
-
version: VERSION$
|
|
4088
|
-
representationName: RepresentationType$
|
|
4087
|
+
version: VERSION$7,
|
|
4088
|
+
representationName: RepresentationType$5
|
|
4089
4089
|
};
|
|
4090
4090
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4091
4091
|
return errorSnapshot;
|
|
4092
4092
|
}
|
|
4093
|
-
function createResourceRequest$
|
|
4093
|
+
function createResourceRequest$8(config) {
|
|
4094
4094
|
const headers = {};
|
|
4095
4095
|
return {
|
|
4096
|
-
baseUri: '/services/data/
|
|
4096
|
+
baseUri: '/services/data/v66.0',
|
|
4097
4097
|
basePath: '/einstein/prompt-templates/data-provider/describe',
|
|
4098
4098
|
method: 'post',
|
|
4099
4099
|
body: config.body,
|
|
@@ -4104,21 +4104,21 @@ function createResourceRequest$6(config) {
|
|
|
4104
4104
|
};
|
|
4105
4105
|
}
|
|
4106
4106
|
|
|
4107
|
-
const adapterName$
|
|
4107
|
+
const adapterName$8 = 'getDataProviderInstanceConfig';
|
|
4108
4108
|
const getDataProviderInstanceConfig_ConfigPropertyMetadata = [
|
|
4109
4109
|
generateParamConfigMetadata('additionalParam', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4110
4110
|
generateParamConfigMetadata('definition', true, 2 /* Body */, 0 /* String */),
|
|
4111
4111
|
generateParamConfigMetadata('groupName', true, 2 /* Body */, 0 /* String */),
|
|
4112
4112
|
];
|
|
4113
|
-
const getDataProviderInstanceConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4114
|
-
const createResourceParams$
|
|
4115
|
-
function keyBuilder$
|
|
4116
|
-
const resourceParams = createResourceParams$
|
|
4117
|
-
return keyBuilder$
|
|
4113
|
+
const getDataProviderInstanceConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getDataProviderInstanceConfig_ConfigPropertyMetadata);
|
|
4114
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$f(getDataProviderInstanceConfig_ConfigPropertyMetadata);
|
|
4115
|
+
function keyBuilder$c(luvio, config) {
|
|
4116
|
+
const resourceParams = createResourceParams$8(config);
|
|
4117
|
+
return keyBuilder$d(luvio, resourceParams);
|
|
4118
4118
|
}
|
|
4119
|
-
function typeCheckConfig$
|
|
4119
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
4120
4120
|
const config = {};
|
|
4121
|
-
typeCheckConfig$
|
|
4121
|
+
typeCheckConfig$f(untrustedConfig, config, getDataProviderInstanceConfig_ConfigPropertyMetadata);
|
|
4122
4122
|
const untrustedConfig_additionalParam = untrustedConfig.additionalParam;
|
|
4123
4123
|
if (untrustedIsObject(untrustedConfig_additionalParam)) {
|
|
4124
4124
|
const untrustedConfig_additionalParam_object = {};
|
|
@@ -4136,75 +4136,328 @@ function typeCheckConfig$6(untrustedConfig) {
|
|
|
4136
4136
|
}
|
|
4137
4137
|
return config;
|
|
4138
4138
|
}
|
|
4139
|
-
function validateAdapterConfig$
|
|
4139
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
4140
4140
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4141
4141
|
return null;
|
|
4142
4142
|
}
|
|
4143
4143
|
if (process.env.NODE_ENV !== 'production') {
|
|
4144
4144
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4145
4145
|
}
|
|
4146
|
-
const config = typeCheckConfig$
|
|
4146
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
4147
4147
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4148
4148
|
return null;
|
|
4149
4149
|
}
|
|
4150
4150
|
return config;
|
|
4151
4151
|
}
|
|
4152
|
-
function adapterFragment$
|
|
4153
|
-
createResourceParams$
|
|
4154
|
-
return select$
|
|
4152
|
+
function adapterFragment$6(luvio, config) {
|
|
4153
|
+
createResourceParams$8(config);
|
|
4154
|
+
return select$f();
|
|
4155
4155
|
}
|
|
4156
|
-
function onFetchResponseSuccess$
|
|
4157
|
-
const snapshot = ingestSuccess$
|
|
4156
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
4157
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
4158
4158
|
config,
|
|
4159
|
-
resolve: () => buildNetworkSnapshot$
|
|
4159
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
4160
4160
|
});
|
|
4161
4161
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4162
4162
|
}
|
|
4163
|
-
function onFetchResponseError$
|
|
4164
|
-
const snapshot = ingestError$
|
|
4163
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
4164
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
4165
4165
|
config,
|
|
4166
|
-
resolve: () => buildNetworkSnapshot$
|
|
4166
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
4167
4167
|
});
|
|
4168
4168
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4169
4169
|
}
|
|
4170
|
-
function buildNetworkSnapshot$
|
|
4171
|
-
const resourceParams = createResourceParams$
|
|
4172
|
-
const request = createResourceRequest$
|
|
4170
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
4171
|
+
const resourceParams = createResourceParams$8(config);
|
|
4172
|
+
const request = createResourceRequest$8(resourceParams);
|
|
4173
4173
|
return luvio.dispatchResourceRequest(request, options)
|
|
4174
4174
|
.then((response) => {
|
|
4175
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4175
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
4176
4176
|
const cache = new StoreKeyMap();
|
|
4177
|
-
getResponseCacheKeys$
|
|
4177
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
4178
4178
|
return cache;
|
|
4179
4179
|
});
|
|
4180
4180
|
}, (response) => {
|
|
4181
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4181
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
4182
4182
|
});
|
|
4183
4183
|
}
|
|
4184
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4185
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4184
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
4185
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, 'get', false);
|
|
4186
4186
|
}
|
|
4187
|
-
function buildCachedSnapshotCachePolicy$
|
|
4187
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
4188
4188
|
const { luvio, config } = context;
|
|
4189
4189
|
const selector = {
|
|
4190
|
-
recordId: keyBuilder$
|
|
4191
|
-
node: adapterFragment$
|
|
4190
|
+
recordId: keyBuilder$c(luvio, config),
|
|
4191
|
+
node: adapterFragment$6(luvio, config),
|
|
4192
4192
|
variables: {},
|
|
4193
4193
|
};
|
|
4194
4194
|
const cacheSnapshot = storeLookup(selector, {
|
|
4195
4195
|
config,
|
|
4196
|
-
resolve: () => buildNetworkSnapshot$
|
|
4196
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
4197
4197
|
});
|
|
4198
4198
|
return cacheSnapshot;
|
|
4199
4199
|
}
|
|
4200
4200
|
const getDataProviderInstanceConfigAdapterFactory = (luvio) => function EinsteinLLM__getDataProviderInstanceConfig(untrustedConfig, requestContext) {
|
|
4201
|
-
const config = validateAdapterConfig$
|
|
4201
|
+
const config = validateAdapterConfig$8(untrustedConfig, getDataProviderInstanceConfig_ConfigPropertyNames);
|
|
4202
4202
|
// Invalid or incomplete config
|
|
4203
4203
|
if (config === null) {
|
|
4204
4204
|
return null;
|
|
4205
4205
|
}
|
|
4206
4206
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4207
|
-
buildCachedSnapshotCachePolicy$
|
|
4207
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
4208
|
+
};
|
|
4209
|
+
|
|
4210
|
+
function validate$8(obj, path = 'PromptTemplateDataProviderTypeConfigRepresentation') {
|
|
4211
|
+
const v_error = (() => {
|
|
4212
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4213
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4214
|
+
}
|
|
4215
|
+
if (obj.description !== undefined) {
|
|
4216
|
+
const obj_description = obj.description;
|
|
4217
|
+
const path_description = path + '.description';
|
|
4218
|
+
if (typeof obj_description !== 'string') {
|
|
4219
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
4220
|
+
}
|
|
4221
|
+
}
|
|
4222
|
+
const obj_groupName = obj.groupName;
|
|
4223
|
+
const path_groupName = path + '.groupName';
|
|
4224
|
+
if (typeof obj_groupName !== 'string') {
|
|
4225
|
+
return new TypeError('Expected "string" but received "' + typeof obj_groupName + '" (at "' + path_groupName + '")');
|
|
4226
|
+
}
|
|
4227
|
+
const obj_icon = obj.icon;
|
|
4228
|
+
const path_icon = path + '.icon';
|
|
4229
|
+
if (typeof obj_icon !== 'string') {
|
|
4230
|
+
return new TypeError('Expected "string" but received "' + typeof obj_icon + '" (at "' + path_icon + '")');
|
|
4231
|
+
}
|
|
4232
|
+
const obj_isTopLevel = obj.isTopLevel;
|
|
4233
|
+
const path_isTopLevel = path + '.isTopLevel';
|
|
4234
|
+
if (typeof obj_isTopLevel !== 'boolean') {
|
|
4235
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isTopLevel + '" (at "' + path_isTopLevel + '")');
|
|
4236
|
+
}
|
|
4237
|
+
const obj_label = obj.label;
|
|
4238
|
+
const path_label = path + '.label';
|
|
4239
|
+
if (typeof obj_label !== 'string') {
|
|
4240
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
4241
|
+
}
|
|
4242
|
+
if (obj.parentNode !== undefined) {
|
|
4243
|
+
const obj_parentNode = obj.parentNode;
|
|
4244
|
+
const path_parentNode = path + '.parentNode';
|
|
4245
|
+
if (typeof obj_parentNode !== 'string') {
|
|
4246
|
+
return new TypeError('Expected "string" but received "' + typeof obj_parentNode + '" (at "' + path_parentNode + '")');
|
|
4247
|
+
}
|
|
4248
|
+
}
|
|
4249
|
+
if (obj.scope !== undefined) {
|
|
4250
|
+
const obj_scope = obj.scope;
|
|
4251
|
+
const path_scope = path + '.scope';
|
|
4252
|
+
if (obj_scope === undefined) {
|
|
4253
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_scope + '" (at "' + path_scope + '")');
|
|
4254
|
+
}
|
|
4255
|
+
}
|
|
4256
|
+
})();
|
|
4257
|
+
return v_error === undefined ? null : v_error;
|
|
4258
|
+
}
|
|
4259
|
+
|
|
4260
|
+
const TTL$4 = 300;
|
|
4261
|
+
const VERSION$6 = "212332dac1decc071b476742df3440fb";
|
|
4262
|
+
function validate$7(obj, path = 'PromptTemplateDataProviderTypeConfigCollectionRepresentation') {
|
|
4263
|
+
const v_error = (() => {
|
|
4264
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4265
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4266
|
+
}
|
|
4267
|
+
const obj_dataProviderTypeConfigs = obj.dataProviderTypeConfigs;
|
|
4268
|
+
const path_dataProviderTypeConfigs = path + '.dataProviderTypeConfigs';
|
|
4269
|
+
if (!ArrayIsArray(obj_dataProviderTypeConfigs)) {
|
|
4270
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dataProviderTypeConfigs + '" (at "' + path_dataProviderTypeConfigs + '")');
|
|
4271
|
+
}
|
|
4272
|
+
for (let i = 0; i < obj_dataProviderTypeConfigs.length; i++) {
|
|
4273
|
+
const obj_dataProviderTypeConfigs_item = obj_dataProviderTypeConfigs[i];
|
|
4274
|
+
const path_dataProviderTypeConfigs_item = path_dataProviderTypeConfigs + '[' + i + ']';
|
|
4275
|
+
const referencepath_dataProviderTypeConfigs_itemValidationError = validate$8(obj_dataProviderTypeConfigs_item, path_dataProviderTypeConfigs_item);
|
|
4276
|
+
if (referencepath_dataProviderTypeConfigs_itemValidationError !== null) {
|
|
4277
|
+
let message = 'Object doesn\'t match PromptTemplateDataProviderTypeConfigRepresentation (at "' + path_dataProviderTypeConfigs_item + '")\n';
|
|
4278
|
+
message += referencepath_dataProviderTypeConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4279
|
+
return new TypeError(message);
|
|
4280
|
+
}
|
|
4281
|
+
}
|
|
4282
|
+
})();
|
|
4283
|
+
return v_error === undefined ? null : v_error;
|
|
4284
|
+
}
|
|
4285
|
+
const RepresentationType$4 = 'PromptTemplateDataProviderTypeConfigCollectionRepresentation';
|
|
4286
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
4287
|
+
return input;
|
|
4288
|
+
}
|
|
4289
|
+
const select$e = function PromptTemplateDataProviderTypeConfigCollectionRepresentationSelect() {
|
|
4290
|
+
return {
|
|
4291
|
+
kind: 'Fragment',
|
|
4292
|
+
version: VERSION$6,
|
|
4293
|
+
private: [],
|
|
4294
|
+
opaque: true
|
|
4295
|
+
};
|
|
4296
|
+
};
|
|
4297
|
+
function equals$6(existing, incoming) {
|
|
4298
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4299
|
+
return false;
|
|
4300
|
+
}
|
|
4301
|
+
return true;
|
|
4302
|
+
}
|
|
4303
|
+
const ingest$4 = function PromptTemplateDataProviderTypeConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4304
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4305
|
+
const validateError = validate$7(input);
|
|
4306
|
+
if (validateError !== null) {
|
|
4307
|
+
throw validateError;
|
|
4308
|
+
}
|
|
4309
|
+
}
|
|
4310
|
+
const key = path.fullPath;
|
|
4311
|
+
const ttlToUse = TTL$4;
|
|
4312
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$6, RepresentationType$4, equals$6);
|
|
4313
|
+
return createLink(key);
|
|
4314
|
+
};
|
|
4315
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
4316
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4317
|
+
const rootKey = fullPathFactory();
|
|
4318
|
+
rootKeySet.set(rootKey, {
|
|
4319
|
+
namespace: keyPrefix,
|
|
4320
|
+
representationName: RepresentationType$4,
|
|
4321
|
+
mergeable: false
|
|
4322
|
+
});
|
|
4323
|
+
}
|
|
4324
|
+
|
|
4325
|
+
function select$d(luvio, params) {
|
|
4326
|
+
return select$e();
|
|
4327
|
+
}
|
|
4328
|
+
function keyBuilder$b(luvio, params) {
|
|
4329
|
+
return keyPrefix + '::PromptTemplateDataProviderTypeConfigCollectionRepresentation:(' + 'templateType:' + params.urlParams.templateType + ')';
|
|
4330
|
+
}
|
|
4331
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
4332
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
4333
|
+
}
|
|
4334
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
4335
|
+
const { body } = response;
|
|
4336
|
+
const key = keyBuilder$b(luvio, resourceParams);
|
|
4337
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
4338
|
+
const snapshot = luvio.storeLookup({
|
|
4339
|
+
recordId: key,
|
|
4340
|
+
node: select$d(),
|
|
4341
|
+
variables: {},
|
|
4342
|
+
}, snapshotRefresh);
|
|
4343
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4344
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4345
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4346
|
+
}
|
|
4347
|
+
}
|
|
4348
|
+
deepFreeze(snapshot.data);
|
|
4349
|
+
return snapshot;
|
|
4350
|
+
}
|
|
4351
|
+
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
4352
|
+
const key = keyBuilder$b(luvio, params);
|
|
4353
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4354
|
+
const storeMetadataParams = {
|
|
4355
|
+
ttl: TTL$4,
|
|
4356
|
+
namespace: keyPrefix,
|
|
4357
|
+
version: VERSION$6,
|
|
4358
|
+
representationName: RepresentationType$4
|
|
4359
|
+
};
|
|
4360
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4361
|
+
return errorSnapshot;
|
|
4362
|
+
}
|
|
4363
|
+
function createResourceRequest$7(config) {
|
|
4364
|
+
const headers = {};
|
|
4365
|
+
return {
|
|
4366
|
+
baseUri: '/services/data/v66.0',
|
|
4367
|
+
basePath: '/einstein/prompt-templates/data-provider-types/' + config.urlParams.templateType + '',
|
|
4368
|
+
method: 'get',
|
|
4369
|
+
body: null,
|
|
4370
|
+
urlParams: config.urlParams,
|
|
4371
|
+
queryParams: {},
|
|
4372
|
+
headers,
|
|
4373
|
+
priority: 'normal',
|
|
4374
|
+
};
|
|
4375
|
+
}
|
|
4376
|
+
|
|
4377
|
+
const adapterName$7 = 'getDataProviderTypeConfigs';
|
|
4378
|
+
const getDataProviderTypeConfigs_ConfigPropertyMetadata = [
|
|
4379
|
+
generateParamConfigMetadata('templateType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4380
|
+
];
|
|
4381
|
+
const getDataProviderTypeConfigs_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getDataProviderTypeConfigs_ConfigPropertyMetadata);
|
|
4382
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$f(getDataProviderTypeConfigs_ConfigPropertyMetadata);
|
|
4383
|
+
function keyBuilder$a(luvio, config) {
|
|
4384
|
+
const resourceParams = createResourceParams$7(config);
|
|
4385
|
+
return keyBuilder$b(luvio, resourceParams);
|
|
4386
|
+
}
|
|
4387
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
4388
|
+
const config = {};
|
|
4389
|
+
typeCheckConfig$f(untrustedConfig, config, getDataProviderTypeConfigs_ConfigPropertyMetadata);
|
|
4390
|
+
return config;
|
|
4391
|
+
}
|
|
4392
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
4393
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4394
|
+
return null;
|
|
4395
|
+
}
|
|
4396
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4397
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4398
|
+
}
|
|
4399
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
4400
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4401
|
+
return null;
|
|
4402
|
+
}
|
|
4403
|
+
return config;
|
|
4404
|
+
}
|
|
4405
|
+
function adapterFragment$5(luvio, config) {
|
|
4406
|
+
createResourceParams$7(config);
|
|
4407
|
+
return select$d();
|
|
4408
|
+
}
|
|
4409
|
+
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
4410
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
4411
|
+
config,
|
|
4412
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
4413
|
+
});
|
|
4414
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4415
|
+
}
|
|
4416
|
+
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
4417
|
+
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
4418
|
+
config,
|
|
4419
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
4420
|
+
});
|
|
4421
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4422
|
+
}
|
|
4423
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
4424
|
+
const resourceParams = createResourceParams$7(config);
|
|
4425
|
+
const request = createResourceRequest$7(resourceParams);
|
|
4426
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4427
|
+
.then((response) => {
|
|
4428
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
4429
|
+
const cache = new StoreKeyMap();
|
|
4430
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
4431
|
+
return cache;
|
|
4432
|
+
});
|
|
4433
|
+
}, (response) => {
|
|
4434
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
|
|
4435
|
+
});
|
|
4436
|
+
}
|
|
4437
|
+
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
4438
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
4439
|
+
}
|
|
4440
|
+
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
4441
|
+
const { luvio, config } = context;
|
|
4442
|
+
const selector = {
|
|
4443
|
+
recordId: keyBuilder$a(luvio, config),
|
|
4444
|
+
node: adapterFragment$5(luvio, config),
|
|
4445
|
+
variables: {},
|
|
4446
|
+
};
|
|
4447
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4448
|
+
config,
|
|
4449
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
4450
|
+
});
|
|
4451
|
+
return cacheSnapshot;
|
|
4452
|
+
}
|
|
4453
|
+
const getDataProviderTypeConfigsAdapterFactory = (luvio) => function EinsteinLLM__getDataProviderTypeConfigs(untrustedConfig, requestContext) {
|
|
4454
|
+
const config = validateAdapterConfig$7(untrustedConfig, getDataProviderTypeConfigs_ConfigPropertyNames);
|
|
4455
|
+
// Invalid or incomplete config
|
|
4456
|
+
if (config === null) {
|
|
4457
|
+
return null;
|
|
4458
|
+
}
|
|
4459
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4460
|
+
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
4208
4461
|
};
|
|
4209
4462
|
|
|
4210
4463
|
const TTL$3 = 300;
|
|
@@ -4222,7 +4475,7 @@ function validate$6(obj, path = 'PromptTemplateDataProviderInstanceConfigCollect
|
|
|
4222
4475
|
for (let i = 0; i < obj_dataProviderInstanceConfigs.length; i++) {
|
|
4223
4476
|
const obj_dataProviderInstanceConfigs_item = obj_dataProviderInstanceConfigs[i];
|
|
4224
4477
|
const path_dataProviderInstanceConfigs_item = path_dataProviderInstanceConfigs + '[' + i + ']';
|
|
4225
|
-
const referencepath_dataProviderInstanceConfigs_itemValidationError = validate$
|
|
4478
|
+
const referencepath_dataProviderInstanceConfigs_itemValidationError = validate$9(obj_dataProviderInstanceConfigs_item, path_dataProviderInstanceConfigs_item);
|
|
4226
4479
|
if (referencepath_dataProviderInstanceConfigs_itemValidationError !== null) {
|
|
4227
4480
|
let message = 'Object doesn\'t match PromptTemplateDataProviderInstanceConfigRepresentation (at "' + path_dataProviderInstanceConfigs_item + '")\n';
|
|
4228
4481
|
message += referencepath_dataProviderInstanceConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4236,7 +4489,7 @@ const RepresentationType$3 = 'PromptTemplateDataProviderInstanceConfigCollection
|
|
|
4236
4489
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
4237
4490
|
return input;
|
|
4238
4491
|
}
|
|
4239
|
-
const select$
|
|
4492
|
+
const select$c = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationSelect() {
|
|
4240
4493
|
return {
|
|
4241
4494
|
kind: 'Fragment',
|
|
4242
4495
|
version: VERSION$5,
|
|
@@ -4272,9 +4525,149 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4272
4525
|
});
|
|
4273
4526
|
}
|
|
4274
4527
|
|
|
4275
|
-
function select$
|
|
4528
|
+
function select$b(luvio, params) {
|
|
4529
|
+
return select$c();
|
|
4530
|
+
}
|
|
4531
|
+
function keyBuilder$9(luvio, params) {
|
|
4532
|
+
return keyPrefix + '::PromptTemplateDataProviderInstanceConfigCollectionRepresentation:(' + 'groupNames:' + params.queryParams.groupNames + ',' + 'targets:' + params.queryParams.targets + ',' + 'templateType:' + params.urlParams.templateType + ')';
|
|
4533
|
+
}
|
|
4534
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
4535
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
4536
|
+
}
|
|
4537
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
4538
|
+
const { body } = response;
|
|
4539
|
+
const key = keyBuilder$9(luvio, resourceParams);
|
|
4540
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
4541
|
+
const snapshot = luvio.storeLookup({
|
|
4542
|
+
recordId: key,
|
|
4543
|
+
node: select$b(),
|
|
4544
|
+
variables: {},
|
|
4545
|
+
}, snapshotRefresh);
|
|
4546
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4547
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4548
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4549
|
+
}
|
|
4550
|
+
}
|
|
4551
|
+
deepFreeze(snapshot.data);
|
|
4552
|
+
return snapshot;
|
|
4553
|
+
}
|
|
4554
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
4555
|
+
const key = keyBuilder$9(luvio, params);
|
|
4556
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4557
|
+
const storeMetadataParams = {
|
|
4558
|
+
ttl: TTL$3,
|
|
4559
|
+
namespace: keyPrefix,
|
|
4560
|
+
version: VERSION$5,
|
|
4561
|
+
representationName: RepresentationType$3
|
|
4562
|
+
};
|
|
4563
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4564
|
+
return errorSnapshot;
|
|
4565
|
+
}
|
|
4566
|
+
function createResourceRequest$6(config) {
|
|
4567
|
+
const headers = {};
|
|
4568
|
+
return {
|
|
4569
|
+
baseUri: '/services/data/v66.0',
|
|
4570
|
+
basePath: '/einstein/prompt-templates/data-providers/' + config.urlParams.templateType + '',
|
|
4571
|
+
method: 'get',
|
|
4572
|
+
body: null,
|
|
4573
|
+
urlParams: config.urlParams,
|
|
4574
|
+
queryParams: config.queryParams,
|
|
4575
|
+
headers,
|
|
4576
|
+
priority: 'normal',
|
|
4577
|
+
};
|
|
4578
|
+
}
|
|
4579
|
+
|
|
4580
|
+
const adapterName$6 = 'getDataProviders';
|
|
4581
|
+
const getDataProviders_ConfigPropertyMetadata = [
|
|
4582
|
+
generateParamConfigMetadata('templateType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4583
|
+
generateParamConfigMetadata('groupNames', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
4584
|
+
generateParamConfigMetadata('targets', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
4585
|
+
];
|
|
4586
|
+
const getDataProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getDataProviders_ConfigPropertyMetadata);
|
|
4587
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$f(getDataProviders_ConfigPropertyMetadata);
|
|
4588
|
+
function keyBuilder$8(luvio, config) {
|
|
4589
|
+
const resourceParams = createResourceParams$6(config);
|
|
4590
|
+
return keyBuilder$9(luvio, resourceParams);
|
|
4591
|
+
}
|
|
4592
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
4593
|
+
const config = {};
|
|
4594
|
+
typeCheckConfig$f(untrustedConfig, config, getDataProviders_ConfigPropertyMetadata);
|
|
4595
|
+
return config;
|
|
4596
|
+
}
|
|
4597
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
4598
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4599
|
+
return null;
|
|
4600
|
+
}
|
|
4601
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4602
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4603
|
+
}
|
|
4604
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
4605
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4606
|
+
return null;
|
|
4607
|
+
}
|
|
4608
|
+
return config;
|
|
4609
|
+
}
|
|
4610
|
+
function adapterFragment$4(luvio, config) {
|
|
4611
|
+
createResourceParams$6(config);
|
|
4276
4612
|
return select$b();
|
|
4277
4613
|
}
|
|
4614
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
4615
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
4616
|
+
config,
|
|
4617
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
4618
|
+
});
|
|
4619
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4620
|
+
}
|
|
4621
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
4622
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
4623
|
+
config,
|
|
4624
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
4625
|
+
});
|
|
4626
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4627
|
+
}
|
|
4628
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
4629
|
+
const resourceParams = createResourceParams$6(config);
|
|
4630
|
+
const request = createResourceRequest$6(resourceParams);
|
|
4631
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4632
|
+
.then((response) => {
|
|
4633
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
4634
|
+
const cache = new StoreKeyMap();
|
|
4635
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
4636
|
+
return cache;
|
|
4637
|
+
});
|
|
4638
|
+
}, (response) => {
|
|
4639
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
4640
|
+
});
|
|
4641
|
+
}
|
|
4642
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
4643
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
4644
|
+
}
|
|
4645
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
4646
|
+
const { luvio, config } = context;
|
|
4647
|
+
const selector = {
|
|
4648
|
+
recordId: keyBuilder$8(luvio, config),
|
|
4649
|
+
node: adapterFragment$4(luvio, config),
|
|
4650
|
+
variables: {},
|
|
4651
|
+
};
|
|
4652
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4653
|
+
config,
|
|
4654
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
4655
|
+
});
|
|
4656
|
+
return cacheSnapshot;
|
|
4657
|
+
}
|
|
4658
|
+
const getDataProvidersAdapterFactory = (luvio) => function EinsteinLLM__getDataProviders(untrustedConfig, requestContext) {
|
|
4659
|
+
const config = validateAdapterConfig$6(untrustedConfig, getDataProviders_ConfigPropertyNames);
|
|
4660
|
+
// Invalid or incomplete config
|
|
4661
|
+
if (config === null) {
|
|
4662
|
+
return null;
|
|
4663
|
+
}
|
|
4664
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4665
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
4666
|
+
};
|
|
4667
|
+
|
|
4668
|
+
function select$a(luvio, params) {
|
|
4669
|
+
return select$c();
|
|
4670
|
+
}
|
|
4278
4671
|
function keyBuilder$7(luvio, params) {
|
|
4279
4672
|
return keyPrefix + '::PromptTemplateDataProviderInstanceConfigCollectionRepresentation:(' + (params.body.groupName === undefined ? 'groupName' : 'groupName:' + params.body.groupName) + '::' + (params.body.target === undefined ? 'target' : 'target:' + params.body.target) + '::' + 'templateInputs:' + params.body.templateInputs + '::' + 'templateTypeName:' + params.body.templateTypeName + ')';
|
|
4280
4673
|
}
|
|
@@ -4313,7 +4706,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
4313
4706
|
function createResourceRequest$5(config) {
|
|
4314
4707
|
const headers = {};
|
|
4315
4708
|
return {
|
|
4316
|
-
baseUri: '/services/data/
|
|
4709
|
+
baseUri: '/services/data/v66.0',
|
|
4317
4710
|
basePath: '/einstein/prompt-templates/data-providers/mapped',
|
|
4318
4711
|
method: 'post',
|
|
4319
4712
|
body: config.body,
|
|
@@ -4332,14 +4725,14 @@ const getInputMappedDataProviders_ConfigPropertyMetadata = [
|
|
|
4332
4725
|
generateParamConfigMetadata('templateTypeName', true, 2 /* Body */, 0 /* String */),
|
|
4333
4726
|
];
|
|
4334
4727
|
const getInputMappedDataProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getInputMappedDataProviders_ConfigPropertyMetadata);
|
|
4335
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
4728
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$f(getInputMappedDataProviders_ConfigPropertyMetadata);
|
|
4336
4729
|
function keyBuilder$6(luvio, config) {
|
|
4337
4730
|
const resourceParams = createResourceParams$5(config);
|
|
4338
4731
|
return keyBuilder$7(luvio, resourceParams);
|
|
4339
4732
|
}
|
|
4340
4733
|
function typeCheckConfig$5(untrustedConfig) {
|
|
4341
4734
|
const config = {};
|
|
4342
|
-
typeCheckConfig$
|
|
4735
|
+
typeCheckConfig$f(untrustedConfig, config, getInputMappedDataProviders_ConfigPropertyMetadata);
|
|
4343
4736
|
const untrustedConfig_templateInputs = untrustedConfig.templateInputs;
|
|
4344
4737
|
if (ArrayIsArray$1(untrustedConfig_templateInputs)) {
|
|
4345
4738
|
const untrustedConfig_templateInputs_array = [];
|
|
@@ -4397,7 +4790,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
4397
4790
|
});
|
|
4398
4791
|
}
|
|
4399
4792
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
4400
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4793
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, 'get', false);
|
|
4401
4794
|
}
|
|
4402
4795
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
4403
4796
|
const { luvio, config } = context;
|
|
@@ -4717,7 +5110,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
4717
5110
|
function createResourceRequest$4(config) {
|
|
4718
5111
|
const headers = {};
|
|
4719
5112
|
return {
|
|
4720
|
-
baseUri: '/services/data/
|
|
5113
|
+
baseUri: '/services/data/v66.0',
|
|
4721
5114
|
basePath: '/einstein/prompt-template/' + config.urlParams.promptTemplateDevName + '/output-languages',
|
|
4722
5115
|
method: 'get',
|
|
4723
5116
|
body: null,
|
|
@@ -4735,14 +5128,14 @@ const getOutputLanguages_ConfigPropertyMetadata = [
|
|
|
4735
5128
|
generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4736
5129
|
];
|
|
4737
5130
|
const getOutputLanguages_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getOutputLanguages_ConfigPropertyMetadata);
|
|
4738
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
5131
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$f(getOutputLanguages_ConfigPropertyMetadata);
|
|
4739
5132
|
function keyBuilder$4(luvio, config) {
|
|
4740
5133
|
const resourceParams = createResourceParams$4(config);
|
|
4741
5134
|
return keyBuilder$5(luvio, resourceParams);
|
|
4742
5135
|
}
|
|
4743
5136
|
function typeCheckConfig$4(untrustedConfig) {
|
|
4744
5137
|
const config = {};
|
|
4745
|
-
typeCheckConfig$
|
|
5138
|
+
typeCheckConfig$f(untrustedConfig, config, getOutputLanguages_ConfigPropertyMetadata);
|
|
4746
5139
|
return config;
|
|
4747
5140
|
}
|
|
4748
5141
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -4791,7 +5184,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
4791
5184
|
});
|
|
4792
5185
|
}
|
|
4793
5186
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
4794
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5187
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
4795
5188
|
}
|
|
4796
5189
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
4797
5190
|
const { luvio, config } = context;
|
|
@@ -5026,7 +5419,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
5026
5419
|
function createResourceRequest$3(config) {
|
|
5027
5420
|
const headers = {};
|
|
5028
5421
|
return {
|
|
5029
|
-
baseUri: '/services/data/
|
|
5422
|
+
baseUri: '/services/data/v66.0',
|
|
5030
5423
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '',
|
|
5031
5424
|
method: 'get',
|
|
5032
5425
|
body: null,
|
|
@@ -5043,14 +5436,14 @@ const getPromptTemplate_ConfigPropertyMetadata = [
|
|
|
5043
5436
|
generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5044
5437
|
];
|
|
5045
5438
|
const getPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getPromptTemplate_ConfigPropertyMetadata);
|
|
5046
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
5439
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$f(getPromptTemplate_ConfigPropertyMetadata);
|
|
5047
5440
|
function keyBuilder$2(luvio, config) {
|
|
5048
5441
|
const resourceParams = createResourceParams$3(config);
|
|
5049
5442
|
return keyBuilder$3(luvio, resourceParams);
|
|
5050
5443
|
}
|
|
5051
5444
|
function typeCheckConfig$3(untrustedConfig) {
|
|
5052
5445
|
const config = {};
|
|
5053
|
-
typeCheckConfig$
|
|
5446
|
+
typeCheckConfig$f(untrustedConfig, config, getPromptTemplate_ConfigPropertyMetadata);
|
|
5054
5447
|
return config;
|
|
5055
5448
|
}
|
|
5056
5449
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -5099,7 +5492,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
5099
5492
|
});
|
|
5100
5493
|
}
|
|
5101
5494
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
5102
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5495
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
5103
5496
|
}
|
|
5104
5497
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
5105
5498
|
const { luvio, config } = context;
|
|
@@ -5242,7 +5635,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
5242
5635
|
function createResourceRequest$2(config) {
|
|
5243
5636
|
const headers = {};
|
|
5244
5637
|
return {
|
|
5245
|
-
baseUri: '/services/data/
|
|
5638
|
+
baseUri: '/services/data/v66.0',
|
|
5246
5639
|
basePath: '/einstein/prompt-templates',
|
|
5247
5640
|
method: 'get',
|
|
5248
5641
|
body: null,
|
|
@@ -5265,14 +5658,14 @@ const getPromptTemplates_ConfigPropertyMetadata = [
|
|
|
5265
5658
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5266
5659
|
];
|
|
5267
5660
|
const getPromptTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getPromptTemplates_ConfigPropertyMetadata);
|
|
5268
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
5661
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$f(getPromptTemplates_ConfigPropertyMetadata);
|
|
5269
5662
|
function keyBuilder(luvio, config) {
|
|
5270
5663
|
const resourceParams = createResourceParams$2(config);
|
|
5271
5664
|
return keyBuilder$1(luvio, resourceParams);
|
|
5272
5665
|
}
|
|
5273
5666
|
function typeCheckConfig$2(untrustedConfig) {
|
|
5274
5667
|
const config = {};
|
|
5275
|
-
typeCheckConfig$
|
|
5668
|
+
typeCheckConfig$f(untrustedConfig, config, getPromptTemplates_ConfigPropertyMetadata);
|
|
5276
5669
|
return config;
|
|
5277
5670
|
}
|
|
5278
5671
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -5321,7 +5714,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
5321
5714
|
});
|
|
5322
5715
|
}
|
|
5323
5716
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
5324
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5717
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
5325
5718
|
}
|
|
5326
5719
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
5327
5720
|
const { luvio, config } = context;
|
|
@@ -5347,15 +5740,15 @@ const getPromptTemplatesAdapterFactory = (luvio) => function EinsteinLLM__getPro
|
|
|
5347
5740
|
};
|
|
5348
5741
|
|
|
5349
5742
|
function select$1(luvio, params) {
|
|
5350
|
-
return select$
|
|
5743
|
+
return select$j();
|
|
5351
5744
|
}
|
|
5352
5745
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
5353
|
-
getTypeCacheKeys$
|
|
5746
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
5354
5747
|
}
|
|
5355
5748
|
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
5356
5749
|
const { body } = response;
|
|
5357
5750
|
const key = keyBuilderFromType(luvio, body);
|
|
5358
|
-
luvio.storeIngest(key, ingest$
|
|
5751
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
5359
5752
|
const snapshot = luvio.storeLookup({
|
|
5360
5753
|
recordId: key,
|
|
5361
5754
|
node: select$1(),
|
|
@@ -5372,7 +5765,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
|
|
|
5372
5765
|
function createResourceRequest$1(config) {
|
|
5373
5766
|
const headers = {};
|
|
5374
5767
|
return {
|
|
5375
|
-
baseUri: '/services/data/
|
|
5768
|
+
baseUri: '/services/data/v66.0',
|
|
5376
5769
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions/' + config.urlParams.versionId + '/status',
|
|
5377
5770
|
method: 'put',
|
|
5378
5771
|
body: null,
|
|
@@ -5391,10 +5784,10 @@ const putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata = [
|
|
|
5391
5784
|
generateParamConfigMetadata('ignoreWarnings', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
5392
5785
|
];
|
|
5393
5786
|
const putEinsteinPromptTemplateVersionStatus_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
|
|
5394
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
5787
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$f(putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
|
|
5395
5788
|
function typeCheckConfig$1(untrustedConfig) {
|
|
5396
5789
|
const config = {};
|
|
5397
|
-
typeCheckConfig$
|
|
5790
|
+
typeCheckConfig$f(untrustedConfig, config, putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
|
|
5398
5791
|
return config;
|
|
5399
5792
|
}
|
|
5400
5793
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -5440,15 +5833,15 @@ const putEinsteinPromptTemplateVersionStatusAdapterFactory = (luvio) => {
|
|
|
5440
5833
|
};
|
|
5441
5834
|
|
|
5442
5835
|
function select(luvio, params) {
|
|
5443
|
-
return select$
|
|
5836
|
+
return select$j();
|
|
5444
5837
|
}
|
|
5445
5838
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
5446
|
-
getTypeCacheKeys$
|
|
5839
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
5447
5840
|
}
|
|
5448
5841
|
function ingestSuccess(luvio, resourceParams, response) {
|
|
5449
5842
|
const { body } = response;
|
|
5450
5843
|
const key = keyBuilderFromType(luvio, body);
|
|
5451
|
-
luvio.storeIngest(key, ingest$
|
|
5844
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
5452
5845
|
const snapshot = luvio.storeLookup({
|
|
5453
5846
|
recordId: key,
|
|
5454
5847
|
node: select(),
|
|
@@ -5465,7 +5858,7 @@ function ingestSuccess(luvio, resourceParams, response) {
|
|
|
5465
5858
|
function createResourceRequest(config) {
|
|
5466
5859
|
const headers = {};
|
|
5467
5860
|
return {
|
|
5468
|
-
baseUri: '/services/data/
|
|
5861
|
+
baseUri: '/services/data/v66.0',
|
|
5469
5862
|
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/versions/' + config.urlParams.versionId + '',
|
|
5470
5863
|
method: 'put',
|
|
5471
5864
|
body: config.body,
|
|
@@ -5487,10 +5880,10 @@ const updatePromptTemplateVersion_ConfigPropertyMetadata = [
|
|
|
5487
5880
|
generateParamConfigMetadata('isStandard', true, 2 /* Body */, 1 /* Boolean */),
|
|
5488
5881
|
];
|
|
5489
5882
|
const updatePromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updatePromptTemplateVersion_ConfigPropertyMetadata);
|
|
5490
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
5883
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$f(updatePromptTemplateVersion_ConfigPropertyMetadata);
|
|
5491
5884
|
function typeCheckConfig(untrustedConfig) {
|
|
5492
5885
|
const config = {};
|
|
5493
|
-
typeCheckConfig$
|
|
5886
|
+
typeCheckConfig$f(untrustedConfig, config, updatePromptTemplateVersion_ConfigPropertyMetadata);
|
|
5494
5887
|
const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
|
|
5495
5888
|
if (untrustedIsObject(untrustedConfig_childRelationships)) {
|
|
5496
5889
|
const untrustedConfig_childRelationships_object = {};
|
|
@@ -5579,6 +5972,8 @@ let createGenerationsForPromptTemplate;
|
|
|
5579
5972
|
let createPromptTemplate;
|
|
5580
5973
|
let createPromptTemplateVersion;
|
|
5581
5974
|
let getDataProviderInstanceConfig;
|
|
5975
|
+
let getDataProviderTypeConfigs;
|
|
5976
|
+
let getDataProviders;
|
|
5582
5977
|
let getInputMappedDataProviders;
|
|
5583
5978
|
let getOutputLanguages;
|
|
5584
5979
|
let getPromptTemplate;
|
|
@@ -5588,6 +5983,8 @@ let updatePromptTemplateVersion;
|
|
|
5588
5983
|
// Imperative GET Adapters
|
|
5589
5984
|
let createEmbeddings_imperative;
|
|
5590
5985
|
let getDataProviderInstanceConfig_imperative;
|
|
5986
|
+
let getDataProviderTypeConfigs_imperative;
|
|
5987
|
+
let getDataProviders_imperative;
|
|
5591
5988
|
let getInputMappedDataProviders_imperative;
|
|
5592
5989
|
let getOutputLanguages_imperative;
|
|
5593
5990
|
let getPromptTemplate_imperative;
|
|
@@ -5599,6 +5996,12 @@ const getDataProviderInstanceConfigMetadata = {
|
|
|
5599
5996
|
name: 'getDataProviderInstanceConfig',
|
|
5600
5997
|
ttl: 300,
|
|
5601
5998
|
};
|
|
5999
|
+
const getDataProviderTypeConfigsMetadata = {
|
|
6000
|
+
apiFamily: 'EinsteinLLM',
|
|
6001
|
+
name: 'getDataProviderTypeConfigs',
|
|
6002
|
+
ttl: 300,
|
|
6003
|
+
};
|
|
6004
|
+
const getDataProvidersMetadata = { apiFamily: 'EinsteinLLM', name: 'getDataProviders', ttl: 300 };
|
|
5602
6005
|
const getInputMappedDataProvidersMetadata = {
|
|
5603
6006
|
apiFamily: 'EinsteinLLM',
|
|
5604
6007
|
name: 'getInputMappedDataProviders',
|
|
@@ -5620,6 +6023,8 @@ function bindExportsTo(luvio) {
|
|
|
5620
6023
|
// LDS Adapters
|
|
5621
6024
|
const createEmbeddings_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'createEmbeddings', createEmbeddingsAdapterFactory), createEmbeddingsMetadata);
|
|
5622
6025
|
const getDataProviderInstanceConfig_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDataProviderInstanceConfig', getDataProviderInstanceConfigAdapterFactory), getDataProviderInstanceConfigMetadata);
|
|
6026
|
+
const getDataProviderTypeConfigs_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDataProviderTypeConfigs', getDataProviderTypeConfigsAdapterFactory), getDataProviderTypeConfigsMetadata);
|
|
6027
|
+
const getDataProviders_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDataProviders', getDataProvidersAdapterFactory), getDataProvidersMetadata);
|
|
5623
6028
|
const getInputMappedDataProviders_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getInputMappedDataProviders', getInputMappedDataProvidersAdapterFactory), getInputMappedDataProvidersMetadata);
|
|
5624
6029
|
const getOutputLanguages_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getOutputLanguages', getOutputLanguagesAdapterFactory), getOutputLanguagesMetadata);
|
|
5625
6030
|
const getPromptTemplate_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getPromptTemplate', getPromptTemplateAdapterFactory), getPromptTemplateMetadata);
|
|
@@ -5636,6 +6041,8 @@ function bindExportsTo(luvio) {
|
|
|
5636
6041
|
createPromptTemplate: unwrapSnapshotData(createPromptTemplateAdapterFactory),
|
|
5637
6042
|
createPromptTemplateVersion: unwrapSnapshotData(createPromptTemplateVersionAdapterFactory),
|
|
5638
6043
|
getDataProviderInstanceConfig: createWireAdapterConstructor(luvio, getDataProviderInstanceConfig_ldsAdapter, getDataProviderInstanceConfigMetadata),
|
|
6044
|
+
getDataProviderTypeConfigs: createWireAdapterConstructor(luvio, getDataProviderTypeConfigs_ldsAdapter, getDataProviderTypeConfigsMetadata),
|
|
6045
|
+
getDataProviders: createWireAdapterConstructor(luvio, getDataProviders_ldsAdapter, getDataProvidersMetadata),
|
|
5639
6046
|
getInputMappedDataProviders: createWireAdapterConstructor(luvio, getInputMappedDataProviders_ldsAdapter, getInputMappedDataProvidersMetadata),
|
|
5640
6047
|
getOutputLanguages: createWireAdapterConstructor(luvio, getOutputLanguages_ldsAdapter, getOutputLanguagesMetadata),
|
|
5641
6048
|
getPromptTemplate: createWireAdapterConstructor(luvio, getPromptTemplate_ldsAdapter, getPromptTemplateMetadata),
|
|
@@ -5645,6 +6052,8 @@ function bindExportsTo(luvio) {
|
|
|
5645
6052
|
// Imperative GET Adapters
|
|
5646
6053
|
createEmbeddings_imperative: createImperativeAdapter(luvio, createEmbeddings_ldsAdapter, createEmbeddingsMetadata),
|
|
5647
6054
|
getDataProviderInstanceConfig_imperative: createImperativeAdapter(luvio, getDataProviderInstanceConfig_ldsAdapter, getDataProviderInstanceConfigMetadata),
|
|
6055
|
+
getDataProviderTypeConfigs_imperative: createImperativeAdapter(luvio, getDataProviderTypeConfigs_ldsAdapter, getDataProviderTypeConfigsMetadata),
|
|
6056
|
+
getDataProviders_imperative: createImperativeAdapter(luvio, getDataProviders_ldsAdapter, getDataProvidersMetadata),
|
|
5648
6057
|
getInputMappedDataProviders_imperative: createImperativeAdapter(luvio, getInputMappedDataProviders_ldsAdapter, getInputMappedDataProvidersMetadata),
|
|
5649
6058
|
getOutputLanguages_imperative: createImperativeAdapter(luvio, getOutputLanguages_ldsAdapter, getOutputLanguagesMetadata),
|
|
5650
6059
|
getPromptTemplate_imperative: createImperativeAdapter(luvio, getPromptTemplate_ldsAdapter, getPromptTemplateMetadata),
|
|
@@ -5661,6 +6070,8 @@ withDefaultLuvio((luvio) => {
|
|
|
5661
6070
|
createPromptTemplate,
|
|
5662
6071
|
createPromptTemplateVersion,
|
|
5663
6072
|
getDataProviderInstanceConfig,
|
|
6073
|
+
getDataProviderTypeConfigs,
|
|
6074
|
+
getDataProviders,
|
|
5664
6075
|
getInputMappedDataProviders,
|
|
5665
6076
|
getOutputLanguages,
|
|
5666
6077
|
getPromptTemplate,
|
|
@@ -5669,6 +6080,8 @@ withDefaultLuvio((luvio) => {
|
|
|
5669
6080
|
updatePromptTemplateVersion,
|
|
5670
6081
|
createEmbeddings_imperative,
|
|
5671
6082
|
getDataProviderInstanceConfig_imperative,
|
|
6083
|
+
getDataProviderTypeConfigs_imperative,
|
|
6084
|
+
getDataProviders_imperative,
|
|
5672
6085
|
getInputMappedDataProviders_imperative,
|
|
5673
6086
|
getOutputLanguages_imperative,
|
|
5674
6087
|
getPromptTemplate_imperative,
|
|
@@ -5676,5 +6089,5 @@ withDefaultLuvio((luvio) => {
|
|
|
5676
6089
|
} = bindExportsTo(luvio));
|
|
5677
6090
|
});
|
|
5678
6091
|
|
|
5679
|
-
export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, createPromptTemplate, createPromptTemplateVersion, getDataProviderInstanceConfig, getDataProviderInstanceConfig_imperative, getInputMappedDataProviders, getInputMappedDataProviders_imperative, getOutputLanguages, getOutputLanguages_imperative, getPromptTemplate, getPromptTemplate_imperative, getPromptTemplates, getPromptTemplates_imperative, putEinsteinPromptTemplateVersionStatus, updatePromptTemplateVersion };
|
|
5680
|
-
// version: 1.
|
|
6092
|
+
export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, createPromptTemplate, createPromptTemplateVersion, getDataProviderInstanceConfig, getDataProviderInstanceConfig_imperative, getDataProviderTypeConfigs, getDataProviderTypeConfigs_imperative, getDataProviders, getDataProviders_imperative, getInputMappedDataProviders, getInputMappedDataProviders_imperative, getOutputLanguages, getOutputLanguages_imperative, getPromptTemplate, getPromptTemplate_imperative, getPromptTemplates, getPromptTemplates_imperative, putEinsteinPromptTemplateVersionStatus, updatePromptTemplateVersion };
|
|
6093
|
+
// version: 1.386.0-521094e838
|