@salesforce/lds-adapters-service-einsteinllm 1.415.0 → 1.416.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/service-einsteinllm.js +944 -693
- package/dist/es/es2018/types/src/generated/adapters/getEinsteinPromptTemplateReferences.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplatesReferencesByPromptTemplateDevName.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateReferencesRepresentation.d.ts +50 -0
- package/package.json +4 -4
- package/sfdc/index.js +875 -612
- package/src/raml/api.raml +48 -0
- package/src/raml/luvio.raml +8 -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$c, StoreKeyMap, createResourceParams as createResourceParams$k, typeCheckConfig as typeCheckConfig$k } 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$O(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$N(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepre
|
|
|
222
222
|
return v_error === undefined ? null : v_error;
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
function validate$
|
|
225
|
+
function validate$N(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$M(obj, path = 'WrappedListString') {
|
|
|
243
243
|
return v_error === undefined ? null : v_error;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
function validate$
|
|
246
|
+
function validate$M(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$O(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$L(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$N(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$L(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$C = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
|
|
279
|
+
function validate$L(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$K(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
|
|
|
297
297
|
})();
|
|
298
298
|
return v_error === undefined ? null : v_error;
|
|
299
299
|
}
|
|
300
|
-
const select$
|
|
300
|
+
const select$W = function EinsteinLlmEmbeddingItemRepresentationSelect() {
|
|
301
301
|
return {
|
|
302
302
|
kind: 'Fragment',
|
|
303
|
-
version: VERSION$
|
|
303
|
+
version: VERSION$C,
|
|
304
304
|
private: [],
|
|
305
305
|
selections: [
|
|
306
306
|
{
|
|
@@ -315,7 +315,7 @@ const select$U = function EinsteinLlmEmbeddingItemRepresentationSelect() {
|
|
|
315
315
|
]
|
|
316
316
|
};
|
|
317
317
|
};
|
|
318
|
-
function equals$
|
|
318
|
+
function equals$C(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$B(existing, incoming) {
|
|
|
334
334
|
return true;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
-
const TTL$
|
|
338
|
-
const VERSION$
|
|
339
|
-
function validate$
|
|
337
|
+
const TTL$d = 100;
|
|
338
|
+
const VERSION$B = "d9873651f09d29764ef4d4231eb653d7";
|
|
339
|
+
function validate$K(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$J(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$L(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$J(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$d = 'EinsteinLlmEmbeddingsRepresentation';
|
|
377
|
+
function normalize$d(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$V = function EinsteinLlmEmbeddingsRepresentationSelect() {
|
|
381
|
+
const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$W();
|
|
382
382
|
return {
|
|
383
383
|
kind: 'Fragment',
|
|
384
|
-
version: VERSION$
|
|
384
|
+
version: VERSION$B,
|
|
385
385
|
private: [],
|
|
386
386
|
selections: [
|
|
387
387
|
{
|
|
@@ -398,11 +398,11 @@ const select$T = function EinsteinLlmEmbeddingsRepresentationSelect() {
|
|
|
398
398
|
]
|
|
399
399
|
};
|
|
400
400
|
};
|
|
401
|
-
function equals$
|
|
401
|
+
function equals$B(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$C(existing_embeddings_item, incoming_embeddings_item))) {
|
|
406
406
|
return false;
|
|
407
407
|
}
|
|
408
408
|
});
|
|
@@ -421,44 +421,44 @@ function equals$A(existing, incoming) {
|
|
|
421
421
|
}
|
|
422
422
|
return true;
|
|
423
423
|
}
|
|
424
|
-
const ingest$
|
|
424
|
+
const ingest$d = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
425
425
|
if (process.env.NODE_ENV !== 'production') {
|
|
426
|
-
const validateError = validate$
|
|
426
|
+
const validateError = validate$K(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$d;
|
|
433
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "EinsteinLLM", VERSION$B, RepresentationType$d, equals$B);
|
|
434
434
|
return createLink(key);
|
|
435
435
|
};
|
|
436
|
-
function getTypeCacheKeys$
|
|
436
|
+
function getTypeCacheKeys$d(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$d,
|
|
442
442
|
mergeable: false
|
|
443
443
|
});
|
|
444
444
|
}
|
|
445
445
|
|
|
446
|
-
function select$
|
|
447
|
-
return select$
|
|
446
|
+
function select$U(luvio, params) {
|
|
447
|
+
return select$V();
|
|
448
448
|
}
|
|
449
|
-
function keyBuilder$
|
|
449
|
+
function keyBuilder$s(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$j(storeKeyMap, luvio, resourceParams, response) {
|
|
453
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response, () => keyBuilder$s(luvio, resourceParams));
|
|
454
454
|
}
|
|
455
|
-
function ingestSuccess$
|
|
455
|
+
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
456
456
|
const { body } = response;
|
|
457
|
-
const key = keyBuilder$
|
|
458
|
-
luvio.storeIngest(key, ingest$
|
|
457
|
+
const key = keyBuilder$s(luvio, resourceParams);
|
|
458
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
459
459
|
const snapshot = luvio.storeLookup({
|
|
460
460
|
recordId: key,
|
|
461
|
-
node: select$
|
|
461
|
+
node: select$U(),
|
|
462
462
|
variables: {},
|
|
463
463
|
}, snapshotRefresh);
|
|
464
464
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -469,19 +469,19 @@ function ingestSuccess$i(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$b(luvio, params, error, snapshotRefresh) {
|
|
473
|
+
const key = keyBuilder$s(luvio, params);
|
|
474
474
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
475
475
|
const storeMetadataParams = {
|
|
476
|
-
ttl: TTL$
|
|
476
|
+
ttl: TTL$d,
|
|
477
477
|
namespace: keyPrefix,
|
|
478
|
-
version: VERSION$
|
|
479
|
-
representationName: RepresentationType$
|
|
478
|
+
version: VERSION$B,
|
|
479
|
+
representationName: RepresentationType$d
|
|
480
480
|
};
|
|
481
481
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
482
482
|
return errorSnapshot;
|
|
483
483
|
}
|
|
484
|
-
function createResourceRequest$
|
|
484
|
+
function createResourceRequest$j(config) {
|
|
485
485
|
const headers = {};
|
|
486
486
|
return {
|
|
487
487
|
baseUri: '/services/data/v67.0',
|
|
@@ -495,97 +495,97 @@ function createResourceRequest$i(config) {
|
|
|
495
495
|
};
|
|
496
496
|
}
|
|
497
497
|
|
|
498
|
-
const adapterName$
|
|
498
|
+
const adapterName$j = '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$j, createEmbeddings_ConfigPropertyMetadata);
|
|
503
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$k(createEmbeddings_ConfigPropertyMetadata);
|
|
504
|
+
function keyBuilder$r(luvio, config) {
|
|
505
|
+
const resourceParams = createResourceParams$j(config);
|
|
506
|
+
return keyBuilder$s(luvio, resourceParams);
|
|
507
507
|
}
|
|
508
|
-
function typeCheckConfig$
|
|
508
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
509
509
|
const config = {};
|
|
510
510
|
const untrustedConfig_embeddingsInput = untrustedConfig.embeddingsInput;
|
|
511
|
-
const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$
|
|
511
|
+
const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$M(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$j(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$j(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$b(luvio, config) {
|
|
531
|
+
createResourceParams$j(config);
|
|
532
|
+
return select$U();
|
|
533
533
|
}
|
|
534
|
-
function onFetchResponseSuccess$
|
|
535
|
-
const snapshot = ingestSuccess$
|
|
534
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
535
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
|
|
536
536
|
config,
|
|
537
|
-
resolve: () => buildNetworkSnapshot$
|
|
537
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
538
538
|
});
|
|
539
539
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
540
540
|
}
|
|
541
|
-
function onFetchResponseError$
|
|
542
|
-
const snapshot = ingestError$
|
|
541
|
+
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
542
|
+
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
543
543
|
config,
|
|
544
|
-
resolve: () => buildNetworkSnapshot$
|
|
544
|
+
resolve: () => buildNetworkSnapshot$j(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$j(luvio, config, options) {
|
|
549
|
+
const resourceParams = createResourceParams$j(config);
|
|
550
|
+
const request = createResourceRequest$j(resourceParams);
|
|
551
551
|
return luvio.dispatchResourceRequest(request, options)
|
|
552
552
|
.then((response) => {
|
|
553
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
553
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
554
554
|
const cache = new StoreKeyMap();
|
|
555
|
-
getResponseCacheKeys$
|
|
555
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
556
556
|
return cache;
|
|
557
557
|
});
|
|
558
558
|
}, (response) => {
|
|
559
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
559
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
|
|
560
560
|
});
|
|
561
561
|
}
|
|
562
|
-
function buildNetworkSnapshotCachePolicy$
|
|
563
|
-
return buildNetworkSnapshotCachePolicy$
|
|
562
|
+
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
563
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, 'get', false);
|
|
564
564
|
}
|
|
565
|
-
function buildCachedSnapshotCachePolicy$
|
|
565
|
+
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
566
566
|
const { luvio, config } = context;
|
|
567
567
|
const selector = {
|
|
568
|
-
recordId: keyBuilder$
|
|
569
|
-
node: adapterFragment$
|
|
568
|
+
recordId: keyBuilder$r(luvio, config),
|
|
569
|
+
node: adapterFragment$b(luvio, config),
|
|
570
570
|
variables: {},
|
|
571
571
|
};
|
|
572
572
|
const cacheSnapshot = storeLookup(selector, {
|
|
573
573
|
config,
|
|
574
|
-
resolve: () => buildNetworkSnapshot$
|
|
574
|
+
resolve: () => buildNetworkSnapshot$j(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$j(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$b, buildNetworkSnapshotCachePolicy$b);
|
|
586
586
|
};
|
|
587
587
|
|
|
588
|
-
function validate$
|
|
588
|
+
function validate$J(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$I(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$c = 100;
|
|
636
|
+
const VERSION$A = "4033328f65865dd5d80c68a7573a4522";
|
|
637
|
+
function validate$I(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$H(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$c = 'EinsteinLlmFeedbackRepresentation';
|
|
651
|
+
function keyBuilder$q(luvio, config) {
|
|
652
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.message;
|
|
653
653
|
}
|
|
654
654
|
function keyBuilderFromType$4(luvio, object) {
|
|
655
655
|
const keyParams = {
|
|
656
656
|
message: object.message
|
|
657
657
|
};
|
|
658
|
-
return keyBuilder$
|
|
658
|
+
return keyBuilder$q(luvio, keyParams);
|
|
659
659
|
}
|
|
660
|
-
function normalize$
|
|
660
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
661
661
|
return input;
|
|
662
662
|
}
|
|
663
|
-
const select$
|
|
663
|
+
const select$T = function EinsteinLlmFeedbackRepresentationSelect() {
|
|
664
664
|
return {
|
|
665
665
|
kind: 'Fragment',
|
|
666
|
-
version: VERSION$
|
|
666
|
+
version: VERSION$A,
|
|
667
667
|
private: [],
|
|
668
668
|
selections: [
|
|
669
669
|
{
|
|
@@ -673,7 +673,7 @@ const select$R = function EinsteinLlmFeedbackRepresentationSelect() {
|
|
|
673
673
|
]
|
|
674
674
|
};
|
|
675
675
|
};
|
|
676
|
-
function equals$
|
|
676
|
+
function equals$A(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$z(existing, incoming) {
|
|
|
681
681
|
}
|
|
682
682
|
return true;
|
|
683
683
|
}
|
|
684
|
-
const ingest$
|
|
684
|
+
const ingest$c = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
685
685
|
if (process.env.NODE_ENV !== 'production') {
|
|
686
|
-
const validateError = validate$
|
|
686
|
+
const validateError = validate$I(input);
|
|
687
687
|
if (validateError !== null) {
|
|
688
688
|
throw validateError;
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
const key = keyBuilderFromType$4(luvio, input);
|
|
692
|
-
const ttlToUse = TTL$
|
|
693
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
692
|
+
const ttlToUse = TTL$c;
|
|
693
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "EinsteinLLM", VERSION$A, RepresentationType$c, equals$A);
|
|
694
694
|
return createLink(key);
|
|
695
695
|
};
|
|
696
|
-
function getTypeCacheKeys$
|
|
696
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
697
697
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
698
698
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
699
699
|
rootKeySet.set(rootKey, {
|
|
700
700
|
namespace: keyPrefix,
|
|
701
|
-
representationName: RepresentationType$
|
|
701
|
+
representationName: RepresentationType$c,
|
|
702
702
|
mergeable: false
|
|
703
703
|
});
|
|
704
704
|
}
|
|
705
705
|
|
|
706
|
-
function select$
|
|
707
|
-
return select$
|
|
706
|
+
function select$S(luvio, params) {
|
|
707
|
+
return select$T();
|
|
708
708
|
}
|
|
709
|
-
function getResponseCacheKeys$
|
|
710
|
-
getTypeCacheKeys$
|
|
709
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
710
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
711
711
|
}
|
|
712
|
-
function ingestSuccess$
|
|
712
|
+
function ingestSuccess$i(luvio, resourceParams, response) {
|
|
713
713
|
const { body } = response;
|
|
714
714
|
const key = keyBuilderFromType$4(luvio, body);
|
|
715
|
-
luvio.storeIngest(key, ingest$
|
|
715
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
716
716
|
const snapshot = luvio.storeLookup({
|
|
717
717
|
recordId: key,
|
|
718
|
-
node: select$
|
|
718
|
+
node: select$S(),
|
|
719
719
|
variables: {},
|
|
720
720
|
});
|
|
721
721
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -726,7 +726,7 @@ function ingestSuccess$h(luvio, resourceParams, response) {
|
|
|
726
726
|
deepFreeze(snapshot.data);
|
|
727
727
|
return snapshot;
|
|
728
728
|
}
|
|
729
|
-
function createResourceRequest$
|
|
729
|
+
function createResourceRequest$i(config) {
|
|
730
730
|
const headers = {};
|
|
731
731
|
return {
|
|
732
732
|
baseUri: '/services/data/v67.0',
|
|
@@ -740,45 +740,45 @@ function createResourceRequest$h(config) {
|
|
|
740
740
|
};
|
|
741
741
|
}
|
|
742
742
|
|
|
743
|
-
const adapterName$
|
|
743
|
+
const adapterName$i = '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$i, createFeedback_ConfigPropertyMetadata);
|
|
748
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$k(createFeedback_ConfigPropertyMetadata);
|
|
749
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
750
750
|
const config = {};
|
|
751
751
|
const untrustedConfig_feedbackInput = untrustedConfig.feedbackInput;
|
|
752
|
-
const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$
|
|
752
|
+
const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$J(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$i(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$i(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$i(luvio, config, options) {
|
|
772
|
+
const resourceParams = createResourceParams$i(config);
|
|
773
|
+
const request = createResourceRequest$i(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$i(luvio, resourceParams, response);
|
|
778
778
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
779
779
|
}, () => {
|
|
780
780
|
const cache = new StoreKeyMap();
|
|
781
|
-
getResponseCacheKeys$
|
|
781
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
782
782
|
return cache;
|
|
783
783
|
});
|
|
784
784
|
}, (response) => {
|
|
@@ -788,16 +788,16 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
788
788
|
}
|
|
789
789
|
const createFeedbackAdapterFactory = (luvio) => {
|
|
790
790
|
return function createFeedback(untrustedConfig) {
|
|
791
|
-
const config = validateAdapterConfig$
|
|
791
|
+
const config = validateAdapterConfig$i(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$i(luvio, config);
|
|
797
797
|
};
|
|
798
798
|
};
|
|
799
799
|
|
|
800
|
-
function validate$
|
|
800
|
+
function validate$H(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$G(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation'
|
|
|
880
880
|
return v_error === undefined ? null : v_error;
|
|
881
881
|
}
|
|
882
882
|
|
|
883
|
-
function validate$
|
|
883
|
+
function validate$G(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$F(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$H(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$F(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$z = "9ebac74e6f964c363d5fd1913df363af";
|
|
915
|
+
function validate$F(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$E(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentat
|
|
|
948
948
|
})();
|
|
949
949
|
return v_error === undefined ? null : v_error;
|
|
950
950
|
}
|
|
951
|
-
const select$
|
|
951
|
+
const select$R = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
|
|
952
952
|
return {
|
|
953
953
|
kind: 'Fragment',
|
|
954
|
-
version: VERSION$
|
|
954
|
+
version: VERSION$z,
|
|
955
955
|
private: [],
|
|
956
956
|
selections: [
|
|
957
957
|
{
|
|
@@ -962,7 +962,7 @@ const select$P = function EinsteinLlmGenerationsContentQualityRepresentationSele
|
|
|
962
962
|
]
|
|
963
963
|
};
|
|
964
964
|
};
|
|
965
|
-
function equals$
|
|
965
|
+
function equals$z(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$y(existing, incoming) {
|
|
|
979
979
|
return true;
|
|
980
980
|
}
|
|
981
981
|
|
|
982
|
-
const VERSION$
|
|
983
|
-
function validate$
|
|
982
|
+
const VERSION$y = "77af44a252cb5b45b4d9a8101368d2aa";
|
|
983
|
+
function validate$E(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$D(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation
|
|
|
1184
1184
|
})();
|
|
1185
1185
|
return v_error === undefined ? null : v_error;
|
|
1186
1186
|
}
|
|
1187
|
-
const select$
|
|
1187
|
+
const select$Q = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
|
|
1188
1188
|
return {
|
|
1189
1189
|
kind: 'Fragment',
|
|
1190
|
-
version: VERSION$
|
|
1190
|
+
version: VERSION$y,
|
|
1191
1191
|
private: [],
|
|
1192
1192
|
selections: [
|
|
1193
1193
|
{
|
|
@@ -1228,7 +1228,7 @@ const select$O = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect(
|
|
|
1228
1228
|
]
|
|
1229
1229
|
};
|
|
1230
1230
|
};
|
|
1231
|
-
function equals$
|
|
1231
|
+
function equals$y(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$x(existing, incoming) {
|
|
|
1323
1323
|
return true;
|
|
1324
1324
|
}
|
|
1325
1325
|
|
|
1326
|
-
const VERSION$
|
|
1327
|
-
function validate$
|
|
1326
|
+
const VERSION$x = "4a07778ff6c595d91c575188146647a1";
|
|
1327
|
+
function validate$D(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$C(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$F(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$C(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$E(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$C(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$P = function EinsteinLlmGenerationItemRepresentationSelect() {
|
|
1420
|
+
const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$R();
|
|
1421
|
+
const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$Q();
|
|
1422
1422
|
return {
|
|
1423
1423
|
kind: 'Fragment',
|
|
1424
|
-
version: VERSION$
|
|
1424
|
+
version: VERSION$x,
|
|
1425
1425
|
private: [],
|
|
1426
1426
|
selections: [
|
|
1427
1427
|
{
|
|
@@ -1458,7 +1458,7 @@ const select$N = function EinsteinLlmGenerationItemRepresentationSelect() {
|
|
|
1458
1458
|
]
|
|
1459
1459
|
};
|
|
1460
1460
|
};
|
|
1461
|
-
function equals$
|
|
1461
|
+
function equals$x(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$w(existing, incoming) {
|
|
|
1499
1499
|
if (!(existing_contentQualityRepresentation === incoming_contentQualityRepresentation
|
|
1500
1500
|
|| (existing_contentQualityRepresentation != null &&
|
|
1501
1501
|
incoming_contentQualityRepresentation != null &&
|
|
1502
|
-
equals$
|
|
1502
|
+
equals$z(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
|
|
1503
1503
|
return false;
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
@@ -1515,15 +1515,15 @@ function equals$w(existing, incoming) {
|
|
|
1515
1515
|
if (!(existing_safetyScoreRepresentation === incoming_safetyScoreRepresentation
|
|
1516
1516
|
|| (existing_safetyScoreRepresentation != null &&
|
|
1517
1517
|
incoming_safetyScoreRepresentation != null &&
|
|
1518
|
-
equals$
|
|
1518
|
+
equals$y(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$w = "379fd960d1a0118f506f458ab2c8dd7e";
|
|
1526
|
+
function validate$C(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,10 +1545,10 @@ function validate$B(obj, path = 'WrappedMap') {
|
|
|
1545
1545
|
})();
|
|
1546
1546
|
return v_error === undefined ? null : v_error;
|
|
1547
1547
|
}
|
|
1548
|
-
const select$
|
|
1548
|
+
const select$O = function WrappedMapSelect() {
|
|
1549
1549
|
return {
|
|
1550
1550
|
kind: 'Fragment',
|
|
1551
|
-
version: VERSION$
|
|
1551
|
+
version: VERSION$w,
|
|
1552
1552
|
private: [],
|
|
1553
1553
|
selections: [
|
|
1554
1554
|
{
|
|
@@ -1559,7 +1559,7 @@ const select$M = function WrappedMapSelect() {
|
|
|
1559
1559
|
]
|
|
1560
1560
|
};
|
|
1561
1561
|
};
|
|
1562
|
-
function equals$
|
|
1562
|
+
function equals$w(existing, incoming) {
|
|
1563
1563
|
const existing_wrappedMap = existing.wrappedMap;
|
|
1564
1564
|
const incoming_wrappedMap = incoming.wrappedMap;
|
|
1565
1565
|
const equals_wrappedMap_props = equalsObject(existing_wrappedMap, incoming_wrappedMap, (existing_wrappedMap_prop, incoming_wrappedMap_prop) => {
|
|
@@ -1573,9 +1573,9 @@ function equals$v(existing, incoming) {
|
|
|
1573
1573
|
return true;
|
|
1574
1574
|
}
|
|
1575
1575
|
|
|
1576
|
-
const TTL$
|
|
1577
|
-
const VERSION$
|
|
1578
|
-
function validate$
|
|
1576
|
+
const TTL$b = 100;
|
|
1577
|
+
const VERSION$v = "d8abd72a42e842b253da1c38954dafbc";
|
|
1578
|
+
function validate$B(obj, path = 'EinsteinLlmGenerationsRepresentation') {
|
|
1579
1579
|
const v_error = (() => {
|
|
1580
1580
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1581
1581
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1588,7 +1588,7 @@ function validate$A(obj, path = 'EinsteinLlmGenerationsRepresentation') {
|
|
|
1588
1588
|
for (let i = 0; i < obj_generations.length; i++) {
|
|
1589
1589
|
const obj_generations_item = obj_generations[i];
|
|
1590
1590
|
const path_generations_item = path_generations + '[' + i + ']';
|
|
1591
|
-
const referencepath_generations_itemValidationError = validate$
|
|
1591
|
+
const referencepath_generations_itemValidationError = validate$D(obj_generations_item, path_generations_item);
|
|
1592
1592
|
if (referencepath_generations_itemValidationError !== null) {
|
|
1593
1593
|
let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
|
|
1594
1594
|
message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1599,7 +1599,7 @@ function validate$A(obj, path = 'EinsteinLlmGenerationsRepresentation') {
|
|
|
1599
1599
|
const path_parameters = path + '.parameters';
|
|
1600
1600
|
let obj_parameters_union0 = null;
|
|
1601
1601
|
const obj_parameters_union0_error = (() => {
|
|
1602
|
-
const referencepath_parametersValidationError = validate$
|
|
1602
|
+
const referencepath_parametersValidationError = validate$C(obj_parameters, path_parameters);
|
|
1603
1603
|
if (referencepath_parametersValidationError !== null) {
|
|
1604
1604
|
let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
|
|
1605
1605
|
message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1658,25 +1658,25 @@ function validate$A(obj, path = 'EinsteinLlmGenerationsRepresentation') {
|
|
|
1658
1658
|
})();
|
|
1659
1659
|
return v_error === undefined ? null : v_error;
|
|
1660
1660
|
}
|
|
1661
|
-
const RepresentationType$
|
|
1662
|
-
function keyBuilder$
|
|
1663
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1661
|
+
const RepresentationType$b = 'EinsteinLlmGenerationsRepresentation';
|
|
1662
|
+
function keyBuilder$p(luvio, config) {
|
|
1663
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.requestId;
|
|
1664
1664
|
}
|
|
1665
1665
|
function keyBuilderFromType$3(luvio, object) {
|
|
1666
1666
|
const keyParams = {
|
|
1667
1667
|
requestId: object.requestId
|
|
1668
1668
|
};
|
|
1669
|
-
return keyBuilder$
|
|
1669
|
+
return keyBuilder$p(luvio, keyParams);
|
|
1670
1670
|
}
|
|
1671
|
-
function normalize$
|
|
1671
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
1672
1672
|
return input;
|
|
1673
1673
|
}
|
|
1674
|
-
const select$
|
|
1675
|
-
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$
|
|
1676
|
-
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$
|
|
1674
|
+
const select$N = function EinsteinLlmGenerationsRepresentationSelect() {
|
|
1675
|
+
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$P();
|
|
1676
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$O();
|
|
1677
1677
|
return {
|
|
1678
1678
|
kind: 'Fragment',
|
|
1679
|
-
version: VERSION$
|
|
1679
|
+
version: VERSION$v,
|
|
1680
1680
|
private: [],
|
|
1681
1681
|
selections: [
|
|
1682
1682
|
{
|
|
@@ -1702,7 +1702,7 @@ const select$L = function EinsteinLlmGenerationsRepresentationSelect() {
|
|
|
1702
1702
|
]
|
|
1703
1703
|
};
|
|
1704
1704
|
};
|
|
1705
|
-
function equals$
|
|
1705
|
+
function equals$v(existing, incoming) {
|
|
1706
1706
|
const existing_requestId = existing.requestId;
|
|
1707
1707
|
const incoming_requestId = incoming.requestId;
|
|
1708
1708
|
if (!(existing_requestId === incoming_requestId)) {
|
|
@@ -1711,7 +1711,7 @@ function equals$u(existing, incoming) {
|
|
|
1711
1711
|
const existing_generations = existing.generations;
|
|
1712
1712
|
const incoming_generations = incoming.generations;
|
|
1713
1713
|
const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
|
|
1714
|
-
if (!(equals$
|
|
1714
|
+
if (!(equals$x(existing_generations_item, incoming_generations_item))) {
|
|
1715
1715
|
return false;
|
|
1716
1716
|
}
|
|
1717
1717
|
});
|
|
@@ -1723,7 +1723,7 @@ function equals$u(existing, incoming) {
|
|
|
1723
1723
|
if (!(existing_parameters === incoming_parameters
|
|
1724
1724
|
|| (existing_parameters != null &&
|
|
1725
1725
|
incoming_parameters != null &&
|
|
1726
|
-
equals$
|
|
1726
|
+
equals$w(existing_parameters, incoming_parameters)))) {
|
|
1727
1727
|
return false;
|
|
1728
1728
|
}
|
|
1729
1729
|
const existing_prompt = existing.prompt;
|
|
@@ -1733,41 +1733,41 @@ function equals$u(existing, incoming) {
|
|
|
1733
1733
|
}
|
|
1734
1734
|
return true;
|
|
1735
1735
|
}
|
|
1736
|
-
const ingest$
|
|
1736
|
+
const ingest$b = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1737
1737
|
if (process.env.NODE_ENV !== 'production') {
|
|
1738
|
-
const validateError = validate$
|
|
1738
|
+
const validateError = validate$B(input);
|
|
1739
1739
|
if (validateError !== null) {
|
|
1740
1740
|
throw validateError;
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
1743
1743
|
const key = keyBuilderFromType$3(luvio, input);
|
|
1744
|
-
const ttlToUse = TTL$
|
|
1745
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1744
|
+
const ttlToUse = TTL$b;
|
|
1745
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "EinsteinLLM", VERSION$v, RepresentationType$b, equals$v);
|
|
1746
1746
|
return createLink(key);
|
|
1747
1747
|
};
|
|
1748
|
-
function getTypeCacheKeys$
|
|
1748
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
1749
1749
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1750
1750
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
1751
1751
|
rootKeySet.set(rootKey, {
|
|
1752
1752
|
namespace: keyPrefix,
|
|
1753
|
-
representationName: RepresentationType$
|
|
1753
|
+
representationName: RepresentationType$b,
|
|
1754
1754
|
mergeable: false
|
|
1755
1755
|
});
|
|
1756
1756
|
}
|
|
1757
1757
|
|
|
1758
|
-
function select$
|
|
1759
|
-
return select$
|
|
1758
|
+
function select$M(luvio, params) {
|
|
1759
|
+
return select$N();
|
|
1760
1760
|
}
|
|
1761
|
-
function getResponseCacheKeys$
|
|
1762
|
-
getTypeCacheKeys$
|
|
1761
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
1762
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response);
|
|
1763
1763
|
}
|
|
1764
|
-
function ingestSuccess$
|
|
1764
|
+
function ingestSuccess$h(luvio, resourceParams, response) {
|
|
1765
1765
|
const { body } = response;
|
|
1766
1766
|
const key = keyBuilderFromType$3(luvio, body);
|
|
1767
|
-
luvio.storeIngest(key, ingest$
|
|
1767
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
1768
1768
|
const snapshot = luvio.storeLookup({
|
|
1769
1769
|
recordId: key,
|
|
1770
|
-
node: select$
|
|
1770
|
+
node: select$M(),
|
|
1771
1771
|
variables: {},
|
|
1772
1772
|
});
|
|
1773
1773
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1778,7 +1778,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
|
|
|
1778
1778
|
deepFreeze(snapshot.data);
|
|
1779
1779
|
return snapshot;
|
|
1780
1780
|
}
|
|
1781
|
-
function createResourceRequest$
|
|
1781
|
+
function createResourceRequest$h(config) {
|
|
1782
1782
|
const headers = {};
|
|
1783
1783
|
return {
|
|
1784
1784
|
baseUri: '/services/data/v67.0',
|
|
@@ -1792,45 +1792,45 @@ function createResourceRequest$g(config) {
|
|
|
1792
1792
|
};
|
|
1793
1793
|
}
|
|
1794
1794
|
|
|
1795
|
-
const adapterName$
|
|
1795
|
+
const adapterName$h = 'createGenerations';
|
|
1796
1796
|
const createGenerations_ConfigPropertyMetadata = [
|
|
1797
1797
|
generateParamConfigMetadata('generationsInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1798
1798
|
];
|
|
1799
|
-
const createGenerations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1800
|
-
const createResourceParams$
|
|
1801
|
-
function typeCheckConfig$
|
|
1799
|
+
const createGenerations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, createGenerations_ConfigPropertyMetadata);
|
|
1800
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$k(createGenerations_ConfigPropertyMetadata);
|
|
1801
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
1802
1802
|
const config = {};
|
|
1803
1803
|
const untrustedConfig_generationsInput = untrustedConfig.generationsInput;
|
|
1804
|
-
const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$
|
|
1804
|
+
const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$G(untrustedConfig_generationsInput);
|
|
1805
1805
|
if (referenceEinsteinLlmGenerationsInputRepresentationValidationError === null) {
|
|
1806
1806
|
config.generationsInput = untrustedConfig_generationsInput;
|
|
1807
1807
|
}
|
|
1808
1808
|
return config;
|
|
1809
1809
|
}
|
|
1810
|
-
function validateAdapterConfig$
|
|
1810
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
1811
1811
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1812
1812
|
return null;
|
|
1813
1813
|
}
|
|
1814
1814
|
if (process.env.NODE_ENV !== 'production') {
|
|
1815
1815
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1816
1816
|
}
|
|
1817
|
-
const config = typeCheckConfig$
|
|
1817
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
1818
1818
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1819
1819
|
return null;
|
|
1820
1820
|
}
|
|
1821
1821
|
return config;
|
|
1822
1822
|
}
|
|
1823
|
-
function buildNetworkSnapshot$
|
|
1824
|
-
const resourceParams = createResourceParams$
|
|
1825
|
-
const request = createResourceRequest$
|
|
1823
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
1824
|
+
const resourceParams = createResourceParams$h(config);
|
|
1825
|
+
const request = createResourceRequest$h(resourceParams);
|
|
1826
1826
|
return luvio.dispatchResourceRequest(request, options)
|
|
1827
1827
|
.then((response) => {
|
|
1828
1828
|
return luvio.handleSuccessResponse(() => {
|
|
1829
|
-
const snapshot = ingestSuccess$
|
|
1829
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response);
|
|
1830
1830
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1831
1831
|
}, () => {
|
|
1832
1832
|
const cache = new StoreKeyMap();
|
|
1833
|
-
getResponseCacheKeys$
|
|
1833
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
1834
1834
|
return cache;
|
|
1835
1835
|
});
|
|
1836
1836
|
}, (response) => {
|
|
@@ -1840,16 +1840,16 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
1840
1840
|
}
|
|
1841
1841
|
const createGenerationsAdapterFactory = (luvio) => {
|
|
1842
1842
|
return function createGenerations(untrustedConfig) {
|
|
1843
|
-
const config = validateAdapterConfig$
|
|
1843
|
+
const config = validateAdapterConfig$h(untrustedConfig, createGenerations_ConfigPropertyNames);
|
|
1844
1844
|
// Invalid or incomplete config
|
|
1845
1845
|
if (config === null) {
|
|
1846
1846
|
throw new Error('Invalid config for "createGenerations"');
|
|
1847
1847
|
}
|
|
1848
|
-
return buildNetworkSnapshot$
|
|
1848
|
+
return buildNetworkSnapshot$h(luvio, config);
|
|
1849
1849
|
};
|
|
1850
1850
|
};
|
|
1851
1851
|
|
|
1852
|
-
function validate$
|
|
1852
|
+
function validate$A(obj, path = 'WrappedValueMap') {
|
|
1853
1853
|
const v_error = (() => {
|
|
1854
1854
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1855
1855
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1872,7 +1872,7 @@ function validate$z(obj, path = 'WrappedValueMap') {
|
|
|
1872
1872
|
return v_error === undefined ? null : v_error;
|
|
1873
1873
|
}
|
|
1874
1874
|
|
|
1875
|
-
function validate$
|
|
1875
|
+
function validate$z(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
|
|
1876
1876
|
const v_error = (() => {
|
|
1877
1877
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1878
1878
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1880,7 +1880,7 @@ function validate$y(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
|
|
|
1880
1880
|
if (obj.additionalConfig !== undefined) {
|
|
1881
1881
|
const obj_additionalConfig = obj.additionalConfig;
|
|
1882
1882
|
const path_additionalConfig = path + '.additionalConfig';
|
|
1883
|
-
const referencepath_additionalConfigValidationError = validate$
|
|
1883
|
+
const referencepath_additionalConfigValidationError = validate$H(obj_additionalConfig, path_additionalConfig);
|
|
1884
1884
|
if (referencepath_additionalConfigValidationError !== null) {
|
|
1885
1885
|
let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
|
|
1886
1886
|
message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1896,7 +1896,7 @@ function validate$y(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
|
|
|
1896
1896
|
}
|
|
1897
1897
|
const obj_inputParams = obj.inputParams;
|
|
1898
1898
|
const path_inputParams = path + '.inputParams';
|
|
1899
|
-
const referencepath_inputParamsValidationError = validate$
|
|
1899
|
+
const referencepath_inputParamsValidationError = validate$A(obj_inputParams, path_inputParams);
|
|
1900
1900
|
if (referencepath_inputParamsValidationError !== null) {
|
|
1901
1901
|
let message = 'Object doesn\'t match WrappedValueMap (at "' + path_inputParams + '")\n';
|
|
1902
1902
|
message += referencepath_inputParamsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1932,8 +1932,8 @@ function validate$y(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
|
|
|
1932
1932
|
return v_error === undefined ? null : v_error;
|
|
1933
1933
|
}
|
|
1934
1934
|
|
|
1935
|
-
const VERSION$
|
|
1936
|
-
function validate$
|
|
1935
|
+
const VERSION$u = "6a209d0b32d59e6e04155812fdf5c985";
|
|
1936
|
+
function validate$y(obj, path = 'EinsteinLlmGenerationGenAiCitedReferenceRepresentation') {
|
|
1937
1937
|
const v_error = (() => {
|
|
1938
1938
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1939
1939
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1997,10 +1997,10 @@ function validate$x(obj, path = 'EinsteinLlmGenerationGenAiCitedReferenceReprese
|
|
|
1997
1997
|
})();
|
|
1998
1998
|
return v_error === undefined ? null : v_error;
|
|
1999
1999
|
}
|
|
2000
|
-
const select$
|
|
2000
|
+
const select$L = function EinsteinLlmGenerationGenAiCitedReferenceRepresentationSelect() {
|
|
2001
2001
|
return {
|
|
2002
2002
|
kind: 'Fragment',
|
|
2003
|
-
version: VERSION$
|
|
2003
|
+
version: VERSION$u,
|
|
2004
2004
|
private: [],
|
|
2005
2005
|
selections: [
|
|
2006
2006
|
{
|
|
@@ -2038,7 +2038,7 @@ const select$J = function EinsteinLlmGenerationGenAiCitedReferenceRepresentation
|
|
|
2038
2038
|
]
|
|
2039
2039
|
};
|
|
2040
2040
|
};
|
|
2041
|
-
function equals$
|
|
2041
|
+
function equals$u(existing, incoming) {
|
|
2042
2042
|
const existing_label = existing.label;
|
|
2043
2043
|
const incoming_label = incoming.label;
|
|
2044
2044
|
// if at least one of these optionals is defined
|
|
@@ -2130,8 +2130,8 @@ function equals$t(existing, incoming) {
|
|
|
2130
2130
|
return true;
|
|
2131
2131
|
}
|
|
2132
2132
|
|
|
2133
|
-
const VERSION$
|
|
2134
|
-
function validate$
|
|
2133
|
+
const VERSION$t = "bcc0ea08323732f4187dd2b9f70fea6c";
|
|
2134
|
+
function validate$x(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
|
|
2135
2135
|
const v_error = (() => {
|
|
2136
2136
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2137
2137
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2145,7 +2145,7 @@ function validate$w(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
|
|
|
2145
2145
|
for (let i = 0; i < obj_citedReferences.length; i++) {
|
|
2146
2146
|
const obj_citedReferences_item = obj_citedReferences[i];
|
|
2147
2147
|
const path_citedReferences_item = path_citedReferences + '[' + i + ']';
|
|
2148
|
-
const referencepath_citedReferences_itemValidationError = validate$
|
|
2148
|
+
const referencepath_citedReferences_itemValidationError = validate$y(obj_citedReferences_item, path_citedReferences_item);
|
|
2149
2149
|
if (referencepath_citedReferences_itemValidationError !== null) {
|
|
2150
2150
|
let message = 'Object doesn\'t match EinsteinLlmGenerationGenAiCitedReferenceRepresentation (at "' + path_citedReferences_item + '")\n';
|
|
2151
2151
|
message += referencepath_citedReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2156,11 +2156,11 @@ function validate$w(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
|
|
|
2156
2156
|
})();
|
|
2157
2157
|
return v_error === undefined ? null : v_error;
|
|
2158
2158
|
}
|
|
2159
|
-
const select$
|
|
2160
|
-
const { selections: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__selections, opaque: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__opaque, } = select$
|
|
2159
|
+
const select$K = function EinsteinLlmGenerationCitationRepresentationSelect() {
|
|
2160
|
+
const { selections: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__selections, opaque: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__opaque, } = select$L();
|
|
2161
2161
|
return {
|
|
2162
2162
|
kind: 'Fragment',
|
|
2163
|
-
version: VERSION$
|
|
2163
|
+
version: VERSION$t,
|
|
2164
2164
|
private: [],
|
|
2165
2165
|
selections: [
|
|
2166
2166
|
{
|
|
@@ -2173,7 +2173,7 @@ const select$I = function EinsteinLlmGenerationCitationRepresentationSelect() {
|
|
|
2173
2173
|
]
|
|
2174
2174
|
};
|
|
2175
2175
|
};
|
|
2176
|
-
function equals$
|
|
2176
|
+
function equals$t(existing, incoming) {
|
|
2177
2177
|
const existing_citedReferences = existing.citedReferences;
|
|
2178
2178
|
const incoming_citedReferences = incoming.citedReferences;
|
|
2179
2179
|
// if at least one of these optionals is defined
|
|
@@ -2184,7 +2184,7 @@ function equals$s(existing, incoming) {
|
|
|
2184
2184
|
return false;
|
|
2185
2185
|
}
|
|
2186
2186
|
const equals_citedReferences_items = equalsArray(existing_citedReferences, incoming_citedReferences, (existing_citedReferences_item, incoming_citedReferences_item) => {
|
|
2187
|
-
if (!(equals$
|
|
2187
|
+
if (!(equals$u(existing_citedReferences_item, incoming_citedReferences_item))) {
|
|
2188
2188
|
return false;
|
|
2189
2189
|
}
|
|
2190
2190
|
});
|
|
@@ -2195,8 +2195,8 @@ function equals$s(existing, incoming) {
|
|
|
2195
2195
|
return true;
|
|
2196
2196
|
}
|
|
2197
2197
|
|
|
2198
|
-
const VERSION$
|
|
2199
|
-
function validate$
|
|
2198
|
+
const VERSION$s = "f62ac44b024b123f079b57f349e05230";
|
|
2199
|
+
function validate$w(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRepresentation') {
|
|
2200
2200
|
const v_error = (() => {
|
|
2201
2201
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2202
2202
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2214,10 +2214,10 @@ function validate$v(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRe
|
|
|
2214
2214
|
})();
|
|
2215
2215
|
return v_error === undefined ? null : v_error;
|
|
2216
2216
|
}
|
|
2217
|
-
const select$
|
|
2217
|
+
const select$J = function EinsteinPromptTemplateAttachmentExclusionInfoRepresentationSelect() {
|
|
2218
2218
|
return {
|
|
2219
2219
|
kind: 'Fragment',
|
|
2220
|
-
version: VERSION$
|
|
2220
|
+
version: VERSION$s,
|
|
2221
2221
|
private: [],
|
|
2222
2222
|
selections: [
|
|
2223
2223
|
{
|
|
@@ -2231,7 +2231,7 @@ const select$H = function EinsteinPromptTemplateAttachmentExclusionInfoRepresent
|
|
|
2231
2231
|
]
|
|
2232
2232
|
};
|
|
2233
2233
|
};
|
|
2234
|
-
function equals$
|
|
2234
|
+
function equals$s(existing, incoming) {
|
|
2235
2235
|
const existing_isExcluded = existing.isExcluded;
|
|
2236
2236
|
const incoming_isExcluded = incoming.isExcluded;
|
|
2237
2237
|
if (!(existing_isExcluded === incoming_isExcluded)) {
|
|
@@ -2245,8 +2245,8 @@ function equals$r(existing, incoming) {
|
|
|
2245
2245
|
return true;
|
|
2246
2246
|
}
|
|
2247
2247
|
|
|
2248
|
-
const VERSION$
|
|
2249
|
-
function validate$
|
|
2248
|
+
const VERSION$r = "b85a5621c60125d9f1644af130f67680";
|
|
2249
|
+
function validate$v(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation') {
|
|
2250
2250
|
const v_error = (() => {
|
|
2251
2251
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2252
2252
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2254,7 +2254,7 @@ function validate$u(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
|
|
|
2254
2254
|
if (obj.exclusionInfo !== undefined) {
|
|
2255
2255
|
const obj_exclusionInfo = obj.exclusionInfo;
|
|
2256
2256
|
const path_exclusionInfo = path + '.exclusionInfo';
|
|
2257
|
-
const referencepath_exclusionInfoValidationError = validate$
|
|
2257
|
+
const referencepath_exclusionInfoValidationError = validate$w(obj_exclusionInfo, path_exclusionInfo);
|
|
2258
2258
|
if (referencepath_exclusionInfoValidationError !== null) {
|
|
2259
2259
|
let message = 'Object doesn\'t match EinsteinPromptTemplateAttachmentExclusionInfoRepresentation (at "' + path_exclusionInfo + '")\n';
|
|
2260
2260
|
message += referencepath_exclusionInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2291,11 +2291,11 @@ function validate$u(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
|
|
|
2291
2291
|
})();
|
|
2292
2292
|
return v_error === undefined ? null : v_error;
|
|
2293
2293
|
}
|
|
2294
|
-
const select$
|
|
2295
|
-
const { selections: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__opaque, } = select$
|
|
2294
|
+
const select$I = function EinsteinPromptTemplateAttachmentRepresentationSelect() {
|
|
2295
|
+
const { selections: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__opaque, } = select$J();
|
|
2296
2296
|
return {
|
|
2297
2297
|
kind: 'Fragment',
|
|
2298
|
-
version: VERSION$
|
|
2298
|
+
version: VERSION$r,
|
|
2299
2299
|
private: [],
|
|
2300
2300
|
selections: [
|
|
2301
2301
|
{
|
|
@@ -2328,7 +2328,7 @@ const select$G = function EinsteinPromptTemplateAttachmentRepresentationSelect()
|
|
|
2328
2328
|
]
|
|
2329
2329
|
};
|
|
2330
2330
|
};
|
|
2331
|
-
function equals$
|
|
2331
|
+
function equals$r(existing, incoming) {
|
|
2332
2332
|
const existing_fileExtension = existing.fileExtension;
|
|
2333
2333
|
const incoming_fileExtension = incoming.fileExtension;
|
|
2334
2334
|
if (!(existing_fileExtension === incoming_fileExtension)) {
|
|
@@ -2371,15 +2371,15 @@ function equals$q(existing, incoming) {
|
|
|
2371
2371
|
if (existing_exclusionInfo === undefined || incoming_exclusionInfo === undefined) {
|
|
2372
2372
|
return false;
|
|
2373
2373
|
}
|
|
2374
|
-
if (!(equals$
|
|
2374
|
+
if (!(equals$s(existing_exclusionInfo, incoming_exclusionInfo))) {
|
|
2375
2375
|
return false;
|
|
2376
2376
|
}
|
|
2377
2377
|
}
|
|
2378
2378
|
return true;
|
|
2379
2379
|
}
|
|
2380
2380
|
|
|
2381
|
-
const VERSION$
|
|
2382
|
-
function validate$
|
|
2381
|
+
const VERSION$q = "6458d624e5a1691821c764b6de0badb3";
|
|
2382
|
+
function validate$u(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresentation') {
|
|
2383
2383
|
const v_error = (() => {
|
|
2384
2384
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2385
2385
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2409,10 +2409,10 @@ function validate$t(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresent
|
|
|
2409
2409
|
})();
|
|
2410
2410
|
return v_error === undefined ? null : v_error;
|
|
2411
2411
|
}
|
|
2412
|
-
const select$
|
|
2412
|
+
const select$H = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
|
|
2413
2413
|
return {
|
|
2414
2414
|
kind: 'Fragment',
|
|
2415
|
-
version: VERSION$
|
|
2415
|
+
version: VERSION$q,
|
|
2416
2416
|
private: [],
|
|
2417
2417
|
selections: [
|
|
2418
2418
|
{
|
|
@@ -2435,7 +2435,7 @@ const select$F = function EinsteinPromptTemplateGenerationsErrorRepresentationSe
|
|
|
2435
2435
|
]
|
|
2436
2436
|
};
|
|
2437
2437
|
};
|
|
2438
|
-
function equals$
|
|
2438
|
+
function equals$q(existing, incoming) {
|
|
2439
2439
|
const existing_errorMessage = existing.errorMessage;
|
|
2440
2440
|
const incoming_errorMessage = incoming.errorMessage;
|
|
2441
2441
|
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
@@ -2467,8 +2467,8 @@ function equals$p(existing, incoming) {
|
|
|
2467
2467
|
return true;
|
|
2468
2468
|
}
|
|
2469
2469
|
|
|
2470
|
-
const VERSION$
|
|
2471
|
-
function validate$
|
|
2470
|
+
const VERSION$p = "3ce695c87c874dcb5ac019766a3b64f0";
|
|
2471
|
+
function validate$t(obj, path = 'EinsteinPromptTemplateLatencyRepresentation') {
|
|
2472
2472
|
const v_error = (() => {
|
|
2473
2473
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2474
2474
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2486,10 +2486,10 @@ function validate$s(obj, path = 'EinsteinPromptTemplateLatencyRepresentation') {
|
|
|
2486
2486
|
})();
|
|
2487
2487
|
return v_error === undefined ? null : v_error;
|
|
2488
2488
|
}
|
|
2489
|
-
const select$
|
|
2489
|
+
const select$G = function EinsteinPromptTemplateLatencyRepresentationSelect() {
|
|
2490
2490
|
return {
|
|
2491
2491
|
kind: 'Fragment',
|
|
2492
|
-
version: VERSION$
|
|
2492
|
+
version: VERSION$p,
|
|
2493
2493
|
private: [],
|
|
2494
2494
|
selections: [
|
|
2495
2495
|
{
|
|
@@ -2503,7 +2503,7 @@ const select$E = function EinsteinPromptTemplateLatencyRepresentationSelect() {
|
|
|
2503
2503
|
]
|
|
2504
2504
|
};
|
|
2505
2505
|
};
|
|
2506
|
-
function equals$
|
|
2506
|
+
function equals$p(existing, incoming) {
|
|
2507
2507
|
const existing_duration = existing.duration;
|
|
2508
2508
|
const incoming_duration = incoming.duration;
|
|
2509
2509
|
if (!(existing_duration === incoming_duration)) {
|
|
@@ -2517,15 +2517,15 @@ function equals$o(existing, incoming) {
|
|
|
2517
2517
|
return true;
|
|
2518
2518
|
}
|
|
2519
2519
|
|
|
2520
|
-
const VERSION$
|
|
2521
|
-
function validate$
|
|
2520
|
+
const VERSION$o = "9ef738d379a8db0dc8193d438d7995ad";
|
|
2521
|
+
function validate$s(obj, path = 'EinsteinPromptTemplateLatencyBreakdownItemRepresentation') {
|
|
2522
2522
|
const v_error = (() => {
|
|
2523
2523
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2524
2524
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2525
2525
|
}
|
|
2526
2526
|
const obj_latency = obj.latency;
|
|
2527
2527
|
const path_latency = path + '.latency';
|
|
2528
|
-
const referencepath_latencyValidationError = validate$
|
|
2528
|
+
const referencepath_latencyValidationError = validate$t(obj_latency, path_latency);
|
|
2529
2529
|
if (referencepath_latencyValidationError !== null) {
|
|
2530
2530
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyRepresentation (at "' + path_latency + '")\n';
|
|
2531
2531
|
message += referencepath_latencyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2539,11 +2539,11 @@ function validate$r(obj, path = 'EinsteinPromptTemplateLatencyBreakdownItemRepre
|
|
|
2539
2539
|
})();
|
|
2540
2540
|
return v_error === undefined ? null : v_error;
|
|
2541
2541
|
}
|
|
2542
|
-
const select$
|
|
2543
|
-
const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$
|
|
2542
|
+
const select$F = function EinsteinPromptTemplateLatencyBreakdownItemRepresentationSelect() {
|
|
2543
|
+
const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$G();
|
|
2544
2544
|
return {
|
|
2545
2545
|
kind: 'Fragment',
|
|
2546
|
-
version: VERSION$
|
|
2546
|
+
version: VERSION$o,
|
|
2547
2547
|
private: [],
|
|
2548
2548
|
selections: [
|
|
2549
2549
|
{
|
|
@@ -2558,7 +2558,7 @@ const select$D = function EinsteinPromptTemplateLatencyBreakdownItemRepresentati
|
|
|
2558
2558
|
]
|
|
2559
2559
|
};
|
|
2560
2560
|
};
|
|
2561
|
-
function equals$
|
|
2561
|
+
function equals$o(existing, incoming) {
|
|
2562
2562
|
const existing_referenceName = existing.referenceName;
|
|
2563
2563
|
const incoming_referenceName = incoming.referenceName;
|
|
2564
2564
|
if (!(existing_referenceName === incoming_referenceName)) {
|
|
@@ -2566,14 +2566,14 @@ function equals$n(existing, incoming) {
|
|
|
2566
2566
|
}
|
|
2567
2567
|
const existing_latency = existing.latency;
|
|
2568
2568
|
const incoming_latency = incoming.latency;
|
|
2569
|
-
if (!(equals$
|
|
2569
|
+
if (!(equals$p(existing_latency, incoming_latency))) {
|
|
2570
2570
|
return false;
|
|
2571
2571
|
}
|
|
2572
2572
|
return true;
|
|
2573
2573
|
}
|
|
2574
2574
|
|
|
2575
|
-
const VERSION$
|
|
2576
|
-
function validate$
|
|
2575
|
+
const VERSION$n = "4b1840167fa1759c2413bafa7708e137";
|
|
2576
|
+
function validate$r(obj, path = 'EinsteinPromptTemplateLatencyStepRepresentation') {
|
|
2577
2577
|
const v_error = (() => {
|
|
2578
2578
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2579
2579
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2587,7 +2587,7 @@ function validate$q(obj, path = 'EinsteinPromptTemplateLatencyStepRepresentation
|
|
|
2587
2587
|
for (let i = 0; i < obj_breakdown.length; i++) {
|
|
2588
2588
|
const obj_breakdown_item = obj_breakdown[i];
|
|
2589
2589
|
const path_breakdown_item = path_breakdown + '[' + i + ']';
|
|
2590
|
-
const referencepath_breakdown_itemValidationError = validate$
|
|
2590
|
+
const referencepath_breakdown_itemValidationError = validate$s(obj_breakdown_item, path_breakdown_item);
|
|
2591
2591
|
if (referencepath_breakdown_itemValidationError !== null) {
|
|
2592
2592
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyBreakdownItemRepresentation (at "' + path_breakdown_item + '")\n';
|
|
2593
2593
|
message += referencepath_breakdown_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2597,7 +2597,7 @@ function validate$q(obj, path = 'EinsteinPromptTemplateLatencyStepRepresentation
|
|
|
2597
2597
|
}
|
|
2598
2598
|
const obj_latency = obj.latency;
|
|
2599
2599
|
const path_latency = path + '.latency';
|
|
2600
|
-
const referencepath_latencyValidationError = validate$
|
|
2600
|
+
const referencepath_latencyValidationError = validate$t(obj_latency, path_latency);
|
|
2601
2601
|
if (referencepath_latencyValidationError !== null) {
|
|
2602
2602
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyRepresentation (at "' + path_latency + '")\n';
|
|
2603
2603
|
message += referencepath_latencyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2606,12 +2606,12 @@ function validate$q(obj, path = 'EinsteinPromptTemplateLatencyStepRepresentation
|
|
|
2606
2606
|
})();
|
|
2607
2607
|
return v_error === undefined ? null : v_error;
|
|
2608
2608
|
}
|
|
2609
|
-
const select$
|
|
2610
|
-
const { selections: EinsteinPromptTemplateLatencyBreakdownItemRepresentation__selections, opaque: EinsteinPromptTemplateLatencyBreakdownItemRepresentation__opaque, } = select$
|
|
2611
|
-
const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$
|
|
2609
|
+
const select$E = function EinsteinPromptTemplateLatencyStepRepresentationSelect() {
|
|
2610
|
+
const { selections: EinsteinPromptTemplateLatencyBreakdownItemRepresentation__selections, opaque: EinsteinPromptTemplateLatencyBreakdownItemRepresentation__opaque, } = select$F();
|
|
2611
|
+
const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$G();
|
|
2612
2612
|
return {
|
|
2613
2613
|
kind: 'Fragment',
|
|
2614
|
-
version: VERSION$
|
|
2614
|
+
version: VERSION$n,
|
|
2615
2615
|
private: [],
|
|
2616
2616
|
selections: [
|
|
2617
2617
|
{
|
|
@@ -2629,7 +2629,7 @@ const select$C = function EinsteinPromptTemplateLatencyStepRepresentationSelect(
|
|
|
2629
2629
|
]
|
|
2630
2630
|
};
|
|
2631
2631
|
};
|
|
2632
|
-
function equals$
|
|
2632
|
+
function equals$n(existing, incoming) {
|
|
2633
2633
|
const existing_breakdown = existing.breakdown;
|
|
2634
2634
|
const incoming_breakdown = incoming.breakdown;
|
|
2635
2635
|
// if at least one of these optionals is defined
|
|
@@ -2640,7 +2640,7 @@ function equals$m(existing, incoming) {
|
|
|
2640
2640
|
return false;
|
|
2641
2641
|
}
|
|
2642
2642
|
const equals_breakdown_items = equalsArray(existing_breakdown, incoming_breakdown, (existing_breakdown_item, incoming_breakdown_item) => {
|
|
2643
|
-
if (!(equals$
|
|
2643
|
+
if (!(equals$o(existing_breakdown_item, incoming_breakdown_item))) {
|
|
2644
2644
|
return false;
|
|
2645
2645
|
}
|
|
2646
2646
|
});
|
|
@@ -2650,14 +2650,14 @@ function equals$m(existing, incoming) {
|
|
|
2650
2650
|
}
|
|
2651
2651
|
const existing_latency = existing.latency;
|
|
2652
2652
|
const incoming_latency = incoming.latency;
|
|
2653
|
-
if (!(equals$
|
|
2653
|
+
if (!(equals$p(existing_latency, incoming_latency))) {
|
|
2654
2654
|
return false;
|
|
2655
2655
|
}
|
|
2656
2656
|
return true;
|
|
2657
2657
|
}
|
|
2658
2658
|
|
|
2659
|
-
const VERSION$
|
|
2660
|
-
function validate$
|
|
2659
|
+
const VERSION$m = "d6838fb296069ed6df17b2215be2da09";
|
|
2660
|
+
function validate$q(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresentation') {
|
|
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$p(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresent
|
|
|
2665
2665
|
if (obj.generation !== undefined) {
|
|
2666
2666
|
const obj_generation = obj.generation;
|
|
2667
2667
|
const path_generation = path + '.generation';
|
|
2668
|
-
const referencepath_generationValidationError = validate$
|
|
2668
|
+
const referencepath_generationValidationError = validate$r(obj_generation, path_generation);
|
|
2669
2669
|
if (referencepath_generationValidationError !== null) {
|
|
2670
2670
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_generation + '")\n';
|
|
2671
2671
|
message += referencepath_generationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2675,7 +2675,7 @@ function validate$p(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresent
|
|
|
2675
2675
|
if (obj.hydration !== undefined) {
|
|
2676
2676
|
const obj_hydration = obj.hydration;
|
|
2677
2677
|
const path_hydration = path + '.hydration';
|
|
2678
|
-
const referencepath_hydrationValidationError = validate$
|
|
2678
|
+
const referencepath_hydrationValidationError = validate$r(obj_hydration, path_hydration);
|
|
2679
2679
|
if (referencepath_hydrationValidationError !== null) {
|
|
2680
2680
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_hydration + '")\n';
|
|
2681
2681
|
message += referencepath_hydrationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2684,7 +2684,7 @@ function validate$p(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresent
|
|
|
2684
2684
|
}
|
|
2685
2685
|
const obj_loadTemplate = obj.loadTemplate;
|
|
2686
2686
|
const path_loadTemplate = path + '.loadTemplate';
|
|
2687
|
-
const referencepath_loadTemplateValidationError = validate$
|
|
2687
|
+
const referencepath_loadTemplateValidationError = validate$r(obj_loadTemplate, path_loadTemplate);
|
|
2688
2688
|
if (referencepath_loadTemplateValidationError !== null) {
|
|
2689
2689
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_loadTemplate + '")\n';
|
|
2690
2690
|
message += referencepath_loadTemplateValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2693,7 +2693,7 @@ function validate$p(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresent
|
|
|
2693
2693
|
if (obj.mask !== undefined) {
|
|
2694
2694
|
const obj_mask = obj.mask;
|
|
2695
2695
|
const path_mask = path + '.mask';
|
|
2696
|
-
const referencepath_maskValidationError = validate$
|
|
2696
|
+
const referencepath_maskValidationError = validate$r(obj_mask, path_mask);
|
|
2697
2697
|
if (referencepath_maskValidationError !== null) {
|
|
2698
2698
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_mask + '")\n';
|
|
2699
2699
|
message += referencepath_maskValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2703,7 +2703,7 @@ function validate$p(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresent
|
|
|
2703
2703
|
if (obj.resolveData !== undefined) {
|
|
2704
2704
|
const obj_resolveData = obj.resolveData;
|
|
2705
2705
|
const path_resolveData = path + '.resolveData';
|
|
2706
|
-
const referencepath_resolveDataValidationError = validate$
|
|
2706
|
+
const referencepath_resolveDataValidationError = validate$r(obj_resolveData, path_resolveData);
|
|
2707
2707
|
if (referencepath_resolveDataValidationError !== null) {
|
|
2708
2708
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_resolveData + '")\n';
|
|
2709
2709
|
message += referencepath_resolveDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2713,7 +2713,7 @@ function validate$p(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresent
|
|
|
2713
2713
|
if (obj.summarize !== undefined) {
|
|
2714
2714
|
const obj_summarize = obj.summarize;
|
|
2715
2715
|
const path_summarize = path + '.summarize';
|
|
2716
|
-
const referencepath_summarizeValidationError = validate$
|
|
2716
|
+
const referencepath_summarizeValidationError = validate$r(obj_summarize, path_summarize);
|
|
2717
2717
|
if (referencepath_summarizeValidationError !== null) {
|
|
2718
2718
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_summarize + '")\n';
|
|
2719
2719
|
message += referencepath_summarizeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2723,11 +2723,11 @@ function validate$p(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresent
|
|
|
2723
2723
|
})();
|
|
2724
2724
|
return v_error === undefined ? null : v_error;
|
|
2725
2725
|
}
|
|
2726
|
-
const select$
|
|
2727
|
-
const { selections: EinsteinPromptTemplateLatencyStepRepresentation__selections, opaque: EinsteinPromptTemplateLatencyStepRepresentation__opaque, } = select$
|
|
2726
|
+
const select$D = function EinsteinPromptTemplateLatencyExecutionRepresentationSelect() {
|
|
2727
|
+
const { selections: EinsteinPromptTemplateLatencyStepRepresentation__selections, opaque: EinsteinPromptTemplateLatencyStepRepresentation__opaque, } = select$E();
|
|
2728
2728
|
return {
|
|
2729
2729
|
kind: 'Fragment',
|
|
2730
|
-
version: VERSION$
|
|
2730
|
+
version: VERSION$m,
|
|
2731
2731
|
private: [],
|
|
2732
2732
|
selections: [
|
|
2733
2733
|
{
|
|
@@ -2768,7 +2768,7 @@ const select$B = function EinsteinPromptTemplateLatencyExecutionRepresentationSe
|
|
|
2768
2768
|
]
|
|
2769
2769
|
};
|
|
2770
2770
|
};
|
|
2771
|
-
function equals$
|
|
2771
|
+
function equals$m(existing, incoming) {
|
|
2772
2772
|
const existing_generation = existing.generation;
|
|
2773
2773
|
const incoming_generation = incoming.generation;
|
|
2774
2774
|
// if at least one of these optionals is defined
|
|
@@ -2778,7 +2778,7 @@ function equals$l(existing, incoming) {
|
|
|
2778
2778
|
if (existing_generation === undefined || incoming_generation === undefined) {
|
|
2779
2779
|
return false;
|
|
2780
2780
|
}
|
|
2781
|
-
if (!(equals$
|
|
2781
|
+
if (!(equals$n(existing_generation, incoming_generation))) {
|
|
2782
2782
|
return false;
|
|
2783
2783
|
}
|
|
2784
2784
|
}
|
|
@@ -2791,13 +2791,13 @@ function equals$l(existing, incoming) {
|
|
|
2791
2791
|
if (existing_hydration === undefined || incoming_hydration === undefined) {
|
|
2792
2792
|
return false;
|
|
2793
2793
|
}
|
|
2794
|
-
if (!(equals$
|
|
2794
|
+
if (!(equals$n(existing_hydration, incoming_hydration))) {
|
|
2795
2795
|
return false;
|
|
2796
2796
|
}
|
|
2797
2797
|
}
|
|
2798
2798
|
const existing_loadTemplate = existing.loadTemplate;
|
|
2799
2799
|
const incoming_loadTemplate = incoming.loadTemplate;
|
|
2800
|
-
if (!(equals$
|
|
2800
|
+
if (!(equals$n(existing_loadTemplate, incoming_loadTemplate))) {
|
|
2801
2801
|
return false;
|
|
2802
2802
|
}
|
|
2803
2803
|
const existing_mask = existing.mask;
|
|
@@ -2809,7 +2809,7 @@ function equals$l(existing, incoming) {
|
|
|
2809
2809
|
if (existing_mask === undefined || incoming_mask === undefined) {
|
|
2810
2810
|
return false;
|
|
2811
2811
|
}
|
|
2812
|
-
if (!(equals$
|
|
2812
|
+
if (!(equals$n(existing_mask, incoming_mask))) {
|
|
2813
2813
|
return false;
|
|
2814
2814
|
}
|
|
2815
2815
|
}
|
|
@@ -2822,7 +2822,7 @@ function equals$l(existing, incoming) {
|
|
|
2822
2822
|
if (existing_resolveData === undefined || incoming_resolveData === undefined) {
|
|
2823
2823
|
return false;
|
|
2824
2824
|
}
|
|
2825
|
-
if (!(equals$
|
|
2825
|
+
if (!(equals$n(existing_resolveData, incoming_resolveData))) {
|
|
2826
2826
|
return false;
|
|
2827
2827
|
}
|
|
2828
2828
|
}
|
|
@@ -2835,22 +2835,22 @@ function equals$l(existing, incoming) {
|
|
|
2835
2835
|
if (existing_summarize === undefined || incoming_summarize === undefined) {
|
|
2836
2836
|
return false;
|
|
2837
2837
|
}
|
|
2838
|
-
if (!(equals$
|
|
2838
|
+
if (!(equals$n(existing_summarize, incoming_summarize))) {
|
|
2839
2839
|
return false;
|
|
2840
2840
|
}
|
|
2841
2841
|
}
|
|
2842
2842
|
return true;
|
|
2843
2843
|
}
|
|
2844
2844
|
|
|
2845
|
-
const VERSION$
|
|
2846
|
-
function validate$
|
|
2845
|
+
const VERSION$l = "bfbfa37e3d6bd35c36ba73c3f9b973b6";
|
|
2846
|
+
function validate$p(obj, path = 'EinsteinPromptTemplatePerformanceRepresentation') {
|
|
2847
2847
|
const v_error = (() => {
|
|
2848
2848
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2849
2849
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2850
2850
|
}
|
|
2851
2851
|
const obj_execution = obj.execution;
|
|
2852
2852
|
const path_execution = path + '.execution';
|
|
2853
|
-
const referencepath_executionValidationError = validate$
|
|
2853
|
+
const referencepath_executionValidationError = validate$q(obj_execution, path_execution);
|
|
2854
2854
|
if (referencepath_executionValidationError !== null) {
|
|
2855
2855
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyExecutionRepresentation (at "' + path_execution + '")\n';
|
|
2856
2856
|
message += referencepath_executionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2858,7 +2858,7 @@ function validate$o(obj, path = 'EinsteinPromptTemplatePerformanceRepresentation
|
|
|
2858
2858
|
}
|
|
2859
2859
|
const obj_latency = obj.latency;
|
|
2860
2860
|
const path_latency = path + '.latency';
|
|
2861
|
-
const referencepath_latencyValidationError = validate$
|
|
2861
|
+
const referencepath_latencyValidationError = validate$t(obj_latency, path_latency);
|
|
2862
2862
|
if (referencepath_latencyValidationError !== null) {
|
|
2863
2863
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyRepresentation (at "' + path_latency + '")\n';
|
|
2864
2864
|
message += referencepath_latencyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2867,12 +2867,12 @@ function validate$o(obj, path = 'EinsteinPromptTemplatePerformanceRepresentation
|
|
|
2867
2867
|
})();
|
|
2868
2868
|
return v_error === undefined ? null : v_error;
|
|
2869
2869
|
}
|
|
2870
|
-
const select$
|
|
2871
|
-
const { selections: EinsteinPromptTemplateLatencyExecutionRepresentation__selections, opaque: EinsteinPromptTemplateLatencyExecutionRepresentation__opaque, } = select$
|
|
2872
|
-
const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$
|
|
2870
|
+
const select$C = function EinsteinPromptTemplatePerformanceRepresentationSelect() {
|
|
2871
|
+
const { selections: EinsteinPromptTemplateLatencyExecutionRepresentation__selections, opaque: EinsteinPromptTemplateLatencyExecutionRepresentation__opaque, } = select$D();
|
|
2872
|
+
const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$G();
|
|
2873
2873
|
return {
|
|
2874
2874
|
kind: 'Fragment',
|
|
2875
|
-
version: VERSION$
|
|
2875
|
+
version: VERSION$l,
|
|
2876
2876
|
private: [],
|
|
2877
2877
|
selections: [
|
|
2878
2878
|
{
|
|
@@ -2888,22 +2888,22 @@ const select$A = function EinsteinPromptTemplatePerformanceRepresentationSelect(
|
|
|
2888
2888
|
]
|
|
2889
2889
|
};
|
|
2890
2890
|
};
|
|
2891
|
-
function equals$
|
|
2891
|
+
function equals$l(existing, incoming) {
|
|
2892
2892
|
const existing_execution = existing.execution;
|
|
2893
2893
|
const incoming_execution = incoming.execution;
|
|
2894
|
-
if (!(equals$
|
|
2894
|
+
if (!(equals$m(existing_execution, incoming_execution))) {
|
|
2895
2895
|
return false;
|
|
2896
2896
|
}
|
|
2897
2897
|
const existing_latency = existing.latency;
|
|
2898
2898
|
const incoming_latency = incoming.latency;
|
|
2899
|
-
if (!(equals$
|
|
2899
|
+
if (!(equals$p(existing_latency, incoming_latency))) {
|
|
2900
2900
|
return false;
|
|
2901
2901
|
}
|
|
2902
2902
|
return true;
|
|
2903
2903
|
}
|
|
2904
2904
|
|
|
2905
|
-
const VERSION$
|
|
2906
|
-
function validate$
|
|
2905
|
+
const VERSION$k = "7c417ce44e4bc05dfcc454e6825590e8";
|
|
2906
|
+
function validate$o(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentation') {
|
|
2907
2907
|
const v_error = (() => {
|
|
2908
2908
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2909
2909
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2916,10 +2916,10 @@ function validate$n(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentatio
|
|
|
2916
2916
|
})();
|
|
2917
2917
|
return v_error === undefined ? null : v_error;
|
|
2918
2918
|
}
|
|
2919
|
-
const select$
|
|
2919
|
+
const select$B = function EinsteinPromptTemplateMaskSettingsRepresentationSelect() {
|
|
2920
2920
|
return {
|
|
2921
2921
|
kind: 'Fragment',
|
|
2922
|
-
version: VERSION$
|
|
2922
|
+
version: VERSION$k,
|
|
2923
2923
|
private: [],
|
|
2924
2924
|
selections: [
|
|
2925
2925
|
{
|
|
@@ -2929,7 +2929,7 @@ const select$z = function EinsteinPromptTemplateMaskSettingsRepresentationSelect
|
|
|
2929
2929
|
]
|
|
2930
2930
|
};
|
|
2931
2931
|
};
|
|
2932
|
-
function equals$
|
|
2932
|
+
function equals$k(existing, incoming) {
|
|
2933
2933
|
const existing_enableModeration = existing.enableModeration;
|
|
2934
2934
|
const incoming_enableModeration = incoming.enableModeration;
|
|
2935
2935
|
if (!(existing_enableModeration === incoming_enableModeration)) {
|
|
@@ -2938,8 +2938,8 @@ function equals$j(existing, incoming) {
|
|
|
2938
2938
|
return true;
|
|
2939
2939
|
}
|
|
2940
2940
|
|
|
2941
|
-
const VERSION$
|
|
2942
|
-
function validate$
|
|
2941
|
+
const VERSION$j = "92ad1abd0e2a60bc36941409cadda7e2";
|
|
2942
|
+
function validate$n(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation') {
|
|
2943
2943
|
const v_error = (() => {
|
|
2944
2944
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2945
2945
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2954,7 +2954,7 @@ function validate$m(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation
|
|
|
2954
2954
|
const path_moderationSettings = path + '.moderationSettings';
|
|
2955
2955
|
let obj_moderationSettings_union0 = null;
|
|
2956
2956
|
const obj_moderationSettings_union0_error = (() => {
|
|
2957
|
-
const referencepath_moderationSettingsValidationError = validate$
|
|
2957
|
+
const referencepath_moderationSettingsValidationError = validate$o(obj_moderationSettings, path_moderationSettings);
|
|
2958
2958
|
if (referencepath_moderationSettingsValidationError !== null) {
|
|
2959
2959
|
let message = 'Object doesn\'t match EinsteinPromptTemplateMaskSettingsRepresentation (at "' + path_moderationSettings + '")\n';
|
|
2960
2960
|
message += referencepath_moderationSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2990,11 +2990,11 @@ function validate$m(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation
|
|
|
2990
2990
|
})();
|
|
2991
2991
|
return v_error === undefined ? null : v_error;
|
|
2992
2992
|
}
|
|
2993
|
-
const select$
|
|
2994
|
-
const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$
|
|
2993
|
+
const select$A = function EinsteinPromptTemplateMaskContentRepresentationSelect() {
|
|
2994
|
+
const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$B();
|
|
2995
2995
|
return {
|
|
2996
2996
|
kind: 'Fragment',
|
|
2997
|
-
version: VERSION$
|
|
2997
|
+
version: VERSION$j,
|
|
2998
2998
|
private: [],
|
|
2999
2999
|
selections: [
|
|
3000
3000
|
{
|
|
@@ -3016,7 +3016,7 @@ const select$y = function EinsteinPromptTemplateMaskContentRepresentationSelect(
|
|
|
3016
3016
|
]
|
|
3017
3017
|
};
|
|
3018
3018
|
};
|
|
3019
|
-
function equals$
|
|
3019
|
+
function equals$j(existing, incoming) {
|
|
3020
3020
|
const existing_content = existing.content;
|
|
3021
3021
|
const incoming_content = incoming.content;
|
|
3022
3022
|
if (!(existing_content === incoming_content)) {
|
|
@@ -3047,15 +3047,15 @@ function equals$i(existing, incoming) {
|
|
|
3047
3047
|
if (!(existing_moderationSettings === incoming_moderationSettings
|
|
3048
3048
|
|| (existing_moderationSettings != null &&
|
|
3049
3049
|
incoming_moderationSettings != null &&
|
|
3050
|
-
equals$
|
|
3050
|
+
equals$k(existing_moderationSettings, incoming_moderationSettings)))) {
|
|
3051
3051
|
return false;
|
|
3052
3052
|
}
|
|
3053
3053
|
}
|
|
3054
3054
|
return true;
|
|
3055
3055
|
}
|
|
3056
3056
|
|
|
3057
|
-
const VERSION$
|
|
3058
|
-
function validate$
|
|
3057
|
+
const VERSION$i = "507a815605f8d30ae9b52b0ec513d25e";
|
|
3058
|
+
function validate$m(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation') {
|
|
3059
3059
|
const v_error = (() => {
|
|
3060
3060
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3061
3061
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3085,10 +3085,10 @@ function validate$l(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation')
|
|
|
3085
3085
|
})();
|
|
3086
3086
|
return v_error === undefined ? null : v_error;
|
|
3087
3087
|
}
|
|
3088
|
-
const select$
|
|
3088
|
+
const select$z = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
|
|
3089
3089
|
return {
|
|
3090
3090
|
kind: 'Fragment',
|
|
3091
|
-
version: VERSION$
|
|
3091
|
+
version: VERSION$i,
|
|
3092
3092
|
private: [],
|
|
3093
3093
|
selections: [
|
|
3094
3094
|
{
|
|
@@ -3107,7 +3107,7 @@ const select$x = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
|
|
|
3107
3107
|
]
|
|
3108
3108
|
};
|
|
3109
3109
|
};
|
|
3110
|
-
function equals$
|
|
3110
|
+
function equals$i(existing, incoming) {
|
|
3111
3111
|
const existing_originalValue = existing.originalValue;
|
|
3112
3112
|
const incoming_originalValue = incoming.originalValue;
|
|
3113
3113
|
if (!(existing_originalValue === incoming_originalValue)) {
|
|
@@ -3131,8 +3131,8 @@ function equals$h(existing, incoming) {
|
|
|
3131
3131
|
return true;
|
|
3132
3132
|
}
|
|
3133
3133
|
|
|
3134
|
-
const VERSION$
|
|
3135
|
-
function validate$
|
|
3134
|
+
const VERSION$h = "76811380b919e1427b00791d86819029";
|
|
3135
|
+
function validate$l(obj, path = 'EinsteinPromptTemplateTokenBreakdownRepresentation') {
|
|
3136
3136
|
const v_error = (() => {
|
|
3137
3137
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3138
3138
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3160,10 +3160,10 @@ function validate$k(obj, path = 'EinsteinPromptTemplateTokenBreakdownRepresentat
|
|
|
3160
3160
|
})();
|
|
3161
3161
|
return v_error === undefined ? null : v_error;
|
|
3162
3162
|
}
|
|
3163
|
-
const select$
|
|
3163
|
+
const select$y = function EinsteinPromptTemplateTokenBreakdownRepresentationSelect() {
|
|
3164
3164
|
return {
|
|
3165
3165
|
kind: 'Fragment',
|
|
3166
|
-
version: VERSION$
|
|
3166
|
+
version: VERSION$h,
|
|
3167
3167
|
private: [],
|
|
3168
3168
|
selections: [
|
|
3169
3169
|
{
|
|
@@ -3185,7 +3185,7 @@ const select$w = function EinsteinPromptTemplateTokenBreakdownRepresentationSele
|
|
|
3185
3185
|
]
|
|
3186
3186
|
};
|
|
3187
3187
|
};
|
|
3188
|
-
function equals$
|
|
3188
|
+
function equals$h(existing, incoming) {
|
|
3189
3189
|
const existing_occurrences = existing.occurrences;
|
|
3190
3190
|
const incoming_occurrences = incoming.occurrences;
|
|
3191
3191
|
if (!(existing_occurrences === incoming_occurrences)) {
|
|
@@ -3209,8 +3209,8 @@ function equals$g(existing, incoming) {
|
|
|
3209
3209
|
return true;
|
|
3210
3210
|
}
|
|
3211
3211
|
|
|
3212
|
-
const VERSION$
|
|
3213
|
-
function validate$
|
|
3212
|
+
const VERSION$g = "7212a778ca53a828691ec38760108a72";
|
|
3213
|
+
function validate$k(obj, path = 'EinsteinPromptTemplatePromptTokenUsageRepresentation') {
|
|
3214
3214
|
const v_error = (() => {
|
|
3215
3215
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3216
3216
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3224,7 +3224,7 @@ function validate$j(obj, path = 'EinsteinPromptTemplatePromptTokenUsageRepresent
|
|
|
3224
3224
|
for (let i = 0; i < obj_breakdown.length; i++) {
|
|
3225
3225
|
const obj_breakdown_item = obj_breakdown[i];
|
|
3226
3226
|
const path_breakdown_item = path_breakdown + '[' + i + ']';
|
|
3227
|
-
const referencepath_breakdown_itemValidationError = validate$
|
|
3227
|
+
const referencepath_breakdown_itemValidationError = validate$l(obj_breakdown_item, path_breakdown_item);
|
|
3228
3228
|
if (referencepath_breakdown_itemValidationError !== null) {
|
|
3229
3229
|
let message = 'Object doesn\'t match EinsteinPromptTemplateTokenBreakdownRepresentation (at "' + path_breakdown_item + '")\n';
|
|
3230
3230
|
message += referencepath_breakdown_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3240,11 +3240,11 @@ function validate$j(obj, path = 'EinsteinPromptTemplatePromptTokenUsageRepresent
|
|
|
3240
3240
|
})();
|
|
3241
3241
|
return v_error === undefined ? null : v_error;
|
|
3242
3242
|
}
|
|
3243
|
-
const select$
|
|
3244
|
-
const { selections: EinsteinPromptTemplateTokenBreakdownRepresentation__selections, opaque: EinsteinPromptTemplateTokenBreakdownRepresentation__opaque, } = select$
|
|
3243
|
+
const select$x = function EinsteinPromptTemplatePromptTokenUsageRepresentationSelect() {
|
|
3244
|
+
const { selections: EinsteinPromptTemplateTokenBreakdownRepresentation__selections, opaque: EinsteinPromptTemplateTokenBreakdownRepresentation__opaque, } = select$y();
|
|
3245
3245
|
return {
|
|
3246
3246
|
kind: 'Fragment',
|
|
3247
|
-
version: VERSION$
|
|
3247
|
+
version: VERSION$g,
|
|
3248
3248
|
private: [],
|
|
3249
3249
|
selections: [
|
|
3250
3250
|
{
|
|
@@ -3261,7 +3261,7 @@ const select$v = function EinsteinPromptTemplatePromptTokenUsageRepresentationSe
|
|
|
3261
3261
|
]
|
|
3262
3262
|
};
|
|
3263
3263
|
};
|
|
3264
|
-
function equals$
|
|
3264
|
+
function equals$g(existing, incoming) {
|
|
3265
3265
|
const existing_total = existing.total;
|
|
3266
3266
|
const incoming_total = incoming.total;
|
|
3267
3267
|
if (!(existing_total === incoming_total)) {
|
|
@@ -3277,7 +3277,7 @@ function equals$f(existing, incoming) {
|
|
|
3277
3277
|
return false;
|
|
3278
3278
|
}
|
|
3279
3279
|
const equals_breakdown_items = equalsArray(existing_breakdown, incoming_breakdown, (existing_breakdown_item, incoming_breakdown_item) => {
|
|
3280
|
-
if (!(equals$
|
|
3280
|
+
if (!(equals$h(existing_breakdown_item, incoming_breakdown_item))) {
|
|
3281
3281
|
return false;
|
|
3282
3282
|
}
|
|
3283
3283
|
});
|
|
@@ -3288,8 +3288,8 @@ function equals$f(existing, incoming) {
|
|
|
3288
3288
|
return true;
|
|
3289
3289
|
}
|
|
3290
3290
|
|
|
3291
|
-
const VERSION$
|
|
3292
|
-
function validate$
|
|
3291
|
+
const VERSION$f = "20ed3f8bf15ce2c8910245591e27fae5";
|
|
3292
|
+
function validate$j(obj, path = 'EinsteinPromptTemplateTokenUsageRepresentation') {
|
|
3293
3293
|
const v_error = (() => {
|
|
3294
3294
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3295
3295
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3301,7 +3301,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateTokenUsageRepresentation'
|
|
|
3301
3301
|
}
|
|
3302
3302
|
const obj_prompt = obj.prompt;
|
|
3303
3303
|
const path_prompt = path + '.prompt';
|
|
3304
|
-
const referencepath_promptValidationError = validate$
|
|
3304
|
+
const referencepath_promptValidationError = validate$k(obj_prompt, path_prompt);
|
|
3305
3305
|
if (referencepath_promptValidationError !== null) {
|
|
3306
3306
|
let message = 'Object doesn\'t match EinsteinPromptTemplatePromptTokenUsageRepresentation (at "' + path_prompt + '")\n';
|
|
3307
3307
|
message += referencepath_promptValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3315,11 +3315,11 @@ function validate$i(obj, path = 'EinsteinPromptTemplateTokenUsageRepresentation'
|
|
|
3315
3315
|
})();
|
|
3316
3316
|
return v_error === undefined ? null : v_error;
|
|
3317
3317
|
}
|
|
3318
|
-
const select$
|
|
3319
|
-
const { selections: EinsteinPromptTemplatePromptTokenUsageRepresentation__selections, opaque: EinsteinPromptTemplatePromptTokenUsageRepresentation__opaque, } = select$
|
|
3318
|
+
const select$w = function EinsteinPromptTemplateTokenUsageRepresentationSelect() {
|
|
3319
|
+
const { selections: EinsteinPromptTemplatePromptTokenUsageRepresentation__selections, opaque: EinsteinPromptTemplatePromptTokenUsageRepresentation__opaque, } = select$x();
|
|
3320
3320
|
return {
|
|
3321
3321
|
kind: 'Fragment',
|
|
3322
|
-
version: VERSION$
|
|
3322
|
+
version: VERSION$f,
|
|
3323
3323
|
private: [],
|
|
3324
3324
|
selections: [
|
|
3325
3325
|
{
|
|
@@ -3338,7 +3338,7 @@ const select$u = function EinsteinPromptTemplateTokenUsageRepresentationSelect()
|
|
|
3338
3338
|
]
|
|
3339
3339
|
};
|
|
3340
3340
|
};
|
|
3341
|
-
function equals$
|
|
3341
|
+
function equals$f(existing, incoming) {
|
|
3342
3342
|
const existing_completion = existing.completion;
|
|
3343
3343
|
const incoming_completion = incoming.completion;
|
|
3344
3344
|
if (!(existing_completion === incoming_completion)) {
|
|
@@ -3351,15 +3351,15 @@ function equals$e(existing, incoming) {
|
|
|
3351
3351
|
}
|
|
3352
3352
|
const existing_prompt = existing.prompt;
|
|
3353
3353
|
const incoming_prompt = incoming.prompt;
|
|
3354
|
-
if (!(equals$
|
|
3354
|
+
if (!(equals$g(existing_prompt, incoming_prompt))) {
|
|
3355
3355
|
return false;
|
|
3356
3356
|
}
|
|
3357
3357
|
return true;
|
|
3358
3358
|
}
|
|
3359
3359
|
|
|
3360
|
-
const TTL$
|
|
3361
|
-
const VERSION$
|
|
3362
|
-
function validate$
|
|
3360
|
+
const TTL$a = 100;
|
|
3361
|
+
const VERSION$e = "c298962a9a914e248606ab1ac01d1d08";
|
|
3362
|
+
function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
|
|
3363
3363
|
const v_error = (() => {
|
|
3364
3364
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3365
3365
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3367,7 +3367,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3367
3367
|
if (obj.citations !== undefined) {
|
|
3368
3368
|
const obj_citations = obj.citations;
|
|
3369
3369
|
const path_citations = path + '.citations';
|
|
3370
|
-
const referencepath_citationsValidationError = validate$
|
|
3370
|
+
const referencepath_citationsValidationError = validate$x(obj_citations, path_citations);
|
|
3371
3371
|
if (referencepath_citationsValidationError !== null) {
|
|
3372
3372
|
let message = 'Object doesn\'t match EinsteinLlmGenerationCitationRepresentation (at "' + path_citations + '")\n';
|
|
3373
3373
|
message += referencepath_citationsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3383,7 +3383,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3383
3383
|
for (let i = 0; i < obj_fileData.length; i++) {
|
|
3384
3384
|
const obj_fileData_item = obj_fileData[i];
|
|
3385
3385
|
const path_fileData_item = path_fileData + '[' + i + ']';
|
|
3386
|
-
const referencepath_fileData_itemValidationError = validate$
|
|
3386
|
+
const referencepath_fileData_itemValidationError = validate$v(obj_fileData_item, path_fileData_item);
|
|
3387
3387
|
if (referencepath_fileData_itemValidationError !== null) {
|
|
3388
3388
|
let message = 'Object doesn\'t match EinsteinPromptTemplateAttachmentRepresentation (at "' + path_fileData_item + '")\n';
|
|
3389
3389
|
message += referencepath_fileData_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3400,7 +3400,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3400
3400
|
for (let i = 0; i < obj_generationErrors.length; i++) {
|
|
3401
3401
|
const obj_generationErrors_item = obj_generationErrors[i];
|
|
3402
3402
|
const path_generationErrors_item = path_generationErrors + '[' + i + ']';
|
|
3403
|
-
const referencepath_generationErrors_itemValidationError = validate$
|
|
3403
|
+
const referencepath_generationErrors_itemValidationError = validate$u(obj_generationErrors_item, path_generationErrors_item);
|
|
3404
3404
|
if (referencepath_generationErrors_itemValidationError !== null) {
|
|
3405
3405
|
let message = 'Object doesn\'t match EinsteinPromptTemplateGenerationsErrorRepresentation (at "' + path_generationErrors_item + '")\n';
|
|
3406
3406
|
message += referencepath_generationErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3416,7 +3416,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3416
3416
|
for (let i = 0; i < obj_generations.length; i++) {
|
|
3417
3417
|
const obj_generations_item = obj_generations[i];
|
|
3418
3418
|
const path_generations_item = path_generations + '[' + i + ']';
|
|
3419
|
-
const referencepath_generations_itemValidationError = validate$
|
|
3419
|
+
const referencepath_generations_itemValidationError = validate$D(obj_generations_item, path_generations_item);
|
|
3420
3420
|
if (referencepath_generations_itemValidationError !== null) {
|
|
3421
3421
|
let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
|
|
3422
3422
|
message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3443,7 +3443,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3443
3443
|
const path_parameters = path + '.parameters';
|
|
3444
3444
|
let obj_parameters_union0 = null;
|
|
3445
3445
|
const obj_parameters_union0_error = (() => {
|
|
3446
|
-
const referencepath_parametersValidationError = validate$
|
|
3446
|
+
const referencepath_parametersValidationError = validate$C(obj_parameters, path_parameters);
|
|
3447
3447
|
if (referencepath_parametersValidationError !== null) {
|
|
3448
3448
|
let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
|
|
3449
3449
|
message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3471,7 +3471,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3471
3471
|
if (obj.performance !== undefined) {
|
|
3472
3472
|
const obj_performance = obj.performance;
|
|
3473
3473
|
const path_performance = path + '.performance';
|
|
3474
|
-
const referencepath_performanceValidationError = validate$
|
|
3474
|
+
const referencepath_performanceValidationError = validate$p(obj_performance, path_performance);
|
|
3475
3475
|
if (referencepath_performanceValidationError !== null) {
|
|
3476
3476
|
let message = 'Object doesn\'t match EinsteinPromptTemplatePerformanceRepresentation (at "' + path_performance + '")\n';
|
|
3477
3477
|
message += referencepath_performanceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3549,7 +3549,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3549
3549
|
for (let i = 0; i < obj_requestMessages.length; i++) {
|
|
3550
3550
|
const obj_requestMessages_item = obj_requestMessages[i];
|
|
3551
3551
|
const path_requestMessages_item = path_requestMessages + '[' + i + ']';
|
|
3552
|
-
const referencepath_requestMessages_itemValidationError = validate$
|
|
3552
|
+
const referencepath_requestMessages_itemValidationError = validate$n(obj_requestMessages_item, path_requestMessages_item);
|
|
3553
3553
|
if (referencepath_requestMessages_itemValidationError !== null) {
|
|
3554
3554
|
let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_requestMessages_item + '")\n';
|
|
3555
3555
|
message += referencepath_requestMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3566,7 +3566,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3566
3566
|
for (let i = 0; i < obj_responseMessages.length; i++) {
|
|
3567
3567
|
const obj_responseMessages_item = obj_responseMessages[i];
|
|
3568
3568
|
const path_responseMessages_item = path_responseMessages + '[' + i + ']';
|
|
3569
|
-
const referencepath_responseMessages_itemValidationError = validate$
|
|
3569
|
+
const referencepath_responseMessages_itemValidationError = validate$n(obj_responseMessages_item, path_responseMessages_item);
|
|
3570
3570
|
if (referencepath_responseMessages_itemValidationError !== null) {
|
|
3571
3571
|
let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_responseMessages_item + '")\n';
|
|
3572
3572
|
message += referencepath_responseMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3583,7 +3583,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3583
3583
|
for (let i = 0; i < obj_slotsMaskingInformation.length; i++) {
|
|
3584
3584
|
const obj_slotsMaskingInformation_item = obj_slotsMaskingInformation[i];
|
|
3585
3585
|
const path_slotsMaskingInformation_item = path_slotsMaskingInformation + '[' + i + ']';
|
|
3586
|
-
const referencepath_slotsMaskingInformation_itemValidationError = validate$
|
|
3586
|
+
const referencepath_slotsMaskingInformation_itemValidationError = validate$m(obj_slotsMaskingInformation_item, path_slotsMaskingInformation_item);
|
|
3587
3587
|
if (referencepath_slotsMaskingInformation_itemValidationError !== null) {
|
|
3588
3588
|
let message = 'Object doesn\'t match EinsteinPromptTemplateMaskDataRepresentation (at "' + path_slotsMaskingInformation_item + '")\n';
|
|
3589
3589
|
message += referencepath_slotsMaskingInformation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3594,7 +3594,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3594
3594
|
if (obj.tokenUsage !== undefined) {
|
|
3595
3595
|
const obj_tokenUsage = obj.tokenUsage;
|
|
3596
3596
|
const path_tokenUsage = path + '.tokenUsage';
|
|
3597
|
-
const referencepath_tokenUsageValidationError = validate$
|
|
3597
|
+
const referencepath_tokenUsageValidationError = validate$j(obj_tokenUsage, path_tokenUsage);
|
|
3598
3598
|
if (referencepath_tokenUsageValidationError !== null) {
|
|
3599
3599
|
let message = 'Object doesn\'t match EinsteinPromptTemplateTokenUsageRepresentation (at "' + path_tokenUsage + '")\n';
|
|
3600
3600
|
message += referencepath_tokenUsageValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3604,32 +3604,32 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3604
3604
|
})();
|
|
3605
3605
|
return v_error === undefined ? null : v_error;
|
|
3606
3606
|
}
|
|
3607
|
-
const RepresentationType$
|
|
3608
|
-
function keyBuilder$
|
|
3609
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3607
|
+
const RepresentationType$a = 'EinsteinPromptTemplateGenerationsRepresentation';
|
|
3608
|
+
function keyBuilder$o(luvio, config) {
|
|
3609
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.requestId;
|
|
3610
3610
|
}
|
|
3611
3611
|
function keyBuilderFromType$2(luvio, object) {
|
|
3612
3612
|
const keyParams = {
|
|
3613
3613
|
requestId: object.requestId
|
|
3614
3614
|
};
|
|
3615
|
-
return keyBuilder$
|
|
3615
|
+
return keyBuilder$o(luvio, keyParams);
|
|
3616
3616
|
}
|
|
3617
|
-
function normalize$
|
|
3617
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
3618
3618
|
return input;
|
|
3619
3619
|
}
|
|
3620
|
-
const select$
|
|
3621
|
-
const { selections: EinsteinLlmGenerationCitationRepresentation__selections, opaque: EinsteinLlmGenerationCitationRepresentation__opaque, } = select$
|
|
3622
|
-
const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$
|
|
3623
|
-
const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$
|
|
3624
|
-
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$
|
|
3625
|
-
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$
|
|
3626
|
-
const { selections: EinsteinPromptTemplatePerformanceRepresentation__selections, opaque: EinsteinPromptTemplatePerformanceRepresentation__opaque, } = select$
|
|
3627
|
-
const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$
|
|
3628
|
-
const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$
|
|
3629
|
-
const { selections: EinsteinPromptTemplateTokenUsageRepresentation__selections, opaque: EinsteinPromptTemplateTokenUsageRepresentation__opaque, } = select$
|
|
3620
|
+
const select$v = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
|
|
3621
|
+
const { selections: EinsteinLlmGenerationCitationRepresentation__selections, opaque: EinsteinLlmGenerationCitationRepresentation__opaque, } = select$K();
|
|
3622
|
+
const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$I();
|
|
3623
|
+
const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$H();
|
|
3624
|
+
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$P();
|
|
3625
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$O();
|
|
3626
|
+
const { selections: EinsteinPromptTemplatePerformanceRepresentation__selections, opaque: EinsteinPromptTemplatePerformanceRepresentation__opaque, } = select$C();
|
|
3627
|
+
const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$A();
|
|
3628
|
+
const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$z();
|
|
3629
|
+
const { selections: EinsteinPromptTemplateTokenUsageRepresentation__selections, opaque: EinsteinPromptTemplateTokenUsageRepresentation__opaque, } = select$w();
|
|
3630
3630
|
return {
|
|
3631
3631
|
kind: 'Fragment',
|
|
3632
|
-
version: VERSION$
|
|
3632
|
+
version: VERSION$e,
|
|
3633
3633
|
private: [],
|
|
3634
3634
|
selections: [
|
|
3635
3635
|
{
|
|
@@ -3721,7 +3721,7 @@ const select$t = function EinsteinPromptTemplateGenerationsRepresentationSelect(
|
|
|
3721
3721
|
]
|
|
3722
3722
|
};
|
|
3723
3723
|
};
|
|
3724
|
-
function equals$
|
|
3724
|
+
function equals$e(existing, incoming) {
|
|
3725
3725
|
const existing_promptTemplateDevName = existing.promptTemplateDevName;
|
|
3726
3726
|
const incoming_promptTemplateDevName = incoming.promptTemplateDevName;
|
|
3727
3727
|
if (!(existing_promptTemplateDevName === incoming_promptTemplateDevName)) {
|
|
@@ -3741,7 +3741,7 @@ function equals$d(existing, incoming) {
|
|
|
3741
3741
|
if (existing_citations === undefined || incoming_citations === undefined) {
|
|
3742
3742
|
return false;
|
|
3743
3743
|
}
|
|
3744
|
-
if (!(equals$
|
|
3744
|
+
if (!(equals$t(existing_citations, incoming_citations))) {
|
|
3745
3745
|
return false;
|
|
3746
3746
|
}
|
|
3747
3747
|
}
|
|
@@ -3755,7 +3755,7 @@ function equals$d(existing, incoming) {
|
|
|
3755
3755
|
return false;
|
|
3756
3756
|
}
|
|
3757
3757
|
const equals_fileData_items = equalsArray(existing_fileData, incoming_fileData, (existing_fileData_item, incoming_fileData_item) => {
|
|
3758
|
-
if (!(equals$
|
|
3758
|
+
if (!(equals$r(existing_fileData_item, incoming_fileData_item))) {
|
|
3759
3759
|
return false;
|
|
3760
3760
|
}
|
|
3761
3761
|
});
|
|
@@ -3773,7 +3773,7 @@ function equals$d(existing, incoming) {
|
|
|
3773
3773
|
return false;
|
|
3774
3774
|
}
|
|
3775
3775
|
const equals_generationErrors_items = equalsArray(existing_generationErrors, incoming_generationErrors, (existing_generationErrors_item, incoming_generationErrors_item) => {
|
|
3776
|
-
if (!(equals$
|
|
3776
|
+
if (!(equals$q(existing_generationErrors_item, incoming_generationErrors_item))) {
|
|
3777
3777
|
return false;
|
|
3778
3778
|
}
|
|
3779
3779
|
});
|
|
@@ -3784,7 +3784,7 @@ function equals$d(existing, incoming) {
|
|
|
3784
3784
|
const existing_generations = existing.generations;
|
|
3785
3785
|
const incoming_generations = incoming.generations;
|
|
3786
3786
|
const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
|
|
3787
|
-
if (!(equals$
|
|
3787
|
+
if (!(equals$x(existing_generations_item, incoming_generations_item))) {
|
|
3788
3788
|
return false;
|
|
3789
3789
|
}
|
|
3790
3790
|
});
|
|
@@ -3814,7 +3814,7 @@ function equals$d(existing, incoming) {
|
|
|
3814
3814
|
if (!(existing_parameters === incoming_parameters
|
|
3815
3815
|
|| (existing_parameters != null &&
|
|
3816
3816
|
incoming_parameters != null &&
|
|
3817
|
-
equals$
|
|
3817
|
+
equals$w(existing_parameters, incoming_parameters)))) {
|
|
3818
3818
|
return false;
|
|
3819
3819
|
}
|
|
3820
3820
|
const existing_performance = existing.performance;
|
|
@@ -3826,7 +3826,7 @@ function equals$d(existing, incoming) {
|
|
|
3826
3826
|
if (existing_performance === undefined || incoming_performance === undefined) {
|
|
3827
3827
|
return false;
|
|
3828
3828
|
}
|
|
3829
|
-
if (!(equals$
|
|
3829
|
+
if (!(equals$l(existing_performance, incoming_performance))) {
|
|
3830
3830
|
return false;
|
|
3831
3831
|
}
|
|
3832
3832
|
}
|
|
@@ -3850,7 +3850,7 @@ function equals$d(existing, incoming) {
|
|
|
3850
3850
|
return false;
|
|
3851
3851
|
}
|
|
3852
3852
|
const equals_requestMessages_items = equalsArray(existing_requestMessages, incoming_requestMessages, (existing_requestMessages_item, incoming_requestMessages_item) => {
|
|
3853
|
-
if (!(equals$
|
|
3853
|
+
if (!(equals$j(existing_requestMessages_item, incoming_requestMessages_item))) {
|
|
3854
3854
|
return false;
|
|
3855
3855
|
}
|
|
3856
3856
|
});
|
|
@@ -3868,7 +3868,7 @@ function equals$d(existing, incoming) {
|
|
|
3868
3868
|
return false;
|
|
3869
3869
|
}
|
|
3870
3870
|
const equals_responseMessages_items = equalsArray(existing_responseMessages, incoming_responseMessages, (existing_responseMessages_item, incoming_responseMessages_item) => {
|
|
3871
|
-
if (!(equals$
|
|
3871
|
+
if (!(equals$j(existing_responseMessages_item, incoming_responseMessages_item))) {
|
|
3872
3872
|
return false;
|
|
3873
3873
|
}
|
|
3874
3874
|
});
|
|
@@ -3886,7 +3886,7 @@ function equals$d(existing, incoming) {
|
|
|
3886
3886
|
return false;
|
|
3887
3887
|
}
|
|
3888
3888
|
const equals_slotsMaskingInformation_items = equalsArray(existing_slotsMaskingInformation, incoming_slotsMaskingInformation, (existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item) => {
|
|
3889
|
-
if (!(equals$
|
|
3889
|
+
if (!(equals$i(existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item))) {
|
|
3890
3890
|
return false;
|
|
3891
3891
|
}
|
|
3892
3892
|
});
|
|
@@ -3903,47 +3903,47 @@ function equals$d(existing, incoming) {
|
|
|
3903
3903
|
if (existing_tokenUsage === undefined || incoming_tokenUsage === undefined) {
|
|
3904
3904
|
return false;
|
|
3905
3905
|
}
|
|
3906
|
-
if (!(equals$
|
|
3906
|
+
if (!(equals$f(existing_tokenUsage, incoming_tokenUsage))) {
|
|
3907
3907
|
return false;
|
|
3908
3908
|
}
|
|
3909
3909
|
}
|
|
3910
3910
|
return true;
|
|
3911
3911
|
}
|
|
3912
|
-
const ingest$
|
|
3912
|
+
const ingest$a = function EinsteinPromptTemplateGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3913
3913
|
if (process.env.NODE_ENV !== 'production') {
|
|
3914
|
-
const validateError = validate$
|
|
3914
|
+
const validateError = validate$i(input);
|
|
3915
3915
|
if (validateError !== null) {
|
|
3916
3916
|
throw validateError;
|
|
3917
3917
|
}
|
|
3918
3918
|
}
|
|
3919
3919
|
const key = keyBuilderFromType$2(luvio, input);
|
|
3920
|
-
const ttlToUse = TTL$
|
|
3921
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3920
|
+
const ttlToUse = TTL$a;
|
|
3921
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "EinsteinLLM", VERSION$e, RepresentationType$a, equals$e);
|
|
3922
3922
|
return createLink(key);
|
|
3923
3923
|
};
|
|
3924
|
-
function getTypeCacheKeys$
|
|
3924
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
3925
3925
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3926
3926
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
3927
3927
|
rootKeySet.set(rootKey, {
|
|
3928
3928
|
namespace: keyPrefix,
|
|
3929
|
-
representationName: RepresentationType$
|
|
3929
|
+
representationName: RepresentationType$a,
|
|
3930
3930
|
mergeable: false
|
|
3931
3931
|
});
|
|
3932
3932
|
}
|
|
3933
3933
|
|
|
3934
|
-
function select$
|
|
3935
|
-
return select$
|
|
3934
|
+
function select$u(luvio, params) {
|
|
3935
|
+
return select$v();
|
|
3936
3936
|
}
|
|
3937
|
-
function getResponseCacheKeys$
|
|
3938
|
-
getTypeCacheKeys$
|
|
3937
|
+
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
3938
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
3939
3939
|
}
|
|
3940
|
-
function ingestSuccess$
|
|
3940
|
+
function ingestSuccess$g(luvio, resourceParams, response) {
|
|
3941
3941
|
const { body } = response;
|
|
3942
3942
|
const key = keyBuilderFromType$2(luvio, body);
|
|
3943
|
-
luvio.storeIngest(key, ingest$
|
|
3943
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
3944
3944
|
const snapshot = luvio.storeLookup({
|
|
3945
3945
|
recordId: key,
|
|
3946
|
-
node: select$
|
|
3946
|
+
node: select$u(),
|
|
3947
3947
|
variables: {},
|
|
3948
3948
|
});
|
|
3949
3949
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3954,7 +3954,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
|
|
|
3954
3954
|
deepFreeze(snapshot.data);
|
|
3955
3955
|
return snapshot;
|
|
3956
3956
|
}
|
|
3957
|
-
function createResourceRequest$
|
|
3957
|
+
function createResourceRequest$g(config) {
|
|
3958
3958
|
const headers = {};
|
|
3959
3959
|
return {
|
|
3960
3960
|
baseUri: '/services/data/v67.0',
|
|
@@ -3968,48 +3968,48 @@ function createResourceRequest$f(config) {
|
|
|
3968
3968
|
};
|
|
3969
3969
|
}
|
|
3970
3970
|
|
|
3971
|
-
const adapterName$
|
|
3971
|
+
const adapterName$g = 'createGenerationsForPromptTemplate';
|
|
3972
3972
|
const createGenerationsForPromptTemplate_ConfigPropertyMetadata = [
|
|
3973
3973
|
generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3974
3974
|
generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3975
3975
|
generateParamConfigMetadata('promptTemplateGenerationsInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3976
3976
|
];
|
|
3977
|
-
const createGenerationsForPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3978
|
-
const createResourceParams$
|
|
3979
|
-
function typeCheckConfig$
|
|
3977
|
+
const createGenerationsForPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
|
|
3978
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$k(createGenerationsForPromptTemplate_ConfigPropertyMetadata);
|
|
3979
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
3980
3980
|
const config = {};
|
|
3981
|
-
typeCheckConfig$
|
|
3981
|
+
typeCheckConfig$k(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
|
|
3982
3982
|
const untrustedConfig_promptTemplateGenerationsInput = untrustedConfig.promptTemplateGenerationsInput;
|
|
3983
|
-
const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$
|
|
3983
|
+
const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$z(untrustedConfig_promptTemplateGenerationsInput);
|
|
3984
3984
|
if (referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError === null) {
|
|
3985
3985
|
config.promptTemplateGenerationsInput = untrustedConfig_promptTemplateGenerationsInput;
|
|
3986
3986
|
}
|
|
3987
3987
|
return config;
|
|
3988
3988
|
}
|
|
3989
|
-
function validateAdapterConfig$
|
|
3989
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
3990
3990
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3991
3991
|
return null;
|
|
3992
3992
|
}
|
|
3993
3993
|
if (process.env.NODE_ENV !== 'production') {
|
|
3994
3994
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3995
3995
|
}
|
|
3996
|
-
const config = typeCheckConfig$
|
|
3996
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
3997
3997
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3998
3998
|
return null;
|
|
3999
3999
|
}
|
|
4000
4000
|
return config;
|
|
4001
4001
|
}
|
|
4002
|
-
function buildNetworkSnapshot$
|
|
4003
|
-
const resourceParams = createResourceParams$
|
|
4004
|
-
const request = createResourceRequest$
|
|
4002
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
4003
|
+
const resourceParams = createResourceParams$g(config);
|
|
4004
|
+
const request = createResourceRequest$g(resourceParams);
|
|
4005
4005
|
return luvio.dispatchResourceRequest(request, options)
|
|
4006
4006
|
.then((response) => {
|
|
4007
4007
|
return luvio.handleSuccessResponse(() => {
|
|
4008
|
-
const snapshot = ingestSuccess$
|
|
4008
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response);
|
|
4009
4009
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4010
4010
|
}, () => {
|
|
4011
4011
|
const cache = new StoreKeyMap();
|
|
4012
|
-
getResponseCacheKeys$
|
|
4012
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
|
|
4013
4013
|
return cache;
|
|
4014
4014
|
});
|
|
4015
4015
|
}, (response) => {
|
|
@@ -4019,18 +4019,18 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
4019
4019
|
}
|
|
4020
4020
|
const createGenerationsForPromptTemplateAdapterFactory = (luvio) => {
|
|
4021
4021
|
return function createGenerationsForPromptTemplate(untrustedConfig) {
|
|
4022
|
-
const config = validateAdapterConfig$
|
|
4022
|
+
const config = validateAdapterConfig$g(untrustedConfig, createGenerationsForPromptTemplate_ConfigPropertyNames);
|
|
4023
4023
|
// Invalid or incomplete config
|
|
4024
4024
|
if (config === null) {
|
|
4025
4025
|
throw new Error('Invalid config for "createGenerationsForPromptTemplate"');
|
|
4026
4026
|
}
|
|
4027
|
-
return buildNetworkSnapshot$
|
|
4027
|
+
return buildNetworkSnapshot$g(luvio, config);
|
|
4028
4028
|
};
|
|
4029
4029
|
};
|
|
4030
4030
|
|
|
4031
|
-
const TTL$
|
|
4032
|
-
const VERSION$
|
|
4033
|
-
function validate$
|
|
4031
|
+
const TTL$9 = 100;
|
|
4032
|
+
const VERSION$d = "a90a51578e2fdd7a9741d310bed22b1d";
|
|
4033
|
+
function validate$h(obj, path = 'EinsteinPromptTemplateRepresentation') {
|
|
4034
4034
|
const v_error = (() => {
|
|
4035
4035
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4036
4036
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4038,7 +4038,7 @@ function validate$g(obj, path = 'EinsteinPromptTemplateRepresentation') {
|
|
|
4038
4038
|
if (obj.additionalData !== undefined) {
|
|
4039
4039
|
const obj_additionalData = obj.additionalData;
|
|
4040
4040
|
const path_additionalData = path + '.additionalData';
|
|
4041
|
-
const referencepath_additionalDataValidationError = validate$
|
|
4041
|
+
const referencepath_additionalDataValidationError = validate$C(obj_additionalData, path_additionalData);
|
|
4042
4042
|
if (referencepath_additionalDataValidationError !== null) {
|
|
4043
4043
|
let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
|
|
4044
4044
|
message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4106,24 +4106,24 @@ function validate$g(obj, path = 'EinsteinPromptTemplateRepresentation') {
|
|
|
4106
4106
|
})();
|
|
4107
4107
|
return v_error === undefined ? null : v_error;
|
|
4108
4108
|
}
|
|
4109
|
-
const RepresentationType$
|
|
4110
|
-
function keyBuilder$
|
|
4111
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4109
|
+
const RepresentationType$9 = 'EinsteinPromptTemplateRepresentation';
|
|
4110
|
+
function keyBuilder$n(luvio, config) {
|
|
4111
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.versionId;
|
|
4112
4112
|
}
|
|
4113
4113
|
function keyBuilderFromType$1(luvio, object) {
|
|
4114
4114
|
const keyParams = {
|
|
4115
4115
|
versionId: object.versionId
|
|
4116
4116
|
};
|
|
4117
|
-
return keyBuilder$
|
|
4117
|
+
return keyBuilder$n(luvio, keyParams);
|
|
4118
4118
|
}
|
|
4119
|
-
function normalize$
|
|
4119
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
4120
4120
|
return input;
|
|
4121
4121
|
}
|
|
4122
|
-
const select$
|
|
4123
|
-
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$
|
|
4122
|
+
const select$t = function EinsteinPromptTemplateRepresentationSelect() {
|
|
4123
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$O();
|
|
4124
4124
|
return {
|
|
4125
4125
|
kind: 'Fragment',
|
|
4126
|
-
version: VERSION$
|
|
4126
|
+
version: VERSION$d,
|
|
4127
4127
|
private: [],
|
|
4128
4128
|
selections: [
|
|
4129
4129
|
{
|
|
@@ -4171,7 +4171,7 @@ const select$r = function EinsteinPromptTemplateRepresentationSelect() {
|
|
|
4171
4171
|
]
|
|
4172
4172
|
};
|
|
4173
4173
|
};
|
|
4174
|
-
function equals$
|
|
4174
|
+
function equals$d(existing, incoming) {
|
|
4175
4175
|
const existing_hasWarning = existing.hasWarning;
|
|
4176
4176
|
const incoming_hasWarning = incoming.hasWarning;
|
|
4177
4177
|
if (!(existing_hasWarning === incoming_hasWarning)) {
|
|
@@ -4227,7 +4227,7 @@ function equals$c(existing, incoming) {
|
|
|
4227
4227
|
if (existing_additionalData === undefined || incoming_additionalData === undefined) {
|
|
4228
4228
|
return false;
|
|
4229
4229
|
}
|
|
4230
|
-
if (!(equals$
|
|
4230
|
+
if (!(equals$w(existing_additionalData, incoming_additionalData))) {
|
|
4231
4231
|
return false;
|
|
4232
4232
|
}
|
|
4233
4233
|
}
|
|
@@ -4253,41 +4253,41 @@ function equals$c(existing, incoming) {
|
|
|
4253
4253
|
}
|
|
4254
4254
|
return true;
|
|
4255
4255
|
}
|
|
4256
|
-
const ingest$
|
|
4256
|
+
const ingest$9 = function EinsteinPromptTemplateRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4257
4257
|
if (process.env.NODE_ENV !== 'production') {
|
|
4258
|
-
const validateError = validate$
|
|
4258
|
+
const validateError = validate$h(input);
|
|
4259
4259
|
if (validateError !== null) {
|
|
4260
4260
|
throw validateError;
|
|
4261
4261
|
}
|
|
4262
4262
|
}
|
|
4263
4263
|
const key = keyBuilderFromType$1(luvio, input);
|
|
4264
|
-
const ttlToUse = TTL$
|
|
4265
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4264
|
+
const ttlToUse = TTL$9;
|
|
4265
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "EinsteinLLM", VERSION$d, RepresentationType$9, equals$d);
|
|
4266
4266
|
return createLink(key);
|
|
4267
4267
|
};
|
|
4268
|
-
function getTypeCacheKeys$
|
|
4268
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
4269
4269
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4270
4270
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
4271
4271
|
rootKeySet.set(rootKey, {
|
|
4272
4272
|
namespace: keyPrefix,
|
|
4273
|
-
representationName: RepresentationType$
|
|
4273
|
+
representationName: RepresentationType$9,
|
|
4274
4274
|
mergeable: false
|
|
4275
4275
|
});
|
|
4276
4276
|
}
|
|
4277
4277
|
|
|
4278
|
-
function select$
|
|
4279
|
-
return select$
|
|
4278
|
+
function select$s(luvio, params) {
|
|
4279
|
+
return select$t();
|
|
4280
4280
|
}
|
|
4281
|
-
function getResponseCacheKeys$
|
|
4282
|
-
getTypeCacheKeys$
|
|
4281
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
4282
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
4283
4283
|
}
|
|
4284
|
-
function ingestSuccess$
|
|
4284
|
+
function ingestSuccess$f(luvio, resourceParams, response) {
|
|
4285
4285
|
const { body } = response;
|
|
4286
4286
|
const key = keyBuilderFromType$1(luvio, body);
|
|
4287
|
-
luvio.storeIngest(key, ingest$
|
|
4287
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
4288
4288
|
const snapshot = luvio.storeLookup({
|
|
4289
4289
|
recordId: key,
|
|
4290
|
-
node: select$
|
|
4290
|
+
node: select$s(),
|
|
4291
4291
|
variables: {},
|
|
4292
4292
|
});
|
|
4293
4293
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4298,7 +4298,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
|
|
|
4298
4298
|
deepFreeze(snapshot.data);
|
|
4299
4299
|
return snapshot;
|
|
4300
4300
|
}
|
|
4301
|
-
function createResourceRequest$
|
|
4301
|
+
function createResourceRequest$f(config) {
|
|
4302
4302
|
const headers = {};
|
|
4303
4303
|
return {
|
|
4304
4304
|
baseUri: '/services/data/v67.0',
|
|
@@ -4312,18 +4312,18 @@ function createResourceRequest$e(config) {
|
|
|
4312
4312
|
};
|
|
4313
4313
|
}
|
|
4314
4314
|
|
|
4315
|
-
const adapterName$
|
|
4315
|
+
const adapterName$f = 'createPromptTemplate';
|
|
4316
4316
|
const createPromptTemplate_ConfigPropertyMetadata = [
|
|
4317
4317
|
generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
|
|
4318
4318
|
generateParamConfigMetadata('childRelationships', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4319
4319
|
generateParamConfigMetadata('fields', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4320
4320
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
4321
4321
|
];
|
|
4322
|
-
const createPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4323
|
-
const createResourceParams$
|
|
4324
|
-
function typeCheckConfig$
|
|
4322
|
+
const createPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, createPromptTemplate_ConfigPropertyMetadata);
|
|
4323
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$k(createPromptTemplate_ConfigPropertyMetadata);
|
|
4324
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
4325
4325
|
const config = {};
|
|
4326
|
-
typeCheckConfig$
|
|
4326
|
+
typeCheckConfig$k(untrustedConfig, config, createPromptTemplate_ConfigPropertyMetadata);
|
|
4327
4327
|
const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
|
|
4328
4328
|
if (untrustedIsObject(untrustedConfig_childRelationships)) {
|
|
4329
4329
|
const untrustedConfig_childRelationships_object = {};
|
|
@@ -4356,30 +4356,30 @@ function typeCheckConfig$e(untrustedConfig) {
|
|
|
4356
4356
|
}
|
|
4357
4357
|
return config;
|
|
4358
4358
|
}
|
|
4359
|
-
function validateAdapterConfig$
|
|
4359
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
4360
4360
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4361
4361
|
return null;
|
|
4362
4362
|
}
|
|
4363
4363
|
if (process.env.NODE_ENV !== 'production') {
|
|
4364
4364
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4365
4365
|
}
|
|
4366
|
-
const config = typeCheckConfig$
|
|
4366
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
4367
4367
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4368
4368
|
return null;
|
|
4369
4369
|
}
|
|
4370
4370
|
return config;
|
|
4371
4371
|
}
|
|
4372
|
-
function buildNetworkSnapshot$
|
|
4373
|
-
const resourceParams = createResourceParams$
|
|
4374
|
-
const request = createResourceRequest$
|
|
4372
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
4373
|
+
const resourceParams = createResourceParams$f(config);
|
|
4374
|
+
const request = createResourceRequest$f(resourceParams);
|
|
4375
4375
|
return luvio.dispatchResourceRequest(request, options)
|
|
4376
4376
|
.then((response) => {
|
|
4377
4377
|
return luvio.handleSuccessResponse(() => {
|
|
4378
|
-
const snapshot = ingestSuccess$
|
|
4378
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response);
|
|
4379
4379
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4380
4380
|
}, () => {
|
|
4381
4381
|
const cache = new StoreKeyMap();
|
|
4382
|
-
getResponseCacheKeys$
|
|
4382
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
4383
4383
|
return cache;
|
|
4384
4384
|
});
|
|
4385
4385
|
}, (response) => {
|
|
@@ -4389,28 +4389,28 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
4389
4389
|
}
|
|
4390
4390
|
const createPromptTemplateAdapterFactory = (luvio) => {
|
|
4391
4391
|
return function createPromptTemplate(untrustedConfig) {
|
|
4392
|
-
const config = validateAdapterConfig$
|
|
4392
|
+
const config = validateAdapterConfig$f(untrustedConfig, createPromptTemplate_ConfigPropertyNames);
|
|
4393
4393
|
// Invalid or incomplete config
|
|
4394
4394
|
if (config === null) {
|
|
4395
4395
|
throw new Error('Invalid config for "createPromptTemplate"');
|
|
4396
4396
|
}
|
|
4397
|
-
return buildNetworkSnapshot$
|
|
4397
|
+
return buildNetworkSnapshot$f(luvio, config);
|
|
4398
4398
|
};
|
|
4399
4399
|
};
|
|
4400
4400
|
|
|
4401
|
-
function select$
|
|
4402
|
-
return select$
|
|
4401
|
+
function select$r(luvio, params) {
|
|
4402
|
+
return select$t();
|
|
4403
4403
|
}
|
|
4404
|
-
function getResponseCacheKeys$
|
|
4405
|
-
getTypeCacheKeys$
|
|
4404
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
4405
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
4406
4406
|
}
|
|
4407
|
-
function ingestSuccess$
|
|
4407
|
+
function ingestSuccess$e(luvio, resourceParams, response) {
|
|
4408
4408
|
const { body } = response;
|
|
4409
4409
|
const key = keyBuilderFromType$1(luvio, body);
|
|
4410
|
-
luvio.storeIngest(key, ingest$
|
|
4410
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
4411
4411
|
const snapshot = luvio.storeLookup({
|
|
4412
4412
|
recordId: key,
|
|
4413
|
-
node: select$
|
|
4413
|
+
node: select$r(),
|
|
4414
4414
|
variables: {},
|
|
4415
4415
|
});
|
|
4416
4416
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4421,7 +4421,7 @@ function ingestSuccess$d(luvio, resourceParams, response) {
|
|
|
4421
4421
|
deepFreeze(snapshot.data);
|
|
4422
4422
|
return snapshot;
|
|
4423
4423
|
}
|
|
4424
|
-
function createResourceRequest$
|
|
4424
|
+
function createResourceRequest$e(config) {
|
|
4425
4425
|
const headers = {};
|
|
4426
4426
|
return {
|
|
4427
4427
|
baseUri: '/services/data/v67.0',
|
|
@@ -4435,7 +4435,7 @@ function createResourceRequest$d(config) {
|
|
|
4435
4435
|
};
|
|
4436
4436
|
}
|
|
4437
4437
|
|
|
4438
|
-
const adapterName$
|
|
4438
|
+
const adapterName$e = 'createPromptTemplateVersion';
|
|
4439
4439
|
const createPromptTemplateVersion_ConfigPropertyMetadata = [
|
|
4440
4440
|
generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4441
4441
|
generateParamConfigMetadata('apiName', true, 2 /* Body */, 0 /* String */),
|
|
@@ -4443,11 +4443,11 @@ const createPromptTemplateVersion_ConfigPropertyMetadata = [
|
|
|
4443
4443
|
generateParamConfigMetadata('fields', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4444
4444
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
4445
4445
|
];
|
|
4446
|
-
const createPromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4447
|
-
const createResourceParams$
|
|
4448
|
-
function typeCheckConfig$
|
|
4446
|
+
const createPromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, createPromptTemplateVersion_ConfigPropertyMetadata);
|
|
4447
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$k(createPromptTemplateVersion_ConfigPropertyMetadata);
|
|
4448
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
4449
4449
|
const config = {};
|
|
4450
|
-
typeCheckConfig$
|
|
4450
|
+
typeCheckConfig$k(untrustedConfig, config, createPromptTemplateVersion_ConfigPropertyMetadata);
|
|
4451
4451
|
const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
|
|
4452
4452
|
if (untrustedIsObject(untrustedConfig_childRelationships)) {
|
|
4453
4453
|
const untrustedConfig_childRelationships_object = {};
|
|
@@ -4480,30 +4480,30 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
4480
4480
|
}
|
|
4481
4481
|
return config;
|
|
4482
4482
|
}
|
|
4483
|
-
function validateAdapterConfig$
|
|
4483
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
4484
4484
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4485
4485
|
return null;
|
|
4486
4486
|
}
|
|
4487
4487
|
if (process.env.NODE_ENV !== 'production') {
|
|
4488
4488
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4489
4489
|
}
|
|
4490
|
-
const config = typeCheckConfig$
|
|
4490
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
4491
4491
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4492
4492
|
return null;
|
|
4493
4493
|
}
|
|
4494
4494
|
return config;
|
|
4495
4495
|
}
|
|
4496
|
-
function buildNetworkSnapshot$
|
|
4497
|
-
const resourceParams = createResourceParams$
|
|
4498
|
-
const request = createResourceRequest$
|
|
4496
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
4497
|
+
const resourceParams = createResourceParams$e(config);
|
|
4498
|
+
const request = createResourceRequest$e(resourceParams);
|
|
4499
4499
|
return luvio.dispatchResourceRequest(request, options)
|
|
4500
4500
|
.then((response) => {
|
|
4501
4501
|
return luvio.handleSuccessResponse(() => {
|
|
4502
|
-
const snapshot = ingestSuccess$
|
|
4502
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response);
|
|
4503
4503
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4504
4504
|
}, () => {
|
|
4505
4505
|
const cache = new StoreKeyMap();
|
|
4506
|
-
getResponseCacheKeys$
|
|
4506
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
4507
4507
|
return cache;
|
|
4508
4508
|
});
|
|
4509
4509
|
}, (response) => {
|
|
@@ -4513,16 +4513,16 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
4513
4513
|
}
|
|
4514
4514
|
const createPromptTemplateVersionAdapterFactory = (luvio) => {
|
|
4515
4515
|
return function createPromptTemplateVersion(untrustedConfig) {
|
|
4516
|
-
const config = validateAdapterConfig$
|
|
4516
|
+
const config = validateAdapterConfig$e(untrustedConfig, createPromptTemplateVersion_ConfigPropertyNames);
|
|
4517
4517
|
// Invalid or incomplete config
|
|
4518
4518
|
if (config === null) {
|
|
4519
4519
|
throw new Error('Invalid config for "createPromptTemplateVersion"');
|
|
4520
4520
|
}
|
|
4521
|
-
return buildNetworkSnapshot$
|
|
4521
|
+
return buildNetworkSnapshot$e(luvio, config);
|
|
4522
4522
|
};
|
|
4523
4523
|
};
|
|
4524
4524
|
|
|
4525
|
-
function validate$
|
|
4525
|
+
function validate$g(obj, path = 'PromptTemplateDataProviderOutputParamRepresentation') {
|
|
4526
4526
|
const v_error = (() => {
|
|
4527
4527
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4528
4528
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4548,7 +4548,7 @@ function validate$f(obj, path = 'PromptTemplateDataProviderOutputParamRepresenta
|
|
|
4548
4548
|
return v_error === undefined ? null : v_error;
|
|
4549
4549
|
}
|
|
4550
4550
|
|
|
4551
|
-
function validate$
|
|
4551
|
+
function validate$f(obj, path = 'PromptTemplateDataProviderInputParamRepresentation') {
|
|
4552
4552
|
const v_error = (() => {
|
|
4553
4553
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4554
4554
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4577,9 +4577,9 @@ function validate$e(obj, path = 'PromptTemplateDataProviderInputParamRepresentat
|
|
|
4577
4577
|
return v_error === undefined ? null : v_error;
|
|
4578
4578
|
}
|
|
4579
4579
|
|
|
4580
|
-
const TTL$
|
|
4581
|
-
const VERSION$
|
|
4582
|
-
function validate$
|
|
4580
|
+
const TTL$8 = 300;
|
|
4581
|
+
const VERSION$c = "d4824d8c6e7848df0de89295e6d9d434";
|
|
4582
|
+
function validate$e(obj, path = 'PromptTemplateDataProviderInstanceConfigRepresentation') {
|
|
4583
4583
|
const v_error = (() => {
|
|
4584
4584
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4585
4585
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4608,7 +4608,7 @@ function validate$d(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
|
|
|
4608
4608
|
if (obj.defaultOutputParam !== undefined) {
|
|
4609
4609
|
const obj_defaultOutputParam = obj.defaultOutputParam;
|
|
4610
4610
|
const path_defaultOutputParam = path + '.defaultOutputParam';
|
|
4611
|
-
const referencepath_defaultOutputParamValidationError = validate$
|
|
4611
|
+
const referencepath_defaultOutputParamValidationError = validate$g(obj_defaultOutputParam, path_defaultOutputParam);
|
|
4612
4612
|
if (referencepath_defaultOutputParamValidationError !== null) {
|
|
4613
4613
|
let message = 'Object doesn\'t match PromptTemplateDataProviderOutputParamRepresentation (at "' + path_defaultOutputParam + '")\n';
|
|
4614
4614
|
message += referencepath_defaultOutputParamValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4662,7 +4662,7 @@ function validate$d(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
|
|
|
4662
4662
|
for (let i = 0; i < obj_inputParams.length; i++) {
|
|
4663
4663
|
const obj_inputParams_item = obj_inputParams[i];
|
|
4664
4664
|
const path_inputParams_item = path_inputParams + '[' + i + ']';
|
|
4665
|
-
const referencepath_inputParams_itemValidationError = validate$
|
|
4665
|
+
const referencepath_inputParams_itemValidationError = validate$f(obj_inputParams_item, path_inputParams_item);
|
|
4666
4666
|
if (referencepath_inputParams_itemValidationError !== null) {
|
|
4667
4667
|
let message = 'Object doesn\'t match PromptTemplateDataProviderInputParamRepresentation (at "' + path_inputParams_item + '")\n';
|
|
4668
4668
|
message += referencepath_inputParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4728,7 +4728,7 @@ function validate$d(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
|
|
|
4728
4728
|
for (let i = 0; i < obj_outputParams.length; i++) {
|
|
4729
4729
|
const obj_outputParams_item = obj_outputParams[i];
|
|
4730
4730
|
const path_outputParams_item = path_outputParams + '[' + i + ']';
|
|
4731
|
-
const referencepath_outputParams_itemValidationError = validate$
|
|
4731
|
+
const referencepath_outputParams_itemValidationError = validate$g(obj_outputParams_item, path_outputParams_item);
|
|
4732
4732
|
if (referencepath_outputParams_itemValidationError !== null) {
|
|
4733
4733
|
let message = 'Object doesn\'t match PromptTemplateDataProviderOutputParamRepresentation (at "' + path_outputParams_item + '")\n';
|
|
4734
4734
|
message += referencepath_outputParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4800,62 +4800,62 @@ function validate$d(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
|
|
|
4800
4800
|
})();
|
|
4801
4801
|
return v_error === undefined ? null : v_error;
|
|
4802
4802
|
}
|
|
4803
|
-
const RepresentationType$
|
|
4804
|
-
function normalize$
|
|
4803
|
+
const RepresentationType$8 = 'PromptTemplateDataProviderInstanceConfigRepresentation';
|
|
4804
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
4805
4805
|
return input;
|
|
4806
4806
|
}
|
|
4807
|
-
const select$
|
|
4807
|
+
const select$q = function PromptTemplateDataProviderInstanceConfigRepresentationSelect() {
|
|
4808
4808
|
return {
|
|
4809
4809
|
kind: 'Fragment',
|
|
4810
|
-
version: VERSION$
|
|
4810
|
+
version: VERSION$c,
|
|
4811
4811
|
private: [],
|
|
4812
4812
|
opaque: true
|
|
4813
4813
|
};
|
|
4814
4814
|
};
|
|
4815
|
-
function equals$
|
|
4815
|
+
function equals$c(existing, incoming) {
|
|
4816
4816
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4817
4817
|
return false;
|
|
4818
4818
|
}
|
|
4819
4819
|
return true;
|
|
4820
4820
|
}
|
|
4821
|
-
const ingest$
|
|
4821
|
+
const ingest$8 = function PromptTemplateDataProviderInstanceConfigRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4822
4822
|
if (process.env.NODE_ENV !== 'production') {
|
|
4823
|
-
const validateError = validate$
|
|
4823
|
+
const validateError = validate$e(input);
|
|
4824
4824
|
if (validateError !== null) {
|
|
4825
4825
|
throw validateError;
|
|
4826
4826
|
}
|
|
4827
4827
|
}
|
|
4828
4828
|
const key = path.fullPath;
|
|
4829
|
-
const ttlToUse = TTL$
|
|
4830
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4829
|
+
const ttlToUse = TTL$8;
|
|
4830
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "EinsteinLLM", VERSION$c, RepresentationType$8, equals$c);
|
|
4831
4831
|
return createLink(key);
|
|
4832
4832
|
};
|
|
4833
|
-
function getTypeCacheKeys$
|
|
4833
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
4834
4834
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4835
4835
|
const rootKey = fullPathFactory();
|
|
4836
4836
|
rootKeySet.set(rootKey, {
|
|
4837
4837
|
namespace: keyPrefix,
|
|
4838
|
-
representationName: RepresentationType$
|
|
4838
|
+
representationName: RepresentationType$8,
|
|
4839
4839
|
mergeable: false
|
|
4840
4840
|
});
|
|
4841
4841
|
}
|
|
4842
4842
|
|
|
4843
|
-
function select$
|
|
4844
|
-
return select$
|
|
4843
|
+
function select$p(luvio, params) {
|
|
4844
|
+
return select$q();
|
|
4845
4845
|
}
|
|
4846
|
-
function keyBuilder$
|
|
4846
|
+
function keyBuilder$m(luvio, params) {
|
|
4847
4847
|
return keyPrefix + '::PromptTemplateDataProviderInstanceConfigRepresentation:(' + stableJSONStringify(params.body.additionalParam) + '::' + 'definition:' + params.body.definition + '::' + 'groupName:' + params.body.groupName + ')';
|
|
4848
4848
|
}
|
|
4849
|
-
function getResponseCacheKeys$
|
|
4850
|
-
getTypeCacheKeys$
|
|
4849
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
4850
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$m(luvio, resourceParams));
|
|
4851
4851
|
}
|
|
4852
|
-
function ingestSuccess$
|
|
4852
|
+
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
4853
4853
|
const { body } = response;
|
|
4854
|
-
const key = keyBuilder$
|
|
4855
|
-
luvio.storeIngest(key, ingest$
|
|
4854
|
+
const key = keyBuilder$m(luvio, resourceParams);
|
|
4855
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
4856
4856
|
const snapshot = luvio.storeLookup({
|
|
4857
4857
|
recordId: key,
|
|
4858
|
-
node: select$
|
|
4858
|
+
node: select$p(),
|
|
4859
4859
|
variables: {},
|
|
4860
4860
|
}, snapshotRefresh);
|
|
4861
4861
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4866,19 +4866,19 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4866
4866
|
deepFreeze(snapshot.data);
|
|
4867
4867
|
return snapshot;
|
|
4868
4868
|
}
|
|
4869
|
-
function ingestError$
|
|
4870
|
-
const key = keyBuilder$
|
|
4869
|
+
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
4870
|
+
const key = keyBuilder$m(luvio, params);
|
|
4871
4871
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4872
4872
|
const storeMetadataParams = {
|
|
4873
|
-
ttl: TTL$
|
|
4873
|
+
ttl: TTL$8,
|
|
4874
4874
|
namespace: keyPrefix,
|
|
4875
|
-
version: VERSION$
|
|
4876
|
-
representationName: RepresentationType$
|
|
4875
|
+
version: VERSION$c,
|
|
4876
|
+
representationName: RepresentationType$8
|
|
4877
4877
|
};
|
|
4878
4878
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4879
4879
|
return errorSnapshot;
|
|
4880
4880
|
}
|
|
4881
|
-
function createResourceRequest$
|
|
4881
|
+
function createResourceRequest$d(config) {
|
|
4882
4882
|
const headers = {};
|
|
4883
4883
|
return {
|
|
4884
4884
|
baseUri: '/services/data/v67.0',
|
|
@@ -4892,21 +4892,21 @@ function createResourceRequest$c(config) {
|
|
|
4892
4892
|
};
|
|
4893
4893
|
}
|
|
4894
4894
|
|
|
4895
|
-
const adapterName$
|
|
4895
|
+
const adapterName$d = 'getDataProviderInstanceConfig';
|
|
4896
4896
|
const getDataProviderInstanceConfig_ConfigPropertyMetadata = [
|
|
4897
4897
|
generateParamConfigMetadata('additionalParam', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4898
4898
|
generateParamConfigMetadata('definition', true, 2 /* Body */, 0 /* String */),
|
|
4899
4899
|
generateParamConfigMetadata('groupName', true, 2 /* Body */, 0 /* String */),
|
|
4900
4900
|
];
|
|
4901
|
-
const getDataProviderInstanceConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4902
|
-
const createResourceParams$
|
|
4903
|
-
function keyBuilder$
|
|
4904
|
-
const resourceParams = createResourceParams$
|
|
4905
|
-
return keyBuilder$
|
|
4901
|
+
const getDataProviderInstanceConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getDataProviderInstanceConfig_ConfigPropertyMetadata);
|
|
4902
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$k(getDataProviderInstanceConfig_ConfigPropertyMetadata);
|
|
4903
|
+
function keyBuilder$l(luvio, config) {
|
|
4904
|
+
const resourceParams = createResourceParams$d(config);
|
|
4905
|
+
return keyBuilder$m(luvio, resourceParams);
|
|
4906
4906
|
}
|
|
4907
|
-
function typeCheckConfig$
|
|
4907
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
4908
4908
|
const config = {};
|
|
4909
|
-
typeCheckConfig$
|
|
4909
|
+
typeCheckConfig$k(untrustedConfig, config, getDataProviderInstanceConfig_ConfigPropertyMetadata);
|
|
4910
4910
|
const untrustedConfig_additionalParam = untrustedConfig.additionalParam;
|
|
4911
4911
|
if (untrustedIsObject(untrustedConfig_additionalParam)) {
|
|
4912
4912
|
const untrustedConfig_additionalParam_object = {};
|
|
@@ -4924,78 +4924,78 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
4924
4924
|
}
|
|
4925
4925
|
return config;
|
|
4926
4926
|
}
|
|
4927
|
-
function validateAdapterConfig$
|
|
4927
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
4928
4928
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4929
4929
|
return null;
|
|
4930
4930
|
}
|
|
4931
4931
|
if (process.env.NODE_ENV !== 'production') {
|
|
4932
4932
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4933
4933
|
}
|
|
4934
|
-
const config = typeCheckConfig$
|
|
4934
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
4935
4935
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4936
4936
|
return null;
|
|
4937
4937
|
}
|
|
4938
4938
|
return config;
|
|
4939
4939
|
}
|
|
4940
|
-
function adapterFragment$
|
|
4941
|
-
createResourceParams$
|
|
4942
|
-
return select$
|
|
4940
|
+
function adapterFragment$a(luvio, config) {
|
|
4941
|
+
createResourceParams$d(config);
|
|
4942
|
+
return select$p();
|
|
4943
4943
|
}
|
|
4944
|
-
function onFetchResponseSuccess$
|
|
4945
|
-
const snapshot = ingestSuccess$
|
|
4944
|
+
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
4945
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
4946
4946
|
config,
|
|
4947
|
-
resolve: () => buildNetworkSnapshot$
|
|
4947
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
4948
4948
|
});
|
|
4949
4949
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4950
4950
|
}
|
|
4951
|
-
function onFetchResponseError$
|
|
4952
|
-
const snapshot = ingestError$
|
|
4951
|
+
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
4952
|
+
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
4953
4953
|
config,
|
|
4954
|
-
resolve: () => buildNetworkSnapshot$
|
|
4954
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
4955
4955
|
});
|
|
4956
4956
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4957
4957
|
}
|
|
4958
|
-
function buildNetworkSnapshot$
|
|
4959
|
-
const resourceParams = createResourceParams$
|
|
4960
|
-
const request = createResourceRequest$
|
|
4958
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
4959
|
+
const resourceParams = createResourceParams$d(config);
|
|
4960
|
+
const request = createResourceRequest$d(resourceParams);
|
|
4961
4961
|
return luvio.dispatchResourceRequest(request, options)
|
|
4962
4962
|
.then((response) => {
|
|
4963
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4963
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
4964
4964
|
const cache = new StoreKeyMap();
|
|
4965
|
-
getResponseCacheKeys$
|
|
4965
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
4966
4966
|
return cache;
|
|
4967
4967
|
});
|
|
4968
4968
|
}, (response) => {
|
|
4969
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4969
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
|
|
4970
4970
|
});
|
|
4971
4971
|
}
|
|
4972
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4973
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4972
|
+
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
4973
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, 'get', false);
|
|
4974
4974
|
}
|
|
4975
|
-
function buildCachedSnapshotCachePolicy$
|
|
4975
|
+
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
4976
4976
|
const { luvio, config } = context;
|
|
4977
4977
|
const selector = {
|
|
4978
|
-
recordId: keyBuilder$
|
|
4979
|
-
node: adapterFragment$
|
|
4978
|
+
recordId: keyBuilder$l(luvio, config),
|
|
4979
|
+
node: adapterFragment$a(luvio, config),
|
|
4980
4980
|
variables: {},
|
|
4981
4981
|
};
|
|
4982
4982
|
const cacheSnapshot = storeLookup(selector, {
|
|
4983
4983
|
config,
|
|
4984
|
-
resolve: () => buildNetworkSnapshot$
|
|
4984
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
4985
4985
|
});
|
|
4986
4986
|
return cacheSnapshot;
|
|
4987
4987
|
}
|
|
4988
4988
|
const getDataProviderInstanceConfigAdapterFactory = (luvio) => function EinsteinLLM__getDataProviderInstanceConfig(untrustedConfig, requestContext) {
|
|
4989
|
-
const config = validateAdapterConfig$
|
|
4989
|
+
const config = validateAdapterConfig$d(untrustedConfig, getDataProviderInstanceConfig_ConfigPropertyNames);
|
|
4990
4990
|
// Invalid or incomplete config
|
|
4991
4991
|
if (config === null) {
|
|
4992
4992
|
return null;
|
|
4993
4993
|
}
|
|
4994
4994
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4995
|
-
buildCachedSnapshotCachePolicy$
|
|
4995
|
+
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
4996
4996
|
};
|
|
4997
4997
|
|
|
4998
|
-
function validate$
|
|
4998
|
+
function validate$d(obj, path = 'PromptTemplateDataProviderTypeConfigRepresentation') {
|
|
4999
4999
|
const v_error = (() => {
|
|
5000
5000
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5001
5001
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5045,9 +5045,9 @@ function validate$c(obj, path = 'PromptTemplateDataProviderTypeConfigRepresentat
|
|
|
5045
5045
|
return v_error === undefined ? null : v_error;
|
|
5046
5046
|
}
|
|
5047
5047
|
|
|
5048
|
-
const TTL$
|
|
5049
|
-
const VERSION$
|
|
5050
|
-
function validate$
|
|
5048
|
+
const TTL$7 = 300;
|
|
5049
|
+
const VERSION$b = "212332dac1decc071b476742df3440fb";
|
|
5050
|
+
function validate$c(obj, path = 'PromptTemplateDataProviderTypeConfigCollectionRepresentation') {
|
|
5051
5051
|
const v_error = (() => {
|
|
5052
5052
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5053
5053
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5060,7 +5060,7 @@ function validate$b(obj, path = 'PromptTemplateDataProviderTypeConfigCollectionR
|
|
|
5060
5060
|
for (let i = 0; i < obj_dataProviderTypeConfigs.length; i++) {
|
|
5061
5061
|
const obj_dataProviderTypeConfigs_item = obj_dataProviderTypeConfigs[i];
|
|
5062
5062
|
const path_dataProviderTypeConfigs_item = path_dataProviderTypeConfigs + '[' + i + ']';
|
|
5063
|
-
const referencepath_dataProviderTypeConfigs_itemValidationError = validate$
|
|
5063
|
+
const referencepath_dataProviderTypeConfigs_itemValidationError = validate$d(obj_dataProviderTypeConfigs_item, path_dataProviderTypeConfigs_item);
|
|
5064
5064
|
if (referencepath_dataProviderTypeConfigs_itemValidationError !== null) {
|
|
5065
5065
|
let message = 'Object doesn\'t match PromptTemplateDataProviderTypeConfigRepresentation (at "' + path_dataProviderTypeConfigs_item + '")\n';
|
|
5066
5066
|
message += referencepath_dataProviderTypeConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5070,11 +5070,214 @@ function validate$b(obj, path = 'PromptTemplateDataProviderTypeConfigCollectionR
|
|
|
5070
5070
|
})();
|
|
5071
5071
|
return v_error === undefined ? null : v_error;
|
|
5072
5072
|
}
|
|
5073
|
-
const RepresentationType$
|
|
5073
|
+
const RepresentationType$7 = 'PromptTemplateDataProviderTypeConfigCollectionRepresentation';
|
|
5074
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
5075
|
+
return input;
|
|
5076
|
+
}
|
|
5077
|
+
const select$o = function PromptTemplateDataProviderTypeConfigCollectionRepresentationSelect() {
|
|
5078
|
+
return {
|
|
5079
|
+
kind: 'Fragment',
|
|
5080
|
+
version: VERSION$b,
|
|
5081
|
+
private: [],
|
|
5082
|
+
opaque: true
|
|
5083
|
+
};
|
|
5084
|
+
};
|
|
5085
|
+
function equals$b(existing, incoming) {
|
|
5086
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5087
|
+
return false;
|
|
5088
|
+
}
|
|
5089
|
+
return true;
|
|
5090
|
+
}
|
|
5091
|
+
const ingest$7 = function PromptTemplateDataProviderTypeConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5092
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5093
|
+
const validateError = validate$c(input);
|
|
5094
|
+
if (validateError !== null) {
|
|
5095
|
+
throw validateError;
|
|
5096
|
+
}
|
|
5097
|
+
}
|
|
5098
|
+
const key = path.fullPath;
|
|
5099
|
+
const ttlToUse = TTL$7;
|
|
5100
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "EinsteinLLM", VERSION$b, RepresentationType$7, equals$b);
|
|
5101
|
+
return createLink(key);
|
|
5102
|
+
};
|
|
5103
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
5104
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5105
|
+
const rootKey = fullPathFactory();
|
|
5106
|
+
rootKeySet.set(rootKey, {
|
|
5107
|
+
namespace: keyPrefix,
|
|
5108
|
+
representationName: RepresentationType$7,
|
|
5109
|
+
mergeable: false
|
|
5110
|
+
});
|
|
5111
|
+
}
|
|
5112
|
+
|
|
5113
|
+
function select$n(luvio, params) {
|
|
5114
|
+
return select$o();
|
|
5115
|
+
}
|
|
5116
|
+
function keyBuilder$k(luvio, params) {
|
|
5117
|
+
return keyPrefix + '::PromptTemplateDataProviderTypeConfigCollectionRepresentation:(' + 'templateType:' + params.urlParams.templateType + ')';
|
|
5118
|
+
}
|
|
5119
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
5120
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$k(luvio, resourceParams));
|
|
5121
|
+
}
|
|
5122
|
+
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
5123
|
+
const { body } = response;
|
|
5124
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
5125
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
5126
|
+
const snapshot = luvio.storeLookup({
|
|
5127
|
+
recordId: key,
|
|
5128
|
+
node: select$n(),
|
|
5129
|
+
variables: {},
|
|
5130
|
+
}, snapshotRefresh);
|
|
5131
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5132
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
5133
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
5134
|
+
}
|
|
5135
|
+
}
|
|
5136
|
+
deepFreeze(snapshot.data);
|
|
5137
|
+
return snapshot;
|
|
5138
|
+
}
|
|
5139
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
5140
|
+
const key = keyBuilder$k(luvio, params);
|
|
5141
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5142
|
+
const storeMetadataParams = {
|
|
5143
|
+
ttl: TTL$7,
|
|
5144
|
+
namespace: keyPrefix,
|
|
5145
|
+
version: VERSION$b,
|
|
5146
|
+
representationName: RepresentationType$7
|
|
5147
|
+
};
|
|
5148
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5149
|
+
return errorSnapshot;
|
|
5150
|
+
}
|
|
5151
|
+
function createResourceRequest$c(config) {
|
|
5152
|
+
const headers = {};
|
|
5153
|
+
return {
|
|
5154
|
+
baseUri: '/services/data/v67.0',
|
|
5155
|
+
basePath: '/einstein/prompt-templates/data-provider-types/' + config.urlParams.templateType + '',
|
|
5156
|
+
method: 'get',
|
|
5157
|
+
body: null,
|
|
5158
|
+
urlParams: config.urlParams,
|
|
5159
|
+
queryParams: {},
|
|
5160
|
+
headers,
|
|
5161
|
+
priority: 'normal',
|
|
5162
|
+
};
|
|
5163
|
+
}
|
|
5164
|
+
|
|
5165
|
+
const adapterName$c = 'getDataProviderTypeConfigs';
|
|
5166
|
+
const getDataProviderTypeConfigs_ConfigPropertyMetadata = [
|
|
5167
|
+
generateParamConfigMetadata('templateType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5168
|
+
];
|
|
5169
|
+
const getDataProviderTypeConfigs_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getDataProviderTypeConfigs_ConfigPropertyMetadata);
|
|
5170
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$k(getDataProviderTypeConfigs_ConfigPropertyMetadata);
|
|
5171
|
+
function keyBuilder$j(luvio, config) {
|
|
5172
|
+
const resourceParams = createResourceParams$c(config);
|
|
5173
|
+
return keyBuilder$k(luvio, resourceParams);
|
|
5174
|
+
}
|
|
5175
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
5176
|
+
const config = {};
|
|
5177
|
+
typeCheckConfig$k(untrustedConfig, config, getDataProviderTypeConfigs_ConfigPropertyMetadata);
|
|
5178
|
+
return config;
|
|
5179
|
+
}
|
|
5180
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
5181
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
5182
|
+
return null;
|
|
5183
|
+
}
|
|
5184
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5185
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
5186
|
+
}
|
|
5187
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
5188
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5189
|
+
return null;
|
|
5190
|
+
}
|
|
5191
|
+
return config;
|
|
5192
|
+
}
|
|
5193
|
+
function adapterFragment$9(luvio, config) {
|
|
5194
|
+
createResourceParams$c(config);
|
|
5195
|
+
return select$n();
|
|
5196
|
+
}
|
|
5197
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
5198
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
5199
|
+
config,
|
|
5200
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
5201
|
+
});
|
|
5202
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5203
|
+
}
|
|
5204
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
5205
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
5206
|
+
config,
|
|
5207
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
5208
|
+
});
|
|
5209
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5210
|
+
}
|
|
5211
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
5212
|
+
const resourceParams = createResourceParams$c(config);
|
|
5213
|
+
const request = createResourceRequest$c(resourceParams);
|
|
5214
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
5215
|
+
.then((response) => {
|
|
5216
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
5217
|
+
const cache = new StoreKeyMap();
|
|
5218
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
5219
|
+
return cache;
|
|
5220
|
+
});
|
|
5221
|
+
}, (response) => {
|
|
5222
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
5223
|
+
});
|
|
5224
|
+
}
|
|
5225
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
5226
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
5227
|
+
}
|
|
5228
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
5229
|
+
const { luvio, config } = context;
|
|
5230
|
+
const selector = {
|
|
5231
|
+
recordId: keyBuilder$j(luvio, config),
|
|
5232
|
+
node: adapterFragment$9(luvio, config),
|
|
5233
|
+
variables: {},
|
|
5234
|
+
};
|
|
5235
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
5236
|
+
config,
|
|
5237
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
5238
|
+
});
|
|
5239
|
+
return cacheSnapshot;
|
|
5240
|
+
}
|
|
5241
|
+
const getDataProviderTypeConfigsAdapterFactory = (luvio) => function EinsteinLLM__getDataProviderTypeConfigs(untrustedConfig, requestContext) {
|
|
5242
|
+
const config = validateAdapterConfig$c(untrustedConfig, getDataProviderTypeConfigs_ConfigPropertyNames);
|
|
5243
|
+
// Invalid or incomplete config
|
|
5244
|
+
if (config === null) {
|
|
5245
|
+
return null;
|
|
5246
|
+
}
|
|
5247
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5248
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
5249
|
+
};
|
|
5250
|
+
|
|
5251
|
+
const TTL$6 = 300;
|
|
5252
|
+
const VERSION$a = "3a6ecdfe18eb2af8f8f6aaa1a30b194c";
|
|
5253
|
+
function validate$b(obj, path = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation') {
|
|
5254
|
+
const v_error = (() => {
|
|
5255
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5256
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5257
|
+
}
|
|
5258
|
+
const obj_dataProviderInstanceConfigs = obj.dataProviderInstanceConfigs;
|
|
5259
|
+
const path_dataProviderInstanceConfigs = path + '.dataProviderInstanceConfigs';
|
|
5260
|
+
if (!ArrayIsArray(obj_dataProviderInstanceConfigs)) {
|
|
5261
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dataProviderInstanceConfigs + '" (at "' + path_dataProviderInstanceConfigs + '")');
|
|
5262
|
+
}
|
|
5263
|
+
for (let i = 0; i < obj_dataProviderInstanceConfigs.length; i++) {
|
|
5264
|
+
const obj_dataProviderInstanceConfigs_item = obj_dataProviderInstanceConfigs[i];
|
|
5265
|
+
const path_dataProviderInstanceConfigs_item = path_dataProviderInstanceConfigs + '[' + i + ']';
|
|
5266
|
+
const referencepath_dataProviderInstanceConfigs_itemValidationError = validate$e(obj_dataProviderInstanceConfigs_item, path_dataProviderInstanceConfigs_item);
|
|
5267
|
+
if (referencepath_dataProviderInstanceConfigs_itemValidationError !== null) {
|
|
5268
|
+
let message = 'Object doesn\'t match PromptTemplateDataProviderInstanceConfigRepresentation (at "' + path_dataProviderInstanceConfigs_item + '")\n';
|
|
5269
|
+
message += referencepath_dataProviderInstanceConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5270
|
+
return new TypeError(message);
|
|
5271
|
+
}
|
|
5272
|
+
}
|
|
5273
|
+
})();
|
|
5274
|
+
return v_error === undefined ? null : v_error;
|
|
5275
|
+
}
|
|
5276
|
+
const RepresentationType$6 = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation';
|
|
5074
5277
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
5075
5278
|
return input;
|
|
5076
5279
|
}
|
|
5077
|
-
const select$m = function
|
|
5280
|
+
const select$m = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationSelect() {
|
|
5078
5281
|
return {
|
|
5079
5282
|
kind: 'Fragment',
|
|
5080
5283
|
version: VERSION$a,
|
|
@@ -5088,7 +5291,7 @@ function equals$a(existing, incoming) {
|
|
|
5088
5291
|
}
|
|
5089
5292
|
return true;
|
|
5090
5293
|
}
|
|
5091
|
-
const ingest$6 = function
|
|
5294
|
+
const ingest$6 = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5092
5295
|
if (process.env.NODE_ENV !== 'production') {
|
|
5093
5296
|
const validateError = validate$b(input);
|
|
5094
5297
|
if (validateError !== null) {
|
|
@@ -5114,7 +5317,7 @@ function select$l(luvio, params) {
|
|
|
5114
5317
|
return select$m();
|
|
5115
5318
|
}
|
|
5116
5319
|
function keyBuilder$i(luvio, params) {
|
|
5117
|
-
return keyPrefix + '::
|
|
5320
|
+
return keyPrefix + '::PromptTemplateDataProviderInstanceConfigCollectionRepresentation:(' + 'groupNames:' + params.queryParams.groupNames + ',' + 'targets:' + params.queryParams.targets + ',' + 'templateType:' + params.urlParams.templateType + ')';
|
|
5118
5321
|
}
|
|
5119
5322
|
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
5120
5323
|
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$i(luvio, resourceParams));
|
|
@@ -5152,29 +5355,31 @@ function createResourceRequest$b(config) {
|
|
|
5152
5355
|
const headers = {};
|
|
5153
5356
|
return {
|
|
5154
5357
|
baseUri: '/services/data/v67.0',
|
|
5155
|
-
basePath: '/einstein/prompt-templates/data-
|
|
5358
|
+
basePath: '/einstein/prompt-templates/data-providers/' + config.urlParams.templateType + '',
|
|
5156
5359
|
method: 'get',
|
|
5157
5360
|
body: null,
|
|
5158
5361
|
urlParams: config.urlParams,
|
|
5159
|
-
queryParams:
|
|
5362
|
+
queryParams: config.queryParams,
|
|
5160
5363
|
headers,
|
|
5161
5364
|
priority: 'normal',
|
|
5162
5365
|
};
|
|
5163
5366
|
}
|
|
5164
5367
|
|
|
5165
|
-
const adapterName$b = '
|
|
5166
|
-
const
|
|
5368
|
+
const adapterName$b = 'getDataProviders';
|
|
5369
|
+
const getDataProviders_ConfigPropertyMetadata = [
|
|
5167
5370
|
generateParamConfigMetadata('templateType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5371
|
+
generateParamConfigMetadata('groupNames', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
5372
|
+
generateParamConfigMetadata('targets', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
5168
5373
|
];
|
|
5169
|
-
const
|
|
5170
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
5374
|
+
const getDataProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getDataProviders_ConfigPropertyMetadata);
|
|
5375
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$k(getDataProviders_ConfigPropertyMetadata);
|
|
5171
5376
|
function keyBuilder$h(luvio, config) {
|
|
5172
5377
|
const resourceParams = createResourceParams$b(config);
|
|
5173
5378
|
return keyBuilder$i(luvio, resourceParams);
|
|
5174
5379
|
}
|
|
5175
5380
|
function typeCheckConfig$b(untrustedConfig) {
|
|
5176
5381
|
const config = {};
|
|
5177
|
-
typeCheckConfig$
|
|
5382
|
+
typeCheckConfig$k(untrustedConfig, config, getDataProviders_ConfigPropertyMetadata);
|
|
5178
5383
|
return config;
|
|
5179
5384
|
}
|
|
5180
5385
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -5223,7 +5428,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
5223
5428
|
});
|
|
5224
5429
|
}
|
|
5225
5430
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
5226
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5431
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
5227
5432
|
}
|
|
5228
5433
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
5229
5434
|
const { luvio, config } = context;
|
|
@@ -5238,8 +5443,8 @@ function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
|
5238
5443
|
});
|
|
5239
5444
|
return cacheSnapshot;
|
|
5240
5445
|
}
|
|
5241
|
-
const
|
|
5242
|
-
const config = validateAdapterConfig$b(untrustedConfig,
|
|
5446
|
+
const getDataProvidersAdapterFactory = (luvio) => function EinsteinLLM__getDataProviders(untrustedConfig, requestContext) {
|
|
5447
|
+
const config = validateAdapterConfig$b(untrustedConfig, getDataProviders_ConfigPropertyNames);
|
|
5243
5448
|
// Invalid or incomplete config
|
|
5244
5449
|
if (config === null) {
|
|
5245
5450
|
return null;
|
|
@@ -5248,36 +5453,84 @@ const getDataProviderTypeConfigsAdapterFactory = (luvio) => function EinsteinLLM
|
|
|
5248
5453
|
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
5249
5454
|
};
|
|
5250
5455
|
|
|
5251
|
-
const TTL$5 =
|
|
5252
|
-
const VERSION$9 = "
|
|
5253
|
-
function validate$a(obj, path = '
|
|
5456
|
+
const TTL$5 = 100;
|
|
5457
|
+
const VERSION$9 = "fb53643f64759f6cff6a161f34c670fb";
|
|
5458
|
+
function validate$a(obj, path = 'EinsteinPromptTemplateReferencesRepresentation') {
|
|
5254
5459
|
const v_error = (() => {
|
|
5255
5460
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5256
5461
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5257
5462
|
}
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
const path_dataProviderInstanceConfigs_item = path_dataProviderInstanceConfigs + '[' + i + ']';
|
|
5266
|
-
const referencepath_dataProviderInstanceConfigs_itemValidationError = validate$d(obj_dataProviderInstanceConfigs_item, path_dataProviderInstanceConfigs_item);
|
|
5267
|
-
if (referencepath_dataProviderInstanceConfigs_itemValidationError !== null) {
|
|
5268
|
-
let message = 'Object doesn\'t match PromptTemplateDataProviderInstanceConfigRepresentation (at "' + path_dataProviderInstanceConfigs_item + '")\n';
|
|
5269
|
-
message += referencepath_dataProviderInstanceConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5463
|
+
if (obj.additionalData !== undefined) {
|
|
5464
|
+
const obj_additionalData = obj.additionalData;
|
|
5465
|
+
const path_additionalData = path + '.additionalData';
|
|
5466
|
+
const referencepath_additionalDataValidationError = validate$C(obj_additionalData, path_additionalData);
|
|
5467
|
+
if (referencepath_additionalDataValidationError !== null) {
|
|
5468
|
+
let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
|
|
5469
|
+
message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5270
5470
|
return new TypeError(message);
|
|
5271
5471
|
}
|
|
5272
5472
|
}
|
|
5473
|
+
const obj_errorMessages = obj.errorMessages;
|
|
5474
|
+
const path_errorMessages = path + '.errorMessages';
|
|
5475
|
+
if (!ArrayIsArray(obj_errorMessages)) {
|
|
5476
|
+
return new TypeError('Expected "array" but received "' + typeof obj_errorMessages + '" (at "' + path_errorMessages + '")');
|
|
5477
|
+
}
|
|
5478
|
+
for (let i = 0; i < obj_errorMessages.length; i++) {
|
|
5479
|
+
const obj_errorMessages_item = obj_errorMessages[i];
|
|
5480
|
+
const path_errorMessages_item = path_errorMessages + '[' + i + ']';
|
|
5481
|
+
if (typeof obj_errorMessages_item !== 'string') {
|
|
5482
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorMessages_item + '" (at "' + path_errorMessages_item + '")');
|
|
5483
|
+
}
|
|
5484
|
+
}
|
|
5485
|
+
const obj_hasWarning = obj.hasWarning;
|
|
5486
|
+
const path_hasWarning = path + '.hasWarning';
|
|
5487
|
+
if (typeof obj_hasWarning !== 'boolean') {
|
|
5488
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_hasWarning + '" (at "' + path_hasWarning + '")');
|
|
5489
|
+
}
|
|
5490
|
+
const obj_isSuccessful = obj.isSuccessful;
|
|
5491
|
+
const path_isSuccessful = path + '.isSuccessful';
|
|
5492
|
+
if (typeof obj_isSuccessful !== 'boolean') {
|
|
5493
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccessful + '" (at "' + path_isSuccessful + '")');
|
|
5494
|
+
}
|
|
5495
|
+
if (obj.statusCode !== undefined) {
|
|
5496
|
+
const obj_statusCode = obj.statusCode;
|
|
5497
|
+
const path_statusCode = path + '.statusCode';
|
|
5498
|
+
if (typeof obj_statusCode !== 'string') {
|
|
5499
|
+
return new TypeError('Expected "string" but received "' + typeof obj_statusCode + '" (at "' + path_statusCode + '")');
|
|
5500
|
+
}
|
|
5501
|
+
}
|
|
5502
|
+
const obj_templateId = obj.templateId;
|
|
5503
|
+
const path_templateId = path + '.templateId';
|
|
5504
|
+
if (typeof obj_templateId !== 'string') {
|
|
5505
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateId + '" (at "' + path_templateId + '")');
|
|
5506
|
+
}
|
|
5507
|
+
if (obj.templateType !== undefined) {
|
|
5508
|
+
const obj_templateType = obj.templateType;
|
|
5509
|
+
const path_templateType = path + '.templateType';
|
|
5510
|
+
if (typeof obj_templateType !== 'string') {
|
|
5511
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateType + '" (at "' + path_templateType + '")');
|
|
5512
|
+
}
|
|
5513
|
+
}
|
|
5514
|
+
const obj_warningMessages = obj.warningMessages;
|
|
5515
|
+
const path_warningMessages = path + '.warningMessages';
|
|
5516
|
+
if (!ArrayIsArray(obj_warningMessages)) {
|
|
5517
|
+
return new TypeError('Expected "array" but received "' + typeof obj_warningMessages + '" (at "' + path_warningMessages + '")');
|
|
5518
|
+
}
|
|
5519
|
+
for (let i = 0; i < obj_warningMessages.length; i++) {
|
|
5520
|
+
const obj_warningMessages_item = obj_warningMessages[i];
|
|
5521
|
+
const path_warningMessages_item = path_warningMessages + '[' + i + ']';
|
|
5522
|
+
if (typeof obj_warningMessages_item !== 'string') {
|
|
5523
|
+
return new TypeError('Expected "string" but received "' + typeof obj_warningMessages_item + '" (at "' + path_warningMessages_item + '")');
|
|
5524
|
+
}
|
|
5525
|
+
}
|
|
5273
5526
|
})();
|
|
5274
5527
|
return v_error === undefined ? null : v_error;
|
|
5275
5528
|
}
|
|
5276
|
-
const RepresentationType$5 = '
|
|
5529
|
+
const RepresentationType$5 = 'EinsteinPromptTemplateReferencesRepresentation';
|
|
5277
5530
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
5278
5531
|
return input;
|
|
5279
5532
|
}
|
|
5280
|
-
const select$k = function
|
|
5533
|
+
const select$k = function EinsteinPromptTemplateReferencesRepresentationSelect() {
|
|
5281
5534
|
return {
|
|
5282
5535
|
kind: 'Fragment',
|
|
5283
5536
|
version: VERSION$9,
|
|
@@ -5291,7 +5544,7 @@ function equals$9(existing, incoming) {
|
|
|
5291
5544
|
}
|
|
5292
5545
|
return true;
|
|
5293
5546
|
}
|
|
5294
|
-
const ingest$5 = function
|
|
5547
|
+
const ingest$5 = function EinsteinPromptTemplateReferencesRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5295
5548
|
if (process.env.NODE_ENV !== 'production') {
|
|
5296
5549
|
const validateError = validate$a(input);
|
|
5297
5550
|
if (validateError !== null) {
|
|
@@ -5317,7 +5570,7 @@ function select$j(luvio, params) {
|
|
|
5317
5570
|
return select$k();
|
|
5318
5571
|
}
|
|
5319
5572
|
function keyBuilder$g(luvio, params) {
|
|
5320
|
-
return keyPrefix + '::
|
|
5573
|
+
return keyPrefix + '::EinsteinPromptTemplateReferencesRepresentation:(' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
|
|
5321
5574
|
}
|
|
5322
5575
|
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
5323
5576
|
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
|
|
@@ -5355,31 +5608,29 @@ function createResourceRequest$a(config) {
|
|
|
5355
5608
|
const headers = {};
|
|
5356
5609
|
return {
|
|
5357
5610
|
baseUri: '/services/data/v67.0',
|
|
5358
|
-
basePath: '/einstein/prompt-templates/
|
|
5611
|
+
basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '/references',
|
|
5359
5612
|
method: 'get',
|
|
5360
5613
|
body: null,
|
|
5361
5614
|
urlParams: config.urlParams,
|
|
5362
|
-
queryParams:
|
|
5615
|
+
queryParams: {},
|
|
5363
5616
|
headers,
|
|
5364
5617
|
priority: 'normal',
|
|
5365
5618
|
};
|
|
5366
5619
|
}
|
|
5367
5620
|
|
|
5368
|
-
const adapterName$a = '
|
|
5369
|
-
const
|
|
5370
|
-
generateParamConfigMetadata('
|
|
5371
|
-
generateParamConfigMetadata('groupNames', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
5372
|
-
generateParamConfigMetadata('targets', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
5621
|
+
const adapterName$a = 'getEinsteinPromptTemplateReferences';
|
|
5622
|
+
const getEinsteinPromptTemplateReferences_ConfigPropertyMetadata = [
|
|
5623
|
+
generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5373
5624
|
];
|
|
5374
|
-
const
|
|
5375
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
5625
|
+
const getEinsteinPromptTemplateReferences_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getEinsteinPromptTemplateReferences_ConfigPropertyMetadata);
|
|
5626
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$k(getEinsteinPromptTemplateReferences_ConfigPropertyMetadata);
|
|
5376
5627
|
function keyBuilder$f(luvio, config) {
|
|
5377
5628
|
const resourceParams = createResourceParams$a(config);
|
|
5378
5629
|
return keyBuilder$g(luvio, resourceParams);
|
|
5379
5630
|
}
|
|
5380
5631
|
function typeCheckConfig$a(untrustedConfig) {
|
|
5381
5632
|
const config = {};
|
|
5382
|
-
typeCheckConfig$
|
|
5633
|
+
typeCheckConfig$k(untrustedConfig, config, getEinsteinPromptTemplateReferences_ConfigPropertyMetadata);
|
|
5383
5634
|
return config;
|
|
5384
5635
|
}
|
|
5385
5636
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -5428,7 +5679,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
5428
5679
|
});
|
|
5429
5680
|
}
|
|
5430
5681
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
5431
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5682
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
5432
5683
|
}
|
|
5433
5684
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
5434
5685
|
const { luvio, config } = context;
|
|
@@ -5443,8 +5694,8 @@ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
|
5443
5694
|
});
|
|
5444
5695
|
return cacheSnapshot;
|
|
5445
5696
|
}
|
|
5446
|
-
const
|
|
5447
|
-
const config = validateAdapterConfig$a(untrustedConfig,
|
|
5697
|
+
const getEinsteinPromptTemplateReferencesAdapterFactory = (luvio) => function EinsteinLLM__getEinsteinPromptTemplateReferences(untrustedConfig, requestContext) {
|
|
5698
|
+
const config = validateAdapterConfig$a(untrustedConfig, getEinsteinPromptTemplateReferences_ConfigPropertyNames);
|
|
5448
5699
|
// Invalid or incomplete config
|
|
5449
5700
|
if (config === null) {
|
|
5450
5701
|
return null;
|
|
@@ -5454,18 +5705,18 @@ const getDataProvidersAdapterFactory = (luvio) => function EinsteinLLM__getDataP
|
|
|
5454
5705
|
};
|
|
5455
5706
|
|
|
5456
5707
|
function select$i(luvio, params) {
|
|
5457
|
-
return select$
|
|
5708
|
+
return select$m();
|
|
5458
5709
|
}
|
|
5459
5710
|
function keyBuilder$e(luvio, params) {
|
|
5460
5711
|
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 + ')';
|
|
5461
5712
|
}
|
|
5462
5713
|
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
5463
|
-
getTypeCacheKeys$
|
|
5714
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$e(luvio, resourceParams));
|
|
5464
5715
|
}
|
|
5465
5716
|
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
5466
5717
|
const { body } = response;
|
|
5467
5718
|
const key = keyBuilder$e(luvio, resourceParams);
|
|
5468
|
-
luvio.storeIngest(key, ingest$
|
|
5719
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
5469
5720
|
const snapshot = luvio.storeLookup({
|
|
5470
5721
|
recordId: key,
|
|
5471
5722
|
node: select$i(),
|
|
@@ -5483,10 +5734,10 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
|
5483
5734
|
const key = keyBuilder$e(luvio, params);
|
|
5484
5735
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5485
5736
|
const storeMetadataParams = {
|
|
5486
|
-
ttl: TTL$
|
|
5737
|
+
ttl: TTL$6,
|
|
5487
5738
|
namespace: keyPrefix,
|
|
5488
|
-
version: VERSION$
|
|
5489
|
-
representationName: RepresentationType$
|
|
5739
|
+
version: VERSION$a,
|
|
5740
|
+
representationName: RepresentationType$6
|
|
5490
5741
|
};
|
|
5491
5742
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5492
5743
|
return errorSnapshot;
|
|
@@ -5513,14 +5764,14 @@ const getInputMappedDataProviders_ConfigPropertyMetadata = [
|
|
|
5513
5764
|
generateParamConfigMetadata('templateTypeName', true, 2 /* Body */, 0 /* String */),
|
|
5514
5765
|
];
|
|
5515
5766
|
const getInputMappedDataProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getInputMappedDataProviders_ConfigPropertyMetadata);
|
|
5516
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
5767
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$k(getInputMappedDataProviders_ConfigPropertyMetadata);
|
|
5517
5768
|
function keyBuilder$d(luvio, config) {
|
|
5518
5769
|
const resourceParams = createResourceParams$9(config);
|
|
5519
5770
|
return keyBuilder$e(luvio, resourceParams);
|
|
5520
5771
|
}
|
|
5521
5772
|
function typeCheckConfig$9(untrustedConfig) {
|
|
5522
5773
|
const config = {};
|
|
5523
|
-
typeCheckConfig$
|
|
5774
|
+
typeCheckConfig$k(untrustedConfig, config, getInputMappedDataProviders_ConfigPropertyMetadata);
|
|
5524
5775
|
const untrustedConfig_templateInputs = untrustedConfig.templateInputs;
|
|
5525
5776
|
if (ArrayIsArray$1(untrustedConfig_templateInputs)) {
|
|
5526
5777
|
const untrustedConfig_templateInputs_array = [];
|
|
@@ -5578,7 +5829,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
5578
5829
|
});
|
|
5579
5830
|
}
|
|
5580
5831
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
5581
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5832
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, 'get', false);
|
|
5582
5833
|
}
|
|
5583
5834
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
5584
5835
|
const { luvio, config } = context;
|
|
@@ -5916,14 +6167,14 @@ const getOutputLanguages_ConfigPropertyMetadata = [
|
|
|
5916
6167
|
generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5917
6168
|
];
|
|
5918
6169
|
const getOutputLanguages_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getOutputLanguages_ConfigPropertyMetadata);
|
|
5919
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
6170
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$k(getOutputLanguages_ConfigPropertyMetadata);
|
|
5920
6171
|
function keyBuilder$b(luvio, config) {
|
|
5921
6172
|
const resourceParams = createResourceParams$8(config);
|
|
5922
6173
|
return keyBuilder$c(luvio, resourceParams);
|
|
5923
6174
|
}
|
|
5924
6175
|
function typeCheckConfig$8(untrustedConfig) {
|
|
5925
6176
|
const config = {};
|
|
5926
|
-
typeCheckConfig$
|
|
6177
|
+
typeCheckConfig$k(untrustedConfig, config, getOutputLanguages_ConfigPropertyMetadata);
|
|
5927
6178
|
return config;
|
|
5928
6179
|
}
|
|
5929
6180
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -5972,7 +6223,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
5972
6223
|
});
|
|
5973
6224
|
}
|
|
5974
6225
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
5975
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6226
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
5976
6227
|
}
|
|
5977
6228
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
5978
6229
|
const { luvio, config } = context;
|
|
@@ -6241,14 +6492,14 @@ const getPromptTemplate_ConfigPropertyMetadata = [
|
|
|
6241
6492
|
generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6242
6493
|
];
|
|
6243
6494
|
const getPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getPromptTemplate_ConfigPropertyMetadata);
|
|
6244
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
6495
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$k(getPromptTemplate_ConfigPropertyMetadata);
|
|
6245
6496
|
function keyBuilder$9(luvio, config) {
|
|
6246
6497
|
const resourceParams = createResourceParams$7(config);
|
|
6247
6498
|
return keyBuilder$a(luvio, resourceParams);
|
|
6248
6499
|
}
|
|
6249
6500
|
function typeCheckConfig$7(untrustedConfig) {
|
|
6250
6501
|
const config = {};
|
|
6251
|
-
typeCheckConfig$
|
|
6502
|
+
typeCheckConfig$k(untrustedConfig, config, getPromptTemplate_ConfigPropertyMetadata);
|
|
6252
6503
|
return config;
|
|
6253
6504
|
}
|
|
6254
6505
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -6297,7 +6548,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
6297
6548
|
});
|
|
6298
6549
|
}
|
|
6299
6550
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
6300
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6551
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
6301
6552
|
}
|
|
6302
6553
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
6303
6554
|
const { luvio, config } = context;
|
|
@@ -6382,14 +6633,14 @@ const getPromptTemplateVersion_ConfigPropertyMetadata = [
|
|
|
6382
6633
|
generateParamConfigMetadata('includingVersionDetail', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
6383
6634
|
];
|
|
6384
6635
|
const getPromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getPromptTemplateVersion_ConfigPropertyMetadata);
|
|
6385
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
6636
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$k(getPromptTemplateVersion_ConfigPropertyMetadata);
|
|
6386
6637
|
function keyBuilder$7(luvio, config) {
|
|
6387
6638
|
const resourceParams = createResourceParams$6(config);
|
|
6388
6639
|
return keyBuilder$8(luvio, resourceParams);
|
|
6389
6640
|
}
|
|
6390
6641
|
function typeCheckConfig$6(untrustedConfig) {
|
|
6391
6642
|
const config = {};
|
|
6392
|
-
typeCheckConfig$
|
|
6643
|
+
typeCheckConfig$k(untrustedConfig, config, getPromptTemplateVersion_ConfigPropertyMetadata);
|
|
6393
6644
|
return config;
|
|
6394
6645
|
}
|
|
6395
6646
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -6438,7 +6689,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
6438
6689
|
});
|
|
6439
6690
|
}
|
|
6440
6691
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
6441
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6692
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
6442
6693
|
}
|
|
6443
6694
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
6444
6695
|
const { luvio, config } = context;
|
|
@@ -6522,14 +6773,14 @@ const getPromptTemplateVersions_ConfigPropertyMetadata = [
|
|
|
6522
6773
|
generateParamConfigMetadata('includingVersionDetail', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
6523
6774
|
];
|
|
6524
6775
|
const getPromptTemplateVersions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getPromptTemplateVersions_ConfigPropertyMetadata);
|
|
6525
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
6776
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$k(getPromptTemplateVersions_ConfigPropertyMetadata);
|
|
6526
6777
|
function keyBuilder$5(luvio, config) {
|
|
6527
6778
|
const resourceParams = createResourceParams$5(config);
|
|
6528
6779
|
return keyBuilder$6(luvio, resourceParams);
|
|
6529
6780
|
}
|
|
6530
6781
|
function typeCheckConfig$5(untrustedConfig) {
|
|
6531
6782
|
const config = {};
|
|
6532
|
-
typeCheckConfig$
|
|
6783
|
+
typeCheckConfig$k(untrustedConfig, config, getPromptTemplateVersions_ConfigPropertyMetadata);
|
|
6533
6784
|
return config;
|
|
6534
6785
|
}
|
|
6535
6786
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -6578,7 +6829,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
6578
6829
|
});
|
|
6579
6830
|
}
|
|
6580
6831
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
6581
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6832
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
6582
6833
|
}
|
|
6583
6834
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
6584
6835
|
const { luvio, config } = context;
|
|
@@ -6744,14 +6995,14 @@ const getPromptTemplates_ConfigPropertyMetadata = [
|
|
|
6744
6995
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6745
6996
|
];
|
|
6746
6997
|
const getPromptTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getPromptTemplates_ConfigPropertyMetadata);
|
|
6747
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
6998
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$k(getPromptTemplates_ConfigPropertyMetadata);
|
|
6748
6999
|
function keyBuilder$3(luvio, config) {
|
|
6749
7000
|
const resourceParams = createResourceParams$4(config);
|
|
6750
7001
|
return keyBuilder$4(luvio, resourceParams);
|
|
6751
7002
|
}
|
|
6752
7003
|
function typeCheckConfig$4(untrustedConfig) {
|
|
6753
7004
|
const config = {};
|
|
6754
|
-
typeCheckConfig$
|
|
7005
|
+
typeCheckConfig$k(untrustedConfig, config, getPromptTemplates_ConfigPropertyMetadata);
|
|
6755
7006
|
return config;
|
|
6756
7007
|
}
|
|
6757
7008
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -6800,7 +7051,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
6800
7051
|
});
|
|
6801
7052
|
}
|
|
6802
7053
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
6803
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7054
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
6804
7055
|
}
|
|
6805
7056
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
6806
7057
|
const { luvio, config } = context;
|
|
@@ -7194,14 +7445,14 @@ const getTemplateType_ConfigPropertyMetadata = [
|
|
|
7194
7445
|
generateParamConfigMetadata('templateTypeName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7195
7446
|
];
|
|
7196
7447
|
const getTemplateType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getTemplateType_ConfigPropertyMetadata);
|
|
7197
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
7448
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$k(getTemplateType_ConfigPropertyMetadata);
|
|
7198
7449
|
function keyBuilder$1(luvio, config) {
|
|
7199
7450
|
const resourceParams = createResourceParams$3(config);
|
|
7200
7451
|
return keyBuilder$2(luvio, resourceParams);
|
|
7201
7452
|
}
|
|
7202
7453
|
function typeCheckConfig$3(untrustedConfig) {
|
|
7203
7454
|
const config = {};
|
|
7204
|
-
typeCheckConfig$
|
|
7455
|
+
typeCheckConfig$k(untrustedConfig, config, getTemplateType_ConfigPropertyMetadata);
|
|
7205
7456
|
return config;
|
|
7206
7457
|
}
|
|
7207
7458
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -7250,7 +7501,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
7250
7501
|
});
|
|
7251
7502
|
}
|
|
7252
7503
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
7253
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7504
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
7254
7505
|
}
|
|
7255
7506
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
7256
7507
|
const { luvio, config } = context;
|
|
@@ -7285,7 +7536,7 @@ function validate(obj, path = 'EinsteinPromptTemplateStatusRepresentation') {
|
|
|
7285
7536
|
if (obj.additionalData !== undefined) {
|
|
7286
7537
|
const obj_additionalData = obj.additionalData;
|
|
7287
7538
|
const path_additionalData = path + '.additionalData';
|
|
7288
|
-
const referencepath_additionalDataValidationError = validate$
|
|
7539
|
+
const referencepath_additionalDataValidationError = validate$C(obj_additionalData, path_additionalData);
|
|
7289
7540
|
if (referencepath_additionalDataValidationError !== null) {
|
|
7290
7541
|
let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
|
|
7291
7542
|
message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7362,7 +7613,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
7362
7613
|
return input;
|
|
7363
7614
|
}
|
|
7364
7615
|
const select$3 = function EinsteinPromptTemplateStatusRepresentationSelect() {
|
|
7365
|
-
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$
|
|
7616
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$O();
|
|
7366
7617
|
return {
|
|
7367
7618
|
kind: 'Fragment',
|
|
7368
7619
|
version: VERSION,
|
|
@@ -7460,7 +7711,7 @@ function equals(existing, incoming) {
|
|
|
7460
7711
|
if (existing_additionalData === undefined || incoming_additionalData === undefined) {
|
|
7461
7712
|
return false;
|
|
7462
7713
|
}
|
|
7463
|
-
if (!(equals$
|
|
7714
|
+
if (!(equals$w(existing_additionalData, incoming_additionalData))) {
|
|
7464
7715
|
return false;
|
|
7465
7716
|
}
|
|
7466
7717
|
}
|
|
@@ -7551,10 +7802,10 @@ const putEinsteinPromptTemplateStatus_ConfigPropertyMetadata = [
|
|
|
7551
7802
|
generateParamConfigMetadata('action', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7552
7803
|
];
|
|
7553
7804
|
const putEinsteinPromptTemplateStatus_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, putEinsteinPromptTemplateStatus_ConfigPropertyMetadata);
|
|
7554
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
7805
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$k(putEinsteinPromptTemplateStatus_ConfigPropertyMetadata);
|
|
7555
7806
|
function typeCheckConfig$2(untrustedConfig) {
|
|
7556
7807
|
const config = {};
|
|
7557
|
-
typeCheckConfig$
|
|
7808
|
+
typeCheckConfig$k(untrustedConfig, config, putEinsteinPromptTemplateStatus_ConfigPropertyMetadata);
|
|
7558
7809
|
return config;
|
|
7559
7810
|
}
|
|
7560
7811
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -7600,15 +7851,15 @@ const putEinsteinPromptTemplateStatusAdapterFactory = (luvio) => {
|
|
|
7600
7851
|
};
|
|
7601
7852
|
|
|
7602
7853
|
function select$1(luvio, params) {
|
|
7603
|
-
return select$
|
|
7854
|
+
return select$t();
|
|
7604
7855
|
}
|
|
7605
7856
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
7606
|
-
getTypeCacheKeys$
|
|
7857
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
7607
7858
|
}
|
|
7608
7859
|
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
7609
7860
|
const { body } = response;
|
|
7610
7861
|
const key = keyBuilderFromType$1(luvio, body);
|
|
7611
|
-
luvio.storeIngest(key, ingest$
|
|
7862
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
7612
7863
|
const snapshot = luvio.storeLookup({
|
|
7613
7864
|
recordId: key,
|
|
7614
7865
|
node: select$1(),
|
|
@@ -7644,10 +7895,10 @@ const putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata = [
|
|
|
7644
7895
|
generateParamConfigMetadata('ignoreWarnings', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
7645
7896
|
];
|
|
7646
7897
|
const putEinsteinPromptTemplateVersionStatus_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
|
|
7647
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
7898
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$k(putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
|
|
7648
7899
|
function typeCheckConfig$1(untrustedConfig) {
|
|
7649
7900
|
const config = {};
|
|
7650
|
-
typeCheckConfig$
|
|
7901
|
+
typeCheckConfig$k(untrustedConfig, config, putEinsteinPromptTemplateVersionStatus_ConfigPropertyMetadata);
|
|
7651
7902
|
return config;
|
|
7652
7903
|
}
|
|
7653
7904
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -7693,15 +7944,15 @@ const putEinsteinPromptTemplateVersionStatusAdapterFactory = (luvio) => {
|
|
|
7693
7944
|
};
|
|
7694
7945
|
|
|
7695
7946
|
function select(luvio, params) {
|
|
7696
|
-
return select$
|
|
7947
|
+
return select$t();
|
|
7697
7948
|
}
|
|
7698
7949
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
7699
|
-
getTypeCacheKeys$
|
|
7950
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
7700
7951
|
}
|
|
7701
7952
|
function ingestSuccess(luvio, resourceParams, response) {
|
|
7702
7953
|
const { body } = response;
|
|
7703
7954
|
const key = keyBuilderFromType$1(luvio, body);
|
|
7704
|
-
luvio.storeIngest(key, ingest$
|
|
7955
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
7705
7956
|
const snapshot = luvio.storeLookup({
|
|
7706
7957
|
recordId: key,
|
|
7707
7958
|
node: select(),
|
|
@@ -7739,10 +7990,10 @@ const updatePromptTemplateVersion_ConfigPropertyMetadata = [
|
|
|
7739
7990
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
7740
7991
|
];
|
|
7741
7992
|
const updatePromptTemplateVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updatePromptTemplateVersion_ConfigPropertyMetadata);
|
|
7742
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
7993
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$k(updatePromptTemplateVersion_ConfigPropertyMetadata);
|
|
7743
7994
|
function typeCheckConfig(untrustedConfig) {
|
|
7744
7995
|
const config = {};
|
|
7745
|
-
typeCheckConfig$
|
|
7996
|
+
typeCheckConfig$k(untrustedConfig, config, updatePromptTemplateVersion_ConfigPropertyMetadata);
|
|
7746
7997
|
const untrustedConfig_childRelationships = untrustedConfig.childRelationships;
|
|
7747
7998
|
if (untrustedIsObject(untrustedConfig_childRelationships)) {
|
|
7748
7999
|
const untrustedConfig_childRelationships_object = {};
|
|
@@ -7826,6 +8077,7 @@ let createPromptTemplateVersion;
|
|
|
7826
8077
|
let getDataProviderInstanceConfig;
|
|
7827
8078
|
let getDataProviderTypeConfigs;
|
|
7828
8079
|
let getDataProviders;
|
|
8080
|
+
let getEinsteinPromptTemplateReferences;
|
|
7829
8081
|
let getInputMappedDataProviders;
|
|
7830
8082
|
let getOutputLanguages;
|
|
7831
8083
|
let getPromptTemplate;
|
|
@@ -7841,6 +8093,7 @@ let createEmbeddings_imperative;
|
|
|
7841
8093
|
let getDataProviderInstanceConfig_imperative;
|
|
7842
8094
|
let getDataProviderTypeConfigs_imperative;
|
|
7843
8095
|
let getDataProviders_imperative;
|
|
8096
|
+
let getEinsteinPromptTemplateReferences_imperative;
|
|
7844
8097
|
let getInputMappedDataProviders_imperative;
|
|
7845
8098
|
let getOutputLanguages_imperative;
|
|
7846
8099
|
let getPromptTemplate_imperative;
|
|
@@ -7861,6 +8114,11 @@ const getDataProviderTypeConfigsMetadata = {
|
|
|
7861
8114
|
ttl: 300,
|
|
7862
8115
|
};
|
|
7863
8116
|
const getDataProvidersMetadata = { apiFamily: 'EinsteinLLM', name: 'getDataProviders', ttl: 300 };
|
|
8117
|
+
const getEinsteinPromptTemplateReferencesMetadata = {
|
|
8118
|
+
apiFamily: 'EinsteinLLM',
|
|
8119
|
+
name: 'getEinsteinPromptTemplateReferences',
|
|
8120
|
+
ttl: 100,
|
|
8121
|
+
};
|
|
7864
8122
|
const getInputMappedDataProvidersMetadata = {
|
|
7865
8123
|
apiFamily: 'EinsteinLLM',
|
|
7866
8124
|
name: 'getInputMappedDataProviders',
|
|
@@ -7895,6 +8153,7 @@ function bindExportsTo(luvio) {
|
|
|
7895
8153
|
const getDataProviderInstanceConfig_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDataProviderInstanceConfig', getDataProviderInstanceConfigAdapterFactory), getDataProviderInstanceConfigMetadata);
|
|
7896
8154
|
const getDataProviderTypeConfigs_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDataProviderTypeConfigs', getDataProviderTypeConfigsAdapterFactory), getDataProviderTypeConfigsMetadata);
|
|
7897
8155
|
const getDataProviders_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDataProviders', getDataProvidersAdapterFactory), getDataProvidersMetadata);
|
|
8156
|
+
const getEinsteinPromptTemplateReferences_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getEinsteinPromptTemplateReferences', getEinsteinPromptTemplateReferencesAdapterFactory), getEinsteinPromptTemplateReferencesMetadata);
|
|
7898
8157
|
const getInputMappedDataProviders_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getInputMappedDataProviders', getInputMappedDataProvidersAdapterFactory), getInputMappedDataProvidersMetadata);
|
|
7899
8158
|
const getOutputLanguages_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getOutputLanguages', getOutputLanguagesAdapterFactory), getOutputLanguagesMetadata);
|
|
7900
8159
|
const getPromptTemplate_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getPromptTemplate', getPromptTemplateAdapterFactory), getPromptTemplateMetadata);
|
|
@@ -7916,6 +8175,7 @@ function bindExportsTo(luvio) {
|
|
|
7916
8175
|
getDataProviderInstanceConfig: createWireAdapterConstructor(luvio, getDataProviderInstanceConfig_ldsAdapter, getDataProviderInstanceConfigMetadata),
|
|
7917
8176
|
getDataProviderTypeConfigs: createWireAdapterConstructor(luvio, getDataProviderTypeConfigs_ldsAdapter, getDataProviderTypeConfigsMetadata),
|
|
7918
8177
|
getDataProviders: createWireAdapterConstructor(luvio, getDataProviders_ldsAdapter, getDataProvidersMetadata),
|
|
8178
|
+
getEinsteinPromptTemplateReferences: createWireAdapterConstructor(luvio, getEinsteinPromptTemplateReferences_ldsAdapter, getEinsteinPromptTemplateReferencesMetadata),
|
|
7919
8179
|
getInputMappedDataProviders: createWireAdapterConstructor(luvio, getInputMappedDataProviders_ldsAdapter, getInputMappedDataProvidersMetadata),
|
|
7920
8180
|
getOutputLanguages: createWireAdapterConstructor(luvio, getOutputLanguages_ldsAdapter, getOutputLanguagesMetadata),
|
|
7921
8181
|
getPromptTemplate: createWireAdapterConstructor(luvio, getPromptTemplate_ldsAdapter, getPromptTemplateMetadata),
|
|
@@ -7931,6 +8191,7 @@ function bindExportsTo(luvio) {
|
|
|
7931
8191
|
getDataProviderInstanceConfig_imperative: createImperativeAdapter(luvio, getDataProviderInstanceConfig_ldsAdapter, getDataProviderInstanceConfigMetadata),
|
|
7932
8192
|
getDataProviderTypeConfigs_imperative: createImperativeAdapter(luvio, getDataProviderTypeConfigs_ldsAdapter, getDataProviderTypeConfigsMetadata),
|
|
7933
8193
|
getDataProviders_imperative: createImperativeAdapter(luvio, getDataProviders_ldsAdapter, getDataProvidersMetadata),
|
|
8194
|
+
getEinsteinPromptTemplateReferences_imperative: createImperativeAdapter(luvio, getEinsteinPromptTemplateReferences_ldsAdapter, getEinsteinPromptTemplateReferencesMetadata),
|
|
7934
8195
|
getInputMappedDataProviders_imperative: createImperativeAdapter(luvio, getInputMappedDataProviders_ldsAdapter, getInputMappedDataProvidersMetadata),
|
|
7935
8196
|
getOutputLanguages_imperative: createImperativeAdapter(luvio, getOutputLanguages_ldsAdapter, getOutputLanguagesMetadata),
|
|
7936
8197
|
getPromptTemplate_imperative: createImperativeAdapter(luvio, getPromptTemplate_ldsAdapter, getPromptTemplateMetadata),
|
|
@@ -7952,6 +8213,7 @@ withDefaultLuvio((luvio) => {
|
|
|
7952
8213
|
getDataProviderInstanceConfig,
|
|
7953
8214
|
getDataProviderTypeConfigs,
|
|
7954
8215
|
getDataProviders,
|
|
8216
|
+
getEinsteinPromptTemplateReferences,
|
|
7955
8217
|
getInputMappedDataProviders,
|
|
7956
8218
|
getOutputLanguages,
|
|
7957
8219
|
getPromptTemplate,
|
|
@@ -7966,6 +8228,7 @@ withDefaultLuvio((luvio) => {
|
|
|
7966
8228
|
getDataProviderInstanceConfig_imperative,
|
|
7967
8229
|
getDataProviderTypeConfigs_imperative,
|
|
7968
8230
|
getDataProviders_imperative,
|
|
8231
|
+
getEinsteinPromptTemplateReferences_imperative,
|
|
7969
8232
|
getInputMappedDataProviders_imperative,
|
|
7970
8233
|
getOutputLanguages_imperative,
|
|
7971
8234
|
getPromptTemplate_imperative,
|
|
@@ -7976,5 +8239,5 @@ withDefaultLuvio((luvio) => {
|
|
|
7976
8239
|
} = bindExportsTo(luvio));
|
|
7977
8240
|
});
|
|
7978
8241
|
|
|
7979
|
-
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, getPromptTemplateVersion, getPromptTemplateVersion_imperative, getPromptTemplateVersions, getPromptTemplateVersions_imperative, getPromptTemplate_imperative, getPromptTemplates, getPromptTemplates_imperative, getTemplateType, getTemplateType_imperative, putEinsteinPromptTemplateStatus, putEinsteinPromptTemplateVersionStatus, updatePromptTemplateVersion };
|
|
7980
|
-
// version: 1.
|
|
8242
|
+
export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, createPromptTemplate, createPromptTemplateVersion, getDataProviderInstanceConfig, getDataProviderInstanceConfig_imperative, getDataProviderTypeConfigs, getDataProviderTypeConfigs_imperative, getDataProviders, getDataProviders_imperative, getEinsteinPromptTemplateReferences, getEinsteinPromptTemplateReferences_imperative, getInputMappedDataProviders, getInputMappedDataProviders_imperative, getOutputLanguages, getOutputLanguages_imperative, getPromptTemplate, getPromptTemplateVersion, getPromptTemplateVersion_imperative, getPromptTemplateVersions, getPromptTemplateVersions_imperative, getPromptTemplate_imperative, getPromptTemplates, getPromptTemplates_imperative, getTemplateType, getTemplateType_imperative, putEinsteinPromptTemplateStatus, putEinsteinPromptTemplateVersionStatus, updatePromptTemplateVersion };
|
|
8243
|
+
// version: 1.416.1-c10be671f4
|