@salesforce/lds-adapters-service-einsteinllm 1.451.0-dev2 → 1.451.0-dev3
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 +618 -387
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateAttachmentRepresentation.d.ts +8 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTypeModelAffinityRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTypeRecordRepresentation.d.ts +11 -1
- package/package.json +3 -3
- package/sfdc/index.js +633 -402
- package/src/raml/api.raml +39 -0
package/sfdc/index.js
CHANGED
|
@@ -178,7 +178,7 @@ function createLink(ref) {
|
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
function validate$
|
|
181
|
+
function validate$P(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$O(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepre
|
|
|
222
222
|
return v_error === undefined ? null : v_error;
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
function validate$
|
|
225
|
+
function validate$O(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$N(obj, path = 'WrappedListString') {
|
|
|
243
243
|
return v_error === undefined ? null : v_error;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
function validate$
|
|
246
|
+
function validate$N(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$P(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$M(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$O(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$M(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$D = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
|
|
279
|
+
function validate$M(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$L(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
|
|
|
297
297
|
})();
|
|
298
298
|
return v_error === undefined ? null : v_error;
|
|
299
299
|
}
|
|
300
|
-
const select$
|
|
300
|
+
const select$X = function EinsteinLlmEmbeddingItemRepresentationSelect() {
|
|
301
301
|
return {
|
|
302
302
|
kind: 'Fragment',
|
|
303
|
-
version: VERSION$
|
|
303
|
+
version: VERSION$D,
|
|
304
304
|
private: [],
|
|
305
305
|
selections: [
|
|
306
306
|
{
|
|
@@ -315,7 +315,7 @@ const select$W = function EinsteinLlmEmbeddingItemRepresentationSelect() {
|
|
|
315
315
|
]
|
|
316
316
|
};
|
|
317
317
|
};
|
|
318
|
-
function equals$
|
|
318
|
+
function equals$D(existing, incoming) {
|
|
319
319
|
const existing_index = existing.index;
|
|
320
320
|
const incoming_index = incoming.index;
|
|
321
321
|
if (!(existing_index === incoming_index)) {
|
|
@@ -335,8 +335,8 @@ function equals$C(existing, incoming) {
|
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
const TTL$d = 100;
|
|
338
|
-
const VERSION$
|
|
339
|
-
function validate$
|
|
338
|
+
const VERSION$C = "d9873651f09d29764ef4d4231eb653d7";
|
|
339
|
+
function validate$L(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$K(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$M(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');
|
|
@@ -377,11 +377,11 @@ const RepresentationType$d = 'EinsteinLlmEmbeddingsRepresentation';
|
|
|
377
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$W = function EinsteinLlmEmbeddingsRepresentationSelect() {
|
|
381
|
+
const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$X();
|
|
382
382
|
return {
|
|
383
383
|
kind: 'Fragment',
|
|
384
|
-
version: VERSION$
|
|
384
|
+
version: VERSION$C,
|
|
385
385
|
private: [],
|
|
386
386
|
selections: [
|
|
387
387
|
{
|
|
@@ -398,11 +398,11 @@ const select$V = function EinsteinLlmEmbeddingsRepresentationSelect() {
|
|
|
398
398
|
]
|
|
399
399
|
};
|
|
400
400
|
};
|
|
401
|
-
function equals$
|
|
401
|
+
function equals$C(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$D(existing_embeddings_item, incoming_embeddings_item))) {
|
|
406
406
|
return false;
|
|
407
407
|
}
|
|
408
408
|
});
|
|
@@ -423,14 +423,14 @@ function equals$B(existing, incoming) {
|
|
|
423
423
|
}
|
|
424
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$L(input);
|
|
427
427
|
if (validateError !== null) {
|
|
428
428
|
throw validateError;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
const key = path.fullPath;
|
|
432
432
|
const ttlToUse = TTL$d;
|
|
433
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "EinsteinLLM", VERSION$
|
|
433
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "EinsteinLLM", VERSION$C, RepresentationType$d, equals$C);
|
|
434
434
|
return createLink(key);
|
|
435
435
|
};
|
|
436
436
|
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -443,8 +443,8 @@ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
443
443
|
});
|
|
444
444
|
}
|
|
445
445
|
|
|
446
|
-
function select$
|
|
447
|
-
return select$
|
|
446
|
+
function select$V(luvio, params) {
|
|
447
|
+
return select$W();
|
|
448
448
|
}
|
|
449
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) + ')';
|
|
@@ -458,7 +458,7 @@ function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
458
458
|
luvio.storeIngest(key, ingest$d, body);
|
|
459
459
|
const snapshot = luvio.storeLookup({
|
|
460
460
|
recordId: key,
|
|
461
|
-
node: select$
|
|
461
|
+
node: select$V(),
|
|
462
462
|
variables: {},
|
|
463
463
|
}, snapshotRefresh);
|
|
464
464
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -475,7 +475,7 @@ function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
|
475
475
|
const storeMetadataParams = {
|
|
476
476
|
ttl: TTL$d,
|
|
477
477
|
namespace: keyPrefix,
|
|
478
|
-
version: VERSION$
|
|
478
|
+
version: VERSION$C,
|
|
479
479
|
representationName: RepresentationType$d
|
|
480
480
|
};
|
|
481
481
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -508,7 +508,7 @@ function keyBuilder$r(luvio, config) {
|
|
|
508
508
|
function typeCheckConfig$j(untrustedConfig) {
|
|
509
509
|
const config = {};
|
|
510
510
|
const untrustedConfig_embeddingsInput = untrustedConfig.embeddingsInput;
|
|
511
|
-
const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$
|
|
511
|
+
const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$N(untrustedConfig_embeddingsInput);
|
|
512
512
|
if (referenceEinsteinLlmEmbeddingsInputRepresentationValidationError === null) {
|
|
513
513
|
config.embeddingsInput = untrustedConfig_embeddingsInput;
|
|
514
514
|
}
|
|
@@ -529,7 +529,7 @@ function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
|
529
529
|
}
|
|
530
530
|
function adapterFragment$b(luvio, config) {
|
|
531
531
|
createResourceParams$j(config);
|
|
532
|
-
return select$
|
|
532
|
+
return select$V();
|
|
533
533
|
}
|
|
534
534
|
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
535
535
|
const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
|
|
@@ -585,7 +585,7 @@ const createEmbeddingsAdapterFactory = (luvio) => function EinsteinLLM__createEm
|
|
|
585
585
|
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
586
586
|
};
|
|
587
587
|
|
|
588
|
-
function validate$
|
|
588
|
+
function validate$K(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 + '")');
|
|
@@ -633,8 +633,8 @@ function validate$J(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
|
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
const TTL$c = 100;
|
|
636
|
-
const VERSION$
|
|
637
|
-
function validate$
|
|
636
|
+
const VERSION$B = "4033328f65865dd5d80c68a7573a4522";
|
|
637
|
+
function validate$J(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 + '")');
|
|
@@ -660,10 +660,10 @@ function keyBuilderFromType$4(luvio, object) {
|
|
|
660
660
|
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
661
661
|
return input;
|
|
662
662
|
}
|
|
663
|
-
const select$
|
|
663
|
+
const select$U = function EinsteinLlmFeedbackRepresentationSelect() {
|
|
664
664
|
return {
|
|
665
665
|
kind: 'Fragment',
|
|
666
|
-
version: VERSION$
|
|
666
|
+
version: VERSION$B,
|
|
667
667
|
private: [],
|
|
668
668
|
selections: [
|
|
669
669
|
{
|
|
@@ -673,7 +673,7 @@ const select$T = function EinsteinLlmFeedbackRepresentationSelect() {
|
|
|
673
673
|
]
|
|
674
674
|
};
|
|
675
675
|
};
|
|
676
|
-
function equals$
|
|
676
|
+
function equals$B(existing, incoming) {
|
|
677
677
|
const existing_message = existing.message;
|
|
678
678
|
const incoming_message = incoming.message;
|
|
679
679
|
if (!(existing_message === incoming_message)) {
|
|
@@ -683,14 +683,14 @@ function equals$A(existing, incoming) {
|
|
|
683
683
|
}
|
|
684
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$J(input);
|
|
687
687
|
if (validateError !== null) {
|
|
688
688
|
throw validateError;
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
const key = keyBuilderFromType$4(luvio, input);
|
|
692
692
|
const ttlToUse = TTL$c;
|
|
693
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "EinsteinLLM", VERSION$
|
|
693
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "EinsteinLLM", VERSION$B, RepresentationType$c, equals$B);
|
|
694
694
|
return createLink(key);
|
|
695
695
|
};
|
|
696
696
|
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -703,8 +703,8 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
703
703
|
});
|
|
704
704
|
}
|
|
705
705
|
|
|
706
|
-
function select$
|
|
707
|
-
return select$
|
|
706
|
+
function select$T(luvio, params) {
|
|
707
|
+
return select$U();
|
|
708
708
|
}
|
|
709
709
|
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
710
710
|
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
@@ -715,7 +715,7 @@ function ingestSuccess$i(luvio, resourceParams, response) {
|
|
|
715
715
|
luvio.storeIngest(key, ingest$c, body);
|
|
716
716
|
const snapshot = luvio.storeLookup({
|
|
717
717
|
recordId: key,
|
|
718
|
-
node: select$
|
|
718
|
+
node: select$T(),
|
|
719
719
|
variables: {},
|
|
720
720
|
});
|
|
721
721
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -749,7 +749,7 @@ const createResourceParams$i = /*#__PURE__*/ createResourceParams$k(createFeedba
|
|
|
749
749
|
function typeCheckConfig$i(untrustedConfig) {
|
|
750
750
|
const config = {};
|
|
751
751
|
const untrustedConfig_feedbackInput = untrustedConfig.feedbackInput;
|
|
752
|
-
const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$
|
|
752
|
+
const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$K(untrustedConfig_feedbackInput);
|
|
753
753
|
if (referenceEinsteinLlmFeedbackInputRepresentationValidationError === null) {
|
|
754
754
|
config.feedbackInput = untrustedConfig_feedbackInput;
|
|
755
755
|
}
|
|
@@ -797,7 +797,7 @@ const createFeedbackAdapterFactory = (luvio) => {
|
|
|
797
797
|
};
|
|
798
798
|
};
|
|
799
799
|
|
|
800
|
-
function validate$
|
|
800
|
+
function validate$I(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$H(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation'
|
|
|
880
880
|
return v_error === undefined ? null : v_error;
|
|
881
881
|
}
|
|
882
882
|
|
|
883
|
-
function validate$
|
|
883
|
+
function validate$H(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$G(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$I(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$G(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$A = "9ebac74e6f964c363d5fd1913df363af";
|
|
915
|
+
function validate$G(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$F(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentat
|
|
|
948
948
|
})();
|
|
949
949
|
return v_error === undefined ? null : v_error;
|
|
950
950
|
}
|
|
951
|
-
const select$
|
|
951
|
+
const select$S = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
|
|
952
952
|
return {
|
|
953
953
|
kind: 'Fragment',
|
|
954
|
-
version: VERSION$
|
|
954
|
+
version: VERSION$A,
|
|
955
955
|
private: [],
|
|
956
956
|
selections: [
|
|
957
957
|
{
|
|
@@ -962,7 +962,7 @@ const select$R = function EinsteinLlmGenerationsContentQualityRepresentationSele
|
|
|
962
962
|
]
|
|
963
963
|
};
|
|
964
964
|
};
|
|
965
|
-
function equals$
|
|
965
|
+
function equals$A(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$z(existing, incoming) {
|
|
|
979
979
|
return true;
|
|
980
980
|
}
|
|
981
981
|
|
|
982
|
-
const VERSION$
|
|
983
|
-
function validate$
|
|
982
|
+
const VERSION$z = "77af44a252cb5b45b4d9a8101368d2aa";
|
|
983
|
+
function validate$F(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$E(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation
|
|
|
1184
1184
|
})();
|
|
1185
1185
|
return v_error === undefined ? null : v_error;
|
|
1186
1186
|
}
|
|
1187
|
-
const select$
|
|
1187
|
+
const select$R = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
|
|
1188
1188
|
return {
|
|
1189
1189
|
kind: 'Fragment',
|
|
1190
|
-
version: VERSION$
|
|
1190
|
+
version: VERSION$z,
|
|
1191
1191
|
private: [],
|
|
1192
1192
|
selections: [
|
|
1193
1193
|
{
|
|
@@ -1228,7 +1228,7 @@ const select$Q = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect(
|
|
|
1228
1228
|
]
|
|
1229
1229
|
};
|
|
1230
1230
|
};
|
|
1231
|
-
function equals$
|
|
1231
|
+
function equals$z(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$y(existing, incoming) {
|
|
|
1323
1323
|
return true;
|
|
1324
1324
|
}
|
|
1325
1325
|
|
|
1326
|
-
const VERSION$
|
|
1327
|
-
function validate$
|
|
1326
|
+
const VERSION$y = "4a07778ff6c595d91c575188146647a1";
|
|
1327
|
+
function validate$E(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$D(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$G(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$D(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$F(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$D(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$Q = function EinsteinLlmGenerationItemRepresentationSelect() {
|
|
1420
|
+
const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$S();
|
|
1421
|
+
const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$R();
|
|
1422
1422
|
return {
|
|
1423
1423
|
kind: 'Fragment',
|
|
1424
|
-
version: VERSION$
|
|
1424
|
+
version: VERSION$y,
|
|
1425
1425
|
private: [],
|
|
1426
1426
|
selections: [
|
|
1427
1427
|
{
|
|
@@ -1458,7 +1458,7 @@ const select$P = function EinsteinLlmGenerationItemRepresentationSelect() {
|
|
|
1458
1458
|
]
|
|
1459
1459
|
};
|
|
1460
1460
|
};
|
|
1461
|
-
function equals$
|
|
1461
|
+
function equals$y(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$x(existing, incoming) {
|
|
|
1499
1499
|
if (!(existing_contentQualityRepresentation === incoming_contentQualityRepresentation
|
|
1500
1500
|
|| (existing_contentQualityRepresentation != null &&
|
|
1501
1501
|
incoming_contentQualityRepresentation != null &&
|
|
1502
|
-
equals$
|
|
1502
|
+
equals$A(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
|
|
1503
1503
|
return false;
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
@@ -1515,15 +1515,15 @@ function equals$x(existing, incoming) {
|
|
|
1515
1515
|
if (!(existing_safetyScoreRepresentation === incoming_safetyScoreRepresentation
|
|
1516
1516
|
|| (existing_safetyScoreRepresentation != null &&
|
|
1517
1517
|
incoming_safetyScoreRepresentation != null &&
|
|
1518
|
-
equals$
|
|
1518
|
+
equals$z(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$x = "379fd960d1a0118f506f458ab2c8dd7e";
|
|
1526
|
+
function validate$D(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$C(obj, path = 'WrappedMap') {
|
|
|
1545
1545
|
})();
|
|
1546
1546
|
return v_error === undefined ? null : v_error;
|
|
1547
1547
|
}
|
|
1548
|
-
const select$
|
|
1548
|
+
const select$P = function WrappedMapSelect() {
|
|
1549
1549
|
return {
|
|
1550
1550
|
kind: 'Fragment',
|
|
1551
|
-
version: VERSION$
|
|
1551
|
+
version: VERSION$x,
|
|
1552
1552
|
private: [],
|
|
1553
1553
|
selections: [
|
|
1554
1554
|
{
|
|
@@ -1559,7 +1559,7 @@ const select$O = function WrappedMapSelect() {
|
|
|
1559
1559
|
]
|
|
1560
1560
|
};
|
|
1561
1561
|
};
|
|
1562
|
-
function equals$
|
|
1562
|
+
function equals$x(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) => {
|
|
@@ -1574,8 +1574,8 @@ function equals$w(existing, incoming) {
|
|
|
1574
1574
|
}
|
|
1575
1575
|
|
|
1576
1576
|
const TTL$b = 100;
|
|
1577
|
-
const VERSION$
|
|
1578
|
-
function validate$
|
|
1577
|
+
const VERSION$w = "d8abd72a42e842b253da1c38954dafbc";
|
|
1578
|
+
function validate$C(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$B(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$E(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$B(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$D(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');
|
|
@@ -1671,12 +1671,12 @@ function keyBuilderFromType$3(luvio, object) {
|
|
|
1671
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$O = function EinsteinLlmGenerationsRepresentationSelect() {
|
|
1675
|
+
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$Q();
|
|
1676
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$P();
|
|
1677
1677
|
return {
|
|
1678
1678
|
kind: 'Fragment',
|
|
1679
|
-
version: VERSION$
|
|
1679
|
+
version: VERSION$w,
|
|
1680
1680
|
private: [],
|
|
1681
1681
|
selections: [
|
|
1682
1682
|
{
|
|
@@ -1702,7 +1702,7 @@ const select$N = function EinsteinLlmGenerationsRepresentationSelect() {
|
|
|
1702
1702
|
]
|
|
1703
1703
|
};
|
|
1704
1704
|
};
|
|
1705
|
-
function equals$
|
|
1705
|
+
function equals$w(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$v(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$y(existing_generations_item, incoming_generations_item))) {
|
|
1715
1715
|
return false;
|
|
1716
1716
|
}
|
|
1717
1717
|
});
|
|
@@ -1723,7 +1723,7 @@ function equals$v(existing, incoming) {
|
|
|
1723
1723
|
if (!(existing_parameters === incoming_parameters
|
|
1724
1724
|
|| (existing_parameters != null &&
|
|
1725
1725
|
incoming_parameters != null &&
|
|
1726
|
-
equals$
|
|
1726
|
+
equals$x(existing_parameters, incoming_parameters)))) {
|
|
1727
1727
|
return false;
|
|
1728
1728
|
}
|
|
1729
1729
|
const existing_prompt = existing.prompt;
|
|
@@ -1735,14 +1735,14 @@ function equals$v(existing, incoming) {
|
|
|
1735
1735
|
}
|
|
1736
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$C(input);
|
|
1739
1739
|
if (validateError !== null) {
|
|
1740
1740
|
throw validateError;
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
1743
1743
|
const key = keyBuilderFromType$3(luvio, input);
|
|
1744
1744
|
const ttlToUse = TTL$b;
|
|
1745
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "EinsteinLLM", VERSION$
|
|
1745
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "EinsteinLLM", VERSION$w, RepresentationType$b, equals$w);
|
|
1746
1746
|
return createLink(key);
|
|
1747
1747
|
};
|
|
1748
1748
|
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1755,8 +1755,8 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1755
1755
|
});
|
|
1756
1756
|
}
|
|
1757
1757
|
|
|
1758
|
-
function select$
|
|
1759
|
-
return select$
|
|
1758
|
+
function select$N(luvio, params) {
|
|
1759
|
+
return select$O();
|
|
1760
1760
|
}
|
|
1761
1761
|
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
1762
1762
|
getTypeCacheKeys$b(storeKeyMap, luvio, response);
|
|
@@ -1767,7 +1767,7 @@ function ingestSuccess$h(luvio, resourceParams, response) {
|
|
|
1767
1767
|
luvio.storeIngest(key, ingest$b, body);
|
|
1768
1768
|
const snapshot = luvio.storeLookup({
|
|
1769
1769
|
recordId: key,
|
|
1770
|
-
node: select$
|
|
1770
|
+
node: select$N(),
|
|
1771
1771
|
variables: {},
|
|
1772
1772
|
});
|
|
1773
1773
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1801,7 +1801,7 @@ const createResourceParams$h = /*#__PURE__*/ createResourceParams$k(createGenera
|
|
|
1801
1801
|
function typeCheckConfig$h(untrustedConfig) {
|
|
1802
1802
|
const config = {};
|
|
1803
1803
|
const untrustedConfig_generationsInput = untrustedConfig.generationsInput;
|
|
1804
|
-
const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$
|
|
1804
|
+
const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$H(untrustedConfig_generationsInput);
|
|
1805
1805
|
if (referenceEinsteinLlmGenerationsInputRepresentationValidationError === null) {
|
|
1806
1806
|
config.generationsInput = untrustedConfig_generationsInput;
|
|
1807
1807
|
}
|
|
@@ -1849,7 +1849,7 @@ const createGenerationsAdapterFactory = (luvio) => {
|
|
|
1849
1849
|
};
|
|
1850
1850
|
};
|
|
1851
1851
|
|
|
1852
|
-
function validate$
|
|
1852
|
+
function validate$B(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$A(obj, path = 'WrappedValueMap') {
|
|
|
1872
1872
|
return v_error === undefined ? null : v_error;
|
|
1873
1873
|
}
|
|
1874
1874
|
|
|
1875
|
-
function validate$
|
|
1875
|
+
function validate$A(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$z(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$I(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$z(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$B(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$z(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$v = "6a209d0b32d59e6e04155812fdf5c985";
|
|
1936
|
+
function validate$z(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$y(obj, path = 'EinsteinLlmGenerationGenAiCitedReferenceReprese
|
|
|
1997
1997
|
})();
|
|
1998
1998
|
return v_error === undefined ? null : v_error;
|
|
1999
1999
|
}
|
|
2000
|
-
const select$
|
|
2000
|
+
const select$M = function EinsteinLlmGenerationGenAiCitedReferenceRepresentationSelect() {
|
|
2001
2001
|
return {
|
|
2002
2002
|
kind: 'Fragment',
|
|
2003
|
-
version: VERSION$
|
|
2003
|
+
version: VERSION$v,
|
|
2004
2004
|
private: [],
|
|
2005
2005
|
selections: [
|
|
2006
2006
|
{
|
|
@@ -2038,7 +2038,7 @@ const select$L = function EinsteinLlmGenerationGenAiCitedReferenceRepresentation
|
|
|
2038
2038
|
]
|
|
2039
2039
|
};
|
|
2040
2040
|
};
|
|
2041
|
-
function equals$
|
|
2041
|
+
function equals$v(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$u(existing, incoming) {
|
|
|
2130
2130
|
return true;
|
|
2131
2131
|
}
|
|
2132
2132
|
|
|
2133
|
-
const VERSION$
|
|
2134
|
-
function validate$
|
|
2133
|
+
const VERSION$u = "bcc0ea08323732f4187dd2b9f70fea6c";
|
|
2134
|
+
function validate$y(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$x(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$z(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$x(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$L = function EinsteinLlmGenerationCitationRepresentationSelect() {
|
|
2160
|
+
const { selections: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__selections, opaque: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__opaque, } = select$M();
|
|
2161
2161
|
return {
|
|
2162
2162
|
kind: 'Fragment',
|
|
2163
|
-
version: VERSION$
|
|
2163
|
+
version: VERSION$u,
|
|
2164
2164
|
private: [],
|
|
2165
2165
|
selections: [
|
|
2166
2166
|
{
|
|
@@ -2173,7 +2173,7 @@ const select$K = function EinsteinLlmGenerationCitationRepresentationSelect() {
|
|
|
2173
2173
|
]
|
|
2174
2174
|
};
|
|
2175
2175
|
};
|
|
2176
|
-
function equals$
|
|
2176
|
+
function equals$u(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$t(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$v(existing_citedReferences_item, incoming_citedReferences_item))) {
|
|
2188
2188
|
return false;
|
|
2189
2189
|
}
|
|
2190
2190
|
});
|
|
@@ -2195,8 +2195,8 @@ function equals$t(existing, incoming) {
|
|
|
2195
2195
|
return true;
|
|
2196
2196
|
}
|
|
2197
2197
|
|
|
2198
|
-
const VERSION$
|
|
2199
|
-
function validate$
|
|
2198
|
+
const VERSION$t = "f62ac44b024b123f079b57f349e05230";
|
|
2199
|
+
function validate$x(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$w(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRe
|
|
|
2214
2214
|
})();
|
|
2215
2215
|
return v_error === undefined ? null : v_error;
|
|
2216
2216
|
}
|
|
2217
|
-
const select$
|
|
2217
|
+
const select$K = function EinsteinPromptTemplateAttachmentExclusionInfoRepresentationSelect() {
|
|
2218
2218
|
return {
|
|
2219
2219
|
kind: 'Fragment',
|
|
2220
|
-
version: VERSION$
|
|
2220
|
+
version: VERSION$t,
|
|
2221
2221
|
private: [],
|
|
2222
2222
|
selections: [
|
|
2223
2223
|
{
|
|
@@ -2231,7 +2231,7 @@ const select$J = function EinsteinPromptTemplateAttachmentExclusionInfoRepresent
|
|
|
2231
2231
|
]
|
|
2232
2232
|
};
|
|
2233
2233
|
};
|
|
2234
|
-
function equals$
|
|
2234
|
+
function equals$t(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$s(existing, incoming) {
|
|
|
2245
2245
|
return true;
|
|
2246
2246
|
}
|
|
2247
2247
|
|
|
2248
|
-
const VERSION$
|
|
2249
|
-
function validate$
|
|
2248
|
+
const VERSION$s = "c7f101a8a143591c7e9c5e987860078e";
|
|
2249
|
+
function validate$w(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 + '")');
|
|
@@ -2261,7 +2261,7 @@ function validate$v(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
|
|
|
2261
2261
|
if (obj.exclusionInfo !== undefined) {
|
|
2262
2262
|
const obj_exclusionInfo = obj.exclusionInfo;
|
|
2263
2263
|
const path_exclusionInfo = path + '.exclusionInfo';
|
|
2264
|
-
const referencepath_exclusionInfoValidationError = validate$
|
|
2264
|
+
const referencepath_exclusionInfoValidationError = validate$x(obj_exclusionInfo, path_exclusionInfo);
|
|
2265
2265
|
if (referencepath_exclusionInfoValidationError !== null) {
|
|
2266
2266
|
let message = 'Object doesn\'t match EinsteinPromptTemplateAttachmentExclusionInfoRepresentation (at "' + path_exclusionInfo + '")\n';
|
|
2267
2267
|
message += referencepath_exclusionInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2295,14 +2295,30 @@ function validate$v(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
|
|
|
2295
2295
|
if (typeof obj_title !== 'string') {
|
|
2296
2296
|
return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
2297
2297
|
}
|
|
2298
|
+
if (obj.transformationInfo !== undefined) {
|
|
2299
|
+
const obj_transformationInfo = obj.transformationInfo;
|
|
2300
|
+
const path_transformationInfo = path + '.transformationInfo';
|
|
2301
|
+
if (typeof obj_transformationInfo !== 'object' || ArrayIsArray(obj_transformationInfo) || obj_transformationInfo === null) {
|
|
2302
|
+
return new TypeError('Expected "object" but received "' + typeof obj_transformationInfo + '" (at "' + path_transformationInfo + '")');
|
|
2303
|
+
}
|
|
2304
|
+
const obj_transformationInfo_keys = ObjectKeys(obj_transformationInfo);
|
|
2305
|
+
for (let i = 0; i < obj_transformationInfo_keys.length; i++) {
|
|
2306
|
+
const key = obj_transformationInfo_keys[i];
|
|
2307
|
+
const obj_transformationInfo_prop = obj_transformationInfo[key];
|
|
2308
|
+
const path_transformationInfo_prop = path_transformationInfo + '["' + key + '"]';
|
|
2309
|
+
if (typeof obj_transformationInfo_prop !== 'string') {
|
|
2310
|
+
return new TypeError('Expected "string" but received "' + typeof obj_transformationInfo_prop + '" (at "' + path_transformationInfo_prop + '")');
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2298
2314
|
})();
|
|
2299
2315
|
return v_error === undefined ? null : v_error;
|
|
2300
2316
|
}
|
|
2301
|
-
const select$
|
|
2302
|
-
const { selections: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__opaque, } = select$
|
|
2317
|
+
const select$J = function EinsteinPromptTemplateAttachmentRepresentationSelect() {
|
|
2318
|
+
const { selections: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__opaque, } = select$K();
|
|
2303
2319
|
return {
|
|
2304
2320
|
kind: 'Fragment',
|
|
2305
|
-
version: VERSION$
|
|
2321
|
+
version: VERSION$s,
|
|
2306
2322
|
private: [],
|
|
2307
2323
|
selections: [
|
|
2308
2324
|
{
|
|
@@ -2336,11 +2352,17 @@ const select$I = function EinsteinPromptTemplateAttachmentRepresentationSelect()
|
|
|
2336
2352
|
{
|
|
2337
2353
|
name: 'title',
|
|
2338
2354
|
kind: 'Scalar'
|
|
2355
|
+
},
|
|
2356
|
+
{
|
|
2357
|
+
name: 'transformationInfo',
|
|
2358
|
+
kind: 'Scalar',
|
|
2359
|
+
map: true,
|
|
2360
|
+
required: false
|
|
2339
2361
|
}
|
|
2340
2362
|
]
|
|
2341
2363
|
};
|
|
2342
2364
|
};
|
|
2343
|
-
function equals$
|
|
2365
|
+
function equals$s(existing, incoming) {
|
|
2344
2366
|
const existing_actualFileMimeType = existing.actualFileMimeType;
|
|
2345
2367
|
const incoming_actualFileMimeType = incoming.actualFileMimeType;
|
|
2346
2368
|
// if at least one of these optionals is defined
|
|
@@ -2396,15 +2418,33 @@ function equals$r(existing, incoming) {
|
|
|
2396
2418
|
if (existing_exclusionInfo === undefined || incoming_exclusionInfo === undefined) {
|
|
2397
2419
|
return false;
|
|
2398
2420
|
}
|
|
2399
|
-
if (!(equals$
|
|
2421
|
+
if (!(equals$t(existing_exclusionInfo, incoming_exclusionInfo))) {
|
|
2422
|
+
return false;
|
|
2423
|
+
}
|
|
2424
|
+
}
|
|
2425
|
+
const existing_transformationInfo = existing.transformationInfo;
|
|
2426
|
+
const incoming_transformationInfo = incoming.transformationInfo;
|
|
2427
|
+
// if at least one of these optionals is defined
|
|
2428
|
+
if (existing_transformationInfo !== undefined || incoming_transformationInfo !== undefined) {
|
|
2429
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2430
|
+
// not equal
|
|
2431
|
+
if (existing_transformationInfo === undefined || incoming_transformationInfo === undefined) {
|
|
2432
|
+
return false;
|
|
2433
|
+
}
|
|
2434
|
+
const equals_transformationInfo_props = equalsObject(existing_transformationInfo, incoming_transformationInfo, (existing_transformationInfo_prop, incoming_transformationInfo_prop) => {
|
|
2435
|
+
if (!(existing_transformationInfo_prop === incoming_transformationInfo_prop)) {
|
|
2436
|
+
return false;
|
|
2437
|
+
}
|
|
2438
|
+
});
|
|
2439
|
+
if (equals_transformationInfo_props === false) {
|
|
2400
2440
|
return false;
|
|
2401
2441
|
}
|
|
2402
2442
|
}
|
|
2403
2443
|
return true;
|
|
2404
2444
|
}
|
|
2405
2445
|
|
|
2406
|
-
const VERSION$
|
|
2407
|
-
function validate$
|
|
2446
|
+
const VERSION$r = "6458d624e5a1691821c764b6de0badb3";
|
|
2447
|
+
function validate$v(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresentation') {
|
|
2408
2448
|
const v_error = (() => {
|
|
2409
2449
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2410
2450
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2434,10 +2474,10 @@ function validate$u(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresent
|
|
|
2434
2474
|
})();
|
|
2435
2475
|
return v_error === undefined ? null : v_error;
|
|
2436
2476
|
}
|
|
2437
|
-
const select$
|
|
2477
|
+
const select$I = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
|
|
2438
2478
|
return {
|
|
2439
2479
|
kind: 'Fragment',
|
|
2440
|
-
version: VERSION$
|
|
2480
|
+
version: VERSION$r,
|
|
2441
2481
|
private: [],
|
|
2442
2482
|
selections: [
|
|
2443
2483
|
{
|
|
@@ -2460,7 +2500,7 @@ const select$H = function EinsteinPromptTemplateGenerationsErrorRepresentationSe
|
|
|
2460
2500
|
]
|
|
2461
2501
|
};
|
|
2462
2502
|
};
|
|
2463
|
-
function equals$
|
|
2503
|
+
function equals$r(existing, incoming) {
|
|
2464
2504
|
const existing_errorMessage = existing.errorMessage;
|
|
2465
2505
|
const incoming_errorMessage = incoming.errorMessage;
|
|
2466
2506
|
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
@@ -2492,8 +2532,8 @@ function equals$q(existing, incoming) {
|
|
|
2492
2532
|
return true;
|
|
2493
2533
|
}
|
|
2494
2534
|
|
|
2495
|
-
const VERSION$
|
|
2496
|
-
function validate$
|
|
2535
|
+
const VERSION$q = "3ce695c87c874dcb5ac019766a3b64f0";
|
|
2536
|
+
function validate$u(obj, path = 'EinsteinPromptTemplateLatencyRepresentation') {
|
|
2497
2537
|
const v_error = (() => {
|
|
2498
2538
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2499
2539
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2511,10 +2551,10 @@ function validate$t(obj, path = 'EinsteinPromptTemplateLatencyRepresentation') {
|
|
|
2511
2551
|
})();
|
|
2512
2552
|
return v_error === undefined ? null : v_error;
|
|
2513
2553
|
}
|
|
2514
|
-
const select$
|
|
2554
|
+
const select$H = function EinsteinPromptTemplateLatencyRepresentationSelect() {
|
|
2515
2555
|
return {
|
|
2516
2556
|
kind: 'Fragment',
|
|
2517
|
-
version: VERSION$
|
|
2557
|
+
version: VERSION$q,
|
|
2518
2558
|
private: [],
|
|
2519
2559
|
selections: [
|
|
2520
2560
|
{
|
|
@@ -2528,7 +2568,7 @@ const select$G = function EinsteinPromptTemplateLatencyRepresentationSelect() {
|
|
|
2528
2568
|
]
|
|
2529
2569
|
};
|
|
2530
2570
|
};
|
|
2531
|
-
function equals$
|
|
2571
|
+
function equals$q(existing, incoming) {
|
|
2532
2572
|
const existing_duration = existing.duration;
|
|
2533
2573
|
const incoming_duration = incoming.duration;
|
|
2534
2574
|
if (!(existing_duration === incoming_duration)) {
|
|
@@ -2542,15 +2582,15 @@ function equals$p(existing, incoming) {
|
|
|
2542
2582
|
return true;
|
|
2543
2583
|
}
|
|
2544
2584
|
|
|
2545
|
-
const VERSION$
|
|
2546
|
-
function validate$
|
|
2585
|
+
const VERSION$p = "9ef738d379a8db0dc8193d438d7995ad";
|
|
2586
|
+
function validate$t(obj, path = 'EinsteinPromptTemplateLatencyBreakdownItemRepresentation') {
|
|
2547
2587
|
const v_error = (() => {
|
|
2548
2588
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2549
2589
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2550
2590
|
}
|
|
2551
2591
|
const obj_latency = obj.latency;
|
|
2552
2592
|
const path_latency = path + '.latency';
|
|
2553
|
-
const referencepath_latencyValidationError = validate$
|
|
2593
|
+
const referencepath_latencyValidationError = validate$u(obj_latency, path_latency);
|
|
2554
2594
|
if (referencepath_latencyValidationError !== null) {
|
|
2555
2595
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyRepresentation (at "' + path_latency + '")\n';
|
|
2556
2596
|
message += referencepath_latencyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2564,11 +2604,11 @@ function validate$s(obj, path = 'EinsteinPromptTemplateLatencyBreakdownItemRepre
|
|
|
2564
2604
|
})();
|
|
2565
2605
|
return v_error === undefined ? null : v_error;
|
|
2566
2606
|
}
|
|
2567
|
-
const select$
|
|
2568
|
-
const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$
|
|
2607
|
+
const select$G = function EinsteinPromptTemplateLatencyBreakdownItemRepresentationSelect() {
|
|
2608
|
+
const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$H();
|
|
2569
2609
|
return {
|
|
2570
2610
|
kind: 'Fragment',
|
|
2571
|
-
version: VERSION$
|
|
2611
|
+
version: VERSION$p,
|
|
2572
2612
|
private: [],
|
|
2573
2613
|
selections: [
|
|
2574
2614
|
{
|
|
@@ -2583,7 +2623,7 @@ const select$F = function EinsteinPromptTemplateLatencyBreakdownItemRepresentati
|
|
|
2583
2623
|
]
|
|
2584
2624
|
};
|
|
2585
2625
|
};
|
|
2586
|
-
function equals$
|
|
2626
|
+
function equals$p(existing, incoming) {
|
|
2587
2627
|
const existing_referenceName = existing.referenceName;
|
|
2588
2628
|
const incoming_referenceName = incoming.referenceName;
|
|
2589
2629
|
if (!(existing_referenceName === incoming_referenceName)) {
|
|
@@ -2591,14 +2631,14 @@ function equals$o(existing, incoming) {
|
|
|
2591
2631
|
}
|
|
2592
2632
|
const existing_latency = existing.latency;
|
|
2593
2633
|
const incoming_latency = incoming.latency;
|
|
2594
|
-
if (!(equals$
|
|
2634
|
+
if (!(equals$q(existing_latency, incoming_latency))) {
|
|
2595
2635
|
return false;
|
|
2596
2636
|
}
|
|
2597
2637
|
return true;
|
|
2598
2638
|
}
|
|
2599
2639
|
|
|
2600
|
-
const VERSION$
|
|
2601
|
-
function validate$
|
|
2640
|
+
const VERSION$o = "4b1840167fa1759c2413bafa7708e137";
|
|
2641
|
+
function validate$s(obj, path = 'EinsteinPromptTemplateLatencyStepRepresentation') {
|
|
2602
2642
|
const v_error = (() => {
|
|
2603
2643
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2604
2644
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2612,7 +2652,7 @@ function validate$r(obj, path = 'EinsteinPromptTemplateLatencyStepRepresentation
|
|
|
2612
2652
|
for (let i = 0; i < obj_breakdown.length; i++) {
|
|
2613
2653
|
const obj_breakdown_item = obj_breakdown[i];
|
|
2614
2654
|
const path_breakdown_item = path_breakdown + '[' + i + ']';
|
|
2615
|
-
const referencepath_breakdown_itemValidationError = validate$
|
|
2655
|
+
const referencepath_breakdown_itemValidationError = validate$t(obj_breakdown_item, path_breakdown_item);
|
|
2616
2656
|
if (referencepath_breakdown_itemValidationError !== null) {
|
|
2617
2657
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyBreakdownItemRepresentation (at "' + path_breakdown_item + '")\n';
|
|
2618
2658
|
message += referencepath_breakdown_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2622,7 +2662,7 @@ function validate$r(obj, path = 'EinsteinPromptTemplateLatencyStepRepresentation
|
|
|
2622
2662
|
}
|
|
2623
2663
|
const obj_latency = obj.latency;
|
|
2624
2664
|
const path_latency = path + '.latency';
|
|
2625
|
-
const referencepath_latencyValidationError = validate$
|
|
2665
|
+
const referencepath_latencyValidationError = validate$u(obj_latency, path_latency);
|
|
2626
2666
|
if (referencepath_latencyValidationError !== null) {
|
|
2627
2667
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyRepresentation (at "' + path_latency + '")\n';
|
|
2628
2668
|
message += referencepath_latencyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2631,12 +2671,12 @@ function validate$r(obj, path = 'EinsteinPromptTemplateLatencyStepRepresentation
|
|
|
2631
2671
|
})();
|
|
2632
2672
|
return v_error === undefined ? null : v_error;
|
|
2633
2673
|
}
|
|
2634
|
-
const select$
|
|
2635
|
-
const { selections: EinsteinPromptTemplateLatencyBreakdownItemRepresentation__selections, opaque: EinsteinPromptTemplateLatencyBreakdownItemRepresentation__opaque, } = select$
|
|
2636
|
-
const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$
|
|
2674
|
+
const select$F = function EinsteinPromptTemplateLatencyStepRepresentationSelect() {
|
|
2675
|
+
const { selections: EinsteinPromptTemplateLatencyBreakdownItemRepresentation__selections, opaque: EinsteinPromptTemplateLatencyBreakdownItemRepresentation__opaque, } = select$G();
|
|
2676
|
+
const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$H();
|
|
2637
2677
|
return {
|
|
2638
2678
|
kind: 'Fragment',
|
|
2639
|
-
version: VERSION$
|
|
2679
|
+
version: VERSION$o,
|
|
2640
2680
|
private: [],
|
|
2641
2681
|
selections: [
|
|
2642
2682
|
{
|
|
@@ -2654,7 +2694,7 @@ const select$E = function EinsteinPromptTemplateLatencyStepRepresentationSelect(
|
|
|
2654
2694
|
]
|
|
2655
2695
|
};
|
|
2656
2696
|
};
|
|
2657
|
-
function equals$
|
|
2697
|
+
function equals$o(existing, incoming) {
|
|
2658
2698
|
const existing_breakdown = existing.breakdown;
|
|
2659
2699
|
const incoming_breakdown = incoming.breakdown;
|
|
2660
2700
|
// if at least one of these optionals is defined
|
|
@@ -2665,7 +2705,7 @@ function equals$n(existing, incoming) {
|
|
|
2665
2705
|
return false;
|
|
2666
2706
|
}
|
|
2667
2707
|
const equals_breakdown_items = equalsArray(existing_breakdown, incoming_breakdown, (existing_breakdown_item, incoming_breakdown_item) => {
|
|
2668
|
-
if (!(equals$
|
|
2708
|
+
if (!(equals$p(existing_breakdown_item, incoming_breakdown_item))) {
|
|
2669
2709
|
return false;
|
|
2670
2710
|
}
|
|
2671
2711
|
});
|
|
@@ -2675,14 +2715,14 @@ function equals$n(existing, incoming) {
|
|
|
2675
2715
|
}
|
|
2676
2716
|
const existing_latency = existing.latency;
|
|
2677
2717
|
const incoming_latency = incoming.latency;
|
|
2678
|
-
if (!(equals$
|
|
2718
|
+
if (!(equals$q(existing_latency, incoming_latency))) {
|
|
2679
2719
|
return false;
|
|
2680
2720
|
}
|
|
2681
2721
|
return true;
|
|
2682
2722
|
}
|
|
2683
2723
|
|
|
2684
|
-
const VERSION$
|
|
2685
|
-
function validate$
|
|
2724
|
+
const VERSION$n = "d6838fb296069ed6df17b2215be2da09";
|
|
2725
|
+
function validate$r(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresentation') {
|
|
2686
2726
|
const v_error = (() => {
|
|
2687
2727
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2688
2728
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2690,7 +2730,7 @@ function validate$q(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresent
|
|
|
2690
2730
|
if (obj.generation !== undefined) {
|
|
2691
2731
|
const obj_generation = obj.generation;
|
|
2692
2732
|
const path_generation = path + '.generation';
|
|
2693
|
-
const referencepath_generationValidationError = validate$
|
|
2733
|
+
const referencepath_generationValidationError = validate$s(obj_generation, path_generation);
|
|
2694
2734
|
if (referencepath_generationValidationError !== null) {
|
|
2695
2735
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_generation + '")\n';
|
|
2696
2736
|
message += referencepath_generationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2700,7 +2740,7 @@ function validate$q(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresent
|
|
|
2700
2740
|
if (obj.hydration !== undefined) {
|
|
2701
2741
|
const obj_hydration = obj.hydration;
|
|
2702
2742
|
const path_hydration = path + '.hydration';
|
|
2703
|
-
const referencepath_hydrationValidationError = validate$
|
|
2743
|
+
const referencepath_hydrationValidationError = validate$s(obj_hydration, path_hydration);
|
|
2704
2744
|
if (referencepath_hydrationValidationError !== null) {
|
|
2705
2745
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_hydration + '")\n';
|
|
2706
2746
|
message += referencepath_hydrationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2709,7 +2749,7 @@ function validate$q(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresent
|
|
|
2709
2749
|
}
|
|
2710
2750
|
const obj_loadTemplate = obj.loadTemplate;
|
|
2711
2751
|
const path_loadTemplate = path + '.loadTemplate';
|
|
2712
|
-
const referencepath_loadTemplateValidationError = validate$
|
|
2752
|
+
const referencepath_loadTemplateValidationError = validate$s(obj_loadTemplate, path_loadTemplate);
|
|
2713
2753
|
if (referencepath_loadTemplateValidationError !== null) {
|
|
2714
2754
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_loadTemplate + '")\n';
|
|
2715
2755
|
message += referencepath_loadTemplateValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2718,7 +2758,7 @@ function validate$q(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresent
|
|
|
2718
2758
|
if (obj.mask !== undefined) {
|
|
2719
2759
|
const obj_mask = obj.mask;
|
|
2720
2760
|
const path_mask = path + '.mask';
|
|
2721
|
-
const referencepath_maskValidationError = validate$
|
|
2761
|
+
const referencepath_maskValidationError = validate$s(obj_mask, path_mask);
|
|
2722
2762
|
if (referencepath_maskValidationError !== null) {
|
|
2723
2763
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_mask + '")\n';
|
|
2724
2764
|
message += referencepath_maskValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2728,7 +2768,7 @@ function validate$q(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresent
|
|
|
2728
2768
|
if (obj.resolveData !== undefined) {
|
|
2729
2769
|
const obj_resolveData = obj.resolveData;
|
|
2730
2770
|
const path_resolveData = path + '.resolveData';
|
|
2731
|
-
const referencepath_resolveDataValidationError = validate$
|
|
2771
|
+
const referencepath_resolveDataValidationError = validate$s(obj_resolveData, path_resolveData);
|
|
2732
2772
|
if (referencepath_resolveDataValidationError !== null) {
|
|
2733
2773
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_resolveData + '")\n';
|
|
2734
2774
|
message += referencepath_resolveDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2738,7 +2778,7 @@ function validate$q(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresent
|
|
|
2738
2778
|
if (obj.summarize !== undefined) {
|
|
2739
2779
|
const obj_summarize = obj.summarize;
|
|
2740
2780
|
const path_summarize = path + '.summarize';
|
|
2741
|
-
const referencepath_summarizeValidationError = validate$
|
|
2781
|
+
const referencepath_summarizeValidationError = validate$s(obj_summarize, path_summarize);
|
|
2742
2782
|
if (referencepath_summarizeValidationError !== null) {
|
|
2743
2783
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_summarize + '")\n';
|
|
2744
2784
|
message += referencepath_summarizeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2748,11 +2788,11 @@ function validate$q(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresent
|
|
|
2748
2788
|
})();
|
|
2749
2789
|
return v_error === undefined ? null : v_error;
|
|
2750
2790
|
}
|
|
2751
|
-
const select$
|
|
2752
|
-
const { selections: EinsteinPromptTemplateLatencyStepRepresentation__selections, opaque: EinsteinPromptTemplateLatencyStepRepresentation__opaque, } = select$
|
|
2791
|
+
const select$E = function EinsteinPromptTemplateLatencyExecutionRepresentationSelect() {
|
|
2792
|
+
const { selections: EinsteinPromptTemplateLatencyStepRepresentation__selections, opaque: EinsteinPromptTemplateLatencyStepRepresentation__opaque, } = select$F();
|
|
2753
2793
|
return {
|
|
2754
2794
|
kind: 'Fragment',
|
|
2755
|
-
version: VERSION$
|
|
2795
|
+
version: VERSION$n,
|
|
2756
2796
|
private: [],
|
|
2757
2797
|
selections: [
|
|
2758
2798
|
{
|
|
@@ -2793,7 +2833,7 @@ const select$D = function EinsteinPromptTemplateLatencyExecutionRepresentationSe
|
|
|
2793
2833
|
]
|
|
2794
2834
|
};
|
|
2795
2835
|
};
|
|
2796
|
-
function equals$
|
|
2836
|
+
function equals$n(existing, incoming) {
|
|
2797
2837
|
const existing_generation = existing.generation;
|
|
2798
2838
|
const incoming_generation = incoming.generation;
|
|
2799
2839
|
// if at least one of these optionals is defined
|
|
@@ -2803,7 +2843,7 @@ function equals$m(existing, incoming) {
|
|
|
2803
2843
|
if (existing_generation === undefined || incoming_generation === undefined) {
|
|
2804
2844
|
return false;
|
|
2805
2845
|
}
|
|
2806
|
-
if (!(equals$
|
|
2846
|
+
if (!(equals$o(existing_generation, incoming_generation))) {
|
|
2807
2847
|
return false;
|
|
2808
2848
|
}
|
|
2809
2849
|
}
|
|
@@ -2816,13 +2856,13 @@ function equals$m(existing, incoming) {
|
|
|
2816
2856
|
if (existing_hydration === undefined || incoming_hydration === undefined) {
|
|
2817
2857
|
return false;
|
|
2818
2858
|
}
|
|
2819
|
-
if (!(equals$
|
|
2859
|
+
if (!(equals$o(existing_hydration, incoming_hydration))) {
|
|
2820
2860
|
return false;
|
|
2821
2861
|
}
|
|
2822
2862
|
}
|
|
2823
2863
|
const existing_loadTemplate = existing.loadTemplate;
|
|
2824
2864
|
const incoming_loadTemplate = incoming.loadTemplate;
|
|
2825
|
-
if (!(equals$
|
|
2865
|
+
if (!(equals$o(existing_loadTemplate, incoming_loadTemplate))) {
|
|
2826
2866
|
return false;
|
|
2827
2867
|
}
|
|
2828
2868
|
const existing_mask = existing.mask;
|
|
@@ -2834,7 +2874,7 @@ function equals$m(existing, incoming) {
|
|
|
2834
2874
|
if (existing_mask === undefined || incoming_mask === undefined) {
|
|
2835
2875
|
return false;
|
|
2836
2876
|
}
|
|
2837
|
-
if (!(equals$
|
|
2877
|
+
if (!(equals$o(existing_mask, incoming_mask))) {
|
|
2838
2878
|
return false;
|
|
2839
2879
|
}
|
|
2840
2880
|
}
|
|
@@ -2847,7 +2887,7 @@ function equals$m(existing, incoming) {
|
|
|
2847
2887
|
if (existing_resolveData === undefined || incoming_resolveData === undefined) {
|
|
2848
2888
|
return false;
|
|
2849
2889
|
}
|
|
2850
|
-
if (!(equals$
|
|
2890
|
+
if (!(equals$o(existing_resolveData, incoming_resolveData))) {
|
|
2851
2891
|
return false;
|
|
2852
2892
|
}
|
|
2853
2893
|
}
|
|
@@ -2860,22 +2900,22 @@ function equals$m(existing, incoming) {
|
|
|
2860
2900
|
if (existing_summarize === undefined || incoming_summarize === undefined) {
|
|
2861
2901
|
return false;
|
|
2862
2902
|
}
|
|
2863
|
-
if (!(equals$
|
|
2903
|
+
if (!(equals$o(existing_summarize, incoming_summarize))) {
|
|
2864
2904
|
return false;
|
|
2865
2905
|
}
|
|
2866
2906
|
}
|
|
2867
2907
|
return true;
|
|
2868
2908
|
}
|
|
2869
2909
|
|
|
2870
|
-
const VERSION$
|
|
2871
|
-
function validate$
|
|
2910
|
+
const VERSION$m = "bfbfa37e3d6bd35c36ba73c3f9b973b6";
|
|
2911
|
+
function validate$q(obj, path = 'EinsteinPromptTemplatePerformanceRepresentation') {
|
|
2872
2912
|
const v_error = (() => {
|
|
2873
2913
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2874
2914
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2875
2915
|
}
|
|
2876
2916
|
const obj_execution = obj.execution;
|
|
2877
2917
|
const path_execution = path + '.execution';
|
|
2878
|
-
const referencepath_executionValidationError = validate$
|
|
2918
|
+
const referencepath_executionValidationError = validate$r(obj_execution, path_execution);
|
|
2879
2919
|
if (referencepath_executionValidationError !== null) {
|
|
2880
2920
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyExecutionRepresentation (at "' + path_execution + '")\n';
|
|
2881
2921
|
message += referencepath_executionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2883,7 +2923,7 @@ function validate$p(obj, path = 'EinsteinPromptTemplatePerformanceRepresentation
|
|
|
2883
2923
|
}
|
|
2884
2924
|
const obj_latency = obj.latency;
|
|
2885
2925
|
const path_latency = path + '.latency';
|
|
2886
|
-
const referencepath_latencyValidationError = validate$
|
|
2926
|
+
const referencepath_latencyValidationError = validate$u(obj_latency, path_latency);
|
|
2887
2927
|
if (referencepath_latencyValidationError !== null) {
|
|
2888
2928
|
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyRepresentation (at "' + path_latency + '")\n';
|
|
2889
2929
|
message += referencepath_latencyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2892,12 +2932,12 @@ function validate$p(obj, path = 'EinsteinPromptTemplatePerformanceRepresentation
|
|
|
2892
2932
|
})();
|
|
2893
2933
|
return v_error === undefined ? null : v_error;
|
|
2894
2934
|
}
|
|
2895
|
-
const select$
|
|
2896
|
-
const { selections: EinsteinPromptTemplateLatencyExecutionRepresentation__selections, opaque: EinsteinPromptTemplateLatencyExecutionRepresentation__opaque, } = select$
|
|
2897
|
-
const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$
|
|
2935
|
+
const select$D = function EinsteinPromptTemplatePerformanceRepresentationSelect() {
|
|
2936
|
+
const { selections: EinsteinPromptTemplateLatencyExecutionRepresentation__selections, opaque: EinsteinPromptTemplateLatencyExecutionRepresentation__opaque, } = select$E();
|
|
2937
|
+
const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$H();
|
|
2898
2938
|
return {
|
|
2899
2939
|
kind: 'Fragment',
|
|
2900
|
-
version: VERSION$
|
|
2940
|
+
version: VERSION$m,
|
|
2901
2941
|
private: [],
|
|
2902
2942
|
selections: [
|
|
2903
2943
|
{
|
|
@@ -2913,22 +2953,22 @@ const select$C = function EinsteinPromptTemplatePerformanceRepresentationSelect(
|
|
|
2913
2953
|
]
|
|
2914
2954
|
};
|
|
2915
2955
|
};
|
|
2916
|
-
function equals$
|
|
2956
|
+
function equals$m(existing, incoming) {
|
|
2917
2957
|
const existing_execution = existing.execution;
|
|
2918
2958
|
const incoming_execution = incoming.execution;
|
|
2919
|
-
if (!(equals$
|
|
2959
|
+
if (!(equals$n(existing_execution, incoming_execution))) {
|
|
2920
2960
|
return false;
|
|
2921
2961
|
}
|
|
2922
2962
|
const existing_latency = existing.latency;
|
|
2923
2963
|
const incoming_latency = incoming.latency;
|
|
2924
|
-
if (!(equals$
|
|
2964
|
+
if (!(equals$q(existing_latency, incoming_latency))) {
|
|
2925
2965
|
return false;
|
|
2926
2966
|
}
|
|
2927
2967
|
return true;
|
|
2928
2968
|
}
|
|
2929
2969
|
|
|
2930
|
-
const VERSION$
|
|
2931
|
-
function validate$
|
|
2970
|
+
const VERSION$l = "7c417ce44e4bc05dfcc454e6825590e8";
|
|
2971
|
+
function validate$p(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentation') {
|
|
2932
2972
|
const v_error = (() => {
|
|
2933
2973
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2934
2974
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2941,10 +2981,10 @@ function validate$o(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentatio
|
|
|
2941
2981
|
})();
|
|
2942
2982
|
return v_error === undefined ? null : v_error;
|
|
2943
2983
|
}
|
|
2944
|
-
const select$
|
|
2984
|
+
const select$C = function EinsteinPromptTemplateMaskSettingsRepresentationSelect() {
|
|
2945
2985
|
return {
|
|
2946
2986
|
kind: 'Fragment',
|
|
2947
|
-
version: VERSION$
|
|
2987
|
+
version: VERSION$l,
|
|
2948
2988
|
private: [],
|
|
2949
2989
|
selections: [
|
|
2950
2990
|
{
|
|
@@ -2954,7 +2994,7 @@ const select$B = function EinsteinPromptTemplateMaskSettingsRepresentationSelect
|
|
|
2954
2994
|
]
|
|
2955
2995
|
};
|
|
2956
2996
|
};
|
|
2957
|
-
function equals$
|
|
2997
|
+
function equals$l(existing, incoming) {
|
|
2958
2998
|
const existing_enableModeration = existing.enableModeration;
|
|
2959
2999
|
const incoming_enableModeration = incoming.enableModeration;
|
|
2960
3000
|
if (!(existing_enableModeration === incoming_enableModeration)) {
|
|
@@ -2963,8 +3003,8 @@ function equals$k(existing, incoming) {
|
|
|
2963
3003
|
return true;
|
|
2964
3004
|
}
|
|
2965
3005
|
|
|
2966
|
-
const VERSION$
|
|
2967
|
-
function validate$
|
|
3006
|
+
const VERSION$k = "92ad1abd0e2a60bc36941409cadda7e2";
|
|
3007
|
+
function validate$o(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation') {
|
|
2968
3008
|
const v_error = (() => {
|
|
2969
3009
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2970
3010
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2979,7 +3019,7 @@ function validate$n(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation
|
|
|
2979
3019
|
const path_moderationSettings = path + '.moderationSettings';
|
|
2980
3020
|
let obj_moderationSettings_union0 = null;
|
|
2981
3021
|
const obj_moderationSettings_union0_error = (() => {
|
|
2982
|
-
const referencepath_moderationSettingsValidationError = validate$
|
|
3022
|
+
const referencepath_moderationSettingsValidationError = validate$p(obj_moderationSettings, path_moderationSettings);
|
|
2983
3023
|
if (referencepath_moderationSettingsValidationError !== null) {
|
|
2984
3024
|
let message = 'Object doesn\'t match EinsteinPromptTemplateMaskSettingsRepresentation (at "' + path_moderationSettings + '")\n';
|
|
2985
3025
|
message += referencepath_moderationSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3015,11 +3055,11 @@ function validate$n(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation
|
|
|
3015
3055
|
})();
|
|
3016
3056
|
return v_error === undefined ? null : v_error;
|
|
3017
3057
|
}
|
|
3018
|
-
const select$
|
|
3019
|
-
const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$
|
|
3058
|
+
const select$B = function EinsteinPromptTemplateMaskContentRepresentationSelect() {
|
|
3059
|
+
const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$C();
|
|
3020
3060
|
return {
|
|
3021
3061
|
kind: 'Fragment',
|
|
3022
|
-
version: VERSION$
|
|
3062
|
+
version: VERSION$k,
|
|
3023
3063
|
private: [],
|
|
3024
3064
|
selections: [
|
|
3025
3065
|
{
|
|
@@ -3041,7 +3081,7 @@ const select$A = function EinsteinPromptTemplateMaskContentRepresentationSelect(
|
|
|
3041
3081
|
]
|
|
3042
3082
|
};
|
|
3043
3083
|
};
|
|
3044
|
-
function equals$
|
|
3084
|
+
function equals$k(existing, incoming) {
|
|
3045
3085
|
const existing_content = existing.content;
|
|
3046
3086
|
const incoming_content = incoming.content;
|
|
3047
3087
|
if (!(existing_content === incoming_content)) {
|
|
@@ -3072,15 +3112,15 @@ function equals$j(existing, incoming) {
|
|
|
3072
3112
|
if (!(existing_moderationSettings === incoming_moderationSettings
|
|
3073
3113
|
|| (existing_moderationSettings != null &&
|
|
3074
3114
|
incoming_moderationSettings != null &&
|
|
3075
|
-
equals$
|
|
3115
|
+
equals$l(existing_moderationSettings, incoming_moderationSettings)))) {
|
|
3076
3116
|
return false;
|
|
3077
3117
|
}
|
|
3078
3118
|
}
|
|
3079
3119
|
return true;
|
|
3080
3120
|
}
|
|
3081
3121
|
|
|
3082
|
-
const VERSION$
|
|
3083
|
-
function validate$
|
|
3122
|
+
const VERSION$j = "507a815605f8d30ae9b52b0ec513d25e";
|
|
3123
|
+
function validate$n(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation') {
|
|
3084
3124
|
const v_error = (() => {
|
|
3085
3125
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3086
3126
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3110,10 +3150,10 @@ function validate$m(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation')
|
|
|
3110
3150
|
})();
|
|
3111
3151
|
return v_error === undefined ? null : v_error;
|
|
3112
3152
|
}
|
|
3113
|
-
const select$
|
|
3153
|
+
const select$A = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
|
|
3114
3154
|
return {
|
|
3115
3155
|
kind: 'Fragment',
|
|
3116
|
-
version: VERSION$
|
|
3156
|
+
version: VERSION$j,
|
|
3117
3157
|
private: [],
|
|
3118
3158
|
selections: [
|
|
3119
3159
|
{
|
|
@@ -3132,7 +3172,7 @@ const select$z = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
|
|
|
3132
3172
|
]
|
|
3133
3173
|
};
|
|
3134
3174
|
};
|
|
3135
|
-
function equals$
|
|
3175
|
+
function equals$j(existing, incoming) {
|
|
3136
3176
|
const existing_originalValue = existing.originalValue;
|
|
3137
3177
|
const incoming_originalValue = incoming.originalValue;
|
|
3138
3178
|
if (!(existing_originalValue === incoming_originalValue)) {
|
|
@@ -3156,8 +3196,8 @@ function equals$i(existing, incoming) {
|
|
|
3156
3196
|
return true;
|
|
3157
3197
|
}
|
|
3158
3198
|
|
|
3159
|
-
const VERSION$
|
|
3160
|
-
function validate$
|
|
3199
|
+
const VERSION$i = "76811380b919e1427b00791d86819029";
|
|
3200
|
+
function validate$m(obj, path = 'EinsteinPromptTemplateTokenBreakdownRepresentation') {
|
|
3161
3201
|
const v_error = (() => {
|
|
3162
3202
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3163
3203
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3185,10 +3225,10 @@ function validate$l(obj, path = 'EinsteinPromptTemplateTokenBreakdownRepresentat
|
|
|
3185
3225
|
})();
|
|
3186
3226
|
return v_error === undefined ? null : v_error;
|
|
3187
3227
|
}
|
|
3188
|
-
const select$
|
|
3228
|
+
const select$z = function EinsteinPromptTemplateTokenBreakdownRepresentationSelect() {
|
|
3189
3229
|
return {
|
|
3190
3230
|
kind: 'Fragment',
|
|
3191
|
-
version: VERSION$
|
|
3231
|
+
version: VERSION$i,
|
|
3192
3232
|
private: [],
|
|
3193
3233
|
selections: [
|
|
3194
3234
|
{
|
|
@@ -3210,7 +3250,7 @@ const select$y = function EinsteinPromptTemplateTokenBreakdownRepresentationSele
|
|
|
3210
3250
|
]
|
|
3211
3251
|
};
|
|
3212
3252
|
};
|
|
3213
|
-
function equals$
|
|
3253
|
+
function equals$i(existing, incoming) {
|
|
3214
3254
|
const existing_occurrences = existing.occurrences;
|
|
3215
3255
|
const incoming_occurrences = incoming.occurrences;
|
|
3216
3256
|
if (!(existing_occurrences === incoming_occurrences)) {
|
|
@@ -3234,8 +3274,8 @@ function equals$h(existing, incoming) {
|
|
|
3234
3274
|
return true;
|
|
3235
3275
|
}
|
|
3236
3276
|
|
|
3237
|
-
const VERSION$
|
|
3238
|
-
function validate$
|
|
3277
|
+
const VERSION$h = "7212a778ca53a828691ec38760108a72";
|
|
3278
|
+
function validate$l(obj, path = 'EinsteinPromptTemplatePromptTokenUsageRepresentation') {
|
|
3239
3279
|
const v_error = (() => {
|
|
3240
3280
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3241
3281
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3249,7 +3289,7 @@ function validate$k(obj, path = 'EinsteinPromptTemplatePromptTokenUsageRepresent
|
|
|
3249
3289
|
for (let i = 0; i < obj_breakdown.length; i++) {
|
|
3250
3290
|
const obj_breakdown_item = obj_breakdown[i];
|
|
3251
3291
|
const path_breakdown_item = path_breakdown + '[' + i + ']';
|
|
3252
|
-
const referencepath_breakdown_itemValidationError = validate$
|
|
3292
|
+
const referencepath_breakdown_itemValidationError = validate$m(obj_breakdown_item, path_breakdown_item);
|
|
3253
3293
|
if (referencepath_breakdown_itemValidationError !== null) {
|
|
3254
3294
|
let message = 'Object doesn\'t match EinsteinPromptTemplateTokenBreakdownRepresentation (at "' + path_breakdown_item + '")\n';
|
|
3255
3295
|
message += referencepath_breakdown_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3265,11 +3305,11 @@ function validate$k(obj, path = 'EinsteinPromptTemplatePromptTokenUsageRepresent
|
|
|
3265
3305
|
})();
|
|
3266
3306
|
return v_error === undefined ? null : v_error;
|
|
3267
3307
|
}
|
|
3268
|
-
const select$
|
|
3269
|
-
const { selections: EinsteinPromptTemplateTokenBreakdownRepresentation__selections, opaque: EinsteinPromptTemplateTokenBreakdownRepresentation__opaque, } = select$
|
|
3308
|
+
const select$y = function EinsteinPromptTemplatePromptTokenUsageRepresentationSelect() {
|
|
3309
|
+
const { selections: EinsteinPromptTemplateTokenBreakdownRepresentation__selections, opaque: EinsteinPromptTemplateTokenBreakdownRepresentation__opaque, } = select$z();
|
|
3270
3310
|
return {
|
|
3271
3311
|
kind: 'Fragment',
|
|
3272
|
-
version: VERSION$
|
|
3312
|
+
version: VERSION$h,
|
|
3273
3313
|
private: [],
|
|
3274
3314
|
selections: [
|
|
3275
3315
|
{
|
|
@@ -3286,7 +3326,7 @@ const select$x = function EinsteinPromptTemplatePromptTokenUsageRepresentationSe
|
|
|
3286
3326
|
]
|
|
3287
3327
|
};
|
|
3288
3328
|
};
|
|
3289
|
-
function equals$
|
|
3329
|
+
function equals$h(existing, incoming) {
|
|
3290
3330
|
const existing_total = existing.total;
|
|
3291
3331
|
const incoming_total = incoming.total;
|
|
3292
3332
|
if (!(existing_total === incoming_total)) {
|
|
@@ -3302,7 +3342,7 @@ function equals$g(existing, incoming) {
|
|
|
3302
3342
|
return false;
|
|
3303
3343
|
}
|
|
3304
3344
|
const equals_breakdown_items = equalsArray(existing_breakdown, incoming_breakdown, (existing_breakdown_item, incoming_breakdown_item) => {
|
|
3305
|
-
if (!(equals$
|
|
3345
|
+
if (!(equals$i(existing_breakdown_item, incoming_breakdown_item))) {
|
|
3306
3346
|
return false;
|
|
3307
3347
|
}
|
|
3308
3348
|
});
|
|
@@ -3313,8 +3353,8 @@ function equals$g(existing, incoming) {
|
|
|
3313
3353
|
return true;
|
|
3314
3354
|
}
|
|
3315
3355
|
|
|
3316
|
-
const VERSION$
|
|
3317
|
-
function validate$
|
|
3356
|
+
const VERSION$g = "20ed3f8bf15ce2c8910245591e27fae5";
|
|
3357
|
+
function validate$k(obj, path = 'EinsteinPromptTemplateTokenUsageRepresentation') {
|
|
3318
3358
|
const v_error = (() => {
|
|
3319
3359
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3320
3360
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3326,7 +3366,7 @@ function validate$j(obj, path = 'EinsteinPromptTemplateTokenUsageRepresentation'
|
|
|
3326
3366
|
}
|
|
3327
3367
|
const obj_prompt = obj.prompt;
|
|
3328
3368
|
const path_prompt = path + '.prompt';
|
|
3329
|
-
const referencepath_promptValidationError = validate$
|
|
3369
|
+
const referencepath_promptValidationError = validate$l(obj_prompt, path_prompt);
|
|
3330
3370
|
if (referencepath_promptValidationError !== null) {
|
|
3331
3371
|
let message = 'Object doesn\'t match EinsteinPromptTemplatePromptTokenUsageRepresentation (at "' + path_prompt + '")\n';
|
|
3332
3372
|
message += referencepath_promptValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3340,11 +3380,11 @@ function validate$j(obj, path = 'EinsteinPromptTemplateTokenUsageRepresentation'
|
|
|
3340
3380
|
})();
|
|
3341
3381
|
return v_error === undefined ? null : v_error;
|
|
3342
3382
|
}
|
|
3343
|
-
const select$
|
|
3344
|
-
const { selections: EinsteinPromptTemplatePromptTokenUsageRepresentation__selections, opaque: EinsteinPromptTemplatePromptTokenUsageRepresentation__opaque, } = select$
|
|
3383
|
+
const select$x = function EinsteinPromptTemplateTokenUsageRepresentationSelect() {
|
|
3384
|
+
const { selections: EinsteinPromptTemplatePromptTokenUsageRepresentation__selections, opaque: EinsteinPromptTemplatePromptTokenUsageRepresentation__opaque, } = select$y();
|
|
3345
3385
|
return {
|
|
3346
3386
|
kind: 'Fragment',
|
|
3347
|
-
version: VERSION$
|
|
3387
|
+
version: VERSION$g,
|
|
3348
3388
|
private: [],
|
|
3349
3389
|
selections: [
|
|
3350
3390
|
{
|
|
@@ -3363,7 +3403,7 @@ const select$w = function EinsteinPromptTemplateTokenUsageRepresentationSelect()
|
|
|
3363
3403
|
]
|
|
3364
3404
|
};
|
|
3365
3405
|
};
|
|
3366
|
-
function equals$
|
|
3406
|
+
function equals$g(existing, incoming) {
|
|
3367
3407
|
const existing_completion = existing.completion;
|
|
3368
3408
|
const incoming_completion = incoming.completion;
|
|
3369
3409
|
if (!(existing_completion === incoming_completion)) {
|
|
@@ -3376,15 +3416,15 @@ function equals$f(existing, incoming) {
|
|
|
3376
3416
|
}
|
|
3377
3417
|
const existing_prompt = existing.prompt;
|
|
3378
3418
|
const incoming_prompt = incoming.prompt;
|
|
3379
|
-
if (!(equals$
|
|
3419
|
+
if (!(equals$h(existing_prompt, incoming_prompt))) {
|
|
3380
3420
|
return false;
|
|
3381
3421
|
}
|
|
3382
3422
|
return true;
|
|
3383
3423
|
}
|
|
3384
3424
|
|
|
3385
3425
|
const TTL$a = 100;
|
|
3386
|
-
const VERSION$
|
|
3387
|
-
function validate$
|
|
3426
|
+
const VERSION$f = "c298962a9a914e248606ab1ac01d1d08";
|
|
3427
|
+
function validate$j(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
|
|
3388
3428
|
const v_error = (() => {
|
|
3389
3429
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3390
3430
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3392,7 +3432,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3392
3432
|
if (obj.citations !== undefined) {
|
|
3393
3433
|
const obj_citations = obj.citations;
|
|
3394
3434
|
const path_citations = path + '.citations';
|
|
3395
|
-
const referencepath_citationsValidationError = validate$
|
|
3435
|
+
const referencepath_citationsValidationError = validate$y(obj_citations, path_citations);
|
|
3396
3436
|
if (referencepath_citationsValidationError !== null) {
|
|
3397
3437
|
let message = 'Object doesn\'t match EinsteinLlmGenerationCitationRepresentation (at "' + path_citations + '")\n';
|
|
3398
3438
|
message += referencepath_citationsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3408,7 +3448,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3408
3448
|
for (let i = 0; i < obj_fileData.length; i++) {
|
|
3409
3449
|
const obj_fileData_item = obj_fileData[i];
|
|
3410
3450
|
const path_fileData_item = path_fileData + '[' + i + ']';
|
|
3411
|
-
const referencepath_fileData_itemValidationError = validate$
|
|
3451
|
+
const referencepath_fileData_itemValidationError = validate$w(obj_fileData_item, path_fileData_item);
|
|
3412
3452
|
if (referencepath_fileData_itemValidationError !== null) {
|
|
3413
3453
|
let message = 'Object doesn\'t match EinsteinPromptTemplateAttachmentRepresentation (at "' + path_fileData_item + '")\n';
|
|
3414
3454
|
message += referencepath_fileData_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3425,7 +3465,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3425
3465
|
for (let i = 0; i < obj_generationErrors.length; i++) {
|
|
3426
3466
|
const obj_generationErrors_item = obj_generationErrors[i];
|
|
3427
3467
|
const path_generationErrors_item = path_generationErrors + '[' + i + ']';
|
|
3428
|
-
const referencepath_generationErrors_itemValidationError = validate$
|
|
3468
|
+
const referencepath_generationErrors_itemValidationError = validate$v(obj_generationErrors_item, path_generationErrors_item);
|
|
3429
3469
|
if (referencepath_generationErrors_itemValidationError !== null) {
|
|
3430
3470
|
let message = 'Object doesn\'t match EinsteinPromptTemplateGenerationsErrorRepresentation (at "' + path_generationErrors_item + '")\n';
|
|
3431
3471
|
message += referencepath_generationErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3441,7 +3481,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3441
3481
|
for (let i = 0; i < obj_generations.length; i++) {
|
|
3442
3482
|
const obj_generations_item = obj_generations[i];
|
|
3443
3483
|
const path_generations_item = path_generations + '[' + i + ']';
|
|
3444
|
-
const referencepath_generations_itemValidationError = validate$
|
|
3484
|
+
const referencepath_generations_itemValidationError = validate$E(obj_generations_item, path_generations_item);
|
|
3445
3485
|
if (referencepath_generations_itemValidationError !== null) {
|
|
3446
3486
|
let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
|
|
3447
3487
|
message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3468,7 +3508,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3468
3508
|
const path_parameters = path + '.parameters';
|
|
3469
3509
|
let obj_parameters_union0 = null;
|
|
3470
3510
|
const obj_parameters_union0_error = (() => {
|
|
3471
|
-
const referencepath_parametersValidationError = validate$
|
|
3511
|
+
const referencepath_parametersValidationError = validate$D(obj_parameters, path_parameters);
|
|
3472
3512
|
if (referencepath_parametersValidationError !== null) {
|
|
3473
3513
|
let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
|
|
3474
3514
|
message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3496,7 +3536,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3496
3536
|
if (obj.performance !== undefined) {
|
|
3497
3537
|
const obj_performance = obj.performance;
|
|
3498
3538
|
const path_performance = path + '.performance';
|
|
3499
|
-
const referencepath_performanceValidationError = validate$
|
|
3539
|
+
const referencepath_performanceValidationError = validate$q(obj_performance, path_performance);
|
|
3500
3540
|
if (referencepath_performanceValidationError !== null) {
|
|
3501
3541
|
let message = 'Object doesn\'t match EinsteinPromptTemplatePerformanceRepresentation (at "' + path_performance + '")\n';
|
|
3502
3542
|
message += referencepath_performanceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3574,7 +3614,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3574
3614
|
for (let i = 0; i < obj_requestMessages.length; i++) {
|
|
3575
3615
|
const obj_requestMessages_item = obj_requestMessages[i];
|
|
3576
3616
|
const path_requestMessages_item = path_requestMessages + '[' + i + ']';
|
|
3577
|
-
const referencepath_requestMessages_itemValidationError = validate$
|
|
3617
|
+
const referencepath_requestMessages_itemValidationError = validate$o(obj_requestMessages_item, path_requestMessages_item);
|
|
3578
3618
|
if (referencepath_requestMessages_itemValidationError !== null) {
|
|
3579
3619
|
let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_requestMessages_item + '")\n';
|
|
3580
3620
|
message += referencepath_requestMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3591,7 +3631,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3591
3631
|
for (let i = 0; i < obj_responseMessages.length; i++) {
|
|
3592
3632
|
const obj_responseMessages_item = obj_responseMessages[i];
|
|
3593
3633
|
const path_responseMessages_item = path_responseMessages + '[' + i + ']';
|
|
3594
|
-
const referencepath_responseMessages_itemValidationError = validate$
|
|
3634
|
+
const referencepath_responseMessages_itemValidationError = validate$o(obj_responseMessages_item, path_responseMessages_item);
|
|
3595
3635
|
if (referencepath_responseMessages_itemValidationError !== null) {
|
|
3596
3636
|
let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_responseMessages_item + '")\n';
|
|
3597
3637
|
message += referencepath_responseMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3608,7 +3648,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3608
3648
|
for (let i = 0; i < obj_slotsMaskingInformation.length; i++) {
|
|
3609
3649
|
const obj_slotsMaskingInformation_item = obj_slotsMaskingInformation[i];
|
|
3610
3650
|
const path_slotsMaskingInformation_item = path_slotsMaskingInformation + '[' + i + ']';
|
|
3611
|
-
const referencepath_slotsMaskingInformation_itemValidationError = validate$
|
|
3651
|
+
const referencepath_slotsMaskingInformation_itemValidationError = validate$n(obj_slotsMaskingInformation_item, path_slotsMaskingInformation_item);
|
|
3612
3652
|
if (referencepath_slotsMaskingInformation_itemValidationError !== null) {
|
|
3613
3653
|
let message = 'Object doesn\'t match EinsteinPromptTemplateMaskDataRepresentation (at "' + path_slotsMaskingInformation_item + '")\n';
|
|
3614
3654
|
message += referencepath_slotsMaskingInformation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3619,7 +3659,7 @@ function validate$i(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
3619
3659
|
if (obj.tokenUsage !== undefined) {
|
|
3620
3660
|
const obj_tokenUsage = obj.tokenUsage;
|
|
3621
3661
|
const path_tokenUsage = path + '.tokenUsage';
|
|
3622
|
-
const referencepath_tokenUsageValidationError = validate$
|
|
3662
|
+
const referencepath_tokenUsageValidationError = validate$k(obj_tokenUsage, path_tokenUsage);
|
|
3623
3663
|
if (referencepath_tokenUsageValidationError !== null) {
|
|
3624
3664
|
let message = 'Object doesn\'t match EinsteinPromptTemplateTokenUsageRepresentation (at "' + path_tokenUsage + '")\n';
|
|
3625
3665
|
message += referencepath_tokenUsageValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3642,19 +3682,19 @@ function keyBuilderFromType$2(luvio, object) {
|
|
|
3642
3682
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
3643
3683
|
return input;
|
|
3644
3684
|
}
|
|
3645
|
-
const select$
|
|
3646
|
-
const { selections: EinsteinLlmGenerationCitationRepresentation__selections, opaque: EinsteinLlmGenerationCitationRepresentation__opaque, } = select$
|
|
3647
|
-
const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$
|
|
3648
|
-
const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$
|
|
3649
|
-
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$
|
|
3650
|
-
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$
|
|
3651
|
-
const { selections: EinsteinPromptTemplatePerformanceRepresentation__selections, opaque: EinsteinPromptTemplatePerformanceRepresentation__opaque, } = select$
|
|
3652
|
-
const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$
|
|
3653
|
-
const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$
|
|
3654
|
-
const { selections: EinsteinPromptTemplateTokenUsageRepresentation__selections, opaque: EinsteinPromptTemplateTokenUsageRepresentation__opaque, } = select$
|
|
3685
|
+
const select$w = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
|
|
3686
|
+
const { selections: EinsteinLlmGenerationCitationRepresentation__selections, opaque: EinsteinLlmGenerationCitationRepresentation__opaque, } = select$L();
|
|
3687
|
+
const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$J();
|
|
3688
|
+
const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$I();
|
|
3689
|
+
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$Q();
|
|
3690
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$P();
|
|
3691
|
+
const { selections: EinsteinPromptTemplatePerformanceRepresentation__selections, opaque: EinsteinPromptTemplatePerformanceRepresentation__opaque, } = select$D();
|
|
3692
|
+
const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$B();
|
|
3693
|
+
const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$A();
|
|
3694
|
+
const { selections: EinsteinPromptTemplateTokenUsageRepresentation__selections, opaque: EinsteinPromptTemplateTokenUsageRepresentation__opaque, } = select$x();
|
|
3655
3695
|
return {
|
|
3656
3696
|
kind: 'Fragment',
|
|
3657
|
-
version: VERSION$
|
|
3697
|
+
version: VERSION$f,
|
|
3658
3698
|
private: [],
|
|
3659
3699
|
selections: [
|
|
3660
3700
|
{
|
|
@@ -3746,7 +3786,7 @@ const select$v = function EinsteinPromptTemplateGenerationsRepresentationSelect(
|
|
|
3746
3786
|
]
|
|
3747
3787
|
};
|
|
3748
3788
|
};
|
|
3749
|
-
function equals$
|
|
3789
|
+
function equals$f(existing, incoming) {
|
|
3750
3790
|
const existing_promptTemplateDevName = existing.promptTemplateDevName;
|
|
3751
3791
|
const incoming_promptTemplateDevName = incoming.promptTemplateDevName;
|
|
3752
3792
|
if (!(existing_promptTemplateDevName === incoming_promptTemplateDevName)) {
|
|
@@ -3766,7 +3806,7 @@ function equals$e(existing, incoming) {
|
|
|
3766
3806
|
if (existing_citations === undefined || incoming_citations === undefined) {
|
|
3767
3807
|
return false;
|
|
3768
3808
|
}
|
|
3769
|
-
if (!(equals$
|
|
3809
|
+
if (!(equals$u(existing_citations, incoming_citations))) {
|
|
3770
3810
|
return false;
|
|
3771
3811
|
}
|
|
3772
3812
|
}
|
|
@@ -3780,7 +3820,7 @@ function equals$e(existing, incoming) {
|
|
|
3780
3820
|
return false;
|
|
3781
3821
|
}
|
|
3782
3822
|
const equals_fileData_items = equalsArray(existing_fileData, incoming_fileData, (existing_fileData_item, incoming_fileData_item) => {
|
|
3783
|
-
if (!(equals$
|
|
3823
|
+
if (!(equals$s(existing_fileData_item, incoming_fileData_item))) {
|
|
3784
3824
|
return false;
|
|
3785
3825
|
}
|
|
3786
3826
|
});
|
|
@@ -3798,7 +3838,7 @@ function equals$e(existing, incoming) {
|
|
|
3798
3838
|
return false;
|
|
3799
3839
|
}
|
|
3800
3840
|
const equals_generationErrors_items = equalsArray(existing_generationErrors, incoming_generationErrors, (existing_generationErrors_item, incoming_generationErrors_item) => {
|
|
3801
|
-
if (!(equals$
|
|
3841
|
+
if (!(equals$r(existing_generationErrors_item, incoming_generationErrors_item))) {
|
|
3802
3842
|
return false;
|
|
3803
3843
|
}
|
|
3804
3844
|
});
|
|
@@ -3809,7 +3849,7 @@ function equals$e(existing, incoming) {
|
|
|
3809
3849
|
const existing_generations = existing.generations;
|
|
3810
3850
|
const incoming_generations = incoming.generations;
|
|
3811
3851
|
const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
|
|
3812
|
-
if (!(equals$
|
|
3852
|
+
if (!(equals$y(existing_generations_item, incoming_generations_item))) {
|
|
3813
3853
|
return false;
|
|
3814
3854
|
}
|
|
3815
3855
|
});
|
|
@@ -3839,7 +3879,7 @@ function equals$e(existing, incoming) {
|
|
|
3839
3879
|
if (!(existing_parameters === incoming_parameters
|
|
3840
3880
|
|| (existing_parameters != null &&
|
|
3841
3881
|
incoming_parameters != null &&
|
|
3842
|
-
equals$
|
|
3882
|
+
equals$x(existing_parameters, incoming_parameters)))) {
|
|
3843
3883
|
return false;
|
|
3844
3884
|
}
|
|
3845
3885
|
const existing_performance = existing.performance;
|
|
@@ -3851,7 +3891,7 @@ function equals$e(existing, incoming) {
|
|
|
3851
3891
|
if (existing_performance === undefined || incoming_performance === undefined) {
|
|
3852
3892
|
return false;
|
|
3853
3893
|
}
|
|
3854
|
-
if (!(equals$
|
|
3894
|
+
if (!(equals$m(existing_performance, incoming_performance))) {
|
|
3855
3895
|
return false;
|
|
3856
3896
|
}
|
|
3857
3897
|
}
|
|
@@ -3875,7 +3915,7 @@ function equals$e(existing, incoming) {
|
|
|
3875
3915
|
return false;
|
|
3876
3916
|
}
|
|
3877
3917
|
const equals_requestMessages_items = equalsArray(existing_requestMessages, incoming_requestMessages, (existing_requestMessages_item, incoming_requestMessages_item) => {
|
|
3878
|
-
if (!(equals$
|
|
3918
|
+
if (!(equals$k(existing_requestMessages_item, incoming_requestMessages_item))) {
|
|
3879
3919
|
return false;
|
|
3880
3920
|
}
|
|
3881
3921
|
});
|
|
@@ -3893,7 +3933,7 @@ function equals$e(existing, incoming) {
|
|
|
3893
3933
|
return false;
|
|
3894
3934
|
}
|
|
3895
3935
|
const equals_responseMessages_items = equalsArray(existing_responseMessages, incoming_responseMessages, (existing_responseMessages_item, incoming_responseMessages_item) => {
|
|
3896
|
-
if (!(equals$
|
|
3936
|
+
if (!(equals$k(existing_responseMessages_item, incoming_responseMessages_item))) {
|
|
3897
3937
|
return false;
|
|
3898
3938
|
}
|
|
3899
3939
|
});
|
|
@@ -3911,7 +3951,7 @@ function equals$e(existing, incoming) {
|
|
|
3911
3951
|
return false;
|
|
3912
3952
|
}
|
|
3913
3953
|
const equals_slotsMaskingInformation_items = equalsArray(existing_slotsMaskingInformation, incoming_slotsMaskingInformation, (existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item) => {
|
|
3914
|
-
if (!(equals$
|
|
3954
|
+
if (!(equals$j(existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item))) {
|
|
3915
3955
|
return false;
|
|
3916
3956
|
}
|
|
3917
3957
|
});
|
|
@@ -3928,7 +3968,7 @@ function equals$e(existing, incoming) {
|
|
|
3928
3968
|
if (existing_tokenUsage === undefined || incoming_tokenUsage === undefined) {
|
|
3929
3969
|
return false;
|
|
3930
3970
|
}
|
|
3931
|
-
if (!(equals$
|
|
3971
|
+
if (!(equals$g(existing_tokenUsage, incoming_tokenUsage))) {
|
|
3932
3972
|
return false;
|
|
3933
3973
|
}
|
|
3934
3974
|
}
|
|
@@ -3936,14 +3976,14 @@ function equals$e(existing, incoming) {
|
|
|
3936
3976
|
}
|
|
3937
3977
|
const ingest$a = function EinsteinPromptTemplateGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3938
3978
|
if (process.env.NODE_ENV !== 'production') {
|
|
3939
|
-
const validateError = validate$
|
|
3979
|
+
const validateError = validate$j(input);
|
|
3940
3980
|
if (validateError !== null) {
|
|
3941
3981
|
throw validateError;
|
|
3942
3982
|
}
|
|
3943
3983
|
}
|
|
3944
3984
|
const key = keyBuilderFromType$2(luvio, input);
|
|
3945
3985
|
const ttlToUse = TTL$a;
|
|
3946
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "EinsteinLLM", VERSION$
|
|
3986
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "EinsteinLLM", VERSION$f, RepresentationType$a, equals$f);
|
|
3947
3987
|
return createLink(key);
|
|
3948
3988
|
};
|
|
3949
3989
|
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -3956,8 +3996,8 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3956
3996
|
});
|
|
3957
3997
|
}
|
|
3958
3998
|
|
|
3959
|
-
function select$
|
|
3960
|
-
return select$
|
|
3999
|
+
function select$v(luvio, params) {
|
|
4000
|
+
return select$w();
|
|
3961
4001
|
}
|
|
3962
4002
|
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
3963
4003
|
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
@@ -3968,7 +4008,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
|
|
|
3968
4008
|
luvio.storeIngest(key, ingest$a, body);
|
|
3969
4009
|
const snapshot = luvio.storeLookup({
|
|
3970
4010
|
recordId: key,
|
|
3971
|
-
node: select$
|
|
4011
|
+
node: select$v(),
|
|
3972
4012
|
variables: {},
|
|
3973
4013
|
});
|
|
3974
4014
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4005,7 +4045,7 @@ function typeCheckConfig$g(untrustedConfig) {
|
|
|
4005
4045
|
const config = {};
|
|
4006
4046
|
typeCheckConfig$k(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
|
|
4007
4047
|
const untrustedConfig_promptTemplateGenerationsInput = untrustedConfig.promptTemplateGenerationsInput;
|
|
4008
|
-
const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$
|
|
4048
|
+
const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$A(untrustedConfig_promptTemplateGenerationsInput);
|
|
4009
4049
|
if (referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError === null) {
|
|
4010
4050
|
config.promptTemplateGenerationsInput = untrustedConfig_promptTemplateGenerationsInput;
|
|
4011
4051
|
}
|
|
@@ -4054,8 +4094,8 @@ const createGenerationsForPromptTemplateAdapterFactory = (luvio) => {
|
|
|
4054
4094
|
};
|
|
4055
4095
|
|
|
4056
4096
|
const TTL$9 = 100;
|
|
4057
|
-
const VERSION$
|
|
4058
|
-
function validate$
|
|
4097
|
+
const VERSION$e = "a90a51578e2fdd7a9741d310bed22b1d";
|
|
4098
|
+
function validate$i(obj, path = 'EinsteinPromptTemplateRepresentation') {
|
|
4059
4099
|
const v_error = (() => {
|
|
4060
4100
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4061
4101
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4063,7 +4103,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateRepresentation') {
|
|
|
4063
4103
|
if (obj.additionalData !== undefined) {
|
|
4064
4104
|
const obj_additionalData = obj.additionalData;
|
|
4065
4105
|
const path_additionalData = path + '.additionalData';
|
|
4066
|
-
const referencepath_additionalDataValidationError = validate$
|
|
4106
|
+
const referencepath_additionalDataValidationError = validate$D(obj_additionalData, path_additionalData);
|
|
4067
4107
|
if (referencepath_additionalDataValidationError !== null) {
|
|
4068
4108
|
let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
|
|
4069
4109
|
message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4144,11 +4184,11 @@ function keyBuilderFromType$1(luvio, object) {
|
|
|
4144
4184
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
4145
4185
|
return input;
|
|
4146
4186
|
}
|
|
4147
|
-
const select$
|
|
4148
|
-
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$
|
|
4187
|
+
const select$u = function EinsteinPromptTemplateRepresentationSelect() {
|
|
4188
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$P();
|
|
4149
4189
|
return {
|
|
4150
4190
|
kind: 'Fragment',
|
|
4151
|
-
version: VERSION$
|
|
4191
|
+
version: VERSION$e,
|
|
4152
4192
|
private: [],
|
|
4153
4193
|
selections: [
|
|
4154
4194
|
{
|
|
@@ -4196,7 +4236,7 @@ const select$t = function EinsteinPromptTemplateRepresentationSelect() {
|
|
|
4196
4236
|
]
|
|
4197
4237
|
};
|
|
4198
4238
|
};
|
|
4199
|
-
function equals$
|
|
4239
|
+
function equals$e(existing, incoming) {
|
|
4200
4240
|
const existing_hasWarning = existing.hasWarning;
|
|
4201
4241
|
const incoming_hasWarning = incoming.hasWarning;
|
|
4202
4242
|
if (!(existing_hasWarning === incoming_hasWarning)) {
|
|
@@ -4252,7 +4292,7 @@ function equals$d(existing, incoming) {
|
|
|
4252
4292
|
if (existing_additionalData === undefined || incoming_additionalData === undefined) {
|
|
4253
4293
|
return false;
|
|
4254
4294
|
}
|
|
4255
|
-
if (!(equals$
|
|
4295
|
+
if (!(equals$x(existing_additionalData, incoming_additionalData))) {
|
|
4256
4296
|
return false;
|
|
4257
4297
|
}
|
|
4258
4298
|
}
|
|
@@ -4280,14 +4320,14 @@ function equals$d(existing, incoming) {
|
|
|
4280
4320
|
}
|
|
4281
4321
|
const ingest$9 = function EinsteinPromptTemplateRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4282
4322
|
if (process.env.NODE_ENV !== 'production') {
|
|
4283
|
-
const validateError = validate$
|
|
4323
|
+
const validateError = validate$i(input);
|
|
4284
4324
|
if (validateError !== null) {
|
|
4285
4325
|
throw validateError;
|
|
4286
4326
|
}
|
|
4287
4327
|
}
|
|
4288
4328
|
const key = keyBuilderFromType$1(luvio, input);
|
|
4289
4329
|
const ttlToUse = TTL$9;
|
|
4290
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "EinsteinLLM", VERSION$
|
|
4330
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "EinsteinLLM", VERSION$e, RepresentationType$9, equals$e);
|
|
4291
4331
|
return createLink(key);
|
|
4292
4332
|
};
|
|
4293
4333
|
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -4300,8 +4340,8 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4300
4340
|
});
|
|
4301
4341
|
}
|
|
4302
4342
|
|
|
4303
|
-
function select$
|
|
4304
|
-
return select$
|
|
4343
|
+
function select$t(luvio, params) {
|
|
4344
|
+
return select$u();
|
|
4305
4345
|
}
|
|
4306
4346
|
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
4307
4347
|
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
@@ -4312,7 +4352,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
|
|
|
4312
4352
|
luvio.storeIngest(key, ingest$9, body);
|
|
4313
4353
|
const snapshot = luvio.storeLookup({
|
|
4314
4354
|
recordId: key,
|
|
4315
|
-
node: select$
|
|
4355
|
+
node: select$t(),
|
|
4316
4356
|
variables: {},
|
|
4317
4357
|
});
|
|
4318
4358
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4423,8 +4463,8 @@ const createPromptTemplateAdapterFactory = (luvio) => {
|
|
|
4423
4463
|
};
|
|
4424
4464
|
};
|
|
4425
4465
|
|
|
4426
|
-
function select$
|
|
4427
|
-
return select$
|
|
4466
|
+
function select$s(luvio, params) {
|
|
4467
|
+
return select$u();
|
|
4428
4468
|
}
|
|
4429
4469
|
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
4430
4470
|
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
@@ -4435,7 +4475,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
|
|
|
4435
4475
|
luvio.storeIngest(key, ingest$9, body);
|
|
4436
4476
|
const snapshot = luvio.storeLookup({
|
|
4437
4477
|
recordId: key,
|
|
4438
|
-
node: select$
|
|
4478
|
+
node: select$s(),
|
|
4439
4479
|
variables: {},
|
|
4440
4480
|
});
|
|
4441
4481
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4547,7 +4587,7 @@ const createPromptTemplateVersionAdapterFactory = (luvio) => {
|
|
|
4547
4587
|
};
|
|
4548
4588
|
};
|
|
4549
4589
|
|
|
4550
|
-
function validate$
|
|
4590
|
+
function validate$h(obj, path = 'PromptTemplateDataProviderOutputParamRepresentation') {
|
|
4551
4591
|
const v_error = (() => {
|
|
4552
4592
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4553
4593
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4573,7 +4613,7 @@ function validate$g(obj, path = 'PromptTemplateDataProviderOutputParamRepresenta
|
|
|
4573
4613
|
return v_error === undefined ? null : v_error;
|
|
4574
4614
|
}
|
|
4575
4615
|
|
|
4576
|
-
function validate$
|
|
4616
|
+
function validate$g(obj, path = 'PromptTemplateDataProviderInputParamRepresentation') {
|
|
4577
4617
|
const v_error = (() => {
|
|
4578
4618
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4579
4619
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4603,8 +4643,8 @@ function validate$f(obj, path = 'PromptTemplateDataProviderInputParamRepresentat
|
|
|
4603
4643
|
}
|
|
4604
4644
|
|
|
4605
4645
|
const TTL$8 = 300;
|
|
4606
|
-
const VERSION$
|
|
4607
|
-
function validate$
|
|
4646
|
+
const VERSION$d = "fa3851cb23dffdbba0de38938eecbcaa";
|
|
4647
|
+
function validate$f(obj, path = 'PromptTemplateDataProviderInstanceConfigRepresentation') {
|
|
4608
4648
|
const v_error = (() => {
|
|
4609
4649
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4610
4650
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4633,7 +4673,7 @@ function validate$e(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
|
|
|
4633
4673
|
if (obj.defaultOutputParam !== undefined) {
|
|
4634
4674
|
const obj_defaultOutputParam = obj.defaultOutputParam;
|
|
4635
4675
|
const path_defaultOutputParam = path + '.defaultOutputParam';
|
|
4636
|
-
const referencepath_defaultOutputParamValidationError = validate$
|
|
4676
|
+
const referencepath_defaultOutputParamValidationError = validate$h(obj_defaultOutputParam, path_defaultOutputParam);
|
|
4637
4677
|
if (referencepath_defaultOutputParamValidationError !== null) {
|
|
4638
4678
|
let message = 'Object doesn\'t match PromptTemplateDataProviderOutputParamRepresentation (at "' + path_defaultOutputParam + '")\n';
|
|
4639
4679
|
message += referencepath_defaultOutputParamValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4687,7 +4727,7 @@ function validate$e(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
|
|
|
4687
4727
|
for (let i = 0; i < obj_inputParams.length; i++) {
|
|
4688
4728
|
const obj_inputParams_item = obj_inputParams[i];
|
|
4689
4729
|
const path_inputParams_item = path_inputParams + '[' + i + ']';
|
|
4690
|
-
const referencepath_inputParams_itemValidationError = validate$
|
|
4730
|
+
const referencepath_inputParams_itemValidationError = validate$g(obj_inputParams_item, path_inputParams_item);
|
|
4691
4731
|
if (referencepath_inputParams_itemValidationError !== null) {
|
|
4692
4732
|
let message = 'Object doesn\'t match PromptTemplateDataProviderInputParamRepresentation (at "' + path_inputParams_item + '")\n';
|
|
4693
4733
|
message += referencepath_inputParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4760,7 +4800,7 @@ function validate$e(obj, path = 'PromptTemplateDataProviderInstanceConfigReprese
|
|
|
4760
4800
|
for (let i = 0; i < obj_outputParams.length; i++) {
|
|
4761
4801
|
const obj_outputParams_item = obj_outputParams[i];
|
|
4762
4802
|
const path_outputParams_item = path_outputParams + '[' + i + ']';
|
|
4763
|
-
const referencepath_outputParams_itemValidationError = validate$
|
|
4803
|
+
const referencepath_outputParams_itemValidationError = validate$h(obj_outputParams_item, path_outputParams_item);
|
|
4764
4804
|
if (referencepath_outputParams_itemValidationError !== null) {
|
|
4765
4805
|
let message = 'Object doesn\'t match PromptTemplateDataProviderOutputParamRepresentation (at "' + path_outputParams_item + '")\n';
|
|
4766
4806
|
message += referencepath_outputParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4836,15 +4876,15 @@ const RepresentationType$8 = 'PromptTemplateDataProviderInstanceConfigRepresenta
|
|
|
4836
4876
|
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
4837
4877
|
return input;
|
|
4838
4878
|
}
|
|
4839
|
-
const select$
|
|
4879
|
+
const select$r = function PromptTemplateDataProviderInstanceConfigRepresentationSelect() {
|
|
4840
4880
|
return {
|
|
4841
4881
|
kind: 'Fragment',
|
|
4842
|
-
version: VERSION$
|
|
4882
|
+
version: VERSION$d,
|
|
4843
4883
|
private: [],
|
|
4844
4884
|
opaque: true
|
|
4845
4885
|
};
|
|
4846
4886
|
};
|
|
4847
|
-
function equals$
|
|
4887
|
+
function equals$d(existing, incoming) {
|
|
4848
4888
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4849
4889
|
return false;
|
|
4850
4890
|
}
|
|
@@ -4852,14 +4892,14 @@ function equals$c(existing, incoming) {
|
|
|
4852
4892
|
}
|
|
4853
4893
|
const ingest$8 = function PromptTemplateDataProviderInstanceConfigRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4854
4894
|
if (process.env.NODE_ENV !== 'production') {
|
|
4855
|
-
const validateError = validate$
|
|
4895
|
+
const validateError = validate$f(input);
|
|
4856
4896
|
if (validateError !== null) {
|
|
4857
4897
|
throw validateError;
|
|
4858
4898
|
}
|
|
4859
4899
|
}
|
|
4860
4900
|
const key = path.fullPath;
|
|
4861
4901
|
const ttlToUse = TTL$8;
|
|
4862
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "EinsteinLLM", VERSION$
|
|
4902
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "EinsteinLLM", VERSION$d, RepresentationType$8, equals$d);
|
|
4863
4903
|
return createLink(key);
|
|
4864
4904
|
};
|
|
4865
4905
|
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -4872,8 +4912,8 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4872
4912
|
});
|
|
4873
4913
|
}
|
|
4874
4914
|
|
|
4875
|
-
function select$
|
|
4876
|
-
return select$
|
|
4915
|
+
function select$q(luvio, params) {
|
|
4916
|
+
return select$r();
|
|
4877
4917
|
}
|
|
4878
4918
|
function keyBuilder$m(luvio, params) {
|
|
4879
4919
|
return keyPrefix + '::PromptTemplateDataProviderInstanceConfigRepresentation:(' + stableJSONStringify(params.body.additionalParam) + '::' + 'definition:' + params.body.definition + '::' + 'groupName:' + params.body.groupName + ')';
|
|
@@ -4887,7 +4927,7 @@ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4887
4927
|
luvio.storeIngest(key, ingest$8, body);
|
|
4888
4928
|
const snapshot = luvio.storeLookup({
|
|
4889
4929
|
recordId: key,
|
|
4890
|
-
node: select$
|
|
4930
|
+
node: select$q(),
|
|
4891
4931
|
variables: {},
|
|
4892
4932
|
}, snapshotRefresh);
|
|
4893
4933
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4904,7 +4944,7 @@ function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
|
4904
4944
|
const storeMetadataParams = {
|
|
4905
4945
|
ttl: TTL$8,
|
|
4906
4946
|
namespace: keyPrefix,
|
|
4907
|
-
version: VERSION$
|
|
4947
|
+
version: VERSION$d,
|
|
4908
4948
|
representationName: RepresentationType$8
|
|
4909
4949
|
};
|
|
4910
4950
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -4971,7 +5011,7 @@ function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
|
4971
5011
|
}
|
|
4972
5012
|
function adapterFragment$a(luvio, config) {
|
|
4973
5013
|
createResourceParams$d(config);
|
|
4974
|
-
return select$
|
|
5014
|
+
return select$q();
|
|
4975
5015
|
}
|
|
4976
5016
|
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
4977
5017
|
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
@@ -5027,7 +5067,7 @@ const getDataProviderInstanceConfigAdapterFactory = (luvio) => function Einstein
|
|
|
5027
5067
|
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
5028
5068
|
};
|
|
5029
5069
|
|
|
5030
|
-
function validate$
|
|
5070
|
+
function validate$e(obj, path = 'PromptTemplateDataProviderTypeConfigRepresentation') {
|
|
5031
5071
|
const v_error = (() => {
|
|
5032
5072
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5033
5073
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5078,8 +5118,8 @@ function validate$d(obj, path = 'PromptTemplateDataProviderTypeConfigRepresentat
|
|
|
5078
5118
|
}
|
|
5079
5119
|
|
|
5080
5120
|
const TTL$7 = 300;
|
|
5081
|
-
const VERSION$
|
|
5082
|
-
function validate$
|
|
5121
|
+
const VERSION$c = "212332dac1decc071b476742df3440fb";
|
|
5122
|
+
function validate$d(obj, path = 'PromptTemplateDataProviderTypeConfigCollectionRepresentation') {
|
|
5083
5123
|
const v_error = (() => {
|
|
5084
5124
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5085
5125
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5092,7 +5132,7 @@ function validate$c(obj, path = 'PromptTemplateDataProviderTypeConfigCollectionR
|
|
|
5092
5132
|
for (let i = 0; i < obj_dataProviderTypeConfigs.length; i++) {
|
|
5093
5133
|
const obj_dataProviderTypeConfigs_item = obj_dataProviderTypeConfigs[i];
|
|
5094
5134
|
const path_dataProviderTypeConfigs_item = path_dataProviderTypeConfigs + '[' + i + ']';
|
|
5095
|
-
const referencepath_dataProviderTypeConfigs_itemValidationError = validate$
|
|
5135
|
+
const referencepath_dataProviderTypeConfigs_itemValidationError = validate$e(obj_dataProviderTypeConfigs_item, path_dataProviderTypeConfigs_item);
|
|
5096
5136
|
if (referencepath_dataProviderTypeConfigs_itemValidationError !== null) {
|
|
5097
5137
|
let message = 'Object doesn\'t match PromptTemplateDataProviderTypeConfigRepresentation (at "' + path_dataProviderTypeConfigs_item + '")\n';
|
|
5098
5138
|
message += referencepath_dataProviderTypeConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5106,15 +5146,15 @@ const RepresentationType$7 = 'PromptTemplateDataProviderTypeConfigCollectionRepr
|
|
|
5106
5146
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
5107
5147
|
return input;
|
|
5108
5148
|
}
|
|
5109
|
-
const select$
|
|
5149
|
+
const select$p = function PromptTemplateDataProviderTypeConfigCollectionRepresentationSelect() {
|
|
5110
5150
|
return {
|
|
5111
5151
|
kind: 'Fragment',
|
|
5112
|
-
version: VERSION$
|
|
5152
|
+
version: VERSION$c,
|
|
5113
5153
|
private: [],
|
|
5114
5154
|
opaque: true
|
|
5115
5155
|
};
|
|
5116
5156
|
};
|
|
5117
|
-
function equals$
|
|
5157
|
+
function equals$c(existing, incoming) {
|
|
5118
5158
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5119
5159
|
return false;
|
|
5120
5160
|
}
|
|
@@ -5122,14 +5162,14 @@ function equals$b(existing, incoming) {
|
|
|
5122
5162
|
}
|
|
5123
5163
|
const ingest$7 = function PromptTemplateDataProviderTypeConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5124
5164
|
if (process.env.NODE_ENV !== 'production') {
|
|
5125
|
-
const validateError = validate$
|
|
5165
|
+
const validateError = validate$d(input);
|
|
5126
5166
|
if (validateError !== null) {
|
|
5127
5167
|
throw validateError;
|
|
5128
5168
|
}
|
|
5129
5169
|
}
|
|
5130
5170
|
const key = path.fullPath;
|
|
5131
5171
|
const ttlToUse = TTL$7;
|
|
5132
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "EinsteinLLM", VERSION$
|
|
5172
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "EinsteinLLM", VERSION$c, RepresentationType$7, equals$c);
|
|
5133
5173
|
return createLink(key);
|
|
5134
5174
|
};
|
|
5135
5175
|
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -5142,8 +5182,8 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5142
5182
|
});
|
|
5143
5183
|
}
|
|
5144
5184
|
|
|
5145
|
-
function select$
|
|
5146
|
-
return select$
|
|
5185
|
+
function select$o(luvio, params) {
|
|
5186
|
+
return select$p();
|
|
5147
5187
|
}
|
|
5148
5188
|
function keyBuilder$k(luvio, params) {
|
|
5149
5189
|
return keyPrefix + '::PromptTemplateDataProviderTypeConfigCollectionRepresentation:(' + 'templateType:' + params.urlParams.templateType + ')';
|
|
@@ -5157,7 +5197,7 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5157
5197
|
luvio.storeIngest(key, ingest$7, body);
|
|
5158
5198
|
const snapshot = luvio.storeLookup({
|
|
5159
5199
|
recordId: key,
|
|
5160
|
-
node: select$
|
|
5200
|
+
node: select$o(),
|
|
5161
5201
|
variables: {},
|
|
5162
5202
|
}, snapshotRefresh);
|
|
5163
5203
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5174,7 +5214,7 @@ function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
|
5174
5214
|
const storeMetadataParams = {
|
|
5175
5215
|
ttl: TTL$7,
|
|
5176
5216
|
namespace: keyPrefix,
|
|
5177
|
-
version: VERSION$
|
|
5217
|
+
version: VERSION$c,
|
|
5178
5218
|
representationName: RepresentationType$7
|
|
5179
5219
|
};
|
|
5180
5220
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -5224,7 +5264,7 @@ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
|
5224
5264
|
}
|
|
5225
5265
|
function adapterFragment$9(luvio, config) {
|
|
5226
5266
|
createResourceParams$c(config);
|
|
5227
|
-
return select$
|
|
5267
|
+
return select$o();
|
|
5228
5268
|
}
|
|
5229
5269
|
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
5230
5270
|
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
@@ -5281,8 +5321,8 @@ const getDataProviderTypeConfigsAdapterFactory = (luvio) => function EinsteinLLM
|
|
|
5281
5321
|
};
|
|
5282
5322
|
|
|
5283
5323
|
const TTL$6 = 300;
|
|
5284
|
-
const VERSION$
|
|
5285
|
-
function validate$
|
|
5324
|
+
const VERSION$b = "3a6ecdfe18eb2af8f8f6aaa1a30b194c";
|
|
5325
|
+
function validate$c(obj, path = 'PromptTemplateDataProviderInstanceConfigCollectionRepresentation') {
|
|
5286
5326
|
const v_error = (() => {
|
|
5287
5327
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5288
5328
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5295,7 +5335,7 @@ function validate$b(obj, path = 'PromptTemplateDataProviderInstanceConfigCollect
|
|
|
5295
5335
|
for (let i = 0; i < obj_dataProviderInstanceConfigs.length; i++) {
|
|
5296
5336
|
const obj_dataProviderInstanceConfigs_item = obj_dataProviderInstanceConfigs[i];
|
|
5297
5337
|
const path_dataProviderInstanceConfigs_item = path_dataProviderInstanceConfigs + '[' + i + ']';
|
|
5298
|
-
const referencepath_dataProviderInstanceConfigs_itemValidationError = validate$
|
|
5338
|
+
const referencepath_dataProviderInstanceConfigs_itemValidationError = validate$f(obj_dataProviderInstanceConfigs_item, path_dataProviderInstanceConfigs_item);
|
|
5299
5339
|
if (referencepath_dataProviderInstanceConfigs_itemValidationError !== null) {
|
|
5300
5340
|
let message = 'Object doesn\'t match PromptTemplateDataProviderInstanceConfigRepresentation (at "' + path_dataProviderInstanceConfigs_item + '")\n';
|
|
5301
5341
|
message += referencepath_dataProviderInstanceConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5309,15 +5349,15 @@ const RepresentationType$6 = 'PromptTemplateDataProviderInstanceConfigCollection
|
|
|
5309
5349
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
5310
5350
|
return input;
|
|
5311
5351
|
}
|
|
5312
|
-
const select$
|
|
5352
|
+
const select$n = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationSelect() {
|
|
5313
5353
|
return {
|
|
5314
5354
|
kind: 'Fragment',
|
|
5315
|
-
version: VERSION$
|
|
5355
|
+
version: VERSION$b,
|
|
5316
5356
|
private: [],
|
|
5317
5357
|
opaque: true
|
|
5318
5358
|
};
|
|
5319
5359
|
};
|
|
5320
|
-
function equals$
|
|
5360
|
+
function equals$b(existing, incoming) {
|
|
5321
5361
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5322
5362
|
return false;
|
|
5323
5363
|
}
|
|
@@ -5325,14 +5365,14 @@ function equals$a(existing, incoming) {
|
|
|
5325
5365
|
}
|
|
5326
5366
|
const ingest$6 = function PromptTemplateDataProviderInstanceConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5327
5367
|
if (process.env.NODE_ENV !== 'production') {
|
|
5328
|
-
const validateError = validate$
|
|
5368
|
+
const validateError = validate$c(input);
|
|
5329
5369
|
if (validateError !== null) {
|
|
5330
5370
|
throw validateError;
|
|
5331
5371
|
}
|
|
5332
5372
|
}
|
|
5333
5373
|
const key = path.fullPath;
|
|
5334
5374
|
const ttlToUse = TTL$6;
|
|
5335
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "EinsteinLLM", VERSION$
|
|
5375
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "EinsteinLLM", VERSION$b, RepresentationType$6, equals$b);
|
|
5336
5376
|
return createLink(key);
|
|
5337
5377
|
};
|
|
5338
5378
|
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -5345,8 +5385,8 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5345
5385
|
});
|
|
5346
5386
|
}
|
|
5347
5387
|
|
|
5348
|
-
function select$
|
|
5349
|
-
return select$
|
|
5388
|
+
function select$m(luvio, params) {
|
|
5389
|
+
return select$n();
|
|
5350
5390
|
}
|
|
5351
5391
|
function keyBuilder$i(luvio, params) {
|
|
5352
5392
|
return keyPrefix + '::PromptTemplateDataProviderInstanceConfigCollectionRepresentation:(' + 'groupNames:' + params.queryParams.groupNames + ',' + 'targets:' + params.queryParams.targets + ',' + 'templateType:' + params.urlParams.templateType + ')';
|
|
@@ -5360,7 +5400,7 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5360
5400
|
luvio.storeIngest(key, ingest$6, body);
|
|
5361
5401
|
const snapshot = luvio.storeLookup({
|
|
5362
5402
|
recordId: key,
|
|
5363
|
-
node: select$
|
|
5403
|
+
node: select$m(),
|
|
5364
5404
|
variables: {},
|
|
5365
5405
|
}, snapshotRefresh);
|
|
5366
5406
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5377,7 +5417,7 @@ function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
|
5377
5417
|
const storeMetadataParams = {
|
|
5378
5418
|
ttl: TTL$6,
|
|
5379
5419
|
namespace: keyPrefix,
|
|
5380
|
-
version: VERSION$
|
|
5420
|
+
version: VERSION$b,
|
|
5381
5421
|
representationName: RepresentationType$6
|
|
5382
5422
|
};
|
|
5383
5423
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -5429,7 +5469,7 @@ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
|
5429
5469
|
}
|
|
5430
5470
|
function adapterFragment$8(luvio, config) {
|
|
5431
5471
|
createResourceParams$b(config);
|
|
5432
|
-
return select$
|
|
5472
|
+
return select$m();
|
|
5433
5473
|
}
|
|
5434
5474
|
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
5435
5475
|
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
@@ -5486,8 +5526,8 @@ const getDataProvidersAdapterFactory = (luvio) => function EinsteinLLM__getDataP
|
|
|
5486
5526
|
};
|
|
5487
5527
|
|
|
5488
5528
|
const TTL$5 = 100;
|
|
5489
|
-
const VERSION$
|
|
5490
|
-
function validate$
|
|
5529
|
+
const VERSION$a = "fb53643f64759f6cff6a161f34c670fb";
|
|
5530
|
+
function validate$b(obj, path = 'EinsteinPromptTemplateReferencesRepresentation') {
|
|
5491
5531
|
const v_error = (() => {
|
|
5492
5532
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5493
5533
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5495,7 +5535,7 @@ function validate$a(obj, path = 'EinsteinPromptTemplateReferencesRepresentation'
|
|
|
5495
5535
|
if (obj.additionalData !== undefined) {
|
|
5496
5536
|
const obj_additionalData = obj.additionalData;
|
|
5497
5537
|
const path_additionalData = path + '.additionalData';
|
|
5498
|
-
const referencepath_additionalDataValidationError = validate$
|
|
5538
|
+
const referencepath_additionalDataValidationError = validate$D(obj_additionalData, path_additionalData);
|
|
5499
5539
|
if (referencepath_additionalDataValidationError !== null) {
|
|
5500
5540
|
let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
|
|
5501
5541
|
message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5562,15 +5602,15 @@ const RepresentationType$5 = 'EinsteinPromptTemplateReferencesRepresentation';
|
|
|
5562
5602
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
5563
5603
|
return input;
|
|
5564
5604
|
}
|
|
5565
|
-
const select$
|
|
5605
|
+
const select$l = function EinsteinPromptTemplateReferencesRepresentationSelect() {
|
|
5566
5606
|
return {
|
|
5567
5607
|
kind: 'Fragment',
|
|
5568
|
-
version: VERSION$
|
|
5608
|
+
version: VERSION$a,
|
|
5569
5609
|
private: [],
|
|
5570
5610
|
opaque: true
|
|
5571
5611
|
};
|
|
5572
5612
|
};
|
|
5573
|
-
function equals$
|
|
5613
|
+
function equals$a(existing, incoming) {
|
|
5574
5614
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5575
5615
|
return false;
|
|
5576
5616
|
}
|
|
@@ -5578,14 +5618,14 @@ function equals$9(existing, incoming) {
|
|
|
5578
5618
|
}
|
|
5579
5619
|
const ingest$5 = function EinsteinPromptTemplateReferencesRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5580
5620
|
if (process.env.NODE_ENV !== 'production') {
|
|
5581
|
-
const validateError = validate$
|
|
5621
|
+
const validateError = validate$b(input);
|
|
5582
5622
|
if (validateError !== null) {
|
|
5583
5623
|
throw validateError;
|
|
5584
5624
|
}
|
|
5585
5625
|
}
|
|
5586
5626
|
const key = path.fullPath;
|
|
5587
5627
|
const ttlToUse = TTL$5;
|
|
5588
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$
|
|
5628
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$a, RepresentationType$5, equals$a);
|
|
5589
5629
|
return createLink(key);
|
|
5590
5630
|
};
|
|
5591
5631
|
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -5598,8 +5638,8 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5598
5638
|
});
|
|
5599
5639
|
}
|
|
5600
5640
|
|
|
5601
|
-
function select$
|
|
5602
|
-
return select$
|
|
5641
|
+
function select$k(luvio, params) {
|
|
5642
|
+
return select$l();
|
|
5603
5643
|
}
|
|
5604
5644
|
function keyBuilder$g(luvio, params) {
|
|
5605
5645
|
return keyPrefix + '::EinsteinPromptTemplateReferencesRepresentation:(' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
|
|
@@ -5613,7 +5653,7 @@ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5613
5653
|
luvio.storeIngest(key, ingest$5, body);
|
|
5614
5654
|
const snapshot = luvio.storeLookup({
|
|
5615
5655
|
recordId: key,
|
|
5616
|
-
node: select$
|
|
5656
|
+
node: select$k(),
|
|
5617
5657
|
variables: {},
|
|
5618
5658
|
}, snapshotRefresh);
|
|
5619
5659
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5630,7 +5670,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
5630
5670
|
const storeMetadataParams = {
|
|
5631
5671
|
ttl: TTL$5,
|
|
5632
5672
|
namespace: keyPrefix,
|
|
5633
|
-
version: VERSION$
|
|
5673
|
+
version: VERSION$a,
|
|
5634
5674
|
representationName: RepresentationType$5
|
|
5635
5675
|
};
|
|
5636
5676
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -5680,7 +5720,7 @@ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
|
5680
5720
|
}
|
|
5681
5721
|
function adapterFragment$7(luvio, config) {
|
|
5682
5722
|
createResourceParams$a(config);
|
|
5683
|
-
return select$
|
|
5723
|
+
return select$k();
|
|
5684
5724
|
}
|
|
5685
5725
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
5686
5726
|
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
@@ -5736,8 +5776,8 @@ const getEinsteinPromptTemplateReferencesAdapterFactory = (luvio) => function Ei
|
|
|
5736
5776
|
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
5737
5777
|
};
|
|
5738
5778
|
|
|
5739
|
-
function select$
|
|
5740
|
-
return select$
|
|
5779
|
+
function select$j(luvio, params) {
|
|
5780
|
+
return select$n();
|
|
5741
5781
|
}
|
|
5742
5782
|
function keyBuilder$e(luvio, params) {
|
|
5743
5783
|
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 + ')';
|
|
@@ -5751,7 +5791,7 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5751
5791
|
luvio.storeIngest(key, ingest$6, body);
|
|
5752
5792
|
const snapshot = luvio.storeLookup({
|
|
5753
5793
|
recordId: key,
|
|
5754
|
-
node: select$
|
|
5794
|
+
node: select$j(),
|
|
5755
5795
|
variables: {},
|
|
5756
5796
|
}, snapshotRefresh);
|
|
5757
5797
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5768,7 +5808,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
|
5768
5808
|
const storeMetadataParams = {
|
|
5769
5809
|
ttl: TTL$6,
|
|
5770
5810
|
namespace: keyPrefix,
|
|
5771
|
-
version: VERSION$
|
|
5811
|
+
version: VERSION$b,
|
|
5772
5812
|
representationName: RepresentationType$6
|
|
5773
5813
|
};
|
|
5774
5814
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -5830,7 +5870,7 @@ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
|
5830
5870
|
}
|
|
5831
5871
|
function adapterFragment$6(luvio, config) {
|
|
5832
5872
|
createResourceParams$9(config);
|
|
5833
|
-
return select$
|
|
5873
|
+
return select$j();
|
|
5834
5874
|
}
|
|
5835
5875
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
5836
5876
|
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
@@ -5886,8 +5926,8 @@ const getInputMappedDataProvidersAdapterFactory = (luvio) => function EinsteinLL
|
|
|
5886
5926
|
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
5887
5927
|
};
|
|
5888
5928
|
|
|
5889
|
-
const VERSION$
|
|
5890
|
-
function validate$
|
|
5929
|
+
const VERSION$9 = "b513bbac1672327d8eaaf120660e94b5";
|
|
5930
|
+
function validate$a(obj, path = 'EinsteinPromptTemplateSupportedLanguageErrorRepresentation') {
|
|
5891
5931
|
const v_error = (() => {
|
|
5892
5932
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5893
5933
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5905,10 +5945,10 @@ function validate$9(obj, path = 'EinsteinPromptTemplateSupportedLanguageErrorRep
|
|
|
5905
5945
|
})();
|
|
5906
5946
|
return v_error === undefined ? null : v_error;
|
|
5907
5947
|
}
|
|
5908
|
-
const select$
|
|
5948
|
+
const select$i = function EinsteinPromptTemplateSupportedLanguageErrorRepresentationSelect() {
|
|
5909
5949
|
return {
|
|
5910
5950
|
kind: 'Fragment',
|
|
5911
|
-
version: VERSION$
|
|
5951
|
+
version: VERSION$9,
|
|
5912
5952
|
private: [],
|
|
5913
5953
|
selections: [
|
|
5914
5954
|
{
|
|
@@ -5922,7 +5962,7 @@ const select$h = function EinsteinPromptTemplateSupportedLanguageErrorRepresenta
|
|
|
5922
5962
|
]
|
|
5923
5963
|
};
|
|
5924
5964
|
};
|
|
5925
|
-
function equals$
|
|
5965
|
+
function equals$9(existing, incoming) {
|
|
5926
5966
|
const existing_errorMessage = existing.errorMessage;
|
|
5927
5967
|
const incoming_errorMessage = incoming.errorMessage;
|
|
5928
5968
|
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
@@ -5936,8 +5976,8 @@ function equals$8(existing, incoming) {
|
|
|
5936
5976
|
return true;
|
|
5937
5977
|
}
|
|
5938
5978
|
|
|
5939
|
-
const VERSION$
|
|
5940
|
-
function validate$
|
|
5979
|
+
const VERSION$8 = "65a17d345c28eeca91872a73d8ffe9fd";
|
|
5980
|
+
function validate$9(obj, path = 'EinsteinPromptTemplateSupportedLanguageRepresentation') {
|
|
5941
5981
|
const v_error = (() => {
|
|
5942
5982
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5943
5983
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5955,10 +5995,10 @@ function validate$8(obj, path = 'EinsteinPromptTemplateSupportedLanguageRepresen
|
|
|
5955
5995
|
})();
|
|
5956
5996
|
return v_error === undefined ? null : v_error;
|
|
5957
5997
|
}
|
|
5958
|
-
const select$
|
|
5998
|
+
const select$h = function EinsteinPromptTemplateSupportedLanguageRepresentationSelect() {
|
|
5959
5999
|
return {
|
|
5960
6000
|
kind: 'Fragment',
|
|
5961
|
-
version: VERSION$
|
|
6001
|
+
version: VERSION$8,
|
|
5962
6002
|
private: [],
|
|
5963
6003
|
selections: [
|
|
5964
6004
|
{
|
|
@@ -5972,7 +6012,7 @@ const select$g = function EinsteinPromptTemplateSupportedLanguageRepresentationS
|
|
|
5972
6012
|
]
|
|
5973
6013
|
};
|
|
5974
6014
|
};
|
|
5975
|
-
function equals$
|
|
6015
|
+
function equals$8(existing, incoming) {
|
|
5976
6016
|
const existing_languageCode = existing.languageCode;
|
|
5977
6017
|
const incoming_languageCode = incoming.languageCode;
|
|
5978
6018
|
if (!(existing_languageCode === incoming_languageCode)) {
|
|
@@ -5987,8 +6027,8 @@ function equals$7(existing, incoming) {
|
|
|
5987
6027
|
}
|
|
5988
6028
|
|
|
5989
6029
|
const TTL$4 = 100;
|
|
5990
|
-
const VERSION$
|
|
5991
|
-
function validate$
|
|
6030
|
+
const VERSION$7 = "c635f260bce9a11f7c3bf31d60f42b53";
|
|
6031
|
+
function validate$8(obj, path = 'EinsteinPromptTemplateVersionOutputLanguagesRepresentation') {
|
|
5992
6032
|
const v_error = (() => {
|
|
5993
6033
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5994
6034
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6001,7 +6041,7 @@ function validate$7(obj, path = 'EinsteinPromptTemplateVersionOutputLanguagesRep
|
|
|
6001
6041
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
6002
6042
|
const obj_errors_item = obj_errors[i];
|
|
6003
6043
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
6004
|
-
const referencepath_errors_itemValidationError = validate$
|
|
6044
|
+
const referencepath_errors_itemValidationError = validate$a(obj_errors_item, path_errors_item);
|
|
6005
6045
|
if (referencepath_errors_itemValidationError !== null) {
|
|
6006
6046
|
let message = 'Object doesn\'t match EinsteinPromptTemplateSupportedLanguageErrorRepresentation (at "' + path_errors_item + '")\n';
|
|
6007
6047
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6026,7 +6066,7 @@ function validate$7(obj, path = 'EinsteinPromptTemplateVersionOutputLanguagesRep
|
|
|
6026
6066
|
for (let i = 0; i < obj_supportedLanguages.length; i++) {
|
|
6027
6067
|
const obj_supportedLanguages_item = obj_supportedLanguages[i];
|
|
6028
6068
|
const path_supportedLanguages_item = path_supportedLanguages + '[' + i + ']';
|
|
6029
|
-
const referencepath_supportedLanguages_itemValidationError = validate$
|
|
6069
|
+
const referencepath_supportedLanguages_itemValidationError = validate$9(obj_supportedLanguages_item, path_supportedLanguages_item);
|
|
6030
6070
|
if (referencepath_supportedLanguages_itemValidationError !== null) {
|
|
6031
6071
|
let message = 'Object doesn\'t match EinsteinPromptTemplateSupportedLanguageRepresentation (at "' + path_supportedLanguages_item + '")\n';
|
|
6032
6072
|
message += referencepath_supportedLanguages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6045,12 +6085,12 @@ const RepresentationType$4 = 'EinsteinPromptTemplateVersionOutputLanguagesRepres
|
|
|
6045
6085
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
6046
6086
|
return input;
|
|
6047
6087
|
}
|
|
6048
|
-
const select$
|
|
6049
|
-
const { selections: EinsteinPromptTemplateSupportedLanguageErrorRepresentation__selections, opaque: EinsteinPromptTemplateSupportedLanguageErrorRepresentation__opaque, } = select$
|
|
6050
|
-
const { selections: EinsteinPromptTemplateSupportedLanguageRepresentation__selections, opaque: EinsteinPromptTemplateSupportedLanguageRepresentation__opaque, } = select$
|
|
6088
|
+
const select$g = function EinsteinPromptTemplateVersionOutputLanguagesRepresentationSelect() {
|
|
6089
|
+
const { selections: EinsteinPromptTemplateSupportedLanguageErrorRepresentation__selections, opaque: EinsteinPromptTemplateSupportedLanguageErrorRepresentation__opaque, } = select$i();
|
|
6090
|
+
const { selections: EinsteinPromptTemplateSupportedLanguageRepresentation__selections, opaque: EinsteinPromptTemplateSupportedLanguageRepresentation__opaque, } = select$h();
|
|
6051
6091
|
return {
|
|
6052
6092
|
kind: 'Fragment',
|
|
6053
|
-
version: VERSION$
|
|
6093
|
+
version: VERSION$7,
|
|
6054
6094
|
private: [],
|
|
6055
6095
|
selections: [
|
|
6056
6096
|
{
|
|
@@ -6080,7 +6120,7 @@ const select$f = function EinsteinPromptTemplateVersionOutputLanguagesRepresenta
|
|
|
6080
6120
|
]
|
|
6081
6121
|
};
|
|
6082
6122
|
};
|
|
6083
|
-
function equals$
|
|
6123
|
+
function equals$7(existing, incoming) {
|
|
6084
6124
|
const existing_isSuccess = existing.isSuccess;
|
|
6085
6125
|
const incoming_isSuccess = incoming.isSuccess;
|
|
6086
6126
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -6099,7 +6139,7 @@ function equals$6(existing, incoming) {
|
|
|
6099
6139
|
const existing_errors = existing.errors;
|
|
6100
6140
|
const incoming_errors = incoming.errors;
|
|
6101
6141
|
const equals_errors_items = equalsArray(existing_errors, incoming_errors, (existing_errors_item, incoming_errors_item) => {
|
|
6102
|
-
if (!(equals$
|
|
6142
|
+
if (!(equals$9(existing_errors_item, incoming_errors_item))) {
|
|
6103
6143
|
return false;
|
|
6104
6144
|
}
|
|
6105
6145
|
});
|
|
@@ -6109,7 +6149,7 @@ function equals$6(existing, incoming) {
|
|
|
6109
6149
|
const existing_supportedLanguages = existing.supportedLanguages;
|
|
6110
6150
|
const incoming_supportedLanguages = incoming.supportedLanguages;
|
|
6111
6151
|
const equals_supportedLanguages_items = equalsArray(existing_supportedLanguages, incoming_supportedLanguages, (existing_supportedLanguages_item, incoming_supportedLanguages_item) => {
|
|
6112
|
-
if (!(equals$
|
|
6152
|
+
if (!(equals$8(existing_supportedLanguages_item, incoming_supportedLanguages_item))) {
|
|
6113
6153
|
return false;
|
|
6114
6154
|
}
|
|
6115
6155
|
});
|
|
@@ -6120,14 +6160,14 @@ function equals$6(existing, incoming) {
|
|
|
6120
6160
|
}
|
|
6121
6161
|
const ingest$4 = function EinsteinPromptTemplateVersionOutputLanguagesRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6122
6162
|
if (process.env.NODE_ENV !== 'production') {
|
|
6123
|
-
const validateError = validate$
|
|
6163
|
+
const validateError = validate$8(input);
|
|
6124
6164
|
if (validateError !== null) {
|
|
6125
6165
|
throw validateError;
|
|
6126
6166
|
}
|
|
6127
6167
|
}
|
|
6128
6168
|
const key = path.fullPath;
|
|
6129
6169
|
const ttlToUse = TTL$4;
|
|
6130
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$
|
|
6170
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$7, RepresentationType$4, equals$7);
|
|
6131
6171
|
return createLink(key);
|
|
6132
6172
|
};
|
|
6133
6173
|
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -6140,8 +6180,8 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6140
6180
|
});
|
|
6141
6181
|
}
|
|
6142
6182
|
|
|
6143
|
-
function select$
|
|
6144
|
-
return select$
|
|
6183
|
+
function select$f(luvio, params) {
|
|
6184
|
+
return select$g();
|
|
6145
6185
|
}
|
|
6146
6186
|
function keyBuilder$c(luvio, params) {
|
|
6147
6187
|
return keyPrefix + '::EinsteinPromptTemplateVersionOutputLanguagesRepresentation:(' + 'useStandardVersion:' + params.queryParams.useStandardVersion + ',' + 'versionId:' + params.queryParams.versionId + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
|
|
@@ -6155,7 +6195,7 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6155
6195
|
luvio.storeIngest(key, ingest$4, body);
|
|
6156
6196
|
const snapshot = luvio.storeLookup({
|
|
6157
6197
|
recordId: key,
|
|
6158
|
-
node: select$
|
|
6198
|
+
node: select$f(),
|
|
6159
6199
|
variables: {},
|
|
6160
6200
|
}, snapshotRefresh);
|
|
6161
6201
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6172,7 +6212,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
6172
6212
|
const storeMetadataParams = {
|
|
6173
6213
|
ttl: TTL$4,
|
|
6174
6214
|
namespace: keyPrefix,
|
|
6175
|
-
version: VERSION$
|
|
6215
|
+
version: VERSION$7,
|
|
6176
6216
|
representationName: RepresentationType$4
|
|
6177
6217
|
};
|
|
6178
6218
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -6224,7 +6264,7 @@ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
|
6224
6264
|
}
|
|
6225
6265
|
function adapterFragment$5(luvio, config) {
|
|
6226
6266
|
createResourceParams$8(config);
|
|
6227
|
-
return select$
|
|
6267
|
+
return select$f();
|
|
6228
6268
|
}
|
|
6229
6269
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
6230
6270
|
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
@@ -6280,7 +6320,7 @@ const getOutputLanguagesAdapterFactory = (luvio) => function EinsteinLLM__getOut
|
|
|
6280
6320
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
6281
6321
|
};
|
|
6282
6322
|
|
|
6283
|
-
function validate$
|
|
6323
|
+
function validate$7(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
|
|
6284
6324
|
const v_error = (() => {
|
|
6285
6325
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6286
6326
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6358,8 +6398,8 @@ function validate$6(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
|
|
|
6358
6398
|
}
|
|
6359
6399
|
|
|
6360
6400
|
const TTL$3 = 100;
|
|
6361
|
-
const VERSION$
|
|
6362
|
-
function validate$
|
|
6401
|
+
const VERSION$6 = "2d1628544b54fc1701aa9b4eff05127b";
|
|
6402
|
+
function validate$6(obj, path = 'EinsteinPromptRecordRepresentation') {
|
|
6363
6403
|
const v_error = (() => {
|
|
6364
6404
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6365
6405
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6388,7 +6428,7 @@ function validate$5(obj, path = 'EinsteinPromptRecordRepresentation') {
|
|
|
6388
6428
|
for (let i = 0; i < obj_childRelationships_prop.length; i++) {
|
|
6389
6429
|
const obj_childRelationships_prop_item = obj_childRelationships_prop[i];
|
|
6390
6430
|
const path_childRelationships_prop_item = path_childRelationships_prop + '[' + i + ']';
|
|
6391
|
-
const referencepath_childRelationships_prop_itemValidationError = validate$
|
|
6431
|
+
const referencepath_childRelationships_prop_itemValidationError = validate$6(obj_childRelationships_prop_item, path_childRelationships_prop_item);
|
|
6392
6432
|
if (referencepath_childRelationships_prop_itemValidationError !== null) {
|
|
6393
6433
|
let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_childRelationships_prop_item + '")\n';
|
|
6394
6434
|
message += referencepath_childRelationships_prop_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6408,7 +6448,7 @@ function validate$5(obj, path = 'EinsteinPromptRecordRepresentation') {
|
|
|
6408
6448
|
const key = obj_fields_keys[i];
|
|
6409
6449
|
const obj_fields_prop = obj_fields[key];
|
|
6410
6450
|
const path_fields_prop = path_fields + '["' + key + '"]';
|
|
6411
|
-
const referencepath_fields_propValidationError = validate$
|
|
6451
|
+
const referencepath_fields_propValidationError = validate$7(obj_fields_prop, path_fields_prop);
|
|
6412
6452
|
if (referencepath_fields_propValidationError !== null) {
|
|
6413
6453
|
let message = 'Object doesn\'t match EinsteinPromptRecordFieldRepresentation (at "' + path_fields_prop + '")\n';
|
|
6414
6454
|
message += referencepath_fields_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6430,15 +6470,15 @@ const RepresentationType$3 = 'EinsteinPromptRecordRepresentation';
|
|
|
6430
6470
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
6431
6471
|
return input;
|
|
6432
6472
|
}
|
|
6433
|
-
const select$
|
|
6473
|
+
const select$e = function EinsteinPromptRecordRepresentationSelect() {
|
|
6434
6474
|
return {
|
|
6435
6475
|
kind: 'Fragment',
|
|
6436
|
-
version: VERSION$
|
|
6476
|
+
version: VERSION$6,
|
|
6437
6477
|
private: [],
|
|
6438
6478
|
opaque: true
|
|
6439
6479
|
};
|
|
6440
6480
|
};
|
|
6441
|
-
function equals$
|
|
6481
|
+
function equals$6(existing, incoming) {
|
|
6442
6482
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
6443
6483
|
return false;
|
|
6444
6484
|
}
|
|
@@ -6446,14 +6486,14 @@ function equals$5(existing, incoming) {
|
|
|
6446
6486
|
}
|
|
6447
6487
|
const ingest$3 = function EinsteinPromptRecordRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6448
6488
|
if (process.env.NODE_ENV !== 'production') {
|
|
6449
|
-
const validateError = validate$
|
|
6489
|
+
const validateError = validate$6(input);
|
|
6450
6490
|
if (validateError !== null) {
|
|
6451
6491
|
throw validateError;
|
|
6452
6492
|
}
|
|
6453
6493
|
}
|
|
6454
6494
|
const key = path.fullPath;
|
|
6455
6495
|
const ttlToUse = TTL$3;
|
|
6456
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$
|
|
6496
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$6, RepresentationType$3, equals$6);
|
|
6457
6497
|
return createLink(key);
|
|
6458
6498
|
};
|
|
6459
6499
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -6466,8 +6506,8 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6466
6506
|
});
|
|
6467
6507
|
}
|
|
6468
6508
|
|
|
6469
|
-
function select$
|
|
6470
|
-
return select$
|
|
6509
|
+
function select$d(luvio, params) {
|
|
6510
|
+
return select$e();
|
|
6471
6511
|
}
|
|
6472
6512
|
function keyBuilder$a(luvio, params) {
|
|
6473
6513
|
return keyPrefix + '::EinsteinPromptRecordRepresentation:(' + 'versionId:' + params.queryParams.versionId + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
|
|
@@ -6481,7 +6521,7 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6481
6521
|
luvio.storeIngest(key, ingest$3, body);
|
|
6482
6522
|
const snapshot = luvio.storeLookup({
|
|
6483
6523
|
recordId: key,
|
|
6484
|
-
node: select$
|
|
6524
|
+
node: select$d(),
|
|
6485
6525
|
variables: {},
|
|
6486
6526
|
}, snapshotRefresh);
|
|
6487
6527
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6498,7 +6538,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
6498
6538
|
const storeMetadataParams = {
|
|
6499
6539
|
ttl: TTL$3,
|
|
6500
6540
|
namespace: keyPrefix,
|
|
6501
|
-
version: VERSION$
|
|
6541
|
+
version: VERSION$6,
|
|
6502
6542
|
representationName: RepresentationType$3
|
|
6503
6543
|
};
|
|
6504
6544
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -6549,7 +6589,7 @@ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
|
6549
6589
|
}
|
|
6550
6590
|
function adapterFragment$4(luvio, config) {
|
|
6551
6591
|
createResourceParams$7(config);
|
|
6552
|
-
return select$
|
|
6592
|
+
return select$d();
|
|
6553
6593
|
}
|
|
6554
6594
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
6555
6595
|
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
@@ -6605,8 +6645,8 @@ const getPromptTemplateAdapterFactory = (luvio) => function EinsteinLLM__getProm
|
|
|
6605
6645
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
6606
6646
|
};
|
|
6607
6647
|
|
|
6608
|
-
function select$
|
|
6609
|
-
return select$
|
|
6648
|
+
function select$c(luvio, params) {
|
|
6649
|
+
return select$e();
|
|
6610
6650
|
}
|
|
6611
6651
|
function keyBuilder$8(luvio, params) {
|
|
6612
6652
|
return keyPrefix + '::EinsteinPromptRecordRepresentation:(' + 'includingContent:' + params.queryParams.includingContent + ',' + 'includingVersionDetail:' + params.queryParams.includingVersionDetail + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ',' + 'versionId:' + params.urlParams.versionId + ')';
|
|
@@ -6620,7 +6660,7 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6620
6660
|
luvio.storeIngest(key, ingest$3, body);
|
|
6621
6661
|
const snapshot = luvio.storeLookup({
|
|
6622
6662
|
recordId: key,
|
|
6623
|
-
node: select$
|
|
6663
|
+
node: select$c(),
|
|
6624
6664
|
variables: {},
|
|
6625
6665
|
}, snapshotRefresh);
|
|
6626
6666
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6637,7 +6677,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
6637
6677
|
const storeMetadataParams = {
|
|
6638
6678
|
ttl: TTL$3,
|
|
6639
6679
|
namespace: keyPrefix,
|
|
6640
|
-
version: VERSION$
|
|
6680
|
+
version: VERSION$6,
|
|
6641
6681
|
representationName: RepresentationType$3
|
|
6642
6682
|
};
|
|
6643
6683
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -6690,7 +6730,7 @@ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
|
6690
6730
|
}
|
|
6691
6731
|
function adapterFragment$3(luvio, config) {
|
|
6692
6732
|
createResourceParams$6(config);
|
|
6693
|
-
return select$
|
|
6733
|
+
return select$c();
|
|
6694
6734
|
}
|
|
6695
6735
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
6696
6736
|
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
@@ -6746,8 +6786,8 @@ const getPromptTemplateVersionAdapterFactory = (luvio) => function EinsteinLLM__
|
|
|
6746
6786
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
6747
6787
|
};
|
|
6748
6788
|
|
|
6749
|
-
function select$
|
|
6750
|
-
return select$
|
|
6789
|
+
function select$b(luvio, params) {
|
|
6790
|
+
return select$e();
|
|
6751
6791
|
}
|
|
6752
6792
|
function keyBuilder$6(luvio, params) {
|
|
6753
6793
|
return keyPrefix + '::EinsteinPromptRecordRepresentation:(' + 'includingContent:' + params.queryParams.includingContent + ',' + 'includingVersionDetail:' + params.queryParams.includingVersionDetail + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
|
|
@@ -6761,7 +6801,7 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6761
6801
|
luvio.storeIngest(key, ingest$3, body);
|
|
6762
6802
|
const snapshot = luvio.storeLookup({
|
|
6763
6803
|
recordId: key,
|
|
6764
|
-
node: select$
|
|
6804
|
+
node: select$b(),
|
|
6765
6805
|
variables: {},
|
|
6766
6806
|
}, snapshotRefresh);
|
|
6767
6807
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6778,7 +6818,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
6778
6818
|
const storeMetadataParams = {
|
|
6779
6819
|
ttl: TTL$3,
|
|
6780
6820
|
namespace: keyPrefix,
|
|
6781
|
-
version: VERSION$
|
|
6821
|
+
version: VERSION$6,
|
|
6782
6822
|
representationName: RepresentationType$3
|
|
6783
6823
|
};
|
|
6784
6824
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -6830,7 +6870,7 @@ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
|
6830
6870
|
}
|
|
6831
6871
|
function adapterFragment$2(luvio, config) {
|
|
6832
6872
|
createResourceParams$5(config);
|
|
6833
|
-
return select$
|
|
6873
|
+
return select$b();
|
|
6834
6874
|
}
|
|
6835
6875
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
6836
6876
|
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
@@ -6887,8 +6927,8 @@ const getPromptTemplateVersionsAdapterFactory = (luvio) => function EinsteinLLM_
|
|
|
6887
6927
|
};
|
|
6888
6928
|
|
|
6889
6929
|
const TTL$2 = 100;
|
|
6890
|
-
const VERSION$
|
|
6891
|
-
function validate$
|
|
6930
|
+
const VERSION$5 = "5fd7b8a03d155ba601bcb4ee725e0893";
|
|
6931
|
+
function validate$5(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentation') {
|
|
6892
6932
|
const v_error = (() => {
|
|
6893
6933
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6894
6934
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6907,7 +6947,7 @@ function validate$4(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentat
|
|
|
6907
6947
|
for (let i = 0; i < obj_promptRecords.length; i++) {
|
|
6908
6948
|
const obj_promptRecords_item = obj_promptRecords[i];
|
|
6909
6949
|
const path_promptRecords_item = path_promptRecords + '[' + i + ']';
|
|
6910
|
-
const referencepath_promptRecords_itemValidationError = validate$
|
|
6950
|
+
const referencepath_promptRecords_itemValidationError = validate$6(obj_promptRecords_item, path_promptRecords_item);
|
|
6911
6951
|
if (referencepath_promptRecords_itemValidationError !== null) {
|
|
6912
6952
|
let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_promptRecords_item + '")\n';
|
|
6913
6953
|
message += referencepath_promptRecords_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6927,15 +6967,15 @@ const RepresentationType$2 = 'EinsteinPromptRecordCollectionOutputRepresentation
|
|
|
6927
6967
|
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
6928
6968
|
return input;
|
|
6929
6969
|
}
|
|
6930
|
-
const select$
|
|
6970
|
+
const select$a = function EinsteinPromptRecordCollectionOutputRepresentationSelect() {
|
|
6931
6971
|
return {
|
|
6932
6972
|
kind: 'Fragment',
|
|
6933
|
-
version: VERSION$
|
|
6973
|
+
version: VERSION$5,
|
|
6934
6974
|
private: [],
|
|
6935
6975
|
opaque: true
|
|
6936
6976
|
};
|
|
6937
6977
|
};
|
|
6938
|
-
function equals$
|
|
6978
|
+
function equals$5(existing, incoming) {
|
|
6939
6979
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
6940
6980
|
return false;
|
|
6941
6981
|
}
|
|
@@ -6943,14 +6983,14 @@ function equals$4(existing, incoming) {
|
|
|
6943
6983
|
}
|
|
6944
6984
|
const ingest$2 = function EinsteinPromptRecordCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6945
6985
|
if (process.env.NODE_ENV !== 'production') {
|
|
6946
|
-
const validateError = validate$
|
|
6986
|
+
const validateError = validate$5(input);
|
|
6947
6987
|
if (validateError !== null) {
|
|
6948
6988
|
throw validateError;
|
|
6949
6989
|
}
|
|
6950
6990
|
}
|
|
6951
6991
|
const key = path.fullPath;
|
|
6952
6992
|
const ttlToUse = TTL$2;
|
|
6953
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$
|
|
6993
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$5, RepresentationType$2, equals$5);
|
|
6954
6994
|
return createLink(key);
|
|
6955
6995
|
};
|
|
6956
6996
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -6963,8 +7003,8 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6963
7003
|
});
|
|
6964
7004
|
}
|
|
6965
7005
|
|
|
6966
|
-
function select$
|
|
6967
|
-
return select$
|
|
7006
|
+
function select$9(luvio, params) {
|
|
7007
|
+
return select$a();
|
|
6968
7008
|
}
|
|
6969
7009
|
function keyBuilder$4(luvio, params) {
|
|
6970
7010
|
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 + ')';
|
|
@@ -6978,7 +7018,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6978
7018
|
luvio.storeIngest(key, ingest$2, body);
|
|
6979
7019
|
const snapshot = luvio.storeLookup({
|
|
6980
7020
|
recordId: key,
|
|
6981
|
-
node: select$
|
|
7021
|
+
node: select$9(),
|
|
6982
7022
|
variables: {},
|
|
6983
7023
|
}, snapshotRefresh);
|
|
6984
7024
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6995,7 +7035,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
6995
7035
|
const storeMetadataParams = {
|
|
6996
7036
|
ttl: TTL$2,
|
|
6997
7037
|
namespace: keyPrefix,
|
|
6998
|
-
version: VERSION$
|
|
7038
|
+
version: VERSION$5,
|
|
6999
7039
|
representationName: RepresentationType$2
|
|
7000
7040
|
};
|
|
7001
7041
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -7052,7 +7092,7 @@ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
|
7052
7092
|
}
|
|
7053
7093
|
function adapterFragment$1(luvio, config) {
|
|
7054
7094
|
createResourceParams$4(config);
|
|
7055
|
-
return select$
|
|
7095
|
+
return select$9();
|
|
7056
7096
|
}
|
|
7057
7097
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
7058
7098
|
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
@@ -7108,6 +7148,104 @@ const getPromptTemplatesAdapterFactory = (luvio) => function EinsteinLLM__getPro
|
|
|
7108
7148
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
7109
7149
|
};
|
|
7110
7150
|
|
|
7151
|
+
const VERSION$4 = "623bf343adaad84a1a57137d70c052cf";
|
|
7152
|
+
function validate$4(obj, path = 'EinsteinPromptTypeModelAffinityRepresentation') {
|
|
7153
|
+
const v_error = (() => {
|
|
7154
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7155
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7156
|
+
}
|
|
7157
|
+
if (obj.preferredCapabilities !== undefined) {
|
|
7158
|
+
const obj_preferredCapabilities = obj.preferredCapabilities;
|
|
7159
|
+
const path_preferredCapabilities = path + '.preferredCapabilities';
|
|
7160
|
+
if (!ArrayIsArray(obj_preferredCapabilities)) {
|
|
7161
|
+
return new TypeError('Expected "array" but received "' + typeof obj_preferredCapabilities + '" (at "' + path_preferredCapabilities + '")');
|
|
7162
|
+
}
|
|
7163
|
+
for (let i = 0; i < obj_preferredCapabilities.length; i++) {
|
|
7164
|
+
const obj_preferredCapabilities_item = obj_preferredCapabilities[i];
|
|
7165
|
+
const path_preferredCapabilities_item = path_preferredCapabilities + '[' + i + ']';
|
|
7166
|
+
if (typeof obj_preferredCapabilities_item !== 'string') {
|
|
7167
|
+
return new TypeError('Expected "string" but received "' + typeof obj_preferredCapabilities_item + '" (at "' + path_preferredCapabilities_item + '")');
|
|
7168
|
+
}
|
|
7169
|
+
}
|
|
7170
|
+
}
|
|
7171
|
+
if (obj.requiredCapabilities !== undefined) {
|
|
7172
|
+
const obj_requiredCapabilities = obj.requiredCapabilities;
|
|
7173
|
+
const path_requiredCapabilities = path + '.requiredCapabilities';
|
|
7174
|
+
if (!ArrayIsArray(obj_requiredCapabilities)) {
|
|
7175
|
+
return new TypeError('Expected "array" but received "' + typeof obj_requiredCapabilities + '" (at "' + path_requiredCapabilities + '")');
|
|
7176
|
+
}
|
|
7177
|
+
for (let i = 0; i < obj_requiredCapabilities.length; i++) {
|
|
7178
|
+
const obj_requiredCapabilities_item = obj_requiredCapabilities[i];
|
|
7179
|
+
const path_requiredCapabilities_item = path_requiredCapabilities + '[' + i + ']';
|
|
7180
|
+
if (typeof obj_requiredCapabilities_item !== 'string') {
|
|
7181
|
+
return new TypeError('Expected "string" but received "' + typeof obj_requiredCapabilities_item + '" (at "' + path_requiredCapabilities_item + '")');
|
|
7182
|
+
}
|
|
7183
|
+
}
|
|
7184
|
+
}
|
|
7185
|
+
})();
|
|
7186
|
+
return v_error === undefined ? null : v_error;
|
|
7187
|
+
}
|
|
7188
|
+
const select$8 = function EinsteinPromptTypeModelAffinityRepresentationSelect() {
|
|
7189
|
+
return {
|
|
7190
|
+
kind: 'Fragment',
|
|
7191
|
+
version: VERSION$4,
|
|
7192
|
+
private: [],
|
|
7193
|
+
selections: [
|
|
7194
|
+
{
|
|
7195
|
+
name: 'preferredCapabilities',
|
|
7196
|
+
kind: 'Scalar',
|
|
7197
|
+
plural: true,
|
|
7198
|
+
required: false
|
|
7199
|
+
},
|
|
7200
|
+
{
|
|
7201
|
+
name: 'requiredCapabilities',
|
|
7202
|
+
kind: 'Scalar',
|
|
7203
|
+
plural: true,
|
|
7204
|
+
required: false
|
|
7205
|
+
}
|
|
7206
|
+
]
|
|
7207
|
+
};
|
|
7208
|
+
};
|
|
7209
|
+
function equals$4(existing, incoming) {
|
|
7210
|
+
const existing_preferredCapabilities = existing.preferredCapabilities;
|
|
7211
|
+
const incoming_preferredCapabilities = incoming.preferredCapabilities;
|
|
7212
|
+
// if at least one of these optionals is defined
|
|
7213
|
+
if (existing_preferredCapabilities !== undefined || incoming_preferredCapabilities !== undefined) {
|
|
7214
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7215
|
+
// not equal
|
|
7216
|
+
if (existing_preferredCapabilities === undefined || incoming_preferredCapabilities === undefined) {
|
|
7217
|
+
return false;
|
|
7218
|
+
}
|
|
7219
|
+
const equals_preferredCapabilities_items = equalsArray(existing_preferredCapabilities, incoming_preferredCapabilities, (existing_preferredCapabilities_item, incoming_preferredCapabilities_item) => {
|
|
7220
|
+
if (!(existing_preferredCapabilities_item === incoming_preferredCapabilities_item)) {
|
|
7221
|
+
return false;
|
|
7222
|
+
}
|
|
7223
|
+
});
|
|
7224
|
+
if (equals_preferredCapabilities_items === false) {
|
|
7225
|
+
return false;
|
|
7226
|
+
}
|
|
7227
|
+
}
|
|
7228
|
+
const existing_requiredCapabilities = existing.requiredCapabilities;
|
|
7229
|
+
const incoming_requiredCapabilities = incoming.requiredCapabilities;
|
|
7230
|
+
// if at least one of these optionals is defined
|
|
7231
|
+
if (existing_requiredCapabilities !== undefined || incoming_requiredCapabilities !== undefined) {
|
|
7232
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7233
|
+
// not equal
|
|
7234
|
+
if (existing_requiredCapabilities === undefined || incoming_requiredCapabilities === undefined) {
|
|
7235
|
+
return false;
|
|
7236
|
+
}
|
|
7237
|
+
const equals_requiredCapabilities_items = equalsArray(existing_requiredCapabilities, incoming_requiredCapabilities, (existing_requiredCapabilities_item, incoming_requiredCapabilities_item) => {
|
|
7238
|
+
if (!(existing_requiredCapabilities_item === incoming_requiredCapabilities_item)) {
|
|
7239
|
+
return false;
|
|
7240
|
+
}
|
|
7241
|
+
});
|
|
7242
|
+
if (equals_requiredCapabilities_items === false) {
|
|
7243
|
+
return false;
|
|
7244
|
+
}
|
|
7245
|
+
}
|
|
7246
|
+
return true;
|
|
7247
|
+
}
|
|
7248
|
+
|
|
7111
7249
|
const VERSION$3 = "f08355bdc491f090c787309a8a476caa";
|
|
7112
7250
|
function validate$3(obj, path = 'EinsteinPromptTypeSchemaInputFieldRepresentation') {
|
|
7113
7251
|
const v_error = (() => {
|
|
@@ -7313,12 +7451,33 @@ function equals$2(existing, incoming) {
|
|
|
7313
7451
|
}
|
|
7314
7452
|
|
|
7315
7453
|
const TTL$1 = 300;
|
|
7316
|
-
const VERSION$1 = "
|
|
7454
|
+
const VERSION$1 = "687e1fa3402f444465804964fd16a221";
|
|
7317
7455
|
function validate$1(obj, path = 'EinsteinPromptTypeRecordRepresentation') {
|
|
7318
7456
|
const v_error = (() => {
|
|
7319
7457
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7320
7458
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7321
7459
|
}
|
|
7460
|
+
if (obj.allowActions !== undefined) {
|
|
7461
|
+
const obj_allowActions = obj.allowActions;
|
|
7462
|
+
const path_allowActions = path + '.allowActions';
|
|
7463
|
+
if (typeof obj_allowActions !== 'boolean') {
|
|
7464
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_allowActions + '" (at "' + path_allowActions + '")');
|
|
7465
|
+
}
|
|
7466
|
+
}
|
|
7467
|
+
if (obj.allowedInputTypes !== undefined) {
|
|
7468
|
+
const obj_allowedInputTypes = obj.allowedInputTypes;
|
|
7469
|
+
const path_allowedInputTypes = path + '.allowedInputTypes';
|
|
7470
|
+
if (!ArrayIsArray(obj_allowedInputTypes)) {
|
|
7471
|
+
return new TypeError('Expected "array" but received "' + typeof obj_allowedInputTypes + '" (at "' + path_allowedInputTypes + '")');
|
|
7472
|
+
}
|
|
7473
|
+
for (let i = 0; i < obj_allowedInputTypes.length; i++) {
|
|
7474
|
+
const obj_allowedInputTypes_item = obj_allowedInputTypes[i];
|
|
7475
|
+
const path_allowedInputTypes_item = path_allowedInputTypes + '[' + i + ']';
|
|
7476
|
+
if (typeof obj_allowedInputTypes_item !== 'string') {
|
|
7477
|
+
return new TypeError('Expected "string" but received "' + typeof obj_allowedInputTypes_item + '" (at "' + path_allowedInputTypes_item + '")');
|
|
7478
|
+
}
|
|
7479
|
+
}
|
|
7480
|
+
}
|
|
7322
7481
|
const obj_excludedGlobalVariables = obj.excludedGlobalVariables;
|
|
7323
7482
|
const path_excludedGlobalVariables = path + '.excludedGlobalVariables';
|
|
7324
7483
|
if (!ArrayIsArray(obj_excludedGlobalVariables)) {
|
|
@@ -7331,6 +7490,16 @@ function validate$1(obj, path = 'EinsteinPromptTypeRecordRepresentation') {
|
|
|
7331
7490
|
return new TypeError('Expected "string" but received "' + typeof obj_excludedGlobalVariables_item + '" (at "' + path_excludedGlobalVariables_item + '")');
|
|
7332
7491
|
}
|
|
7333
7492
|
}
|
|
7493
|
+
if (obj.modelAffinity !== undefined) {
|
|
7494
|
+
const obj_modelAffinity = obj.modelAffinity;
|
|
7495
|
+
const path_modelAffinity = path + '.modelAffinity';
|
|
7496
|
+
const referencepath_modelAffinityValidationError = validate$4(obj_modelAffinity, path_modelAffinity);
|
|
7497
|
+
if (referencepath_modelAffinityValidationError !== null) {
|
|
7498
|
+
let message = 'Object doesn\'t match EinsteinPromptTypeModelAffinityRepresentation (at "' + path_modelAffinity + '")\n';
|
|
7499
|
+
message += referencepath_modelAffinityValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
7500
|
+
return new TypeError(message);
|
|
7501
|
+
}
|
|
7502
|
+
}
|
|
7334
7503
|
const obj_schema = obj.schema;
|
|
7335
7504
|
const path_schema = path + '.schema';
|
|
7336
7505
|
const referencepath_schemaValidationError = validate$2(obj_schema, path_schema);
|
|
@@ -7352,17 +7521,35 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
7352
7521
|
return input;
|
|
7353
7522
|
}
|
|
7354
7523
|
const select$5 = function EinsteinPromptTypeRecordRepresentationSelect() {
|
|
7524
|
+
const { selections: EinsteinPromptTypeModelAffinityRepresentation__selections, opaque: EinsteinPromptTypeModelAffinityRepresentation__opaque, } = select$8();
|
|
7355
7525
|
const { selections: EinsteinPromptTypeSchemaRepresentation__selections, opaque: EinsteinPromptTypeSchemaRepresentation__opaque, } = select$6();
|
|
7356
7526
|
return {
|
|
7357
7527
|
kind: 'Fragment',
|
|
7358
7528
|
version: VERSION$1,
|
|
7359
7529
|
private: [],
|
|
7360
7530
|
selections: [
|
|
7531
|
+
{
|
|
7532
|
+
name: 'allowActions',
|
|
7533
|
+
kind: 'Scalar',
|
|
7534
|
+
required: false
|
|
7535
|
+
},
|
|
7536
|
+
{
|
|
7537
|
+
name: 'allowedInputTypes',
|
|
7538
|
+
kind: 'Scalar',
|
|
7539
|
+
plural: true,
|
|
7540
|
+
required: false
|
|
7541
|
+
},
|
|
7361
7542
|
{
|
|
7362
7543
|
name: 'excludedGlobalVariables',
|
|
7363
7544
|
kind: 'Scalar',
|
|
7364
7545
|
plural: true
|
|
7365
7546
|
},
|
|
7547
|
+
{
|
|
7548
|
+
name: 'modelAffinity',
|
|
7549
|
+
kind: 'Object',
|
|
7550
|
+
selections: EinsteinPromptTypeModelAffinityRepresentation__selections,
|
|
7551
|
+
required: false
|
|
7552
|
+
},
|
|
7366
7553
|
{
|
|
7367
7554
|
name: 'schema',
|
|
7368
7555
|
kind: 'Object',
|
|
@@ -7376,11 +7563,42 @@ const select$5 = function EinsteinPromptTypeRecordRepresentationSelect() {
|
|
|
7376
7563
|
};
|
|
7377
7564
|
};
|
|
7378
7565
|
function equals$1(existing, incoming) {
|
|
7566
|
+
const existing_allowActions = existing.allowActions;
|
|
7567
|
+
const incoming_allowActions = incoming.allowActions;
|
|
7568
|
+
// if at least one of these optionals is defined
|
|
7569
|
+
if (existing_allowActions !== undefined || incoming_allowActions !== undefined) {
|
|
7570
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7571
|
+
// not equal
|
|
7572
|
+
if (existing_allowActions === undefined || incoming_allowActions === undefined) {
|
|
7573
|
+
return false;
|
|
7574
|
+
}
|
|
7575
|
+
if (!(existing_allowActions === incoming_allowActions)) {
|
|
7576
|
+
return false;
|
|
7577
|
+
}
|
|
7578
|
+
}
|
|
7379
7579
|
const existing_templateTypeName = existing.templateTypeName;
|
|
7380
7580
|
const incoming_templateTypeName = incoming.templateTypeName;
|
|
7381
7581
|
if (!(existing_templateTypeName === incoming_templateTypeName)) {
|
|
7382
7582
|
return false;
|
|
7383
7583
|
}
|
|
7584
|
+
const existing_allowedInputTypes = existing.allowedInputTypes;
|
|
7585
|
+
const incoming_allowedInputTypes = incoming.allowedInputTypes;
|
|
7586
|
+
// if at least one of these optionals is defined
|
|
7587
|
+
if (existing_allowedInputTypes !== undefined || incoming_allowedInputTypes !== undefined) {
|
|
7588
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7589
|
+
// not equal
|
|
7590
|
+
if (existing_allowedInputTypes === undefined || incoming_allowedInputTypes === undefined) {
|
|
7591
|
+
return false;
|
|
7592
|
+
}
|
|
7593
|
+
const equals_allowedInputTypes_items = equalsArray(existing_allowedInputTypes, incoming_allowedInputTypes, (existing_allowedInputTypes_item, incoming_allowedInputTypes_item) => {
|
|
7594
|
+
if (!(existing_allowedInputTypes_item === incoming_allowedInputTypes_item)) {
|
|
7595
|
+
return false;
|
|
7596
|
+
}
|
|
7597
|
+
});
|
|
7598
|
+
if (equals_allowedInputTypes_items === false) {
|
|
7599
|
+
return false;
|
|
7600
|
+
}
|
|
7601
|
+
}
|
|
7384
7602
|
const existing_excludedGlobalVariables = existing.excludedGlobalVariables;
|
|
7385
7603
|
const incoming_excludedGlobalVariables = incoming.excludedGlobalVariables;
|
|
7386
7604
|
const equals_excludedGlobalVariables_items = equalsArray(existing_excludedGlobalVariables, incoming_excludedGlobalVariables, (existing_excludedGlobalVariables_item, incoming_excludedGlobalVariables_item) => {
|
|
@@ -7391,6 +7609,19 @@ function equals$1(existing, incoming) {
|
|
|
7391
7609
|
if (equals_excludedGlobalVariables_items === false) {
|
|
7392
7610
|
return false;
|
|
7393
7611
|
}
|
|
7612
|
+
const existing_modelAffinity = existing.modelAffinity;
|
|
7613
|
+
const incoming_modelAffinity = incoming.modelAffinity;
|
|
7614
|
+
// if at least one of these optionals is defined
|
|
7615
|
+
if (existing_modelAffinity !== undefined || incoming_modelAffinity !== undefined) {
|
|
7616
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7617
|
+
// not equal
|
|
7618
|
+
if (existing_modelAffinity === undefined || incoming_modelAffinity === undefined) {
|
|
7619
|
+
return false;
|
|
7620
|
+
}
|
|
7621
|
+
if (!(equals$4(existing_modelAffinity, incoming_modelAffinity))) {
|
|
7622
|
+
return false;
|
|
7623
|
+
}
|
|
7624
|
+
}
|
|
7394
7625
|
const existing_schema = existing.schema;
|
|
7395
7626
|
const incoming_schema = incoming.schema;
|
|
7396
7627
|
if (!(equals$2(existing_schema, incoming_schema))) {
|
|
@@ -7568,7 +7799,7 @@ function validate(obj, path = 'EinsteinPromptTemplateStatusRepresentation') {
|
|
|
7568
7799
|
if (obj.additionalData !== undefined) {
|
|
7569
7800
|
const obj_additionalData = obj.additionalData;
|
|
7570
7801
|
const path_additionalData = path + '.additionalData';
|
|
7571
|
-
const referencepath_additionalDataValidationError = validate$
|
|
7802
|
+
const referencepath_additionalDataValidationError = validate$D(obj_additionalData, path_additionalData);
|
|
7572
7803
|
if (referencepath_additionalDataValidationError !== null) {
|
|
7573
7804
|
let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
|
|
7574
7805
|
message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7645,7 +7876,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
7645
7876
|
return input;
|
|
7646
7877
|
}
|
|
7647
7878
|
const select$3 = function EinsteinPromptTemplateStatusRepresentationSelect() {
|
|
7648
|
-
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$
|
|
7879
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$P();
|
|
7649
7880
|
return {
|
|
7650
7881
|
kind: 'Fragment',
|
|
7651
7882
|
version: VERSION,
|
|
@@ -7743,7 +7974,7 @@ function equals(existing, incoming) {
|
|
|
7743
7974
|
if (existing_additionalData === undefined || incoming_additionalData === undefined) {
|
|
7744
7975
|
return false;
|
|
7745
7976
|
}
|
|
7746
|
-
if (!(equals$
|
|
7977
|
+
if (!(equals$x(existing_additionalData, incoming_additionalData))) {
|
|
7747
7978
|
return false;
|
|
7748
7979
|
}
|
|
7749
7980
|
}
|
|
@@ -7883,7 +8114,7 @@ const putEinsteinPromptTemplateStatusAdapterFactory = (luvio) => {
|
|
|
7883
8114
|
};
|
|
7884
8115
|
|
|
7885
8116
|
function select$1(luvio, params) {
|
|
7886
|
-
return select$
|
|
8117
|
+
return select$u();
|
|
7887
8118
|
}
|
|
7888
8119
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
7889
8120
|
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
@@ -7976,7 +8207,7 @@ const putEinsteinPromptTemplateVersionStatusAdapterFactory = (luvio) => {
|
|
|
7976
8207
|
};
|
|
7977
8208
|
|
|
7978
8209
|
function select(luvio, params) {
|
|
7979
|
-
return select$
|
|
8210
|
+
return select$u();
|
|
7980
8211
|
}
|
|
7981
8212
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
7982
8213
|
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
@@ -8272,4 +8503,4 @@ withDefaultLuvio((luvio) => {
|
|
|
8272
8503
|
});
|
|
8273
8504
|
|
|
8274
8505
|
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 };
|
|
8275
|
-
// version: 1.451.0-
|
|
8506
|
+
// version: 1.451.0-dev3-5cd7743c69
|