@salesforce/lds-adapters-service-einsteinllm 1.354.0-dev8 → 1.354.0-dev9
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 +204 -124
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateAttachmentExclusionInfoRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateAttachmentRepresentation.d.ts +4 -1
- package/package.json +4 -4
- package/sfdc/index.js +177 -97
- package/src/raml/api.raml +14 -0
|
@@ -168,7 +168,7 @@ function createLink(ref) {
|
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
function validate$
|
|
171
|
+
function validate$s(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation') {
|
|
172
172
|
const v_error = (() => {
|
|
173
173
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
174
174
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -212,7 +212,7 @@ function validate$r(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepre
|
|
|
212
212
|
return v_error === undefined ? null : v_error;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
function validate$
|
|
215
|
+
function validate$r(obj, path = 'WrappedListString') {
|
|
216
216
|
const v_error = (() => {
|
|
217
217
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
218
218
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -233,14 +233,14 @@ function validate$q(obj, path = 'WrappedListString') {
|
|
|
233
233
|
return v_error === undefined ? null : v_error;
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
function validate$
|
|
236
|
+
function validate$q(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
|
|
237
237
|
const v_error = (() => {
|
|
238
238
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
239
239
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
240
240
|
}
|
|
241
241
|
const obj_additionalConfig = obj.additionalConfig;
|
|
242
242
|
const path_additionalConfig = path + '.additionalConfig';
|
|
243
|
-
const referencepath_additionalConfigValidationError = validate$
|
|
243
|
+
const referencepath_additionalConfigValidationError = validate$s(obj_additionalConfig, path_additionalConfig);
|
|
244
244
|
if (referencepath_additionalConfigValidationError !== null) {
|
|
245
245
|
let message = 'Object doesn\'t match EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
|
|
246
246
|
message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -248,7 +248,7 @@ function validate$p(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
|
|
|
248
248
|
}
|
|
249
249
|
const obj_prompts = obj.prompts;
|
|
250
250
|
const path_prompts = path + '.prompts';
|
|
251
|
-
const referencepath_promptsValidationError = validate$
|
|
251
|
+
const referencepath_promptsValidationError = validate$r(obj_prompts, path_prompts);
|
|
252
252
|
if (referencepath_promptsValidationError !== null) {
|
|
253
253
|
let message = 'Object doesn\'t match WrappedListString (at "' + path_prompts + '")\n';
|
|
254
254
|
message += referencepath_promptsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -265,8 +265,8 @@ function validate$p(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
|
|
|
265
265
|
return v_error === undefined ? null : v_error;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
const VERSION$
|
|
269
|
-
function validate$
|
|
268
|
+
const VERSION$j = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
|
|
269
|
+
function validate$p(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
|
|
270
270
|
const v_error = (() => {
|
|
271
271
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
272
272
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -287,10 +287,10 @@ function validate$o(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
|
|
|
287
287
|
})();
|
|
288
288
|
return v_error === undefined ? null : v_error;
|
|
289
289
|
}
|
|
290
|
-
const select$
|
|
290
|
+
const select$q = function EinsteinLlmEmbeddingItemRepresentationSelect() {
|
|
291
291
|
return {
|
|
292
292
|
kind: 'Fragment',
|
|
293
|
-
version: VERSION$
|
|
293
|
+
version: VERSION$j,
|
|
294
294
|
private: [],
|
|
295
295
|
selections: [
|
|
296
296
|
{
|
|
@@ -305,7 +305,7 @@ const select$p = function EinsteinLlmEmbeddingItemRepresentationSelect() {
|
|
|
305
305
|
]
|
|
306
306
|
};
|
|
307
307
|
};
|
|
308
|
-
function equals$
|
|
308
|
+
function equals$j(existing, incoming) {
|
|
309
309
|
const existing_index = existing.index;
|
|
310
310
|
const incoming_index = incoming.index;
|
|
311
311
|
if (!(existing_index === incoming_index)) {
|
|
@@ -325,8 +325,8 @@ function equals$i(existing, incoming) {
|
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
const TTL$6 = 100;
|
|
328
|
-
const VERSION$
|
|
329
|
-
function validate$
|
|
328
|
+
const VERSION$i = "d9873651f09d29764ef4d4231eb653d7";
|
|
329
|
+
function validate$o(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
|
|
330
330
|
const v_error = (() => {
|
|
331
331
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
332
332
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -339,7 +339,7 @@ function validate$n(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
|
|
|
339
339
|
for (let i = 0; i < obj_embeddings.length; i++) {
|
|
340
340
|
const obj_embeddings_item = obj_embeddings[i];
|
|
341
341
|
const path_embeddings_item = path_embeddings + '[' + i + ']';
|
|
342
|
-
const referencepath_embeddings_itemValidationError = validate$
|
|
342
|
+
const referencepath_embeddings_itemValidationError = validate$p(obj_embeddings_item, path_embeddings_item);
|
|
343
343
|
if (referencepath_embeddings_itemValidationError !== null) {
|
|
344
344
|
let message = 'Object doesn\'t match EinsteinLlmEmbeddingItemRepresentation (at "' + path_embeddings_item + '")\n';
|
|
345
345
|
message += referencepath_embeddings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -367,11 +367,11 @@ const RepresentationType$6 = 'EinsteinLlmEmbeddingsRepresentation';
|
|
|
367
367
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
368
368
|
return input;
|
|
369
369
|
}
|
|
370
|
-
const select$
|
|
371
|
-
const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$
|
|
370
|
+
const select$p = function EinsteinLlmEmbeddingsRepresentationSelect() {
|
|
371
|
+
const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$q();
|
|
372
372
|
return {
|
|
373
373
|
kind: 'Fragment',
|
|
374
|
-
version: VERSION$
|
|
374
|
+
version: VERSION$i,
|
|
375
375
|
private: [],
|
|
376
376
|
selections: [
|
|
377
377
|
{
|
|
@@ -388,11 +388,11 @@ const select$o = function EinsteinLlmEmbeddingsRepresentationSelect() {
|
|
|
388
388
|
]
|
|
389
389
|
};
|
|
390
390
|
};
|
|
391
|
-
function equals$
|
|
391
|
+
function equals$i(existing, incoming) {
|
|
392
392
|
const existing_embeddings = existing.embeddings;
|
|
393
393
|
const incoming_embeddings = incoming.embeddings;
|
|
394
394
|
const equals_embeddings_items = equalsArray(existing_embeddings, incoming_embeddings, (existing_embeddings_item, incoming_embeddings_item) => {
|
|
395
|
-
if (!(equals$
|
|
395
|
+
if (!(equals$j(existing_embeddings_item, incoming_embeddings_item))) {
|
|
396
396
|
return false;
|
|
397
397
|
}
|
|
398
398
|
});
|
|
@@ -413,14 +413,14 @@ function equals$h(existing, incoming) {
|
|
|
413
413
|
}
|
|
414
414
|
const ingest$6 = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
415
415
|
if (process.env.NODE_ENV !== 'production') {
|
|
416
|
-
const validateError = validate$
|
|
416
|
+
const validateError = validate$o(input);
|
|
417
417
|
if (validateError !== null) {
|
|
418
418
|
throw validateError;
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
421
|
const key = path.fullPath;
|
|
422
422
|
const ttlToUse = TTL$6;
|
|
423
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "EinsteinLLM", VERSION$
|
|
423
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "EinsteinLLM", VERSION$i, RepresentationType$6, equals$i);
|
|
424
424
|
return createLink(key);
|
|
425
425
|
};
|
|
426
426
|
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -433,8 +433,8 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
435
|
|
|
436
|
-
function select$
|
|
437
|
-
return select$
|
|
436
|
+
function select$o(luvio, params) {
|
|
437
|
+
return select$p();
|
|
438
438
|
}
|
|
439
439
|
function keyBuilder$a(luvio, params) {
|
|
440
440
|
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) + ')';
|
|
@@ -448,7 +448,7 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
448
448
|
luvio.storeIngest(key, ingest$6, body);
|
|
449
449
|
const snapshot = luvio.storeLookup({
|
|
450
450
|
recordId: key,
|
|
451
|
-
node: select$
|
|
451
|
+
node: select$o(),
|
|
452
452
|
variables: {},
|
|
453
453
|
}, snapshotRefresh);
|
|
454
454
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -465,7 +465,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
465
465
|
const storeMetadataParams = {
|
|
466
466
|
ttl: TTL$6,
|
|
467
467
|
namespace: keyPrefix,
|
|
468
|
-
version: VERSION$
|
|
468
|
+
version: VERSION$i,
|
|
469
469
|
representationName: RepresentationType$6
|
|
470
470
|
};
|
|
471
471
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -498,7 +498,7 @@ function keyBuilder$9(luvio, config) {
|
|
|
498
498
|
function typeCheckConfig$6(untrustedConfig) {
|
|
499
499
|
const config = {};
|
|
500
500
|
const untrustedConfig_embeddingsInput = untrustedConfig.embeddingsInput;
|
|
501
|
-
const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$
|
|
501
|
+
const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$q(untrustedConfig_embeddingsInput);
|
|
502
502
|
if (referenceEinsteinLlmEmbeddingsInputRepresentationValidationError === null) {
|
|
503
503
|
config.embeddingsInput = untrustedConfig_embeddingsInput;
|
|
504
504
|
}
|
|
@@ -519,7 +519,7 @@ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
|
519
519
|
}
|
|
520
520
|
function adapterFragment$3(luvio, config) {
|
|
521
521
|
createResourceParams$6(config);
|
|
522
|
-
return select$
|
|
522
|
+
return select$o();
|
|
523
523
|
}
|
|
524
524
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
525
525
|
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
@@ -575,7 +575,7 @@ const createEmbeddingsAdapterFactory = (luvio) => function EinsteinLLM__createEm
|
|
|
575
575
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
576
576
|
};
|
|
577
577
|
|
|
578
|
-
function validate$
|
|
578
|
+
function validate$n(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
|
|
579
579
|
const v_error = (() => {
|
|
580
580
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
581
581
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -623,8 +623,8 @@ function validate$m(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
|
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
const TTL$5 = 100;
|
|
626
|
-
const VERSION$
|
|
627
|
-
function validate$
|
|
626
|
+
const VERSION$h = "4033328f65865dd5d80c68a7573a4522";
|
|
627
|
+
function validate$m(obj, path = 'EinsteinLlmFeedbackRepresentation') {
|
|
628
628
|
const v_error = (() => {
|
|
629
629
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
630
630
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -650,10 +650,10 @@ function keyBuilderFromType$2(luvio, object) {
|
|
|
650
650
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
651
651
|
return input;
|
|
652
652
|
}
|
|
653
|
-
const select$
|
|
653
|
+
const select$n = function EinsteinLlmFeedbackRepresentationSelect() {
|
|
654
654
|
return {
|
|
655
655
|
kind: 'Fragment',
|
|
656
|
-
version: VERSION$
|
|
656
|
+
version: VERSION$h,
|
|
657
657
|
private: [],
|
|
658
658
|
selections: [
|
|
659
659
|
{
|
|
@@ -663,7 +663,7 @@ const select$m = function EinsteinLlmFeedbackRepresentationSelect() {
|
|
|
663
663
|
]
|
|
664
664
|
};
|
|
665
665
|
};
|
|
666
|
-
function equals$
|
|
666
|
+
function equals$h(existing, incoming) {
|
|
667
667
|
const existing_message = existing.message;
|
|
668
668
|
const incoming_message = incoming.message;
|
|
669
669
|
if (!(existing_message === incoming_message)) {
|
|
@@ -673,14 +673,14 @@ function equals$g(existing, incoming) {
|
|
|
673
673
|
}
|
|
674
674
|
const ingest$5 = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
675
675
|
if (process.env.NODE_ENV !== 'production') {
|
|
676
|
-
const validateError = validate$
|
|
676
|
+
const validateError = validate$m(input);
|
|
677
677
|
if (validateError !== null) {
|
|
678
678
|
throw validateError;
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
681
|
const key = keyBuilderFromType$2(luvio, input);
|
|
682
682
|
const ttlToUse = TTL$5;
|
|
683
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$
|
|
683
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$h, RepresentationType$5, equals$h);
|
|
684
684
|
return createLink(key);
|
|
685
685
|
};
|
|
686
686
|
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -693,8 +693,8 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
693
693
|
});
|
|
694
694
|
}
|
|
695
695
|
|
|
696
|
-
function select$
|
|
697
|
-
return select$
|
|
696
|
+
function select$m(luvio, params) {
|
|
697
|
+
return select$n();
|
|
698
698
|
}
|
|
699
699
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
700
700
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
@@ -705,7 +705,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
705
705
|
luvio.storeIngest(key, ingest$5, body);
|
|
706
706
|
const snapshot = luvio.storeLookup({
|
|
707
707
|
recordId: key,
|
|
708
|
-
node: select$
|
|
708
|
+
node: select$m(),
|
|
709
709
|
variables: {},
|
|
710
710
|
});
|
|
711
711
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -739,7 +739,7 @@ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(createFeedba
|
|
|
739
739
|
function typeCheckConfig$5(untrustedConfig) {
|
|
740
740
|
const config = {};
|
|
741
741
|
const untrustedConfig_feedbackInput = untrustedConfig.feedbackInput;
|
|
742
|
-
const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$
|
|
742
|
+
const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$n(untrustedConfig_feedbackInput);
|
|
743
743
|
if (referenceEinsteinLlmFeedbackInputRepresentationValidationError === null) {
|
|
744
744
|
config.feedbackInput = untrustedConfig_feedbackInput;
|
|
745
745
|
}
|
|
@@ -787,7 +787,7 @@ const createFeedbackAdapterFactory = (luvio) => {
|
|
|
787
787
|
};
|
|
788
788
|
};
|
|
789
789
|
|
|
790
|
-
function validate$
|
|
790
|
+
function validate$l(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
|
|
791
791
|
const v_error = (() => {
|
|
792
792
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
793
793
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -870,7 +870,7 @@ function validate$k(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation'
|
|
|
870
870
|
return v_error === undefined ? null : v_error;
|
|
871
871
|
}
|
|
872
872
|
|
|
873
|
-
function validate$
|
|
873
|
+
function validate$k(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
|
|
874
874
|
const v_error = (() => {
|
|
875
875
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
876
876
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -878,7 +878,7 @@ function validate$j(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
|
|
|
878
878
|
if (obj.additionalConfig !== undefined) {
|
|
879
879
|
const obj_additionalConfig = obj.additionalConfig;
|
|
880
880
|
const path_additionalConfig = path + '.additionalConfig';
|
|
881
|
-
const referencepath_additionalConfigValidationError = validate$
|
|
881
|
+
const referencepath_additionalConfigValidationError = validate$l(obj_additionalConfig, path_additionalConfig);
|
|
882
882
|
if (referencepath_additionalConfigValidationError !== null) {
|
|
883
883
|
let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
|
|
884
884
|
message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -901,8 +901,8 @@ function validate$j(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
|
|
|
901
901
|
return v_error === undefined ? null : v_error;
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
-
const VERSION$
|
|
905
|
-
function validate$
|
|
904
|
+
const VERSION$g = "9ebac74e6f964c363d5fd1913df363af";
|
|
905
|
+
function validate$j(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
|
|
906
906
|
const v_error = (() => {
|
|
907
907
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
908
908
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -938,10 +938,10 @@ function validate$i(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentat
|
|
|
938
938
|
})();
|
|
939
939
|
return v_error === undefined ? null : v_error;
|
|
940
940
|
}
|
|
941
|
-
const select$
|
|
941
|
+
const select$l = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
|
|
942
942
|
return {
|
|
943
943
|
kind: 'Fragment',
|
|
944
|
-
version: VERSION$
|
|
944
|
+
version: VERSION$g,
|
|
945
945
|
private: [],
|
|
946
946
|
selections: [
|
|
947
947
|
{
|
|
@@ -952,7 +952,7 @@ const select$k = function EinsteinLlmGenerationsContentQualityRepresentationSele
|
|
|
952
952
|
]
|
|
953
953
|
};
|
|
954
954
|
};
|
|
955
|
-
function equals$
|
|
955
|
+
function equals$g(existing, incoming) {
|
|
956
956
|
const existing_isToxicityDetected = existing.isToxicityDetected;
|
|
957
957
|
const incoming_isToxicityDetected = incoming.isToxicityDetected;
|
|
958
958
|
// if at least one of these optionals is defined
|
|
@@ -969,8 +969,8 @@ function equals$f(existing, incoming) {
|
|
|
969
969
|
return true;
|
|
970
970
|
}
|
|
971
971
|
|
|
972
|
-
const VERSION$
|
|
973
|
-
function validate$
|
|
972
|
+
const VERSION$f = "77af44a252cb5b45b4d9a8101368d2aa";
|
|
973
|
+
function validate$i(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
|
|
974
974
|
const v_error = (() => {
|
|
975
975
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
976
976
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1174,10 +1174,10 @@ function validate$h(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation
|
|
|
1174
1174
|
})();
|
|
1175
1175
|
return v_error === undefined ? null : v_error;
|
|
1176
1176
|
}
|
|
1177
|
-
const select$
|
|
1177
|
+
const select$k = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
|
|
1178
1178
|
return {
|
|
1179
1179
|
kind: 'Fragment',
|
|
1180
|
-
version: VERSION$
|
|
1180
|
+
version: VERSION$f,
|
|
1181
1181
|
private: [],
|
|
1182
1182
|
selections: [
|
|
1183
1183
|
{
|
|
@@ -1218,7 +1218,7 @@ const select$j = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect(
|
|
|
1218
1218
|
]
|
|
1219
1219
|
};
|
|
1220
1220
|
};
|
|
1221
|
-
function equals$
|
|
1221
|
+
function equals$f(existing, incoming) {
|
|
1222
1222
|
const existing_hateScore = existing.hateScore;
|
|
1223
1223
|
const incoming_hateScore = incoming.hateScore;
|
|
1224
1224
|
// if at least one of these optionals is defined
|
|
@@ -1313,8 +1313,8 @@ function equals$e(existing, incoming) {
|
|
|
1313
1313
|
return true;
|
|
1314
1314
|
}
|
|
1315
1315
|
|
|
1316
|
-
const VERSION$
|
|
1317
|
-
function validate$
|
|
1316
|
+
const VERSION$e = "4a07778ff6c595d91c575188146647a1";
|
|
1317
|
+
function validate$h(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
|
|
1318
1318
|
const v_error = (() => {
|
|
1319
1319
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1320
1320
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1324,7 +1324,7 @@ function validate$g(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
|
|
|
1324
1324
|
const path_contentQualityRepresentation = path + '.contentQualityRepresentation';
|
|
1325
1325
|
let obj_contentQualityRepresentation_union0 = null;
|
|
1326
1326
|
const obj_contentQualityRepresentation_union0_error = (() => {
|
|
1327
|
-
const referencepath_contentQualityRepresentationValidationError = validate$
|
|
1327
|
+
const referencepath_contentQualityRepresentationValidationError = validate$j(obj_contentQualityRepresentation, path_contentQualityRepresentation);
|
|
1328
1328
|
if (referencepath_contentQualityRepresentationValidationError !== null) {
|
|
1329
1329
|
let message = 'Object doesn\'t match EinsteinLlmGenerationsContentQualityRepresentation (at "' + path_contentQualityRepresentation + '")\n';
|
|
1330
1330
|
message += referencepath_contentQualityRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1372,7 +1372,7 @@ function validate$g(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
|
|
|
1372
1372
|
const path_safetyScoreRepresentation = path + '.safetyScoreRepresentation';
|
|
1373
1373
|
let obj_safetyScoreRepresentation_union0 = null;
|
|
1374
1374
|
const obj_safetyScoreRepresentation_union0_error = (() => {
|
|
1375
|
-
const referencepath_safetyScoreRepresentationValidationError = validate$
|
|
1375
|
+
const referencepath_safetyScoreRepresentationValidationError = validate$i(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
|
|
1376
1376
|
if (referencepath_safetyScoreRepresentationValidationError !== null) {
|
|
1377
1377
|
let message = 'Object doesn\'t match EinsteinLlmGenerationsSafetyScoreRepresentation (at "' + path_safetyScoreRepresentation + '")\n';
|
|
1378
1378
|
message += referencepath_safetyScoreRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1406,12 +1406,12 @@ function validate$g(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
|
|
|
1406
1406
|
})();
|
|
1407
1407
|
return v_error === undefined ? null : v_error;
|
|
1408
1408
|
}
|
|
1409
|
-
const select$
|
|
1410
|
-
const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$
|
|
1411
|
-
const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$
|
|
1409
|
+
const select$j = function EinsteinLlmGenerationItemRepresentationSelect() {
|
|
1410
|
+
const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$l();
|
|
1411
|
+
const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$k();
|
|
1412
1412
|
return {
|
|
1413
1413
|
kind: 'Fragment',
|
|
1414
|
-
version: VERSION$
|
|
1414
|
+
version: VERSION$e,
|
|
1415
1415
|
private: [],
|
|
1416
1416
|
selections: [
|
|
1417
1417
|
{
|
|
@@ -1448,7 +1448,7 @@ const select$i = function EinsteinLlmGenerationItemRepresentationSelect() {
|
|
|
1448
1448
|
]
|
|
1449
1449
|
};
|
|
1450
1450
|
};
|
|
1451
|
-
function equals$
|
|
1451
|
+
function equals$e(existing, incoming) {
|
|
1452
1452
|
const existing_isSummarized = existing.isSummarized;
|
|
1453
1453
|
const incoming_isSummarized = incoming.isSummarized;
|
|
1454
1454
|
// if at least one of these optionals is defined
|
|
@@ -1489,7 +1489,7 @@ function equals$d(existing, incoming) {
|
|
|
1489
1489
|
if (!(existing_contentQualityRepresentation === incoming_contentQualityRepresentation
|
|
1490
1490
|
|| (existing_contentQualityRepresentation != null &&
|
|
1491
1491
|
incoming_contentQualityRepresentation != null &&
|
|
1492
|
-
equals$
|
|
1492
|
+
equals$g(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
|
|
1493
1493
|
return false;
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
@@ -1505,15 +1505,15 @@ function equals$d(existing, incoming) {
|
|
|
1505
1505
|
if (!(existing_safetyScoreRepresentation === incoming_safetyScoreRepresentation
|
|
1506
1506
|
|| (existing_safetyScoreRepresentation != null &&
|
|
1507
1507
|
incoming_safetyScoreRepresentation != null &&
|
|
1508
|
-
equals$
|
|
1508
|
+
equals$f(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
|
|
1509
1509
|
return false;
|
|
1510
1510
|
}
|
|
1511
1511
|
}
|
|
1512
1512
|
return true;
|
|
1513
1513
|
}
|
|
1514
1514
|
|
|
1515
|
-
const VERSION$
|
|
1516
|
-
function validate$
|
|
1515
|
+
const VERSION$d = "4656c961c9d093a9e206c1db7d4de0b0";
|
|
1516
|
+
function validate$g(obj, path = 'WrappedMap') {
|
|
1517
1517
|
const v_error = (() => {
|
|
1518
1518
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1519
1519
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1535,15 +1535,15 @@ function validate$f(obj, path = 'WrappedMap') {
|
|
|
1535
1535
|
})();
|
|
1536
1536
|
return v_error === undefined ? null : v_error;
|
|
1537
1537
|
}
|
|
1538
|
-
const select$
|
|
1538
|
+
const select$i = function WrappedMapSelect() {
|
|
1539
1539
|
return {
|
|
1540
1540
|
kind: 'Fragment',
|
|
1541
|
-
version: VERSION$
|
|
1541
|
+
version: VERSION$d,
|
|
1542
1542
|
private: [],
|
|
1543
1543
|
selections: []
|
|
1544
1544
|
};
|
|
1545
1545
|
};
|
|
1546
|
-
function equals$
|
|
1546
|
+
function equals$d(existing, incoming) {
|
|
1547
1547
|
const existing_wrappedMap = existing.wrappedMap;
|
|
1548
1548
|
const incoming_wrappedMap = incoming.wrappedMap;
|
|
1549
1549
|
const equals_wrappedMap_props = equalsObject(existing_wrappedMap, incoming_wrappedMap, (existing_wrappedMap_prop, incoming_wrappedMap_prop) => {
|
|
@@ -1555,8 +1555,8 @@ function equals$c(existing, incoming) {
|
|
|
1555
1555
|
}
|
|
1556
1556
|
|
|
1557
1557
|
const TTL$4 = 100;
|
|
1558
|
-
const VERSION$
|
|
1559
|
-
function validate$
|
|
1558
|
+
const VERSION$c = "d8abd72a42e842b253da1c38954dafbc";
|
|
1559
|
+
function validate$f(obj, path = 'EinsteinLlmGenerationsRepresentation') {
|
|
1560
1560
|
const v_error = (() => {
|
|
1561
1561
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1562
1562
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1569,7 +1569,7 @@ function validate$e(obj, path = 'EinsteinLlmGenerationsRepresentation') {
|
|
|
1569
1569
|
for (let i = 0; i < obj_generations.length; i++) {
|
|
1570
1570
|
const obj_generations_item = obj_generations[i];
|
|
1571
1571
|
const path_generations_item = path_generations + '[' + i + ']';
|
|
1572
|
-
const referencepath_generations_itemValidationError = validate$
|
|
1572
|
+
const referencepath_generations_itemValidationError = validate$h(obj_generations_item, path_generations_item);
|
|
1573
1573
|
if (referencepath_generations_itemValidationError !== null) {
|
|
1574
1574
|
let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
|
|
1575
1575
|
message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1580,7 +1580,7 @@ function validate$e(obj, path = 'EinsteinLlmGenerationsRepresentation') {
|
|
|
1580
1580
|
const path_parameters = path + '.parameters';
|
|
1581
1581
|
let obj_parameters_union0 = null;
|
|
1582
1582
|
const obj_parameters_union0_error = (() => {
|
|
1583
|
-
const referencepath_parametersValidationError = validate$
|
|
1583
|
+
const referencepath_parametersValidationError = validate$g(obj_parameters, path_parameters);
|
|
1584
1584
|
if (referencepath_parametersValidationError !== null) {
|
|
1585
1585
|
let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
|
|
1586
1586
|
message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1652,12 +1652,12 @@ function keyBuilderFromType$1(luvio, object) {
|
|
|
1652
1652
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
1653
1653
|
return input;
|
|
1654
1654
|
}
|
|
1655
|
-
const select$
|
|
1656
|
-
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$
|
|
1657
|
-
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$
|
|
1655
|
+
const select$h = function EinsteinLlmGenerationsRepresentationSelect() {
|
|
1656
|
+
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$j();
|
|
1657
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$i();
|
|
1658
1658
|
return {
|
|
1659
1659
|
kind: 'Fragment',
|
|
1660
|
-
version: VERSION$
|
|
1660
|
+
version: VERSION$c,
|
|
1661
1661
|
private: [],
|
|
1662
1662
|
selections: [
|
|
1663
1663
|
{
|
|
@@ -1683,7 +1683,7 @@ const select$g = function EinsteinLlmGenerationsRepresentationSelect() {
|
|
|
1683
1683
|
]
|
|
1684
1684
|
};
|
|
1685
1685
|
};
|
|
1686
|
-
function equals$
|
|
1686
|
+
function equals$c(existing, incoming) {
|
|
1687
1687
|
const existing_requestId = existing.requestId;
|
|
1688
1688
|
const incoming_requestId = incoming.requestId;
|
|
1689
1689
|
if (!(existing_requestId === incoming_requestId)) {
|
|
@@ -1692,7 +1692,7 @@ function equals$b(existing, incoming) {
|
|
|
1692
1692
|
const existing_generations = existing.generations;
|
|
1693
1693
|
const incoming_generations = incoming.generations;
|
|
1694
1694
|
const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
|
|
1695
|
-
if (!(equals$
|
|
1695
|
+
if (!(equals$e(existing_generations_item, incoming_generations_item))) {
|
|
1696
1696
|
return false;
|
|
1697
1697
|
}
|
|
1698
1698
|
});
|
|
@@ -1704,7 +1704,7 @@ function equals$b(existing, incoming) {
|
|
|
1704
1704
|
if (!(existing_parameters === incoming_parameters
|
|
1705
1705
|
|| (existing_parameters != null &&
|
|
1706
1706
|
incoming_parameters != null &&
|
|
1707
|
-
equals$
|
|
1707
|
+
equals$d(existing_parameters, incoming_parameters)))) {
|
|
1708
1708
|
return false;
|
|
1709
1709
|
}
|
|
1710
1710
|
const existing_prompt = existing.prompt;
|
|
@@ -1716,14 +1716,14 @@ function equals$b(existing, incoming) {
|
|
|
1716
1716
|
}
|
|
1717
1717
|
const ingest$4 = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1718
1718
|
if (process.env.NODE_ENV !== 'production') {
|
|
1719
|
-
const validateError = validate$
|
|
1719
|
+
const validateError = validate$f(input);
|
|
1720
1720
|
if (validateError !== null) {
|
|
1721
1721
|
throw validateError;
|
|
1722
1722
|
}
|
|
1723
1723
|
}
|
|
1724
1724
|
const key = keyBuilderFromType$1(luvio, input);
|
|
1725
1725
|
const ttlToUse = TTL$4;
|
|
1726
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$
|
|
1726
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$c, RepresentationType$4, equals$c);
|
|
1727
1727
|
return createLink(key);
|
|
1728
1728
|
};
|
|
1729
1729
|
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1736,8 +1736,8 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1736
1736
|
});
|
|
1737
1737
|
}
|
|
1738
1738
|
|
|
1739
|
-
function select$
|
|
1740
|
-
return select$
|
|
1739
|
+
function select$g(luvio, params) {
|
|
1740
|
+
return select$h();
|
|
1741
1741
|
}
|
|
1742
1742
|
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
1743
1743
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
@@ -1748,7 +1748,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
|
|
|
1748
1748
|
luvio.storeIngest(key, ingest$4, body);
|
|
1749
1749
|
const snapshot = luvio.storeLookup({
|
|
1750
1750
|
recordId: key,
|
|
1751
|
-
node: select$
|
|
1751
|
+
node: select$g(),
|
|
1752
1752
|
variables: {},
|
|
1753
1753
|
});
|
|
1754
1754
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1782,7 +1782,7 @@ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(createGenera
|
|
|
1782
1782
|
function typeCheckConfig$4(untrustedConfig) {
|
|
1783
1783
|
const config = {};
|
|
1784
1784
|
const untrustedConfig_generationsInput = untrustedConfig.generationsInput;
|
|
1785
|
-
const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$
|
|
1785
|
+
const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$k(untrustedConfig_generationsInput);
|
|
1786
1786
|
if (referenceEinsteinLlmGenerationsInputRepresentationValidationError === null) {
|
|
1787
1787
|
config.generationsInput = untrustedConfig_generationsInput;
|
|
1788
1788
|
}
|
|
@@ -1830,7 +1830,7 @@ const createGenerationsAdapterFactory = (luvio) => {
|
|
|
1830
1830
|
};
|
|
1831
1831
|
};
|
|
1832
1832
|
|
|
1833
|
-
function validate$
|
|
1833
|
+
function validate$e(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
|
|
1834
1834
|
const v_error = (() => {
|
|
1835
1835
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1836
1836
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1891,8 +1891,8 @@ function validate$d(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
|
|
|
1891
1891
|
}
|
|
1892
1892
|
|
|
1893
1893
|
const TTL$3 = 100;
|
|
1894
|
-
const VERSION$
|
|
1895
|
-
function validate$
|
|
1894
|
+
const VERSION$b = "2d1628544b54fc1701aa9b4eff05127b";
|
|
1895
|
+
function validate$d(obj, path = 'EinsteinPromptRecordRepresentation') {
|
|
1896
1896
|
const v_error = (() => {
|
|
1897
1897
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1898
1898
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1921,7 +1921,7 @@ function validate$c(obj, path = 'EinsteinPromptRecordRepresentation') {
|
|
|
1921
1921
|
for (let i = 0; i < obj_childRelationships_prop.length; i++) {
|
|
1922
1922
|
const obj_childRelationships_prop_item = obj_childRelationships_prop[i];
|
|
1923
1923
|
const path_childRelationships_prop_item = path_childRelationships_prop + '[' + i + ']';
|
|
1924
|
-
const referencepath_childRelationships_prop_itemValidationError = validate$
|
|
1924
|
+
const referencepath_childRelationships_prop_itemValidationError = validate$d(obj_childRelationships_prop_item, path_childRelationships_prop_item);
|
|
1925
1925
|
if (referencepath_childRelationships_prop_itemValidationError !== null) {
|
|
1926
1926
|
let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_childRelationships_prop_item + '")\n';
|
|
1927
1927
|
message += referencepath_childRelationships_prop_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1941,7 +1941,7 @@ function validate$c(obj, path = 'EinsteinPromptRecordRepresentation') {
|
|
|
1941
1941
|
const key = obj_fields_keys[i];
|
|
1942
1942
|
const obj_fields_prop = obj_fields[key];
|
|
1943
1943
|
const path_fields_prop = path_fields + '["' + key + '"]';
|
|
1944
|
-
const referencepath_fields_propValidationError = validate$
|
|
1944
|
+
const referencepath_fields_propValidationError = validate$e(obj_fields_prop, path_fields_prop);
|
|
1945
1945
|
if (referencepath_fields_propValidationError !== null) {
|
|
1946
1946
|
let message = 'Object doesn\'t match EinsteinPromptRecordFieldRepresentation (at "' + path_fields_prop + '")\n';
|
|
1947
1947
|
message += referencepath_fields_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1963,15 +1963,15 @@ const RepresentationType$3 = 'EinsteinPromptRecordRepresentation';
|
|
|
1963
1963
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
1964
1964
|
return input;
|
|
1965
1965
|
}
|
|
1966
|
-
const select$
|
|
1966
|
+
const select$f = function EinsteinPromptRecordRepresentationSelect() {
|
|
1967
1967
|
return {
|
|
1968
1968
|
kind: 'Fragment',
|
|
1969
|
-
version: VERSION$
|
|
1969
|
+
version: VERSION$b,
|
|
1970
1970
|
private: [],
|
|
1971
1971
|
opaque: true
|
|
1972
1972
|
};
|
|
1973
1973
|
};
|
|
1974
|
-
function equals$
|
|
1974
|
+
function equals$b(existing, incoming) {
|
|
1975
1975
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1976
1976
|
return false;
|
|
1977
1977
|
}
|
|
@@ -1979,14 +1979,14 @@ function equals$a(existing, incoming) {
|
|
|
1979
1979
|
}
|
|
1980
1980
|
const ingest$3 = function EinsteinPromptRecordRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1981
1981
|
if (process.env.NODE_ENV !== 'production') {
|
|
1982
|
-
const validateError = validate$
|
|
1982
|
+
const validateError = validate$d(input);
|
|
1983
1983
|
if (validateError !== null) {
|
|
1984
1984
|
throw validateError;
|
|
1985
1985
|
}
|
|
1986
1986
|
}
|
|
1987
1987
|
const key = path.fullPath;
|
|
1988
1988
|
const ttlToUse = TTL$3;
|
|
1989
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$
|
|
1989
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$b, RepresentationType$3, equals$b);
|
|
1990
1990
|
return createLink(key);
|
|
1991
1991
|
};
|
|
1992
1992
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2000,8 +2000,8 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2000
2000
|
}
|
|
2001
2001
|
|
|
2002
2002
|
const TTL$2 = 100;
|
|
2003
|
-
const VERSION$
|
|
2004
|
-
function validate$
|
|
2003
|
+
const VERSION$a = "5fd7b8a03d155ba601bcb4ee725e0893";
|
|
2004
|
+
function validate$c(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentation') {
|
|
2005
2005
|
const v_error = (() => {
|
|
2006
2006
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2007
2007
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2020,7 +2020,7 @@ function validate$b(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentat
|
|
|
2020
2020
|
for (let i = 0; i < obj_promptRecords.length; i++) {
|
|
2021
2021
|
const obj_promptRecords_item = obj_promptRecords[i];
|
|
2022
2022
|
const path_promptRecords_item = path_promptRecords + '[' + i + ']';
|
|
2023
|
-
const referencepath_promptRecords_itemValidationError = validate$
|
|
2023
|
+
const referencepath_promptRecords_itemValidationError = validate$d(obj_promptRecords_item, path_promptRecords_item);
|
|
2024
2024
|
if (referencepath_promptRecords_itemValidationError !== null) {
|
|
2025
2025
|
let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_promptRecords_item + '")\n';
|
|
2026
2026
|
message += referencepath_promptRecords_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2040,15 +2040,15 @@ const RepresentationType$2 = 'EinsteinPromptRecordCollectionOutputRepresentation
|
|
|
2040
2040
|
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
2041
2041
|
return input;
|
|
2042
2042
|
}
|
|
2043
|
-
const select$
|
|
2043
|
+
const select$e = function EinsteinPromptRecordCollectionOutputRepresentationSelect() {
|
|
2044
2044
|
return {
|
|
2045
2045
|
kind: 'Fragment',
|
|
2046
|
-
version: VERSION$
|
|
2046
|
+
version: VERSION$a,
|
|
2047
2047
|
private: [],
|
|
2048
2048
|
opaque: true
|
|
2049
2049
|
};
|
|
2050
2050
|
};
|
|
2051
|
-
function equals$
|
|
2051
|
+
function equals$a(existing, incoming) {
|
|
2052
2052
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2053
2053
|
return false;
|
|
2054
2054
|
}
|
|
@@ -2056,14 +2056,14 @@ function equals$9(existing, incoming) {
|
|
|
2056
2056
|
}
|
|
2057
2057
|
const ingest$2 = function EinsteinPromptRecordCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2058
2058
|
if (process.env.NODE_ENV !== 'production') {
|
|
2059
|
-
const validateError = validate$
|
|
2059
|
+
const validateError = validate$c(input);
|
|
2060
2060
|
if (validateError !== null) {
|
|
2061
2061
|
throw validateError;
|
|
2062
2062
|
}
|
|
2063
2063
|
}
|
|
2064
2064
|
const key = path.fullPath;
|
|
2065
2065
|
const ttlToUse = TTL$2;
|
|
2066
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$
|
|
2066
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$a, RepresentationType$2, equals$a);
|
|
2067
2067
|
return createLink(key);
|
|
2068
2068
|
};
|
|
2069
2069
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2076,8 +2076,8 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2076
2076
|
});
|
|
2077
2077
|
}
|
|
2078
2078
|
|
|
2079
|
-
function select$
|
|
2080
|
-
return select$
|
|
2079
|
+
function select$d(luvio, params) {
|
|
2080
|
+
return select$e();
|
|
2081
2081
|
}
|
|
2082
2082
|
function keyBuilder$6(luvio, params) {
|
|
2083
2083
|
return keyPrefix + '::EinsteinPromptRecordCollectionOutputRepresentation:(' + 'isActive:' + params.queryParams.isActive + ',' + 'fields:' + params.queryParams.fields + ',' + 'relatedEntity:' + params.queryParams.relatedEntity + ',' + 'offset:' + params.queryParams.offset + ',' + 'pageLimit:' + params.queryParams.pageLimit + ',' + 'type:' + params.queryParams.type + ',' + 'query:' + params.queryParams.query + ',' + 'sortBy:' + params.queryParams.sortBy + ')';
|
|
@@ -2091,7 +2091,7 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2091
2091
|
luvio.storeIngest(key, ingest$2, body);
|
|
2092
2092
|
const snapshot = luvio.storeLookup({
|
|
2093
2093
|
recordId: key,
|
|
2094
|
-
node: select$
|
|
2094
|
+
node: select$d(),
|
|
2095
2095
|
variables: {},
|
|
2096
2096
|
}, snapshotRefresh);
|
|
2097
2097
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2108,7 +2108,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
2108
2108
|
const storeMetadataParams = {
|
|
2109
2109
|
ttl: TTL$2,
|
|
2110
2110
|
namespace: keyPrefix,
|
|
2111
|
-
version: VERSION$
|
|
2111
|
+
version: VERSION$a,
|
|
2112
2112
|
representationName: RepresentationType$2
|
|
2113
2113
|
};
|
|
2114
2114
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -2165,7 +2165,7 @@ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
|
2165
2165
|
}
|
|
2166
2166
|
function adapterFragment$2(luvio, config) {
|
|
2167
2167
|
createResourceParams$3(config);
|
|
2168
|
-
return select$
|
|
2168
|
+
return select$d();
|
|
2169
2169
|
}
|
|
2170
2170
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
2171
2171
|
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
@@ -2221,8 +2221,8 @@ const getPromptTemplatesAdapterFactory = (luvio) => function EinsteinLLM__getPro
|
|
|
2221
2221
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
2222
2222
|
};
|
|
2223
2223
|
|
|
2224
|
-
function select$
|
|
2225
|
-
return select$
|
|
2224
|
+
function select$c(luvio, params) {
|
|
2225
|
+
return select$f();
|
|
2226
2226
|
}
|
|
2227
2227
|
function keyBuilder$4(luvio, params) {
|
|
2228
2228
|
return keyPrefix + '::EinsteinPromptRecordRepresentation:(' + 'versionId:' + params.queryParams.versionId + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
|
|
@@ -2236,7 +2236,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2236
2236
|
luvio.storeIngest(key, ingest$3, body);
|
|
2237
2237
|
const snapshot = luvio.storeLookup({
|
|
2238
2238
|
recordId: key,
|
|
2239
|
-
node: select$
|
|
2239
|
+
node: select$c(),
|
|
2240
2240
|
variables: {},
|
|
2241
2241
|
}, snapshotRefresh);
|
|
2242
2242
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2253,7 +2253,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
2253
2253
|
const storeMetadataParams = {
|
|
2254
2254
|
ttl: TTL$3,
|
|
2255
2255
|
namespace: keyPrefix,
|
|
2256
|
-
version: VERSION$
|
|
2256
|
+
version: VERSION$b,
|
|
2257
2257
|
representationName: RepresentationType$3
|
|
2258
2258
|
};
|
|
2259
2259
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -2304,7 +2304,7 @@ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
|
2304
2304
|
}
|
|
2305
2305
|
function adapterFragment$1(luvio, config) {
|
|
2306
2306
|
createResourceParams$2(config);
|
|
2307
|
-
return select$
|
|
2307
|
+
return select$c();
|
|
2308
2308
|
}
|
|
2309
2309
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
2310
2310
|
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
@@ -2360,7 +2360,7 @@ const getPromptTemplateAdapterFactory = (luvio) => function EinsteinLLM__getProm
|
|
|
2360
2360
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
2361
2361
|
};
|
|
2362
2362
|
|
|
2363
|
-
function validate$
|
|
2363
|
+
function validate$b(obj, path = 'WrappedValueMap') {
|
|
2364
2364
|
const v_error = (() => {
|
|
2365
2365
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2366
2366
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2383,7 +2383,7 @@ function validate$a(obj, path = 'WrappedValueMap') {
|
|
|
2383
2383
|
return v_error === undefined ? null : v_error;
|
|
2384
2384
|
}
|
|
2385
2385
|
|
|
2386
|
-
function validate$
|
|
2386
|
+
function validate$a(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
|
|
2387
2387
|
const v_error = (() => {
|
|
2388
2388
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2389
2389
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2391,7 +2391,7 @@ function validate$9(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
|
|
|
2391
2391
|
if (obj.additionalConfig !== undefined) {
|
|
2392
2392
|
const obj_additionalConfig = obj.additionalConfig;
|
|
2393
2393
|
const path_additionalConfig = path + '.additionalConfig';
|
|
2394
|
-
const referencepath_additionalConfigValidationError = validate$
|
|
2394
|
+
const referencepath_additionalConfigValidationError = validate$l(obj_additionalConfig, path_additionalConfig);
|
|
2395
2395
|
if (referencepath_additionalConfigValidationError !== null) {
|
|
2396
2396
|
let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
|
|
2397
2397
|
message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2400,7 +2400,7 @@ function validate$9(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
|
|
|
2400
2400
|
}
|
|
2401
2401
|
const obj_inputParams = obj.inputParams;
|
|
2402
2402
|
const path_inputParams = path + '.inputParams';
|
|
2403
|
-
const referencepath_inputParamsValidationError = validate$
|
|
2403
|
+
const referencepath_inputParamsValidationError = validate$b(obj_inputParams, path_inputParams);
|
|
2404
2404
|
if (referencepath_inputParamsValidationError !== null) {
|
|
2405
2405
|
let message = 'Object doesn\'t match WrappedValueMap (at "' + path_inputParams + '")\n';
|
|
2406
2406
|
message += referencepath_inputParamsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2429,12 +2429,72 @@ function validate$9(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
|
|
|
2429
2429
|
return v_error === undefined ? null : v_error;
|
|
2430
2430
|
}
|
|
2431
2431
|
|
|
2432
|
-
const VERSION$
|
|
2432
|
+
const VERSION$9 = "f62ac44b024b123f079b57f349e05230";
|
|
2433
|
+
function validate$9(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRepresentation') {
|
|
2434
|
+
const v_error = (() => {
|
|
2435
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2436
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2437
|
+
}
|
|
2438
|
+
const obj_exclusionReason = obj.exclusionReason;
|
|
2439
|
+
const path_exclusionReason = path + '.exclusionReason';
|
|
2440
|
+
if (typeof obj_exclusionReason !== 'string') {
|
|
2441
|
+
return new TypeError('Expected "string" but received "' + typeof obj_exclusionReason + '" (at "' + path_exclusionReason + '")');
|
|
2442
|
+
}
|
|
2443
|
+
const obj_isExcluded = obj.isExcluded;
|
|
2444
|
+
const path_isExcluded = path + '.isExcluded';
|
|
2445
|
+
if (typeof obj_isExcluded !== 'boolean') {
|
|
2446
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isExcluded + '" (at "' + path_isExcluded + '")');
|
|
2447
|
+
}
|
|
2448
|
+
})();
|
|
2449
|
+
return v_error === undefined ? null : v_error;
|
|
2450
|
+
}
|
|
2451
|
+
const select$b = function EinsteinPromptTemplateAttachmentExclusionInfoRepresentationSelect() {
|
|
2452
|
+
return {
|
|
2453
|
+
kind: 'Fragment',
|
|
2454
|
+
version: VERSION$9,
|
|
2455
|
+
private: [],
|
|
2456
|
+
selections: [
|
|
2457
|
+
{
|
|
2458
|
+
name: 'exclusionReason',
|
|
2459
|
+
kind: 'Scalar'
|
|
2460
|
+
},
|
|
2461
|
+
{
|
|
2462
|
+
name: 'isExcluded',
|
|
2463
|
+
kind: 'Scalar'
|
|
2464
|
+
}
|
|
2465
|
+
]
|
|
2466
|
+
};
|
|
2467
|
+
};
|
|
2468
|
+
function equals$9(existing, incoming) {
|
|
2469
|
+
const existing_isExcluded = existing.isExcluded;
|
|
2470
|
+
const incoming_isExcluded = incoming.isExcluded;
|
|
2471
|
+
if (!(existing_isExcluded === incoming_isExcluded)) {
|
|
2472
|
+
return false;
|
|
2473
|
+
}
|
|
2474
|
+
const existing_exclusionReason = existing.exclusionReason;
|
|
2475
|
+
const incoming_exclusionReason = incoming.exclusionReason;
|
|
2476
|
+
if (!(existing_exclusionReason === incoming_exclusionReason)) {
|
|
2477
|
+
return false;
|
|
2478
|
+
}
|
|
2479
|
+
return true;
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
const VERSION$8 = "e17acb0eaa1c08f01126009262687ae4";
|
|
2433
2483
|
function validate$8(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation') {
|
|
2434
2484
|
const v_error = (() => {
|
|
2435
2485
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2436
2486
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2437
2487
|
}
|
|
2488
|
+
if (obj.exclusionInfo !== undefined) {
|
|
2489
|
+
const obj_exclusionInfo = obj.exclusionInfo;
|
|
2490
|
+
const path_exclusionInfo = path + '.exclusionInfo';
|
|
2491
|
+
const referencepath_exclusionInfoValidationError = validate$9(obj_exclusionInfo, path_exclusionInfo);
|
|
2492
|
+
if (referencepath_exclusionInfoValidationError !== null) {
|
|
2493
|
+
let message = 'Object doesn\'t match EinsteinPromptTemplateAttachmentExclusionInfoRepresentation (at "' + path_exclusionInfo + '")\n';
|
|
2494
|
+
message += referencepath_exclusionInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2495
|
+
return new TypeError(message);
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2438
2498
|
const obj_fileExtension = obj.fileExtension;
|
|
2439
2499
|
const path_fileExtension = path + '.fileExtension';
|
|
2440
2500
|
if (typeof obj_fileExtension !== 'string') {
|
|
@@ -2459,11 +2519,18 @@ function validate$8(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
|
|
|
2459
2519
|
return v_error === undefined ? null : v_error;
|
|
2460
2520
|
}
|
|
2461
2521
|
const select$a = function EinsteinPromptTemplateAttachmentRepresentationSelect() {
|
|
2522
|
+
const { selections: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__opaque, } = select$b();
|
|
2462
2523
|
return {
|
|
2463
2524
|
kind: 'Fragment',
|
|
2464
2525
|
version: VERSION$8,
|
|
2465
2526
|
private: [],
|
|
2466
2527
|
selections: [
|
|
2528
|
+
{
|
|
2529
|
+
name: 'exclusionInfo',
|
|
2530
|
+
kind: 'Object',
|
|
2531
|
+
selections: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__selections,
|
|
2532
|
+
required: false
|
|
2533
|
+
},
|
|
2467
2534
|
{
|
|
2468
2535
|
name: 'fileExtension',
|
|
2469
2536
|
kind: 'Scalar'
|
|
@@ -2504,6 +2571,19 @@ function equals$8(existing, incoming) {
|
|
|
2504
2571
|
if (!(existing_title === incoming_title)) {
|
|
2505
2572
|
return false;
|
|
2506
2573
|
}
|
|
2574
|
+
const existing_exclusionInfo = existing.exclusionInfo;
|
|
2575
|
+
const incoming_exclusionInfo = incoming.exclusionInfo;
|
|
2576
|
+
// if at least one of these optionals is defined
|
|
2577
|
+
if (existing_exclusionInfo !== undefined || incoming_exclusionInfo !== undefined) {
|
|
2578
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2579
|
+
// not equal
|
|
2580
|
+
if (existing_exclusionInfo === undefined || incoming_exclusionInfo === undefined) {
|
|
2581
|
+
return false;
|
|
2582
|
+
}
|
|
2583
|
+
if (!(equals$9(existing_exclusionInfo, incoming_exclusionInfo))) {
|
|
2584
|
+
return false;
|
|
2585
|
+
}
|
|
2586
|
+
}
|
|
2507
2587
|
return true;
|
|
2508
2588
|
}
|
|
2509
2589
|
|
|
@@ -2874,7 +2954,7 @@ function validate$3(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2874
2954
|
for (let i = 0; i < obj_generations.length; i++) {
|
|
2875
2955
|
const obj_generations_item = obj_generations[i];
|
|
2876
2956
|
const path_generations_item = path_generations + '[' + i + ']';
|
|
2877
|
-
const referencepath_generations_itemValidationError = validate$
|
|
2957
|
+
const referencepath_generations_itemValidationError = validate$h(obj_generations_item, path_generations_item);
|
|
2878
2958
|
if (referencepath_generations_itemValidationError !== null) {
|
|
2879
2959
|
let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
|
|
2880
2960
|
message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2885,7 +2965,7 @@ function validate$3(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2885
2965
|
const path_parameters = path + '.parameters';
|
|
2886
2966
|
let obj_parameters_union0 = null;
|
|
2887
2967
|
const obj_parameters_union0_error = (() => {
|
|
2888
|
-
const referencepath_parametersValidationError = validate$
|
|
2968
|
+
const referencepath_parametersValidationError = validate$g(obj_parameters, path_parameters);
|
|
2889
2969
|
if (referencepath_parametersValidationError !== null) {
|
|
2890
2970
|
let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
|
|
2891
2971
|
message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3016,8 +3096,8 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
3016
3096
|
const select$5 = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
|
|
3017
3097
|
const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$a();
|
|
3018
3098
|
const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$9();
|
|
3019
|
-
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$
|
|
3020
|
-
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$
|
|
3099
|
+
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$j();
|
|
3100
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$i();
|
|
3021
3101
|
const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$7();
|
|
3022
3102
|
const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$6();
|
|
3023
3103
|
return {
|
|
@@ -3137,7 +3217,7 @@ function equals$3(existing, incoming) {
|
|
|
3137
3217
|
const existing_generations = existing.generations;
|
|
3138
3218
|
const incoming_generations = incoming.generations;
|
|
3139
3219
|
const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
|
|
3140
|
-
if (!(equals$
|
|
3220
|
+
if (!(equals$e(existing_generations_item, incoming_generations_item))) {
|
|
3141
3221
|
return false;
|
|
3142
3222
|
}
|
|
3143
3223
|
});
|
|
@@ -3149,7 +3229,7 @@ function equals$3(existing, incoming) {
|
|
|
3149
3229
|
if (!(existing_parameters === incoming_parameters
|
|
3150
3230
|
|| (existing_parameters != null &&
|
|
3151
3231
|
incoming_parameters != null &&
|
|
3152
|
-
equals$
|
|
3232
|
+
equals$d(existing_parameters, incoming_parameters)))) {
|
|
3153
3233
|
return false;
|
|
3154
3234
|
}
|
|
3155
3235
|
const existing_prompt = existing.prompt;
|
|
@@ -3284,7 +3364,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
3284
3364
|
const config = {};
|
|
3285
3365
|
typeCheckConfig$7(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
|
|
3286
3366
|
const untrustedConfig_promptTemplateGenerationsInput = untrustedConfig.promptTemplateGenerationsInput;
|
|
3287
|
-
const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$
|
|
3367
|
+
const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$a(untrustedConfig_promptTemplateGenerationsInput);
|
|
3288
3368
|
if (referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError === null) {
|
|
3289
3369
|
config.promptTemplateGenerationsInput = untrustedConfig_promptTemplateGenerationsInput;
|
|
3290
3370
|
}
|