@salesforce/lds-adapters-service-einsteinllm 1.414.0 → 1.415.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/service-einsteinllm.js +1069 -341
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateLatencyBreakdownItemRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateLatencyExecutionRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateLatencyRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateLatencyStepRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplatePerformanceRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplatePromptTokenUsageRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateTokenBreakdownRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateTokenUsageRepresentation.d.ts +35 -0
- package/package.json +4 -4
- package/sfdc/index.js +897 -169
- package/src/raml/api.raml +128 -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$N(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$F(obj, path = 'EinsteinLlmEmbeddingsAdditionalConfigInputRepre
|
|
|
222
222
|
return v_error === undefined ? null : v_error;
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
function validate$
|
|
225
|
+
function validate$M(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$E(obj, path = 'WrappedListString') {
|
|
|
243
243
|
return v_error === undefined ? null : v_error;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
function validate$
|
|
246
|
+
function validate$L(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$N(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$D(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$M(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$D(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$B = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
|
|
279
|
+
function validate$K(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$C(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
|
|
|
297
297
|
})();
|
|
298
298
|
return v_error === undefined ? null : v_error;
|
|
299
299
|
}
|
|
300
|
-
const select$
|
|
300
|
+
const select$U = function EinsteinLlmEmbeddingItemRepresentationSelect() {
|
|
301
301
|
return {
|
|
302
302
|
kind: 'Fragment',
|
|
303
|
-
version: VERSION$
|
|
303
|
+
version: VERSION$B,
|
|
304
304
|
private: [],
|
|
305
305
|
selections: [
|
|
306
306
|
{
|
|
@@ -315,7 +315,7 @@ const select$M = function EinsteinLlmEmbeddingItemRepresentationSelect() {
|
|
|
315
315
|
]
|
|
316
316
|
};
|
|
317
317
|
};
|
|
318
|
-
function equals$
|
|
318
|
+
function equals$B(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$t(existing, incoming) {
|
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
const TTL$c = 100;
|
|
338
|
-
const VERSION$
|
|
339
|
-
function validate$
|
|
338
|
+
const VERSION$A = "d9873651f09d29764ef4d4231eb653d7";
|
|
339
|
+
function validate$J(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$B(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$K(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$c = 'EinsteinLlmEmbeddingsRepresentation';
|
|
|
377
377
|
function normalize$c(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$T = function EinsteinLlmEmbeddingsRepresentationSelect() {
|
|
381
|
+
const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$U();
|
|
382
382
|
return {
|
|
383
383
|
kind: 'Fragment',
|
|
384
|
-
version: VERSION$
|
|
384
|
+
version: VERSION$A,
|
|
385
385
|
private: [],
|
|
386
386
|
selections: [
|
|
387
387
|
{
|
|
@@ -398,11 +398,11 @@ const select$L = function EinsteinLlmEmbeddingsRepresentationSelect() {
|
|
|
398
398
|
]
|
|
399
399
|
};
|
|
400
400
|
};
|
|
401
|
-
function equals$
|
|
401
|
+
function equals$A(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$B(existing_embeddings_item, incoming_embeddings_item))) {
|
|
406
406
|
return false;
|
|
407
407
|
}
|
|
408
408
|
});
|
|
@@ -423,14 +423,14 @@ function equals$s(existing, incoming) {
|
|
|
423
423
|
}
|
|
424
424
|
const ingest$c = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
425
425
|
if (process.env.NODE_ENV !== 'production') {
|
|
426
|
-
const validateError = validate$
|
|
426
|
+
const validateError = validate$J(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$c;
|
|
433
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "EinsteinLLM", VERSION$
|
|
433
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "EinsteinLLM", VERSION$A, RepresentationType$c, equals$A);
|
|
434
434
|
return createLink(key);
|
|
435
435
|
};
|
|
436
436
|
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -443,8 +443,8 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
443
443
|
});
|
|
444
444
|
}
|
|
445
445
|
|
|
446
|
-
function select$
|
|
447
|
-
return select$
|
|
446
|
+
function select$S(luvio, params) {
|
|
447
|
+
return select$T();
|
|
448
448
|
}
|
|
449
449
|
function keyBuilder$q(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$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
458
458
|
luvio.storeIngest(key, ingest$c, body);
|
|
459
459
|
const snapshot = luvio.storeLookup({
|
|
460
460
|
recordId: key,
|
|
461
|
-
node: select$
|
|
461
|
+
node: select$S(),
|
|
462
462
|
variables: {},
|
|
463
463
|
}, snapshotRefresh);
|
|
464
464
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -475,7 +475,7 @@ function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
|
475
475
|
const storeMetadataParams = {
|
|
476
476
|
ttl: TTL$c,
|
|
477
477
|
namespace: keyPrefix,
|
|
478
|
-
version: VERSION$
|
|
478
|
+
version: VERSION$A,
|
|
479
479
|
representationName: RepresentationType$c
|
|
480
480
|
};
|
|
481
481
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -508,7 +508,7 @@ function keyBuilder$p(luvio, config) {
|
|
|
508
508
|
function typeCheckConfig$i(untrustedConfig) {
|
|
509
509
|
const config = {};
|
|
510
510
|
const untrustedConfig_embeddingsInput = untrustedConfig.embeddingsInput;
|
|
511
|
-
const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$
|
|
511
|
+
const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$L(untrustedConfig_embeddingsInput);
|
|
512
512
|
if (referenceEinsteinLlmEmbeddingsInputRepresentationValidationError === null) {
|
|
513
513
|
config.embeddingsInput = untrustedConfig_embeddingsInput;
|
|
514
514
|
}
|
|
@@ -529,7 +529,7 @@ function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
|
529
529
|
}
|
|
530
530
|
function adapterFragment$a(luvio, config) {
|
|
531
531
|
createResourceParams$i(config);
|
|
532
|
-
return select$
|
|
532
|
+
return select$S();
|
|
533
533
|
}
|
|
534
534
|
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
535
535
|
const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
|
|
@@ -585,7 +585,7 @@ const createEmbeddingsAdapterFactory = (luvio) => function EinsteinLLM__createEm
|
|
|
585
585
|
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
586
586
|
};
|
|
587
587
|
|
|
588
|
-
function validate$
|
|
588
|
+
function validate$I(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$A(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
|
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
const TTL$b = 100;
|
|
636
|
-
const VERSION$
|
|
637
|
-
function validate$
|
|
636
|
+
const VERSION$z = "4033328f65865dd5d80c68a7573a4522";
|
|
637
|
+
function validate$H(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$b(input, existing, path, luvio, store, timestamp) {
|
|
661
661
|
return input;
|
|
662
662
|
}
|
|
663
|
-
const select$
|
|
663
|
+
const select$R = function EinsteinLlmFeedbackRepresentationSelect() {
|
|
664
664
|
return {
|
|
665
665
|
kind: 'Fragment',
|
|
666
|
-
version: VERSION$
|
|
666
|
+
version: VERSION$z,
|
|
667
667
|
private: [],
|
|
668
668
|
selections: [
|
|
669
669
|
{
|
|
@@ -673,7 +673,7 @@ const select$J = function EinsteinLlmFeedbackRepresentationSelect() {
|
|
|
673
673
|
]
|
|
674
674
|
};
|
|
675
675
|
};
|
|
676
|
-
function equals$
|
|
676
|
+
function equals$z(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$r(existing, incoming) {
|
|
|
683
683
|
}
|
|
684
684
|
const ingest$b = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
685
685
|
if (process.env.NODE_ENV !== 'production') {
|
|
686
|
-
const validateError = validate$
|
|
686
|
+
const validateError = validate$H(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$b;
|
|
693
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "EinsteinLLM", VERSION$
|
|
693
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "EinsteinLLM", VERSION$z, RepresentationType$b, equals$z);
|
|
694
694
|
return createLink(key);
|
|
695
695
|
};
|
|
696
696
|
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -703,8 +703,8 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
703
703
|
});
|
|
704
704
|
}
|
|
705
705
|
|
|
706
|
-
function select$
|
|
707
|
-
return select$
|
|
706
|
+
function select$Q(luvio, params) {
|
|
707
|
+
return select$R();
|
|
708
708
|
}
|
|
709
709
|
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
710
710
|
getTypeCacheKeys$b(storeKeyMap, luvio, response);
|
|
@@ -715,7 +715,7 @@ function ingestSuccess$h(luvio, resourceParams, response) {
|
|
|
715
715
|
luvio.storeIngest(key, ingest$b, body);
|
|
716
716
|
const snapshot = luvio.storeLookup({
|
|
717
717
|
recordId: key,
|
|
718
|
-
node: select$
|
|
718
|
+
node: select$Q(),
|
|
719
719
|
variables: {},
|
|
720
720
|
});
|
|
721
721
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -749,7 +749,7 @@ const createResourceParams$h = /*#__PURE__*/ createResourceParams$j(createFeedba
|
|
|
749
749
|
function typeCheckConfig$h(untrustedConfig) {
|
|
750
750
|
const config = {};
|
|
751
751
|
const untrustedConfig_feedbackInput = untrustedConfig.feedbackInput;
|
|
752
|
-
const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$
|
|
752
|
+
const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$I(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$G(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$y(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation'
|
|
|
880
880
|
return v_error === undefined ? null : v_error;
|
|
881
881
|
}
|
|
882
882
|
|
|
883
|
-
function validate$
|
|
883
|
+
function validate$F(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$x(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$G(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$x(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$y = "9ebac74e6f964c363d5fd1913df363af";
|
|
915
|
+
function validate$E(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$w(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentat
|
|
|
948
948
|
})();
|
|
949
949
|
return v_error === undefined ? null : v_error;
|
|
950
950
|
}
|
|
951
|
-
const select$
|
|
951
|
+
const select$P = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
|
|
952
952
|
return {
|
|
953
953
|
kind: 'Fragment',
|
|
954
|
-
version: VERSION$
|
|
954
|
+
version: VERSION$y,
|
|
955
955
|
private: [],
|
|
956
956
|
selections: [
|
|
957
957
|
{
|
|
@@ -962,7 +962,7 @@ const select$H = function EinsteinLlmGenerationsContentQualityRepresentationSele
|
|
|
962
962
|
]
|
|
963
963
|
};
|
|
964
964
|
};
|
|
965
|
-
function equals$
|
|
965
|
+
function equals$y(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$q(existing, incoming) {
|
|
|
979
979
|
return true;
|
|
980
980
|
}
|
|
981
981
|
|
|
982
|
-
const VERSION$
|
|
983
|
-
function validate$
|
|
982
|
+
const VERSION$x = "77af44a252cb5b45b4d9a8101368d2aa";
|
|
983
|
+
function validate$D(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$v(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation
|
|
|
1184
1184
|
})();
|
|
1185
1185
|
return v_error === undefined ? null : v_error;
|
|
1186
1186
|
}
|
|
1187
|
-
const select$
|
|
1187
|
+
const select$O = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
|
|
1188
1188
|
return {
|
|
1189
1189
|
kind: 'Fragment',
|
|
1190
|
-
version: VERSION$
|
|
1190
|
+
version: VERSION$x,
|
|
1191
1191
|
private: [],
|
|
1192
1192
|
selections: [
|
|
1193
1193
|
{
|
|
@@ -1228,7 +1228,7 @@ const select$G = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect(
|
|
|
1228
1228
|
]
|
|
1229
1229
|
};
|
|
1230
1230
|
};
|
|
1231
|
-
function equals$
|
|
1231
|
+
function equals$x(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$p(existing, incoming) {
|
|
|
1323
1323
|
return true;
|
|
1324
1324
|
}
|
|
1325
1325
|
|
|
1326
|
-
const VERSION$
|
|
1327
|
-
function validate$
|
|
1326
|
+
const VERSION$w = "4a07778ff6c595d91c575188146647a1";
|
|
1327
|
+
function validate$C(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$u(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$E(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$u(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$D(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$u(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$N = function EinsteinLlmGenerationItemRepresentationSelect() {
|
|
1420
|
+
const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$P();
|
|
1421
|
+
const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$O();
|
|
1422
1422
|
return {
|
|
1423
1423
|
kind: 'Fragment',
|
|
1424
|
-
version: VERSION$
|
|
1424
|
+
version: VERSION$w,
|
|
1425
1425
|
private: [],
|
|
1426
1426
|
selections: [
|
|
1427
1427
|
{
|
|
@@ -1458,7 +1458,7 @@ const select$F = function EinsteinLlmGenerationItemRepresentationSelect() {
|
|
|
1458
1458
|
]
|
|
1459
1459
|
};
|
|
1460
1460
|
};
|
|
1461
|
-
function equals$
|
|
1461
|
+
function equals$w(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$o(existing, incoming) {
|
|
|
1499
1499
|
if (!(existing_contentQualityRepresentation === incoming_contentQualityRepresentation
|
|
1500
1500
|
|| (existing_contentQualityRepresentation != null &&
|
|
1501
1501
|
incoming_contentQualityRepresentation != null &&
|
|
1502
|
-
equals$
|
|
1502
|
+
equals$y(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
|
|
1503
1503
|
return false;
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
@@ -1515,15 +1515,15 @@ function equals$o(existing, incoming) {
|
|
|
1515
1515
|
if (!(existing_safetyScoreRepresentation === incoming_safetyScoreRepresentation
|
|
1516
1516
|
|| (existing_safetyScoreRepresentation != null &&
|
|
1517
1517
|
incoming_safetyScoreRepresentation != null &&
|
|
1518
|
-
equals$
|
|
1518
|
+
equals$x(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$v = "379fd960d1a0118f506f458ab2c8dd7e";
|
|
1526
|
+
function validate$B(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$t(obj, path = 'WrappedMap') {
|
|
|
1545
1545
|
})();
|
|
1546
1546
|
return v_error === undefined ? null : v_error;
|
|
1547
1547
|
}
|
|
1548
|
-
const select$
|
|
1548
|
+
const select$M = function WrappedMapSelect() {
|
|
1549
1549
|
return {
|
|
1550
1550
|
kind: 'Fragment',
|
|
1551
|
-
version: VERSION$
|
|
1551
|
+
version: VERSION$v,
|
|
1552
1552
|
private: [],
|
|
1553
1553
|
selections: [
|
|
1554
1554
|
{
|
|
@@ -1559,7 +1559,7 @@ const select$E = function WrappedMapSelect() {
|
|
|
1559
1559
|
]
|
|
1560
1560
|
};
|
|
1561
1561
|
};
|
|
1562
|
-
function equals$
|
|
1562
|
+
function equals$v(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$n(existing, incoming) {
|
|
|
1574
1574
|
}
|
|
1575
1575
|
|
|
1576
1576
|
const TTL$a = 100;
|
|
1577
|
-
const VERSION$
|
|
1578
|
-
function validate$
|
|
1577
|
+
const VERSION$u = "d8abd72a42e842b253da1c38954dafbc";
|
|
1578
|
+
function validate$A(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$s(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$C(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$s(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$B(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$a(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$L = function EinsteinLlmGenerationsRepresentationSelect() {
|
|
1675
|
+
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$N();
|
|
1676
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$M();
|
|
1677
1677
|
return {
|
|
1678
1678
|
kind: 'Fragment',
|
|
1679
|
-
version: VERSION$
|
|
1679
|
+
version: VERSION$u,
|
|
1680
1680
|
private: [],
|
|
1681
1681
|
selections: [
|
|
1682
1682
|
{
|
|
@@ -1702,7 +1702,7 @@ const select$D = function EinsteinLlmGenerationsRepresentationSelect() {
|
|
|
1702
1702
|
]
|
|
1703
1703
|
};
|
|
1704
1704
|
};
|
|
1705
|
-
function equals$
|
|
1705
|
+
function equals$u(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$m(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$w(existing_generations_item, incoming_generations_item))) {
|
|
1715
1715
|
return false;
|
|
1716
1716
|
}
|
|
1717
1717
|
});
|
|
@@ -1723,7 +1723,7 @@ function equals$m(existing, incoming) {
|
|
|
1723
1723
|
if (!(existing_parameters === incoming_parameters
|
|
1724
1724
|
|| (existing_parameters != null &&
|
|
1725
1725
|
incoming_parameters != null &&
|
|
1726
|
-
equals$
|
|
1726
|
+
equals$v(existing_parameters, incoming_parameters)))) {
|
|
1727
1727
|
return false;
|
|
1728
1728
|
}
|
|
1729
1729
|
const existing_prompt = existing.prompt;
|
|
@@ -1735,14 +1735,14 @@ function equals$m(existing, incoming) {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
const ingest$a = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1737
1737
|
if (process.env.NODE_ENV !== 'production') {
|
|
1738
|
-
const validateError = validate$
|
|
1738
|
+
const validateError = validate$A(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$a;
|
|
1745
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "EinsteinLLM", VERSION$
|
|
1745
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "EinsteinLLM", VERSION$u, RepresentationType$a, equals$u);
|
|
1746
1746
|
return createLink(key);
|
|
1747
1747
|
};
|
|
1748
1748
|
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1755,8 +1755,8 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1755
1755
|
});
|
|
1756
1756
|
}
|
|
1757
1757
|
|
|
1758
|
-
function select$
|
|
1759
|
-
return select$
|
|
1758
|
+
function select$K(luvio, params) {
|
|
1759
|
+
return select$L();
|
|
1760
1760
|
}
|
|
1761
1761
|
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
1762
1762
|
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
@@ -1767,7 +1767,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
|
|
|
1767
1767
|
luvio.storeIngest(key, ingest$a, body);
|
|
1768
1768
|
const snapshot = luvio.storeLookup({
|
|
1769
1769
|
recordId: key,
|
|
1770
|
-
node: select$
|
|
1770
|
+
node: select$K(),
|
|
1771
1771
|
variables: {},
|
|
1772
1772
|
});
|
|
1773
1773
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1801,7 +1801,7 @@ const createResourceParams$g = /*#__PURE__*/ createResourceParams$j(createGenera
|
|
|
1801
1801
|
function typeCheckConfig$g(untrustedConfig) {
|
|
1802
1802
|
const config = {};
|
|
1803
1803
|
const untrustedConfig_generationsInput = untrustedConfig.generationsInput;
|
|
1804
|
-
const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$
|
|
1804
|
+
const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$F(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$z(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$r(obj, path = 'WrappedValueMap') {
|
|
|
1872
1872
|
return v_error === undefined ? null : v_error;
|
|
1873
1873
|
}
|
|
1874
1874
|
|
|
1875
|
-
function validate$
|
|
1875
|
+
function validate$y(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,16 +1880,23 @@ function validate$q(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$G(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');
|
|
1887
1887
|
return new TypeError(message);
|
|
1888
1888
|
}
|
|
1889
1889
|
}
|
|
1890
|
+
if (obj.includeMetrics !== undefined) {
|
|
1891
|
+
const obj_includeMetrics = obj.includeMetrics;
|
|
1892
|
+
const path_includeMetrics = path + '.includeMetrics';
|
|
1893
|
+
if (typeof obj_includeMetrics !== 'boolean') {
|
|
1894
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_includeMetrics + '" (at "' + path_includeMetrics + '")');
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1890
1897
|
const obj_inputParams = obj.inputParams;
|
|
1891
1898
|
const path_inputParams = path + '.inputParams';
|
|
1892
|
-
const referencepath_inputParamsValidationError = validate$
|
|
1899
|
+
const referencepath_inputParamsValidationError = validate$z(obj_inputParams, path_inputParams);
|
|
1893
1900
|
if (referencepath_inputParamsValidationError !== null) {
|
|
1894
1901
|
let message = 'Object doesn\'t match WrappedValueMap (at "' + path_inputParams + '")\n';
|
|
1895
1902
|
message += referencepath_inputParamsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1925,8 +1932,8 @@ function validate$q(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
|
|
|
1925
1932
|
return v_error === undefined ? null : v_error;
|
|
1926
1933
|
}
|
|
1927
1934
|
|
|
1928
|
-
const VERSION$
|
|
1929
|
-
function validate$
|
|
1935
|
+
const VERSION$t = "6a209d0b32d59e6e04155812fdf5c985";
|
|
1936
|
+
function validate$x(obj, path = 'EinsteinLlmGenerationGenAiCitedReferenceRepresentation') {
|
|
1930
1937
|
const v_error = (() => {
|
|
1931
1938
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1932
1939
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1990,10 +1997,10 @@ function validate$p(obj, path = 'EinsteinLlmGenerationGenAiCitedReferenceReprese
|
|
|
1990
1997
|
})();
|
|
1991
1998
|
return v_error === undefined ? null : v_error;
|
|
1992
1999
|
}
|
|
1993
|
-
const select$
|
|
2000
|
+
const select$J = function EinsteinLlmGenerationGenAiCitedReferenceRepresentationSelect() {
|
|
1994
2001
|
return {
|
|
1995
2002
|
kind: 'Fragment',
|
|
1996
|
-
version: VERSION$
|
|
2003
|
+
version: VERSION$t,
|
|
1997
2004
|
private: [],
|
|
1998
2005
|
selections: [
|
|
1999
2006
|
{
|
|
@@ -2031,7 +2038,7 @@ const select$B = function EinsteinLlmGenerationGenAiCitedReferenceRepresentation
|
|
|
2031
2038
|
]
|
|
2032
2039
|
};
|
|
2033
2040
|
};
|
|
2034
|
-
function equals$
|
|
2041
|
+
function equals$t(existing, incoming) {
|
|
2035
2042
|
const existing_label = existing.label;
|
|
2036
2043
|
const incoming_label = incoming.label;
|
|
2037
2044
|
// if at least one of these optionals is defined
|
|
@@ -2123,8 +2130,8 @@ function equals$l(existing, incoming) {
|
|
|
2123
2130
|
return true;
|
|
2124
2131
|
}
|
|
2125
2132
|
|
|
2126
|
-
const VERSION$
|
|
2127
|
-
function validate$
|
|
2133
|
+
const VERSION$s = "bcc0ea08323732f4187dd2b9f70fea6c";
|
|
2134
|
+
function validate$w(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
|
|
2128
2135
|
const v_error = (() => {
|
|
2129
2136
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2130
2137
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2138,7 +2145,7 @@ function validate$o(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
|
|
|
2138
2145
|
for (let i = 0; i < obj_citedReferences.length; i++) {
|
|
2139
2146
|
const obj_citedReferences_item = obj_citedReferences[i];
|
|
2140
2147
|
const path_citedReferences_item = path_citedReferences + '[' + i + ']';
|
|
2141
|
-
const referencepath_citedReferences_itemValidationError = validate$
|
|
2148
|
+
const referencepath_citedReferences_itemValidationError = validate$x(obj_citedReferences_item, path_citedReferences_item);
|
|
2142
2149
|
if (referencepath_citedReferences_itemValidationError !== null) {
|
|
2143
2150
|
let message = 'Object doesn\'t match EinsteinLlmGenerationGenAiCitedReferenceRepresentation (at "' + path_citedReferences_item + '")\n';
|
|
2144
2151
|
message += referencepath_citedReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2149,11 +2156,11 @@ function validate$o(obj, path = 'EinsteinLlmGenerationCitationRepresentation') {
|
|
|
2149
2156
|
})();
|
|
2150
2157
|
return v_error === undefined ? null : v_error;
|
|
2151
2158
|
}
|
|
2152
|
-
const select$
|
|
2153
|
-
const { selections: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__selections, opaque: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__opaque, } = select$
|
|
2159
|
+
const select$I = function EinsteinLlmGenerationCitationRepresentationSelect() {
|
|
2160
|
+
const { selections: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__selections, opaque: EinsteinLlmGenerationGenAiCitedReferenceRepresentation__opaque, } = select$J();
|
|
2154
2161
|
return {
|
|
2155
2162
|
kind: 'Fragment',
|
|
2156
|
-
version: VERSION$
|
|
2163
|
+
version: VERSION$s,
|
|
2157
2164
|
private: [],
|
|
2158
2165
|
selections: [
|
|
2159
2166
|
{
|
|
@@ -2166,7 +2173,7 @@ const select$A = function EinsteinLlmGenerationCitationRepresentationSelect() {
|
|
|
2166
2173
|
]
|
|
2167
2174
|
};
|
|
2168
2175
|
};
|
|
2169
|
-
function equals$
|
|
2176
|
+
function equals$s(existing, incoming) {
|
|
2170
2177
|
const existing_citedReferences = existing.citedReferences;
|
|
2171
2178
|
const incoming_citedReferences = incoming.citedReferences;
|
|
2172
2179
|
// if at least one of these optionals is defined
|
|
@@ -2177,7 +2184,7 @@ function equals$k(existing, incoming) {
|
|
|
2177
2184
|
return false;
|
|
2178
2185
|
}
|
|
2179
2186
|
const equals_citedReferences_items = equalsArray(existing_citedReferences, incoming_citedReferences, (existing_citedReferences_item, incoming_citedReferences_item) => {
|
|
2180
|
-
if (!(equals$
|
|
2187
|
+
if (!(equals$t(existing_citedReferences_item, incoming_citedReferences_item))) {
|
|
2181
2188
|
return false;
|
|
2182
2189
|
}
|
|
2183
2190
|
});
|
|
@@ -2188,8 +2195,8 @@ function equals$k(existing, incoming) {
|
|
|
2188
2195
|
return true;
|
|
2189
2196
|
}
|
|
2190
2197
|
|
|
2191
|
-
const VERSION$
|
|
2192
|
-
function validate$
|
|
2198
|
+
const VERSION$r = "f62ac44b024b123f079b57f349e05230";
|
|
2199
|
+
function validate$v(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRepresentation') {
|
|
2193
2200
|
const v_error = (() => {
|
|
2194
2201
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2195
2202
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2207,10 +2214,10 @@ function validate$n(obj, path = 'EinsteinPromptTemplateAttachmentExclusionInfoRe
|
|
|
2207
2214
|
})();
|
|
2208
2215
|
return v_error === undefined ? null : v_error;
|
|
2209
2216
|
}
|
|
2210
|
-
const select$
|
|
2217
|
+
const select$H = function EinsteinPromptTemplateAttachmentExclusionInfoRepresentationSelect() {
|
|
2211
2218
|
return {
|
|
2212
2219
|
kind: 'Fragment',
|
|
2213
|
-
version: VERSION$
|
|
2220
|
+
version: VERSION$r,
|
|
2214
2221
|
private: [],
|
|
2215
2222
|
selections: [
|
|
2216
2223
|
{
|
|
@@ -2224,7 +2231,7 @@ const select$z = function EinsteinPromptTemplateAttachmentExclusionInfoRepresent
|
|
|
2224
2231
|
]
|
|
2225
2232
|
};
|
|
2226
2233
|
};
|
|
2227
|
-
function equals$
|
|
2234
|
+
function equals$r(existing, incoming) {
|
|
2228
2235
|
const existing_isExcluded = existing.isExcluded;
|
|
2229
2236
|
const incoming_isExcluded = incoming.isExcluded;
|
|
2230
2237
|
if (!(existing_isExcluded === incoming_isExcluded)) {
|
|
@@ -2238,8 +2245,8 @@ function equals$j(existing, incoming) {
|
|
|
2238
2245
|
return true;
|
|
2239
2246
|
}
|
|
2240
2247
|
|
|
2241
|
-
const VERSION$
|
|
2242
|
-
function validate$
|
|
2248
|
+
const VERSION$q = "b85a5621c60125d9f1644af130f67680";
|
|
2249
|
+
function validate$u(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation') {
|
|
2243
2250
|
const v_error = (() => {
|
|
2244
2251
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2245
2252
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2247,7 +2254,7 @@ function validate$m(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
|
|
|
2247
2254
|
if (obj.exclusionInfo !== undefined) {
|
|
2248
2255
|
const obj_exclusionInfo = obj.exclusionInfo;
|
|
2249
2256
|
const path_exclusionInfo = path + '.exclusionInfo';
|
|
2250
|
-
const referencepath_exclusionInfoValidationError = validate$
|
|
2257
|
+
const referencepath_exclusionInfoValidationError = validate$v(obj_exclusionInfo, path_exclusionInfo);
|
|
2251
2258
|
if (referencepath_exclusionInfoValidationError !== null) {
|
|
2252
2259
|
let message = 'Object doesn\'t match EinsteinPromptTemplateAttachmentExclusionInfoRepresentation (at "' + path_exclusionInfo + '")\n';
|
|
2253
2260
|
message += referencepath_exclusionInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2284,11 +2291,11 @@ function validate$m(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
|
|
|
2284
2291
|
})();
|
|
2285
2292
|
return v_error === undefined ? null : v_error;
|
|
2286
2293
|
}
|
|
2287
|
-
const select$
|
|
2288
|
-
const { selections: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__opaque, } = select$
|
|
2294
|
+
const select$G = function EinsteinPromptTemplateAttachmentRepresentationSelect() {
|
|
2295
|
+
const { selections: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation__opaque, } = select$H();
|
|
2289
2296
|
return {
|
|
2290
2297
|
kind: 'Fragment',
|
|
2291
|
-
version: VERSION$
|
|
2298
|
+
version: VERSION$q,
|
|
2292
2299
|
private: [],
|
|
2293
2300
|
selections: [
|
|
2294
2301
|
{
|
|
@@ -2321,7 +2328,7 @@ const select$y = function EinsteinPromptTemplateAttachmentRepresentationSelect()
|
|
|
2321
2328
|
]
|
|
2322
2329
|
};
|
|
2323
2330
|
};
|
|
2324
|
-
function equals$
|
|
2331
|
+
function equals$q(existing, incoming) {
|
|
2325
2332
|
const existing_fileExtension = existing.fileExtension;
|
|
2326
2333
|
const incoming_fileExtension = incoming.fileExtension;
|
|
2327
2334
|
if (!(existing_fileExtension === incoming_fileExtension)) {
|
|
@@ -2364,15 +2371,15 @@ function equals$i(existing, incoming) {
|
|
|
2364
2371
|
if (existing_exclusionInfo === undefined || incoming_exclusionInfo === undefined) {
|
|
2365
2372
|
return false;
|
|
2366
2373
|
}
|
|
2367
|
-
if (!(equals$
|
|
2374
|
+
if (!(equals$r(existing_exclusionInfo, incoming_exclusionInfo))) {
|
|
2368
2375
|
return false;
|
|
2369
2376
|
}
|
|
2370
2377
|
}
|
|
2371
2378
|
return true;
|
|
2372
2379
|
}
|
|
2373
2380
|
|
|
2374
|
-
const VERSION$
|
|
2375
|
-
function validate$
|
|
2381
|
+
const VERSION$p = "6458d624e5a1691821c764b6de0badb3";
|
|
2382
|
+
function validate$t(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresentation') {
|
|
2376
2383
|
const v_error = (() => {
|
|
2377
2384
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2378
2385
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2402,10 +2409,10 @@ function validate$l(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresent
|
|
|
2402
2409
|
})();
|
|
2403
2410
|
return v_error === undefined ? null : v_error;
|
|
2404
2411
|
}
|
|
2405
|
-
const select$
|
|
2412
|
+
const select$F = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
|
|
2406
2413
|
return {
|
|
2407
2414
|
kind: 'Fragment',
|
|
2408
|
-
version: VERSION$
|
|
2415
|
+
version: VERSION$p,
|
|
2409
2416
|
private: [],
|
|
2410
2417
|
selections: [
|
|
2411
2418
|
{
|
|
@@ -2428,7 +2435,7 @@ const select$x = function EinsteinPromptTemplateGenerationsErrorRepresentationSe
|
|
|
2428
2435
|
]
|
|
2429
2436
|
};
|
|
2430
2437
|
};
|
|
2431
|
-
function equals$
|
|
2438
|
+
function equals$p(existing, incoming) {
|
|
2432
2439
|
const existing_errorMessage = existing.errorMessage;
|
|
2433
2440
|
const incoming_errorMessage = incoming.errorMessage;
|
|
2434
2441
|
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
@@ -2460,8 +2467,443 @@ function equals$h(existing, incoming) {
|
|
|
2460
2467
|
return true;
|
|
2461
2468
|
}
|
|
2462
2469
|
|
|
2463
|
-
const VERSION$
|
|
2464
|
-
function validate$
|
|
2470
|
+
const VERSION$o = "3ce695c87c874dcb5ac019766a3b64f0";
|
|
2471
|
+
function validate$s(obj, path = 'EinsteinPromptTemplateLatencyRepresentation') {
|
|
2472
|
+
const v_error = (() => {
|
|
2473
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2474
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2475
|
+
}
|
|
2476
|
+
const obj_duration = obj.duration;
|
|
2477
|
+
const path_duration = path + '.duration';
|
|
2478
|
+
if (typeof obj_duration !== 'number' || (typeof obj_duration === 'number' && Math.floor(obj_duration) !== obj_duration)) {
|
|
2479
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_duration + '" (at "' + path_duration + '")');
|
|
2480
|
+
}
|
|
2481
|
+
const obj_startTime = obj.startTime;
|
|
2482
|
+
const path_startTime = path + '.startTime';
|
|
2483
|
+
if (typeof obj_startTime !== 'number' || (typeof obj_startTime === 'number' && Math.floor(obj_startTime) !== obj_startTime)) {
|
|
2484
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_startTime + '" (at "' + path_startTime + '")');
|
|
2485
|
+
}
|
|
2486
|
+
})();
|
|
2487
|
+
return v_error === undefined ? null : v_error;
|
|
2488
|
+
}
|
|
2489
|
+
const select$E = function EinsteinPromptTemplateLatencyRepresentationSelect() {
|
|
2490
|
+
return {
|
|
2491
|
+
kind: 'Fragment',
|
|
2492
|
+
version: VERSION$o,
|
|
2493
|
+
private: [],
|
|
2494
|
+
selections: [
|
|
2495
|
+
{
|
|
2496
|
+
name: 'duration',
|
|
2497
|
+
kind: 'Scalar'
|
|
2498
|
+
},
|
|
2499
|
+
{
|
|
2500
|
+
name: 'startTime',
|
|
2501
|
+
kind: 'Scalar'
|
|
2502
|
+
}
|
|
2503
|
+
]
|
|
2504
|
+
};
|
|
2505
|
+
};
|
|
2506
|
+
function equals$o(existing, incoming) {
|
|
2507
|
+
const existing_duration = existing.duration;
|
|
2508
|
+
const incoming_duration = incoming.duration;
|
|
2509
|
+
if (!(existing_duration === incoming_duration)) {
|
|
2510
|
+
return false;
|
|
2511
|
+
}
|
|
2512
|
+
const existing_startTime = existing.startTime;
|
|
2513
|
+
const incoming_startTime = incoming.startTime;
|
|
2514
|
+
if (!(existing_startTime === incoming_startTime)) {
|
|
2515
|
+
return false;
|
|
2516
|
+
}
|
|
2517
|
+
return true;
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2520
|
+
const VERSION$n = "9ef738d379a8db0dc8193d438d7995ad";
|
|
2521
|
+
function validate$r(obj, path = 'EinsteinPromptTemplateLatencyBreakdownItemRepresentation') {
|
|
2522
|
+
const v_error = (() => {
|
|
2523
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2524
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2525
|
+
}
|
|
2526
|
+
const obj_latency = obj.latency;
|
|
2527
|
+
const path_latency = path + '.latency';
|
|
2528
|
+
const referencepath_latencyValidationError = validate$s(obj_latency, path_latency);
|
|
2529
|
+
if (referencepath_latencyValidationError !== null) {
|
|
2530
|
+
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyRepresentation (at "' + path_latency + '")\n';
|
|
2531
|
+
message += referencepath_latencyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2532
|
+
return new TypeError(message);
|
|
2533
|
+
}
|
|
2534
|
+
const obj_referenceName = obj.referenceName;
|
|
2535
|
+
const path_referenceName = path + '.referenceName';
|
|
2536
|
+
if (typeof obj_referenceName !== 'string') {
|
|
2537
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceName + '" (at "' + path_referenceName + '")');
|
|
2538
|
+
}
|
|
2539
|
+
})();
|
|
2540
|
+
return v_error === undefined ? null : v_error;
|
|
2541
|
+
}
|
|
2542
|
+
const select$D = function EinsteinPromptTemplateLatencyBreakdownItemRepresentationSelect() {
|
|
2543
|
+
const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$E();
|
|
2544
|
+
return {
|
|
2545
|
+
kind: 'Fragment',
|
|
2546
|
+
version: VERSION$n,
|
|
2547
|
+
private: [],
|
|
2548
|
+
selections: [
|
|
2549
|
+
{
|
|
2550
|
+
name: 'latency',
|
|
2551
|
+
kind: 'Object',
|
|
2552
|
+
selections: EinsteinPromptTemplateLatencyRepresentation__selections
|
|
2553
|
+
},
|
|
2554
|
+
{
|
|
2555
|
+
name: 'referenceName',
|
|
2556
|
+
kind: 'Scalar'
|
|
2557
|
+
}
|
|
2558
|
+
]
|
|
2559
|
+
};
|
|
2560
|
+
};
|
|
2561
|
+
function equals$n(existing, incoming) {
|
|
2562
|
+
const existing_referenceName = existing.referenceName;
|
|
2563
|
+
const incoming_referenceName = incoming.referenceName;
|
|
2564
|
+
if (!(existing_referenceName === incoming_referenceName)) {
|
|
2565
|
+
return false;
|
|
2566
|
+
}
|
|
2567
|
+
const existing_latency = existing.latency;
|
|
2568
|
+
const incoming_latency = incoming.latency;
|
|
2569
|
+
if (!(equals$o(existing_latency, incoming_latency))) {
|
|
2570
|
+
return false;
|
|
2571
|
+
}
|
|
2572
|
+
return true;
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
const VERSION$m = "4b1840167fa1759c2413bafa7708e137";
|
|
2576
|
+
function validate$q(obj, path = 'EinsteinPromptTemplateLatencyStepRepresentation') {
|
|
2577
|
+
const v_error = (() => {
|
|
2578
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2579
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2580
|
+
}
|
|
2581
|
+
if (obj.breakdown !== undefined) {
|
|
2582
|
+
const obj_breakdown = obj.breakdown;
|
|
2583
|
+
const path_breakdown = path + '.breakdown';
|
|
2584
|
+
if (!ArrayIsArray(obj_breakdown)) {
|
|
2585
|
+
return new TypeError('Expected "array" but received "' + typeof obj_breakdown + '" (at "' + path_breakdown + '")');
|
|
2586
|
+
}
|
|
2587
|
+
for (let i = 0; i < obj_breakdown.length; i++) {
|
|
2588
|
+
const obj_breakdown_item = obj_breakdown[i];
|
|
2589
|
+
const path_breakdown_item = path_breakdown + '[' + i + ']';
|
|
2590
|
+
const referencepath_breakdown_itemValidationError = validate$r(obj_breakdown_item, path_breakdown_item);
|
|
2591
|
+
if (referencepath_breakdown_itemValidationError !== null) {
|
|
2592
|
+
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyBreakdownItemRepresentation (at "' + path_breakdown_item + '")\n';
|
|
2593
|
+
message += referencepath_breakdown_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2594
|
+
return new TypeError(message);
|
|
2595
|
+
}
|
|
2596
|
+
}
|
|
2597
|
+
}
|
|
2598
|
+
const obj_latency = obj.latency;
|
|
2599
|
+
const path_latency = path + '.latency';
|
|
2600
|
+
const referencepath_latencyValidationError = validate$s(obj_latency, path_latency);
|
|
2601
|
+
if (referencepath_latencyValidationError !== null) {
|
|
2602
|
+
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyRepresentation (at "' + path_latency + '")\n';
|
|
2603
|
+
message += referencepath_latencyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2604
|
+
return new TypeError(message);
|
|
2605
|
+
}
|
|
2606
|
+
})();
|
|
2607
|
+
return v_error === undefined ? null : v_error;
|
|
2608
|
+
}
|
|
2609
|
+
const select$C = function EinsteinPromptTemplateLatencyStepRepresentationSelect() {
|
|
2610
|
+
const { selections: EinsteinPromptTemplateLatencyBreakdownItemRepresentation__selections, opaque: EinsteinPromptTemplateLatencyBreakdownItemRepresentation__opaque, } = select$D();
|
|
2611
|
+
const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$E();
|
|
2612
|
+
return {
|
|
2613
|
+
kind: 'Fragment',
|
|
2614
|
+
version: VERSION$m,
|
|
2615
|
+
private: [],
|
|
2616
|
+
selections: [
|
|
2617
|
+
{
|
|
2618
|
+
name: 'breakdown',
|
|
2619
|
+
kind: 'Object',
|
|
2620
|
+
plural: true,
|
|
2621
|
+
selections: EinsteinPromptTemplateLatencyBreakdownItemRepresentation__selections,
|
|
2622
|
+
required: false
|
|
2623
|
+
},
|
|
2624
|
+
{
|
|
2625
|
+
name: 'latency',
|
|
2626
|
+
kind: 'Object',
|
|
2627
|
+
selections: EinsteinPromptTemplateLatencyRepresentation__selections
|
|
2628
|
+
}
|
|
2629
|
+
]
|
|
2630
|
+
};
|
|
2631
|
+
};
|
|
2632
|
+
function equals$m(existing, incoming) {
|
|
2633
|
+
const existing_breakdown = existing.breakdown;
|
|
2634
|
+
const incoming_breakdown = incoming.breakdown;
|
|
2635
|
+
// if at least one of these optionals is defined
|
|
2636
|
+
if (existing_breakdown !== undefined || incoming_breakdown !== undefined) {
|
|
2637
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2638
|
+
// not equal
|
|
2639
|
+
if (existing_breakdown === undefined || incoming_breakdown === undefined) {
|
|
2640
|
+
return false;
|
|
2641
|
+
}
|
|
2642
|
+
const equals_breakdown_items = equalsArray(existing_breakdown, incoming_breakdown, (existing_breakdown_item, incoming_breakdown_item) => {
|
|
2643
|
+
if (!(equals$n(existing_breakdown_item, incoming_breakdown_item))) {
|
|
2644
|
+
return false;
|
|
2645
|
+
}
|
|
2646
|
+
});
|
|
2647
|
+
if (equals_breakdown_items === false) {
|
|
2648
|
+
return false;
|
|
2649
|
+
}
|
|
2650
|
+
}
|
|
2651
|
+
const existing_latency = existing.latency;
|
|
2652
|
+
const incoming_latency = incoming.latency;
|
|
2653
|
+
if (!(equals$o(existing_latency, incoming_latency))) {
|
|
2654
|
+
return false;
|
|
2655
|
+
}
|
|
2656
|
+
return true;
|
|
2657
|
+
}
|
|
2658
|
+
|
|
2659
|
+
const VERSION$l = "d6838fb296069ed6df17b2215be2da09";
|
|
2660
|
+
function validate$p(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresentation') {
|
|
2661
|
+
const v_error = (() => {
|
|
2662
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2663
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2664
|
+
}
|
|
2665
|
+
if (obj.generation !== undefined) {
|
|
2666
|
+
const obj_generation = obj.generation;
|
|
2667
|
+
const path_generation = path + '.generation';
|
|
2668
|
+
const referencepath_generationValidationError = validate$q(obj_generation, path_generation);
|
|
2669
|
+
if (referencepath_generationValidationError !== null) {
|
|
2670
|
+
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_generation + '")\n';
|
|
2671
|
+
message += referencepath_generationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2672
|
+
return new TypeError(message);
|
|
2673
|
+
}
|
|
2674
|
+
}
|
|
2675
|
+
if (obj.hydration !== undefined) {
|
|
2676
|
+
const obj_hydration = obj.hydration;
|
|
2677
|
+
const path_hydration = path + '.hydration';
|
|
2678
|
+
const referencepath_hydrationValidationError = validate$q(obj_hydration, path_hydration);
|
|
2679
|
+
if (referencepath_hydrationValidationError !== null) {
|
|
2680
|
+
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_hydration + '")\n';
|
|
2681
|
+
message += referencepath_hydrationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2682
|
+
return new TypeError(message);
|
|
2683
|
+
}
|
|
2684
|
+
}
|
|
2685
|
+
const obj_loadTemplate = obj.loadTemplate;
|
|
2686
|
+
const path_loadTemplate = path + '.loadTemplate';
|
|
2687
|
+
const referencepath_loadTemplateValidationError = validate$q(obj_loadTemplate, path_loadTemplate);
|
|
2688
|
+
if (referencepath_loadTemplateValidationError !== null) {
|
|
2689
|
+
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_loadTemplate + '")\n';
|
|
2690
|
+
message += referencepath_loadTemplateValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2691
|
+
return new TypeError(message);
|
|
2692
|
+
}
|
|
2693
|
+
if (obj.mask !== undefined) {
|
|
2694
|
+
const obj_mask = obj.mask;
|
|
2695
|
+
const path_mask = path + '.mask';
|
|
2696
|
+
const referencepath_maskValidationError = validate$q(obj_mask, path_mask);
|
|
2697
|
+
if (referencepath_maskValidationError !== null) {
|
|
2698
|
+
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_mask + '")\n';
|
|
2699
|
+
message += referencepath_maskValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2700
|
+
return new TypeError(message);
|
|
2701
|
+
}
|
|
2702
|
+
}
|
|
2703
|
+
if (obj.resolveData !== undefined) {
|
|
2704
|
+
const obj_resolveData = obj.resolveData;
|
|
2705
|
+
const path_resolveData = path + '.resolveData';
|
|
2706
|
+
const referencepath_resolveDataValidationError = validate$q(obj_resolveData, path_resolveData);
|
|
2707
|
+
if (referencepath_resolveDataValidationError !== null) {
|
|
2708
|
+
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_resolveData + '")\n';
|
|
2709
|
+
message += referencepath_resolveDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2710
|
+
return new TypeError(message);
|
|
2711
|
+
}
|
|
2712
|
+
}
|
|
2713
|
+
if (obj.summarize !== undefined) {
|
|
2714
|
+
const obj_summarize = obj.summarize;
|
|
2715
|
+
const path_summarize = path + '.summarize';
|
|
2716
|
+
const referencepath_summarizeValidationError = validate$q(obj_summarize, path_summarize);
|
|
2717
|
+
if (referencepath_summarizeValidationError !== null) {
|
|
2718
|
+
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_summarize + '")\n';
|
|
2719
|
+
message += referencepath_summarizeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2720
|
+
return new TypeError(message);
|
|
2721
|
+
}
|
|
2722
|
+
}
|
|
2723
|
+
})();
|
|
2724
|
+
return v_error === undefined ? null : v_error;
|
|
2725
|
+
}
|
|
2726
|
+
const select$B = function EinsteinPromptTemplateLatencyExecutionRepresentationSelect() {
|
|
2727
|
+
const { selections: EinsteinPromptTemplateLatencyStepRepresentation__selections, opaque: EinsteinPromptTemplateLatencyStepRepresentation__opaque, } = select$C();
|
|
2728
|
+
return {
|
|
2729
|
+
kind: 'Fragment',
|
|
2730
|
+
version: VERSION$l,
|
|
2731
|
+
private: [],
|
|
2732
|
+
selections: [
|
|
2733
|
+
{
|
|
2734
|
+
name: 'generation',
|
|
2735
|
+
kind: 'Object',
|
|
2736
|
+
selections: EinsteinPromptTemplateLatencyStepRepresentation__selections,
|
|
2737
|
+
required: false
|
|
2738
|
+
},
|
|
2739
|
+
{
|
|
2740
|
+
name: 'hydration',
|
|
2741
|
+
kind: 'Object',
|
|
2742
|
+
selections: EinsteinPromptTemplateLatencyStepRepresentation__selections,
|
|
2743
|
+
required: false
|
|
2744
|
+
},
|
|
2745
|
+
{
|
|
2746
|
+
name: 'loadTemplate',
|
|
2747
|
+
kind: 'Object',
|
|
2748
|
+
selections: EinsteinPromptTemplateLatencyStepRepresentation__selections
|
|
2749
|
+
},
|
|
2750
|
+
{
|
|
2751
|
+
name: 'mask',
|
|
2752
|
+
kind: 'Object',
|
|
2753
|
+
selections: EinsteinPromptTemplateLatencyStepRepresentation__selections,
|
|
2754
|
+
required: false
|
|
2755
|
+
},
|
|
2756
|
+
{
|
|
2757
|
+
name: 'resolveData',
|
|
2758
|
+
kind: 'Object',
|
|
2759
|
+
selections: EinsteinPromptTemplateLatencyStepRepresentation__selections,
|
|
2760
|
+
required: false
|
|
2761
|
+
},
|
|
2762
|
+
{
|
|
2763
|
+
name: 'summarize',
|
|
2764
|
+
kind: 'Object',
|
|
2765
|
+
selections: EinsteinPromptTemplateLatencyStepRepresentation__selections,
|
|
2766
|
+
required: false
|
|
2767
|
+
}
|
|
2768
|
+
]
|
|
2769
|
+
};
|
|
2770
|
+
};
|
|
2771
|
+
function equals$l(existing, incoming) {
|
|
2772
|
+
const existing_generation = existing.generation;
|
|
2773
|
+
const incoming_generation = incoming.generation;
|
|
2774
|
+
// if at least one of these optionals is defined
|
|
2775
|
+
if (existing_generation !== undefined || incoming_generation !== undefined) {
|
|
2776
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2777
|
+
// not equal
|
|
2778
|
+
if (existing_generation === undefined || incoming_generation === undefined) {
|
|
2779
|
+
return false;
|
|
2780
|
+
}
|
|
2781
|
+
if (!(equals$m(existing_generation, incoming_generation))) {
|
|
2782
|
+
return false;
|
|
2783
|
+
}
|
|
2784
|
+
}
|
|
2785
|
+
const existing_hydration = existing.hydration;
|
|
2786
|
+
const incoming_hydration = incoming.hydration;
|
|
2787
|
+
// if at least one of these optionals is defined
|
|
2788
|
+
if (existing_hydration !== undefined || incoming_hydration !== undefined) {
|
|
2789
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2790
|
+
// not equal
|
|
2791
|
+
if (existing_hydration === undefined || incoming_hydration === undefined) {
|
|
2792
|
+
return false;
|
|
2793
|
+
}
|
|
2794
|
+
if (!(equals$m(existing_hydration, incoming_hydration))) {
|
|
2795
|
+
return false;
|
|
2796
|
+
}
|
|
2797
|
+
}
|
|
2798
|
+
const existing_loadTemplate = existing.loadTemplate;
|
|
2799
|
+
const incoming_loadTemplate = incoming.loadTemplate;
|
|
2800
|
+
if (!(equals$m(existing_loadTemplate, incoming_loadTemplate))) {
|
|
2801
|
+
return false;
|
|
2802
|
+
}
|
|
2803
|
+
const existing_mask = existing.mask;
|
|
2804
|
+
const incoming_mask = incoming.mask;
|
|
2805
|
+
// if at least one of these optionals is defined
|
|
2806
|
+
if (existing_mask !== undefined || incoming_mask !== undefined) {
|
|
2807
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2808
|
+
// not equal
|
|
2809
|
+
if (existing_mask === undefined || incoming_mask === undefined) {
|
|
2810
|
+
return false;
|
|
2811
|
+
}
|
|
2812
|
+
if (!(equals$m(existing_mask, incoming_mask))) {
|
|
2813
|
+
return false;
|
|
2814
|
+
}
|
|
2815
|
+
}
|
|
2816
|
+
const existing_resolveData = existing.resolveData;
|
|
2817
|
+
const incoming_resolveData = incoming.resolveData;
|
|
2818
|
+
// if at least one of these optionals is defined
|
|
2819
|
+
if (existing_resolveData !== undefined || incoming_resolveData !== undefined) {
|
|
2820
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2821
|
+
// not equal
|
|
2822
|
+
if (existing_resolveData === undefined || incoming_resolveData === undefined) {
|
|
2823
|
+
return false;
|
|
2824
|
+
}
|
|
2825
|
+
if (!(equals$m(existing_resolveData, incoming_resolveData))) {
|
|
2826
|
+
return false;
|
|
2827
|
+
}
|
|
2828
|
+
}
|
|
2829
|
+
const existing_summarize = existing.summarize;
|
|
2830
|
+
const incoming_summarize = incoming.summarize;
|
|
2831
|
+
// if at least one of these optionals is defined
|
|
2832
|
+
if (existing_summarize !== undefined || incoming_summarize !== undefined) {
|
|
2833
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2834
|
+
// not equal
|
|
2835
|
+
if (existing_summarize === undefined || incoming_summarize === undefined) {
|
|
2836
|
+
return false;
|
|
2837
|
+
}
|
|
2838
|
+
if (!(equals$m(existing_summarize, incoming_summarize))) {
|
|
2839
|
+
return false;
|
|
2840
|
+
}
|
|
2841
|
+
}
|
|
2842
|
+
return true;
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
const VERSION$k = "bfbfa37e3d6bd35c36ba73c3f9b973b6";
|
|
2846
|
+
function validate$o(obj, path = 'EinsteinPromptTemplatePerformanceRepresentation') {
|
|
2847
|
+
const v_error = (() => {
|
|
2848
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2849
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2850
|
+
}
|
|
2851
|
+
const obj_execution = obj.execution;
|
|
2852
|
+
const path_execution = path + '.execution';
|
|
2853
|
+
const referencepath_executionValidationError = validate$p(obj_execution, path_execution);
|
|
2854
|
+
if (referencepath_executionValidationError !== null) {
|
|
2855
|
+
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyExecutionRepresentation (at "' + path_execution + '")\n';
|
|
2856
|
+
message += referencepath_executionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2857
|
+
return new TypeError(message);
|
|
2858
|
+
}
|
|
2859
|
+
const obj_latency = obj.latency;
|
|
2860
|
+
const path_latency = path + '.latency';
|
|
2861
|
+
const referencepath_latencyValidationError = validate$s(obj_latency, path_latency);
|
|
2862
|
+
if (referencepath_latencyValidationError !== null) {
|
|
2863
|
+
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyRepresentation (at "' + path_latency + '")\n';
|
|
2864
|
+
message += referencepath_latencyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2865
|
+
return new TypeError(message);
|
|
2866
|
+
}
|
|
2867
|
+
})();
|
|
2868
|
+
return v_error === undefined ? null : v_error;
|
|
2869
|
+
}
|
|
2870
|
+
const select$A = function EinsteinPromptTemplatePerformanceRepresentationSelect() {
|
|
2871
|
+
const { selections: EinsteinPromptTemplateLatencyExecutionRepresentation__selections, opaque: EinsteinPromptTemplateLatencyExecutionRepresentation__opaque, } = select$B();
|
|
2872
|
+
const { selections: EinsteinPromptTemplateLatencyRepresentation__selections, opaque: EinsteinPromptTemplateLatencyRepresentation__opaque, } = select$E();
|
|
2873
|
+
return {
|
|
2874
|
+
kind: 'Fragment',
|
|
2875
|
+
version: VERSION$k,
|
|
2876
|
+
private: [],
|
|
2877
|
+
selections: [
|
|
2878
|
+
{
|
|
2879
|
+
name: 'execution',
|
|
2880
|
+
kind: 'Object',
|
|
2881
|
+
selections: EinsteinPromptTemplateLatencyExecutionRepresentation__selections
|
|
2882
|
+
},
|
|
2883
|
+
{
|
|
2884
|
+
name: 'latency',
|
|
2885
|
+
kind: 'Object',
|
|
2886
|
+
selections: EinsteinPromptTemplateLatencyRepresentation__selections
|
|
2887
|
+
}
|
|
2888
|
+
]
|
|
2889
|
+
};
|
|
2890
|
+
};
|
|
2891
|
+
function equals$k(existing, incoming) {
|
|
2892
|
+
const existing_execution = existing.execution;
|
|
2893
|
+
const incoming_execution = incoming.execution;
|
|
2894
|
+
if (!(equals$l(existing_execution, incoming_execution))) {
|
|
2895
|
+
return false;
|
|
2896
|
+
}
|
|
2897
|
+
const existing_latency = existing.latency;
|
|
2898
|
+
const incoming_latency = incoming.latency;
|
|
2899
|
+
if (!(equals$o(existing_latency, incoming_latency))) {
|
|
2900
|
+
return false;
|
|
2901
|
+
}
|
|
2902
|
+
return true;
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
const VERSION$j = "7c417ce44e4bc05dfcc454e6825590e8";
|
|
2906
|
+
function validate$n(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentation') {
|
|
2465
2907
|
const v_error = (() => {
|
|
2466
2908
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2467
2909
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2474,10 +2916,10 @@ function validate$k(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentatio
|
|
|
2474
2916
|
})();
|
|
2475
2917
|
return v_error === undefined ? null : v_error;
|
|
2476
2918
|
}
|
|
2477
|
-
const select$
|
|
2919
|
+
const select$z = function EinsteinPromptTemplateMaskSettingsRepresentationSelect() {
|
|
2478
2920
|
return {
|
|
2479
2921
|
kind: 'Fragment',
|
|
2480
|
-
version: VERSION$
|
|
2922
|
+
version: VERSION$j,
|
|
2481
2923
|
private: [],
|
|
2482
2924
|
selections: [
|
|
2483
2925
|
{
|
|
@@ -2487,7 +2929,7 @@ const select$w = function EinsteinPromptTemplateMaskSettingsRepresentationSelect
|
|
|
2487
2929
|
]
|
|
2488
2930
|
};
|
|
2489
2931
|
};
|
|
2490
|
-
function equals$
|
|
2932
|
+
function equals$j(existing, incoming) {
|
|
2491
2933
|
const existing_enableModeration = existing.enableModeration;
|
|
2492
2934
|
const incoming_enableModeration = incoming.enableModeration;
|
|
2493
2935
|
if (!(existing_enableModeration === incoming_enableModeration)) {
|
|
@@ -2496,8 +2938,8 @@ function equals$g(existing, incoming) {
|
|
|
2496
2938
|
return true;
|
|
2497
2939
|
}
|
|
2498
2940
|
|
|
2499
|
-
const VERSION$
|
|
2500
|
-
function validate$
|
|
2941
|
+
const VERSION$i = "92ad1abd0e2a60bc36941409cadda7e2";
|
|
2942
|
+
function validate$m(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation') {
|
|
2501
2943
|
const v_error = (() => {
|
|
2502
2944
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2503
2945
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2512,7 +2954,7 @@ function validate$j(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation
|
|
|
2512
2954
|
const path_moderationSettings = path + '.moderationSettings';
|
|
2513
2955
|
let obj_moderationSettings_union0 = null;
|
|
2514
2956
|
const obj_moderationSettings_union0_error = (() => {
|
|
2515
|
-
const referencepath_moderationSettingsValidationError = validate$
|
|
2957
|
+
const referencepath_moderationSettingsValidationError = validate$n(obj_moderationSettings, path_moderationSettings);
|
|
2516
2958
|
if (referencepath_moderationSettingsValidationError !== null) {
|
|
2517
2959
|
let message = 'Object doesn\'t match EinsteinPromptTemplateMaskSettingsRepresentation (at "' + path_moderationSettings + '")\n';
|
|
2518
2960
|
message += referencepath_moderationSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2548,11 +2990,11 @@ function validate$j(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation
|
|
|
2548
2990
|
})();
|
|
2549
2991
|
return v_error === undefined ? null : v_error;
|
|
2550
2992
|
}
|
|
2551
|
-
const select$
|
|
2552
|
-
const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$
|
|
2993
|
+
const select$y = function EinsteinPromptTemplateMaskContentRepresentationSelect() {
|
|
2994
|
+
const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$z();
|
|
2553
2995
|
return {
|
|
2554
2996
|
kind: 'Fragment',
|
|
2555
|
-
version: VERSION$
|
|
2997
|
+
version: VERSION$i,
|
|
2556
2998
|
private: [],
|
|
2557
2999
|
selections: [
|
|
2558
3000
|
{
|
|
@@ -2574,7 +3016,7 @@ const select$v = function EinsteinPromptTemplateMaskContentRepresentationSelect(
|
|
|
2574
3016
|
]
|
|
2575
3017
|
};
|
|
2576
3018
|
};
|
|
2577
|
-
function equals$
|
|
3019
|
+
function equals$i(existing, incoming) {
|
|
2578
3020
|
const existing_content = existing.content;
|
|
2579
3021
|
const incoming_content = incoming.content;
|
|
2580
3022
|
if (!(existing_content === incoming_content)) {
|
|
@@ -2605,15 +3047,15 @@ function equals$f(existing, incoming) {
|
|
|
2605
3047
|
if (!(existing_moderationSettings === incoming_moderationSettings
|
|
2606
3048
|
|| (existing_moderationSettings != null &&
|
|
2607
3049
|
incoming_moderationSettings != null &&
|
|
2608
|
-
equals$
|
|
3050
|
+
equals$j(existing_moderationSettings, incoming_moderationSettings)))) {
|
|
2609
3051
|
return false;
|
|
2610
3052
|
}
|
|
2611
3053
|
}
|
|
2612
3054
|
return true;
|
|
2613
3055
|
}
|
|
2614
3056
|
|
|
2615
|
-
const VERSION$
|
|
2616
|
-
function validate$
|
|
3057
|
+
const VERSION$h = "507a815605f8d30ae9b52b0ec513d25e";
|
|
3058
|
+
function validate$l(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation') {
|
|
2617
3059
|
const v_error = (() => {
|
|
2618
3060
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2619
3061
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2643,10 +3085,10 @@ function validate$i(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation')
|
|
|
2643
3085
|
})();
|
|
2644
3086
|
return v_error === undefined ? null : v_error;
|
|
2645
3087
|
}
|
|
2646
|
-
const select$
|
|
3088
|
+
const select$x = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
|
|
2647
3089
|
return {
|
|
2648
3090
|
kind: 'Fragment',
|
|
2649
|
-
version: VERSION$
|
|
3091
|
+
version: VERSION$h,
|
|
2650
3092
|
private: [],
|
|
2651
3093
|
selections: [
|
|
2652
3094
|
{
|
|
@@ -2665,7 +3107,7 @@ const select$u = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
|
|
|
2665
3107
|
]
|
|
2666
3108
|
};
|
|
2667
3109
|
};
|
|
2668
|
-
function equals$
|
|
3110
|
+
function equals$h(existing, incoming) {
|
|
2669
3111
|
const existing_originalValue = existing.originalValue;
|
|
2670
3112
|
const incoming_originalValue = incoming.originalValue;
|
|
2671
3113
|
if (!(existing_originalValue === incoming_originalValue)) {
|
|
@@ -2689,8 +3131,234 @@ function equals$e(existing, incoming) {
|
|
|
2689
3131
|
return true;
|
|
2690
3132
|
}
|
|
2691
3133
|
|
|
3134
|
+
const VERSION$g = "76811380b919e1427b00791d86819029";
|
|
3135
|
+
function validate$k(obj, path = 'EinsteinPromptTemplateTokenBreakdownRepresentation') {
|
|
3136
|
+
const v_error = (() => {
|
|
3137
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3138
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3139
|
+
}
|
|
3140
|
+
const obj_occurrences = obj.occurrences;
|
|
3141
|
+
const path_occurrences = path + '.occurrences';
|
|
3142
|
+
if (typeof obj_occurrences !== 'number' || (typeof obj_occurrences === 'number' && Math.floor(obj_occurrences) !== obj_occurrences)) {
|
|
3143
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_occurrences + '" (at "' + path_occurrences + '")');
|
|
3144
|
+
}
|
|
3145
|
+
const obj_role = obj.role;
|
|
3146
|
+
const path_role = path + '.role';
|
|
3147
|
+
if (typeof obj_role !== 'string') {
|
|
3148
|
+
return new TypeError('Expected "string" but received "' + typeof obj_role + '" (at "' + path_role + '")');
|
|
3149
|
+
}
|
|
3150
|
+
const obj_source = obj.source;
|
|
3151
|
+
const path_source = path + '.source';
|
|
3152
|
+
if (typeof obj_source !== 'string') {
|
|
3153
|
+
return new TypeError('Expected "string" but received "' + typeof obj_source + '" (at "' + path_source + '")');
|
|
3154
|
+
}
|
|
3155
|
+
const obj_tokens = obj.tokens;
|
|
3156
|
+
const path_tokens = path + '.tokens';
|
|
3157
|
+
if (typeof obj_tokens !== 'number' || (typeof obj_tokens === 'number' && Math.floor(obj_tokens) !== obj_tokens)) {
|
|
3158
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_tokens + '" (at "' + path_tokens + '")');
|
|
3159
|
+
}
|
|
3160
|
+
})();
|
|
3161
|
+
return v_error === undefined ? null : v_error;
|
|
3162
|
+
}
|
|
3163
|
+
const select$w = function EinsteinPromptTemplateTokenBreakdownRepresentationSelect() {
|
|
3164
|
+
return {
|
|
3165
|
+
kind: 'Fragment',
|
|
3166
|
+
version: VERSION$g,
|
|
3167
|
+
private: [],
|
|
3168
|
+
selections: [
|
|
3169
|
+
{
|
|
3170
|
+
name: 'occurrences',
|
|
3171
|
+
kind: 'Scalar'
|
|
3172
|
+
},
|
|
3173
|
+
{
|
|
3174
|
+
name: 'role',
|
|
3175
|
+
kind: 'Scalar'
|
|
3176
|
+
},
|
|
3177
|
+
{
|
|
3178
|
+
name: 'source',
|
|
3179
|
+
kind: 'Scalar'
|
|
3180
|
+
},
|
|
3181
|
+
{
|
|
3182
|
+
name: 'tokens',
|
|
3183
|
+
kind: 'Scalar'
|
|
3184
|
+
}
|
|
3185
|
+
]
|
|
3186
|
+
};
|
|
3187
|
+
};
|
|
3188
|
+
function equals$g(existing, incoming) {
|
|
3189
|
+
const existing_occurrences = existing.occurrences;
|
|
3190
|
+
const incoming_occurrences = incoming.occurrences;
|
|
3191
|
+
if (!(existing_occurrences === incoming_occurrences)) {
|
|
3192
|
+
return false;
|
|
3193
|
+
}
|
|
3194
|
+
const existing_tokens = existing.tokens;
|
|
3195
|
+
const incoming_tokens = incoming.tokens;
|
|
3196
|
+
if (!(existing_tokens === incoming_tokens)) {
|
|
3197
|
+
return false;
|
|
3198
|
+
}
|
|
3199
|
+
const existing_role = existing.role;
|
|
3200
|
+
const incoming_role = incoming.role;
|
|
3201
|
+
if (!(existing_role === incoming_role)) {
|
|
3202
|
+
return false;
|
|
3203
|
+
}
|
|
3204
|
+
const existing_source = existing.source;
|
|
3205
|
+
const incoming_source = incoming.source;
|
|
3206
|
+
if (!(existing_source === incoming_source)) {
|
|
3207
|
+
return false;
|
|
3208
|
+
}
|
|
3209
|
+
return true;
|
|
3210
|
+
}
|
|
3211
|
+
|
|
3212
|
+
const VERSION$f = "7212a778ca53a828691ec38760108a72";
|
|
3213
|
+
function validate$j(obj, path = 'EinsteinPromptTemplatePromptTokenUsageRepresentation') {
|
|
3214
|
+
const v_error = (() => {
|
|
3215
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3216
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3217
|
+
}
|
|
3218
|
+
if (obj.breakdown !== undefined) {
|
|
3219
|
+
const obj_breakdown = obj.breakdown;
|
|
3220
|
+
const path_breakdown = path + '.breakdown';
|
|
3221
|
+
if (!ArrayIsArray(obj_breakdown)) {
|
|
3222
|
+
return new TypeError('Expected "array" but received "' + typeof obj_breakdown + '" (at "' + path_breakdown + '")');
|
|
3223
|
+
}
|
|
3224
|
+
for (let i = 0; i < obj_breakdown.length; i++) {
|
|
3225
|
+
const obj_breakdown_item = obj_breakdown[i];
|
|
3226
|
+
const path_breakdown_item = path_breakdown + '[' + i + ']';
|
|
3227
|
+
const referencepath_breakdown_itemValidationError = validate$k(obj_breakdown_item, path_breakdown_item);
|
|
3228
|
+
if (referencepath_breakdown_itemValidationError !== null) {
|
|
3229
|
+
let message = 'Object doesn\'t match EinsteinPromptTemplateTokenBreakdownRepresentation (at "' + path_breakdown_item + '")\n';
|
|
3230
|
+
message += referencepath_breakdown_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3231
|
+
return new TypeError(message);
|
|
3232
|
+
}
|
|
3233
|
+
}
|
|
3234
|
+
}
|
|
3235
|
+
const obj_total = obj.total;
|
|
3236
|
+
const path_total = path + '.total';
|
|
3237
|
+
if (typeof obj_total !== 'number' || (typeof obj_total === 'number' && Math.floor(obj_total) !== obj_total)) {
|
|
3238
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_total + '" (at "' + path_total + '")');
|
|
3239
|
+
}
|
|
3240
|
+
})();
|
|
3241
|
+
return v_error === undefined ? null : v_error;
|
|
3242
|
+
}
|
|
3243
|
+
const select$v = function EinsteinPromptTemplatePromptTokenUsageRepresentationSelect() {
|
|
3244
|
+
const { selections: EinsteinPromptTemplateTokenBreakdownRepresentation__selections, opaque: EinsteinPromptTemplateTokenBreakdownRepresentation__opaque, } = select$w();
|
|
3245
|
+
return {
|
|
3246
|
+
kind: 'Fragment',
|
|
3247
|
+
version: VERSION$f,
|
|
3248
|
+
private: [],
|
|
3249
|
+
selections: [
|
|
3250
|
+
{
|
|
3251
|
+
name: 'breakdown',
|
|
3252
|
+
kind: 'Object',
|
|
3253
|
+
plural: true,
|
|
3254
|
+
selections: EinsteinPromptTemplateTokenBreakdownRepresentation__selections,
|
|
3255
|
+
required: false
|
|
3256
|
+
},
|
|
3257
|
+
{
|
|
3258
|
+
name: 'total',
|
|
3259
|
+
kind: 'Scalar'
|
|
3260
|
+
}
|
|
3261
|
+
]
|
|
3262
|
+
};
|
|
3263
|
+
};
|
|
3264
|
+
function equals$f(existing, incoming) {
|
|
3265
|
+
const existing_total = existing.total;
|
|
3266
|
+
const incoming_total = incoming.total;
|
|
3267
|
+
if (!(existing_total === incoming_total)) {
|
|
3268
|
+
return false;
|
|
3269
|
+
}
|
|
3270
|
+
const existing_breakdown = existing.breakdown;
|
|
3271
|
+
const incoming_breakdown = incoming.breakdown;
|
|
3272
|
+
// if at least one of these optionals is defined
|
|
3273
|
+
if (existing_breakdown !== undefined || incoming_breakdown !== undefined) {
|
|
3274
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3275
|
+
// not equal
|
|
3276
|
+
if (existing_breakdown === undefined || incoming_breakdown === undefined) {
|
|
3277
|
+
return false;
|
|
3278
|
+
}
|
|
3279
|
+
const equals_breakdown_items = equalsArray(existing_breakdown, incoming_breakdown, (existing_breakdown_item, incoming_breakdown_item) => {
|
|
3280
|
+
if (!(equals$g(existing_breakdown_item, incoming_breakdown_item))) {
|
|
3281
|
+
return false;
|
|
3282
|
+
}
|
|
3283
|
+
});
|
|
3284
|
+
if (equals_breakdown_items === false) {
|
|
3285
|
+
return false;
|
|
3286
|
+
}
|
|
3287
|
+
}
|
|
3288
|
+
return true;
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3291
|
+
const VERSION$e = "20ed3f8bf15ce2c8910245591e27fae5";
|
|
3292
|
+
function validate$i(obj, path = 'EinsteinPromptTemplateTokenUsageRepresentation') {
|
|
3293
|
+
const v_error = (() => {
|
|
3294
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3295
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3296
|
+
}
|
|
3297
|
+
const obj_completion = obj.completion;
|
|
3298
|
+
const path_completion = path + '.completion';
|
|
3299
|
+
if (typeof obj_completion !== 'number' || (typeof obj_completion === 'number' && Math.floor(obj_completion) !== obj_completion)) {
|
|
3300
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_completion + '" (at "' + path_completion + '")');
|
|
3301
|
+
}
|
|
3302
|
+
const obj_prompt = obj.prompt;
|
|
3303
|
+
const path_prompt = path + '.prompt';
|
|
3304
|
+
const referencepath_promptValidationError = validate$j(obj_prompt, path_prompt);
|
|
3305
|
+
if (referencepath_promptValidationError !== null) {
|
|
3306
|
+
let message = 'Object doesn\'t match EinsteinPromptTemplatePromptTokenUsageRepresentation (at "' + path_prompt + '")\n';
|
|
3307
|
+
message += referencepath_promptValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3308
|
+
return new TypeError(message);
|
|
3309
|
+
}
|
|
3310
|
+
const obj_total = obj.total;
|
|
3311
|
+
const path_total = path + '.total';
|
|
3312
|
+
if (typeof obj_total !== 'number' || (typeof obj_total === 'number' && Math.floor(obj_total) !== obj_total)) {
|
|
3313
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_total + '" (at "' + path_total + '")');
|
|
3314
|
+
}
|
|
3315
|
+
})();
|
|
3316
|
+
return v_error === undefined ? null : v_error;
|
|
3317
|
+
}
|
|
3318
|
+
const select$u = function EinsteinPromptTemplateTokenUsageRepresentationSelect() {
|
|
3319
|
+
const { selections: EinsteinPromptTemplatePromptTokenUsageRepresentation__selections, opaque: EinsteinPromptTemplatePromptTokenUsageRepresentation__opaque, } = select$v();
|
|
3320
|
+
return {
|
|
3321
|
+
kind: 'Fragment',
|
|
3322
|
+
version: VERSION$e,
|
|
3323
|
+
private: [],
|
|
3324
|
+
selections: [
|
|
3325
|
+
{
|
|
3326
|
+
name: 'completion',
|
|
3327
|
+
kind: 'Scalar'
|
|
3328
|
+
},
|
|
3329
|
+
{
|
|
3330
|
+
name: 'prompt',
|
|
3331
|
+
kind: 'Object',
|
|
3332
|
+
selections: EinsteinPromptTemplatePromptTokenUsageRepresentation__selections
|
|
3333
|
+
},
|
|
3334
|
+
{
|
|
3335
|
+
name: 'total',
|
|
3336
|
+
kind: 'Scalar'
|
|
3337
|
+
}
|
|
3338
|
+
]
|
|
3339
|
+
};
|
|
3340
|
+
};
|
|
3341
|
+
function equals$e(existing, incoming) {
|
|
3342
|
+
const existing_completion = existing.completion;
|
|
3343
|
+
const incoming_completion = incoming.completion;
|
|
3344
|
+
if (!(existing_completion === incoming_completion)) {
|
|
3345
|
+
return false;
|
|
3346
|
+
}
|
|
3347
|
+
const existing_total = existing.total;
|
|
3348
|
+
const incoming_total = incoming.total;
|
|
3349
|
+
if (!(existing_total === incoming_total)) {
|
|
3350
|
+
return false;
|
|
3351
|
+
}
|
|
3352
|
+
const existing_prompt = existing.prompt;
|
|
3353
|
+
const incoming_prompt = incoming.prompt;
|
|
3354
|
+
if (!(equals$f(existing_prompt, incoming_prompt))) {
|
|
3355
|
+
return false;
|
|
3356
|
+
}
|
|
3357
|
+
return true;
|
|
3358
|
+
}
|
|
3359
|
+
|
|
2692
3360
|
const TTL$9 = 100;
|
|
2693
|
-
const VERSION$d = "
|
|
3361
|
+
const VERSION$d = "c298962a9a914e248606ab1ac01d1d08";
|
|
2694
3362
|
function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
|
|
2695
3363
|
const v_error = (() => {
|
|
2696
3364
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2699,7 +3367,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2699
3367
|
if (obj.citations !== undefined) {
|
|
2700
3368
|
const obj_citations = obj.citations;
|
|
2701
3369
|
const path_citations = path + '.citations';
|
|
2702
|
-
const referencepath_citationsValidationError = validate$
|
|
3370
|
+
const referencepath_citationsValidationError = validate$w(obj_citations, path_citations);
|
|
2703
3371
|
if (referencepath_citationsValidationError !== null) {
|
|
2704
3372
|
let message = 'Object doesn\'t match EinsteinLlmGenerationCitationRepresentation (at "' + path_citations + '")\n';
|
|
2705
3373
|
message += referencepath_citationsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2715,7 +3383,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2715
3383
|
for (let i = 0; i < obj_fileData.length; i++) {
|
|
2716
3384
|
const obj_fileData_item = obj_fileData[i];
|
|
2717
3385
|
const path_fileData_item = path_fileData + '[' + i + ']';
|
|
2718
|
-
const referencepath_fileData_itemValidationError = validate$
|
|
3386
|
+
const referencepath_fileData_itemValidationError = validate$u(obj_fileData_item, path_fileData_item);
|
|
2719
3387
|
if (referencepath_fileData_itemValidationError !== null) {
|
|
2720
3388
|
let message = 'Object doesn\'t match EinsteinPromptTemplateAttachmentRepresentation (at "' + path_fileData_item + '")\n';
|
|
2721
3389
|
message += referencepath_fileData_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2732,7 +3400,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2732
3400
|
for (let i = 0; i < obj_generationErrors.length; i++) {
|
|
2733
3401
|
const obj_generationErrors_item = obj_generationErrors[i];
|
|
2734
3402
|
const path_generationErrors_item = path_generationErrors + '[' + i + ']';
|
|
2735
|
-
const referencepath_generationErrors_itemValidationError = validate$
|
|
3403
|
+
const referencepath_generationErrors_itemValidationError = validate$t(obj_generationErrors_item, path_generationErrors_item);
|
|
2736
3404
|
if (referencepath_generationErrors_itemValidationError !== null) {
|
|
2737
3405
|
let message = 'Object doesn\'t match EinsteinPromptTemplateGenerationsErrorRepresentation (at "' + path_generationErrors_item + '")\n';
|
|
2738
3406
|
message += referencepath_generationErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2748,7 +3416,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2748
3416
|
for (let i = 0; i < obj_generations.length; i++) {
|
|
2749
3417
|
const obj_generations_item = obj_generations[i];
|
|
2750
3418
|
const path_generations_item = path_generations + '[' + i + ']';
|
|
2751
|
-
const referencepath_generations_itemValidationError = validate$
|
|
3419
|
+
const referencepath_generations_itemValidationError = validate$C(obj_generations_item, path_generations_item);
|
|
2752
3420
|
if (referencepath_generations_itemValidationError !== null) {
|
|
2753
3421
|
let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
|
|
2754
3422
|
message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2775,7 +3443,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2775
3443
|
const path_parameters = path + '.parameters';
|
|
2776
3444
|
let obj_parameters_union0 = null;
|
|
2777
3445
|
const obj_parameters_union0_error = (() => {
|
|
2778
|
-
const referencepath_parametersValidationError = validate$
|
|
3446
|
+
const referencepath_parametersValidationError = validate$B(obj_parameters, path_parameters);
|
|
2779
3447
|
if (referencepath_parametersValidationError !== null) {
|
|
2780
3448
|
let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
|
|
2781
3449
|
message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2800,6 +3468,16 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2800
3468
|
message += '\n' + obj_parameters_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2801
3469
|
return new TypeError(message);
|
|
2802
3470
|
}
|
|
3471
|
+
if (obj.performance !== undefined) {
|
|
3472
|
+
const obj_performance = obj.performance;
|
|
3473
|
+
const path_performance = path + '.performance';
|
|
3474
|
+
const referencepath_performanceValidationError = validate$o(obj_performance, path_performance);
|
|
3475
|
+
if (referencepath_performanceValidationError !== null) {
|
|
3476
|
+
let message = 'Object doesn\'t match EinsteinPromptTemplatePerformanceRepresentation (at "' + path_performance + '")\n';
|
|
3477
|
+
message += referencepath_performanceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3478
|
+
return new TypeError(message);
|
|
3479
|
+
}
|
|
3480
|
+
}
|
|
2803
3481
|
const obj_prompt = obj.prompt;
|
|
2804
3482
|
const path_prompt = path + '.prompt';
|
|
2805
3483
|
let obj_prompt_union0 = null;
|
|
@@ -2871,7 +3549,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2871
3549
|
for (let i = 0; i < obj_requestMessages.length; i++) {
|
|
2872
3550
|
const obj_requestMessages_item = obj_requestMessages[i];
|
|
2873
3551
|
const path_requestMessages_item = path_requestMessages + '[' + i + ']';
|
|
2874
|
-
const referencepath_requestMessages_itemValidationError = validate$
|
|
3552
|
+
const referencepath_requestMessages_itemValidationError = validate$m(obj_requestMessages_item, path_requestMessages_item);
|
|
2875
3553
|
if (referencepath_requestMessages_itemValidationError !== null) {
|
|
2876
3554
|
let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_requestMessages_item + '")\n';
|
|
2877
3555
|
message += referencepath_requestMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2888,7 +3566,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2888
3566
|
for (let i = 0; i < obj_responseMessages.length; i++) {
|
|
2889
3567
|
const obj_responseMessages_item = obj_responseMessages[i];
|
|
2890
3568
|
const path_responseMessages_item = path_responseMessages + '[' + i + ']';
|
|
2891
|
-
const referencepath_responseMessages_itemValidationError = validate$
|
|
3569
|
+
const referencepath_responseMessages_itemValidationError = validate$m(obj_responseMessages_item, path_responseMessages_item);
|
|
2892
3570
|
if (referencepath_responseMessages_itemValidationError !== null) {
|
|
2893
3571
|
let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_responseMessages_item + '")\n';
|
|
2894
3572
|
message += referencepath_responseMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2905,7 +3583,7 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2905
3583
|
for (let i = 0; i < obj_slotsMaskingInformation.length; i++) {
|
|
2906
3584
|
const obj_slotsMaskingInformation_item = obj_slotsMaskingInformation[i];
|
|
2907
3585
|
const path_slotsMaskingInformation_item = path_slotsMaskingInformation + '[' + i + ']';
|
|
2908
|
-
const referencepath_slotsMaskingInformation_itemValidationError = validate$
|
|
3586
|
+
const referencepath_slotsMaskingInformation_itemValidationError = validate$l(obj_slotsMaskingInformation_item, path_slotsMaskingInformation_item);
|
|
2909
3587
|
if (referencepath_slotsMaskingInformation_itemValidationError !== null) {
|
|
2910
3588
|
let message = 'Object doesn\'t match EinsteinPromptTemplateMaskDataRepresentation (at "' + path_slotsMaskingInformation_item + '")\n';
|
|
2911
3589
|
message += referencepath_slotsMaskingInformation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2913,6 +3591,16 @@ function validate$h(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
|
|
|
2913
3591
|
}
|
|
2914
3592
|
}
|
|
2915
3593
|
}
|
|
3594
|
+
if (obj.tokenUsage !== undefined) {
|
|
3595
|
+
const obj_tokenUsage = obj.tokenUsage;
|
|
3596
|
+
const path_tokenUsage = path + '.tokenUsage';
|
|
3597
|
+
const referencepath_tokenUsageValidationError = validate$i(obj_tokenUsage, path_tokenUsage);
|
|
3598
|
+
if (referencepath_tokenUsageValidationError !== null) {
|
|
3599
|
+
let message = 'Object doesn\'t match EinsteinPromptTemplateTokenUsageRepresentation (at "' + path_tokenUsage + '")\n';
|
|
3600
|
+
message += referencepath_tokenUsageValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3601
|
+
return new TypeError(message);
|
|
3602
|
+
}
|
|
3603
|
+
}
|
|
2916
3604
|
})();
|
|
2917
3605
|
return v_error === undefined ? null : v_error;
|
|
2918
3606
|
}
|
|
@@ -2930,13 +3618,15 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
2930
3618
|
return input;
|
|
2931
3619
|
}
|
|
2932
3620
|
const select$t = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
|
|
2933
|
-
const { selections: EinsteinLlmGenerationCitationRepresentation__selections, opaque: EinsteinLlmGenerationCitationRepresentation__opaque, } = select$
|
|
2934
|
-
const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$
|
|
2935
|
-
const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$
|
|
2936
|
-
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$
|
|
2937
|
-
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$
|
|
2938
|
-
const { selections:
|
|
2939
|
-
const { selections:
|
|
3621
|
+
const { selections: EinsteinLlmGenerationCitationRepresentation__selections, opaque: EinsteinLlmGenerationCitationRepresentation__opaque, } = select$I();
|
|
3622
|
+
const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$G();
|
|
3623
|
+
const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$F();
|
|
3624
|
+
const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$N();
|
|
3625
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$M();
|
|
3626
|
+
const { selections: EinsteinPromptTemplatePerformanceRepresentation__selections, opaque: EinsteinPromptTemplatePerformanceRepresentation__opaque, } = select$A();
|
|
3627
|
+
const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$y();
|
|
3628
|
+
const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$x();
|
|
3629
|
+
const { selections: EinsteinPromptTemplateTokenUsageRepresentation__selections, opaque: EinsteinPromptTemplateTokenUsageRepresentation__opaque, } = select$u();
|
|
2940
3630
|
return {
|
|
2941
3631
|
kind: 'Fragment',
|
|
2942
3632
|
version: VERSION$d,
|
|
@@ -2979,6 +3669,12 @@ const select$t = function EinsteinPromptTemplateGenerationsRepresentationSelect(
|
|
|
2979
3669
|
nullable: true,
|
|
2980
3670
|
selections: WrappedMap__selections
|
|
2981
3671
|
},
|
|
3672
|
+
{
|
|
3673
|
+
name: 'performance',
|
|
3674
|
+
kind: 'Object',
|
|
3675
|
+
selections: EinsteinPromptTemplatePerformanceRepresentation__selections,
|
|
3676
|
+
required: false
|
|
3677
|
+
},
|
|
2982
3678
|
{
|
|
2983
3679
|
name: 'prompt',
|
|
2984
3680
|
kind: 'Scalar'
|
|
@@ -3015,6 +3711,12 @@ const select$t = function EinsteinPromptTemplateGenerationsRepresentationSelect(
|
|
|
3015
3711
|
plural: true,
|
|
3016
3712
|
selections: EinsteinPromptTemplateMaskDataRepresentation__selections,
|
|
3017
3713
|
required: false
|
|
3714
|
+
},
|
|
3715
|
+
{
|
|
3716
|
+
name: 'tokenUsage',
|
|
3717
|
+
kind: 'Object',
|
|
3718
|
+
selections: EinsteinPromptTemplateTokenUsageRepresentation__selections,
|
|
3719
|
+
required: false
|
|
3018
3720
|
}
|
|
3019
3721
|
]
|
|
3020
3722
|
};
|
|
@@ -3039,7 +3741,7 @@ function equals$d(existing, incoming) {
|
|
|
3039
3741
|
if (existing_citations === undefined || incoming_citations === undefined) {
|
|
3040
3742
|
return false;
|
|
3041
3743
|
}
|
|
3042
|
-
if (!(equals$
|
|
3744
|
+
if (!(equals$s(existing_citations, incoming_citations))) {
|
|
3043
3745
|
return false;
|
|
3044
3746
|
}
|
|
3045
3747
|
}
|
|
@@ -3053,7 +3755,7 @@ function equals$d(existing, incoming) {
|
|
|
3053
3755
|
return false;
|
|
3054
3756
|
}
|
|
3055
3757
|
const equals_fileData_items = equalsArray(existing_fileData, incoming_fileData, (existing_fileData_item, incoming_fileData_item) => {
|
|
3056
|
-
if (!(equals$
|
|
3758
|
+
if (!(equals$q(existing_fileData_item, incoming_fileData_item))) {
|
|
3057
3759
|
return false;
|
|
3058
3760
|
}
|
|
3059
3761
|
});
|
|
@@ -3071,7 +3773,7 @@ function equals$d(existing, incoming) {
|
|
|
3071
3773
|
return false;
|
|
3072
3774
|
}
|
|
3073
3775
|
const equals_generationErrors_items = equalsArray(existing_generationErrors, incoming_generationErrors, (existing_generationErrors_item, incoming_generationErrors_item) => {
|
|
3074
|
-
if (!(equals$
|
|
3776
|
+
if (!(equals$p(existing_generationErrors_item, incoming_generationErrors_item))) {
|
|
3075
3777
|
return false;
|
|
3076
3778
|
}
|
|
3077
3779
|
});
|
|
@@ -3082,7 +3784,7 @@ function equals$d(existing, incoming) {
|
|
|
3082
3784
|
const existing_generations = existing.generations;
|
|
3083
3785
|
const incoming_generations = incoming.generations;
|
|
3084
3786
|
const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
|
|
3085
|
-
if (!(equals$
|
|
3787
|
+
if (!(equals$w(existing_generations_item, incoming_generations_item))) {
|
|
3086
3788
|
return false;
|
|
3087
3789
|
}
|
|
3088
3790
|
});
|
|
@@ -3112,9 +3814,22 @@ function equals$d(existing, incoming) {
|
|
|
3112
3814
|
if (!(existing_parameters === incoming_parameters
|
|
3113
3815
|
|| (existing_parameters != null &&
|
|
3114
3816
|
incoming_parameters != null &&
|
|
3115
|
-
equals$
|
|
3817
|
+
equals$v(existing_parameters, incoming_parameters)))) {
|
|
3116
3818
|
return false;
|
|
3117
3819
|
}
|
|
3820
|
+
const existing_performance = existing.performance;
|
|
3821
|
+
const incoming_performance = incoming.performance;
|
|
3822
|
+
// if at least one of these optionals is defined
|
|
3823
|
+
if (existing_performance !== undefined || incoming_performance !== undefined) {
|
|
3824
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3825
|
+
// not equal
|
|
3826
|
+
if (existing_performance === undefined || incoming_performance === undefined) {
|
|
3827
|
+
return false;
|
|
3828
|
+
}
|
|
3829
|
+
if (!(equals$k(existing_performance, incoming_performance))) {
|
|
3830
|
+
return false;
|
|
3831
|
+
}
|
|
3832
|
+
}
|
|
3118
3833
|
const existing_prompt = existing.prompt;
|
|
3119
3834
|
const incoming_prompt = incoming.prompt;
|
|
3120
3835
|
if (!(existing_prompt === incoming_prompt)) {
|
|
@@ -3135,7 +3850,7 @@ function equals$d(existing, incoming) {
|
|
|
3135
3850
|
return false;
|
|
3136
3851
|
}
|
|
3137
3852
|
const equals_requestMessages_items = equalsArray(existing_requestMessages, incoming_requestMessages, (existing_requestMessages_item, incoming_requestMessages_item) => {
|
|
3138
|
-
if (!(equals$
|
|
3853
|
+
if (!(equals$i(existing_requestMessages_item, incoming_requestMessages_item))) {
|
|
3139
3854
|
return false;
|
|
3140
3855
|
}
|
|
3141
3856
|
});
|
|
@@ -3153,7 +3868,7 @@ function equals$d(existing, incoming) {
|
|
|
3153
3868
|
return false;
|
|
3154
3869
|
}
|
|
3155
3870
|
const equals_responseMessages_items = equalsArray(existing_responseMessages, incoming_responseMessages, (existing_responseMessages_item, incoming_responseMessages_item) => {
|
|
3156
|
-
if (!(equals$
|
|
3871
|
+
if (!(equals$i(existing_responseMessages_item, incoming_responseMessages_item))) {
|
|
3157
3872
|
return false;
|
|
3158
3873
|
}
|
|
3159
3874
|
});
|
|
@@ -3171,7 +3886,7 @@ function equals$d(existing, incoming) {
|
|
|
3171
3886
|
return false;
|
|
3172
3887
|
}
|
|
3173
3888
|
const equals_slotsMaskingInformation_items = equalsArray(existing_slotsMaskingInformation, incoming_slotsMaskingInformation, (existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item) => {
|
|
3174
|
-
if (!(equals$
|
|
3889
|
+
if (!(equals$h(existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item))) {
|
|
3175
3890
|
return false;
|
|
3176
3891
|
}
|
|
3177
3892
|
});
|
|
@@ -3179,6 +3894,19 @@ function equals$d(existing, incoming) {
|
|
|
3179
3894
|
return false;
|
|
3180
3895
|
}
|
|
3181
3896
|
}
|
|
3897
|
+
const existing_tokenUsage = existing.tokenUsage;
|
|
3898
|
+
const incoming_tokenUsage = incoming.tokenUsage;
|
|
3899
|
+
// if at least one of these optionals is defined
|
|
3900
|
+
if (existing_tokenUsage !== undefined || incoming_tokenUsage !== undefined) {
|
|
3901
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3902
|
+
// not equal
|
|
3903
|
+
if (existing_tokenUsage === undefined || incoming_tokenUsage === undefined) {
|
|
3904
|
+
return false;
|
|
3905
|
+
}
|
|
3906
|
+
if (!(equals$e(existing_tokenUsage, incoming_tokenUsage))) {
|
|
3907
|
+
return false;
|
|
3908
|
+
}
|
|
3909
|
+
}
|
|
3182
3910
|
return true;
|
|
3183
3911
|
}
|
|
3184
3912
|
const ingest$9 = function EinsteinPromptTemplateGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
@@ -3252,7 +3980,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
3252
3980
|
const config = {};
|
|
3253
3981
|
typeCheckConfig$j(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
|
|
3254
3982
|
const untrustedConfig_promptTemplateGenerationsInput = untrustedConfig.promptTemplateGenerationsInput;
|
|
3255
|
-
const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$
|
|
3983
|
+
const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$y(untrustedConfig_promptTemplateGenerationsInput);
|
|
3256
3984
|
if (referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError === null) {
|
|
3257
3985
|
config.promptTemplateGenerationsInput = untrustedConfig_promptTemplateGenerationsInput;
|
|
3258
3986
|
}
|
|
@@ -3310,7 +4038,7 @@ function validate$g(obj, path = 'EinsteinPromptTemplateRepresentation') {
|
|
|
3310
4038
|
if (obj.additionalData !== undefined) {
|
|
3311
4039
|
const obj_additionalData = obj.additionalData;
|
|
3312
4040
|
const path_additionalData = path + '.additionalData';
|
|
3313
|
-
const referencepath_additionalDataValidationError = validate$
|
|
4041
|
+
const referencepath_additionalDataValidationError = validate$B(obj_additionalData, path_additionalData);
|
|
3314
4042
|
if (referencepath_additionalDataValidationError !== null) {
|
|
3315
4043
|
let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
|
|
3316
4044
|
message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3392,7 +4120,7 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
3392
4120
|
return input;
|
|
3393
4121
|
}
|
|
3394
4122
|
const select$r = function EinsteinPromptTemplateRepresentationSelect() {
|
|
3395
|
-
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$
|
|
4123
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$M();
|
|
3396
4124
|
return {
|
|
3397
4125
|
kind: 'Fragment',
|
|
3398
4126
|
version: VERSION$c,
|
|
@@ -3499,7 +4227,7 @@ function equals$c(existing, incoming) {
|
|
|
3499
4227
|
if (existing_additionalData === undefined || incoming_additionalData === undefined) {
|
|
3500
4228
|
return false;
|
|
3501
4229
|
}
|
|
3502
|
-
if (!(equals$
|
|
4230
|
+
if (!(equals$v(existing_additionalData, incoming_additionalData))) {
|
|
3503
4231
|
return false;
|
|
3504
4232
|
}
|
|
3505
4233
|
}
|
|
@@ -6557,7 +7285,7 @@ function validate(obj, path = 'EinsteinPromptTemplateStatusRepresentation') {
|
|
|
6557
7285
|
if (obj.additionalData !== undefined) {
|
|
6558
7286
|
const obj_additionalData = obj.additionalData;
|
|
6559
7287
|
const path_additionalData = path + '.additionalData';
|
|
6560
|
-
const referencepath_additionalDataValidationError = validate$
|
|
7288
|
+
const referencepath_additionalDataValidationError = validate$B(obj_additionalData, path_additionalData);
|
|
6561
7289
|
if (referencepath_additionalDataValidationError !== null) {
|
|
6562
7290
|
let message = 'Object doesn\'t match WrappedMap (at "' + path_additionalData + '")\n';
|
|
6563
7291
|
message += referencepath_additionalDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6634,7 +7362,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
6634
7362
|
return input;
|
|
6635
7363
|
}
|
|
6636
7364
|
const select$3 = function EinsteinPromptTemplateStatusRepresentationSelect() {
|
|
6637
|
-
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$
|
|
7365
|
+
const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$M();
|
|
6638
7366
|
return {
|
|
6639
7367
|
kind: 'Fragment',
|
|
6640
7368
|
version: VERSION,
|
|
@@ -6732,7 +7460,7 @@ function equals(existing, incoming) {
|
|
|
6732
7460
|
if (existing_additionalData === undefined || incoming_additionalData === undefined) {
|
|
6733
7461
|
return false;
|
|
6734
7462
|
}
|
|
6735
|
-
if (!(equals$
|
|
7463
|
+
if (!(equals$v(existing_additionalData, incoming_additionalData))) {
|
|
6736
7464
|
return false;
|
|
6737
7465
|
}
|
|
6738
7466
|
}
|
|
@@ -7249,4 +7977,4 @@ withDefaultLuvio((luvio) => {
|
|
|
7249
7977
|
});
|
|
7250
7978
|
|
|
7251
7979
|
export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, createPromptTemplate, createPromptTemplateVersion, getDataProviderInstanceConfig, getDataProviderInstanceConfig_imperative, getDataProviderTypeConfigs, getDataProviderTypeConfigs_imperative, getDataProviders, getDataProviders_imperative, getInputMappedDataProviders, getInputMappedDataProviders_imperative, getOutputLanguages, getOutputLanguages_imperative, getPromptTemplate, getPromptTemplateVersion, getPromptTemplateVersion_imperative, getPromptTemplateVersions, getPromptTemplateVersions_imperative, getPromptTemplate_imperative, getPromptTemplates, getPromptTemplates_imperative, getTemplateType, getTemplateType_imperative, putEinsteinPromptTemplateStatus, putEinsteinPromptTemplateVersionStatus, updatePromptTemplateVersion };
|
|
7252
|
-
// version: 1.
|
|
7980
|
+
// version: 1.415.0-caf45a5d7e
|