@salesforce/lds-adapters-service-einsteinllm 1.266.0-dev24 → 1.266.0-dev25

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.
@@ -104,7 +104,7 @@ function createLink(ref) {
104
104
  };
105
105
  }
106
106
 
107
- function validate$9(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
107
+ function validate$a(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
108
108
  const v_error = (() => {
109
109
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
110
110
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -187,7 +187,7 @@ function validate$9(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation'
187
187
  return v_error === undefined ? null : v_error;
188
188
  }
189
189
 
190
- function validate$8(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
190
+ function validate$9(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
191
191
  const v_error = (() => {
192
192
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
193
193
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -195,7 +195,7 @@ function validate$8(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
195
195
  if (obj.additionalConfig !== undefined) {
196
196
  const obj_additionalConfig = obj.additionalConfig;
197
197
  const path_additionalConfig = path + '.additionalConfig';
198
- const referencepath_additionalConfigValidationError = validate$9(obj_additionalConfig, path_additionalConfig);
198
+ const referencepath_additionalConfigValidationError = validate$a(obj_additionalConfig, path_additionalConfig);
199
199
  if (referencepath_additionalConfigValidationError !== null) {
200
200
  let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
201
201
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -218,8 +218,8 @@ function validate$8(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
218
218
  return v_error === undefined ? null : v_error;
219
219
  }
220
220
 
221
- const VERSION$4 = "9b45c0734fec120819b03e3b115caf64";
222
- function validate$7(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
221
+ const VERSION$5 = "9b45c0734fec120819b03e3b115caf64";
222
+ function validate$8(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
223
223
  const v_error = (() => {
224
224
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
225
225
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -242,10 +242,10 @@ function validate$7(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
242
242
  })();
243
243
  return v_error === undefined ? null : v_error;
244
244
  }
245
- const select$7 = function EinsteinLlmGenerationItemRepresentationSelect() {
245
+ const select$8 = function EinsteinLlmGenerationItemRepresentationSelect() {
246
246
  return {
247
247
  kind: 'Fragment',
248
- version: VERSION$4,
248
+ version: VERSION$5,
249
249
  private: [],
250
250
  selections: [
251
251
  {
@@ -263,7 +263,7 @@ const select$7 = function EinsteinLlmGenerationItemRepresentationSelect() {
263
263
  ]
264
264
  };
265
265
  };
266
- function equals$4(existing, incoming) {
266
+ function equals$5(existing, incoming) {
267
267
  const existing_parameters = existing.parameters;
268
268
  const incoming_parameters = incoming.parameters;
269
269
  if (!(existing_parameters === incoming_parameters)) {
@@ -282,8 +282,8 @@ function equals$4(existing, incoming) {
282
282
  return true;
283
283
  }
284
284
 
285
- const VERSION$3 = "4656c961c9d093a9e206c1db7d4de0b0";
286
- function validate$6(obj, path = 'WrappedMap') {
285
+ const VERSION$4 = "4656c961c9d093a9e206c1db7d4de0b0";
286
+ function validate$7(obj, path = 'WrappedMap') {
287
287
  const v_error = (() => {
288
288
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
289
289
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -305,15 +305,15 @@ function validate$6(obj, path = 'WrappedMap') {
305
305
  })();
306
306
  return v_error === undefined ? null : v_error;
307
307
  }
308
- const select$6 = function WrappedMapSelect() {
308
+ const select$7 = function WrappedMapSelect() {
309
309
  return {
310
310
  kind: 'Fragment',
311
- version: VERSION$3,
311
+ version: VERSION$4,
312
312
  private: [],
313
313
  selections: []
314
314
  };
315
315
  };
316
- function equals$3(existing, incoming) {
316
+ function equals$4(existing, incoming) {
317
317
  const existing_wrappedMap = existing.wrappedMap;
318
318
  const incoming_wrappedMap = incoming.wrappedMap;
319
319
  const equals_wrappedMap_props = equalsObject(existing_wrappedMap, incoming_wrappedMap, (existing_wrappedMap_prop, incoming_wrappedMap_prop) => {
@@ -325,8 +325,8 @@ function equals$3(existing, incoming) {
325
325
  }
326
326
 
327
327
  const TTL$2 = 100;
328
- const VERSION$2 = "d8abd72a42e842b253da1c38954dafbc";
329
- function validate$5(obj, path = 'EinsteinLlmGenerationsRepresentation') {
328
+ const VERSION$3 = "d8abd72a42e842b253da1c38954dafbc";
329
+ function validate$6(obj, path = 'EinsteinLlmGenerationsRepresentation') {
330
330
  const v_error = (() => {
331
331
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
332
332
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -339,7 +339,7 @@ function validate$5(obj, path = 'EinsteinLlmGenerationsRepresentation') {
339
339
  for (let i = 0; i < obj_generations.length; i++) {
340
340
  const obj_generations_item = obj_generations[i];
341
341
  const path_generations_item = path_generations + '[' + i + ']';
342
- const referencepath_generations_itemValidationError = validate$7(obj_generations_item, path_generations_item);
342
+ const referencepath_generations_itemValidationError = validate$8(obj_generations_item, path_generations_item);
343
343
  if (referencepath_generations_itemValidationError !== null) {
344
344
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
345
345
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -350,7 +350,7 @@ function validate$5(obj, path = 'EinsteinLlmGenerationsRepresentation') {
350
350
  const path_parameters = path + '.parameters';
351
351
  let obj_parameters_union0 = null;
352
352
  const obj_parameters_union0_error = (() => {
353
- const referencepath_parametersValidationError = validate$6(obj_parameters, path_parameters);
353
+ const referencepath_parametersValidationError = validate$7(obj_parameters, path_parameters);
354
354
  if (referencepath_parametersValidationError !== null) {
355
355
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
356
356
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -422,12 +422,12 @@ function keyBuilderFromType$2(luvio, object) {
422
422
  function normalize$2(input, existing, path, luvio, store, timestamp) {
423
423
  return input;
424
424
  }
425
- const select$5 = function EinsteinLlmGenerationsRepresentationSelect() {
426
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$7();
427
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$6();
425
+ const select$6 = function EinsteinLlmGenerationsRepresentationSelect() {
426
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$8();
427
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$7();
428
428
  return {
429
429
  kind: 'Fragment',
430
- version: VERSION$2,
430
+ version: VERSION$3,
431
431
  private: [],
432
432
  selections: [
433
433
  {
@@ -453,7 +453,7 @@ const select$5 = function EinsteinLlmGenerationsRepresentationSelect() {
453
453
  ]
454
454
  };
455
455
  };
456
- function equals$2(existing, incoming) {
456
+ function equals$3(existing, incoming) {
457
457
  const existing_requestId = existing.requestId;
458
458
  const incoming_requestId = incoming.requestId;
459
459
  if (!(existing_requestId === incoming_requestId)) {
@@ -462,7 +462,7 @@ function equals$2(existing, incoming) {
462
462
  const existing_generations = existing.generations;
463
463
  const incoming_generations = incoming.generations;
464
464
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
465
- if (!(equals$4(existing_generations_item, incoming_generations_item))) {
465
+ if (!(equals$5(existing_generations_item, incoming_generations_item))) {
466
466
  return false;
467
467
  }
468
468
  });
@@ -474,7 +474,7 @@ function equals$2(existing, incoming) {
474
474
  if (!(existing_parameters === incoming_parameters
475
475
  || (existing_parameters != null &&
476
476
  incoming_parameters != null &&
477
- equals$3(existing_parameters, incoming_parameters)))) {
477
+ equals$4(existing_parameters, incoming_parameters)))) {
478
478
  return false;
479
479
  }
480
480
  const existing_prompt = existing.prompt;
@@ -486,14 +486,14 @@ function equals$2(existing, incoming) {
486
486
  }
487
487
  const ingest$2 = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
488
488
  if (process.env.NODE_ENV !== 'production') {
489
- const validateError = validate$5(input);
489
+ const validateError = validate$6(input);
490
490
  if (validateError !== null) {
491
491
  throw validateError;
492
492
  }
493
493
  }
494
494
  const key = keyBuilderFromType$2(luvio, input);
495
495
  const ttlToUse = TTL$2;
496
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$2, RepresentationType$2, equals$2);
496
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$3, RepresentationType$2, equals$3);
497
497
  return createLink(key);
498
498
  };
499
499
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
@@ -506,8 +506,8 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
506
506
  });
507
507
  }
508
508
 
509
- function select$4(luvio, params) {
510
- return select$5();
509
+ function select$5(luvio, params) {
510
+ return select$6();
511
511
  }
512
512
  function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
513
513
  getTypeCacheKeys$2(storeKeyMap, luvio, response);
@@ -518,7 +518,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
518
518
  luvio.storeIngest(key, ingest$2, body);
519
519
  const snapshot = luvio.storeLookup({
520
520
  recordId: key,
521
- node: select$4(),
521
+ node: select$5(),
522
522
  variables: {},
523
523
  });
524
524
  if (process.env.NODE_ENV !== 'production') {
@@ -552,7 +552,7 @@ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(createGenera
552
552
  function typeCheckConfig$2(untrustedConfig) {
553
553
  const config = {};
554
554
  const untrustedConfig_generationsInput = untrustedConfig.generationsInput;
555
- const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$8(untrustedConfig_generationsInput);
555
+ const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$9(untrustedConfig_generationsInput);
556
556
  if (referenceEinsteinLlmGenerationsInputRepresentationValidationError === null) {
557
557
  config.generationsInput = untrustedConfig_generationsInput;
558
558
  }
@@ -600,7 +600,7 @@ const createGenerationsAdapterFactory = (luvio) => {
600
600
  };
601
601
  };
602
602
 
603
- function validate$4(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
603
+ function validate$5(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
604
604
  const v_error = (() => {
605
605
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
606
606
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -648,8 +648,8 @@ function validate$4(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
648
648
  }
649
649
 
650
650
  const TTL$1 = 100;
651
- const VERSION$1 = "4033328f65865dd5d80c68a7573a4522";
652
- function validate$3(obj, path = 'EinsteinLlmFeedbackRepresentation') {
651
+ const VERSION$2 = "4033328f65865dd5d80c68a7573a4522";
652
+ function validate$4(obj, path = 'EinsteinLlmFeedbackRepresentation') {
653
653
  const v_error = (() => {
654
654
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
655
655
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -675,10 +675,10 @@ function keyBuilderFromType$1(luvio, object) {
675
675
  function normalize$1(input, existing, path, luvio, store, timestamp) {
676
676
  return input;
677
677
  }
678
- const select$3 = function EinsteinLlmFeedbackRepresentationSelect() {
678
+ const select$4 = function EinsteinLlmFeedbackRepresentationSelect() {
679
679
  return {
680
680
  kind: 'Fragment',
681
- version: VERSION$1,
681
+ version: VERSION$2,
682
682
  private: [],
683
683
  selections: [
684
684
  {
@@ -688,7 +688,7 @@ const select$3 = function EinsteinLlmFeedbackRepresentationSelect() {
688
688
  ]
689
689
  };
690
690
  };
691
- function equals$1(existing, incoming) {
691
+ function equals$2(existing, incoming) {
692
692
  const existing_message = existing.message;
693
693
  const incoming_message = incoming.message;
694
694
  if (!(existing_message === incoming_message)) {
@@ -698,14 +698,14 @@ function equals$1(existing, incoming) {
698
698
  }
699
699
  const ingest$1 = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
700
700
  if (process.env.NODE_ENV !== 'production') {
701
- const validateError = validate$3(input);
701
+ const validateError = validate$4(input);
702
702
  if (validateError !== null) {
703
703
  throw validateError;
704
704
  }
705
705
  }
706
706
  const key = keyBuilderFromType$1(luvio, input);
707
707
  const ttlToUse = TTL$1;
708
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "EinsteinLLM", VERSION$1, RepresentationType$1, equals$1);
708
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "EinsteinLLM", VERSION$2, RepresentationType$1, equals$2);
709
709
  return createLink(key);
710
710
  };
711
711
  function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
@@ -718,8 +718,8 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
718
718
  });
719
719
  }
720
720
 
721
- function select$2(luvio, params) {
722
- return select$3();
721
+ function select$3(luvio, params) {
722
+ return select$4();
723
723
  }
724
724
  function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
725
725
  getTypeCacheKeys$1(storeKeyMap, luvio, response);
@@ -730,7 +730,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
730
730
  luvio.storeIngest(key, ingest$1, body);
731
731
  const snapshot = luvio.storeLookup({
732
732
  recordId: key,
733
- node: select$2(),
733
+ node: select$3(),
734
734
  variables: {},
735
735
  });
736
736
  if (process.env.NODE_ENV !== 'production') {
@@ -764,7 +764,7 @@ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(createFeedba
764
764
  function typeCheckConfig$1(untrustedConfig) {
765
765
  const config = {};
766
766
  const untrustedConfig_feedbackInput = untrustedConfig.feedbackInput;
767
- const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$4(untrustedConfig_feedbackInput);
767
+ const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$5(untrustedConfig_feedbackInput);
768
768
  if (referenceEinsteinLlmFeedbackInputRepresentationValidationError === null) {
769
769
  config.feedbackInput = untrustedConfig_feedbackInput;
770
770
  }
@@ -812,7 +812,7 @@ const createFeedbackAdapterFactory = (luvio) => {
812
812
  };
813
813
  };
814
814
 
815
- function validate$2(obj, path = 'WrappedValueMap') {
815
+ function validate$3(obj, path = 'WrappedValueMap') {
816
816
  const v_error = (() => {
817
817
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
818
818
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -835,7 +835,7 @@ function validate$2(obj, path = 'WrappedValueMap') {
835
835
  return v_error === undefined ? null : v_error;
836
836
  }
837
837
 
838
- function validate$1(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
838
+ function validate$2(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
839
839
  const v_error = (() => {
840
840
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
841
841
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -843,7 +843,7 @@ function validate$1(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
843
843
  if (obj.additionalConfig !== undefined) {
844
844
  const obj_additionalConfig = obj.additionalConfig;
845
845
  const path_additionalConfig = path + '.additionalConfig';
846
- const referencepath_additionalConfigValidationError = validate$9(obj_additionalConfig, path_additionalConfig);
846
+ const referencepath_additionalConfigValidationError = validate$a(obj_additionalConfig, path_additionalConfig);
847
847
  if (referencepath_additionalConfigValidationError !== null) {
848
848
  let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
849
849
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -852,7 +852,7 @@ function validate$1(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
852
852
  }
853
853
  const obj_inputParams = obj.inputParams;
854
854
  const path_inputParams = path + '.inputParams';
855
- const referencepath_inputParamsValidationError = validate$2(obj_inputParams, path_inputParams);
855
+ const referencepath_inputParamsValidationError = validate$3(obj_inputParams, path_inputParams);
856
856
  if (referencepath_inputParamsValidationError !== null) {
857
857
  let message = 'Object doesn\'t match WrappedValueMap (at "' + path_inputParams + '")\n';
858
858
  message += referencepath_inputParamsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -874,13 +874,119 @@ function validate$1(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
874
874
  return v_error === undefined ? null : v_error;
875
875
  }
876
876
 
877
+ const VERSION$1 = "6458d624e5a1691821c764b6de0badb3";
878
+ function validate$1(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresentation') {
879
+ const v_error = (() => {
880
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
881
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
882
+ }
883
+ const obj_errorMessage = obj.errorMessage;
884
+ const path_errorMessage = path + '.errorMessage';
885
+ if (typeof obj_errorMessage !== 'string') {
886
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
887
+ }
888
+ const obj_httpErrorCode = obj.httpErrorCode;
889
+ const path_httpErrorCode = path + '.httpErrorCode';
890
+ if (typeof obj_httpErrorCode !== 'string') {
891
+ return new TypeError('Expected "string" but received "' + typeof obj_httpErrorCode + '" (at "' + path_httpErrorCode + '")');
892
+ }
893
+ if (obj.localizedErrorMessage !== undefined) {
894
+ const obj_localizedErrorMessage = obj.localizedErrorMessage;
895
+ const path_localizedErrorMessage = path + '.localizedErrorMessage';
896
+ if (typeof obj_localizedErrorMessage !== 'string') {
897
+ return new TypeError('Expected "string" but received "' + typeof obj_localizedErrorMessage + '" (at "' + path_localizedErrorMessage + '")');
898
+ }
899
+ }
900
+ const obj_messageCode = obj.messageCode;
901
+ const path_messageCode = path + '.messageCode';
902
+ if (typeof obj_messageCode !== 'string') {
903
+ return new TypeError('Expected "string" but received "' + typeof obj_messageCode + '" (at "' + path_messageCode + '")');
904
+ }
905
+ })();
906
+ return v_error === undefined ? null : v_error;
907
+ }
908
+ const select$2 = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
909
+ return {
910
+ kind: 'Fragment',
911
+ version: VERSION$1,
912
+ private: [],
913
+ selections: [
914
+ {
915
+ name: 'errorMessage',
916
+ kind: 'Scalar'
917
+ },
918
+ {
919
+ name: 'httpErrorCode',
920
+ kind: 'Scalar'
921
+ },
922
+ {
923
+ name: 'localizedErrorMessage',
924
+ kind: 'Scalar',
925
+ required: false
926
+ },
927
+ {
928
+ name: 'messageCode',
929
+ kind: 'Scalar'
930
+ }
931
+ ]
932
+ };
933
+ };
934
+ function equals$1(existing, incoming) {
935
+ const existing_errorMessage = existing.errorMessage;
936
+ const incoming_errorMessage = incoming.errorMessage;
937
+ if (!(existing_errorMessage === incoming_errorMessage)) {
938
+ return false;
939
+ }
940
+ const existing_httpErrorCode = existing.httpErrorCode;
941
+ const incoming_httpErrorCode = incoming.httpErrorCode;
942
+ if (!(existing_httpErrorCode === incoming_httpErrorCode)) {
943
+ return false;
944
+ }
945
+ const existing_localizedErrorMessage = existing.localizedErrorMessage;
946
+ const incoming_localizedErrorMessage = incoming.localizedErrorMessage;
947
+ // if at least one of these optionals is defined
948
+ if (existing_localizedErrorMessage !== undefined || incoming_localizedErrorMessage !== undefined) {
949
+ // if one of these is not defined we know the other is defined and therefore
950
+ // not equal
951
+ if (existing_localizedErrorMessage === undefined || incoming_localizedErrorMessage === undefined) {
952
+ return false;
953
+ }
954
+ if (!(existing_localizedErrorMessage === incoming_localizedErrorMessage)) {
955
+ return false;
956
+ }
957
+ }
958
+ const existing_messageCode = existing.messageCode;
959
+ const incoming_messageCode = incoming.messageCode;
960
+ if (!(existing_messageCode === incoming_messageCode)) {
961
+ return false;
962
+ }
963
+ return true;
964
+ }
965
+
877
966
  const TTL = 100;
878
- const VERSION = "72c96c11855d430a55c0a79c239c0838";
967
+ const VERSION = "a4c71dd12b7b696b7b04ebf6cf5101a3";
879
968
  function validate(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
880
969
  const v_error = (() => {
881
970
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
882
971
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
883
972
  }
973
+ if (obj.generationErrors !== undefined) {
974
+ const obj_generationErrors = obj.generationErrors;
975
+ const path_generationErrors = path + '.generationErrors';
976
+ if (!ArrayIsArray(obj_generationErrors)) {
977
+ return new TypeError('Expected "array" but received "' + typeof obj_generationErrors + '" (at "' + path_generationErrors + '")');
978
+ }
979
+ for (let i = 0; i < obj_generationErrors.length; i++) {
980
+ const obj_generationErrors_item = obj_generationErrors[i];
981
+ const path_generationErrors_item = path_generationErrors + '[' + i + ']';
982
+ const referencepath_generationErrors_itemValidationError = validate$1(obj_generationErrors_item, path_generationErrors_item);
983
+ if (referencepath_generationErrors_itemValidationError !== null) {
984
+ let message = 'Object doesn\'t match EinsteinPromptTemplateGenerationsErrorRepresentation (at "' + path_generationErrors_item + '")\n';
985
+ message += referencepath_generationErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
986
+ return new TypeError(message);
987
+ }
988
+ }
989
+ }
884
990
  const obj_generations = obj.generations;
885
991
  const path_generations = path + '.generations';
886
992
  if (!ArrayIsArray(obj_generations)) {
@@ -889,7 +995,7 @@ function validate(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation')
889
995
  for (let i = 0; i < obj_generations.length; i++) {
890
996
  const obj_generations_item = obj_generations[i];
891
997
  const path_generations_item = path_generations + '[' + i + ']';
892
- const referencepath_generations_itemValidationError = validate$7(obj_generations_item, path_generations_item);
998
+ const referencepath_generations_itemValidationError = validate$8(obj_generations_item, path_generations_item);
893
999
  if (referencepath_generations_itemValidationError !== null) {
894
1000
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
895
1001
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -900,7 +1006,7 @@ function validate(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation')
900
1006
  const path_parameters = path + '.parameters';
901
1007
  let obj_parameters_union0 = null;
902
1008
  const obj_parameters_union0_error = (() => {
903
- const referencepath_parametersValidationError = validate$6(obj_parameters, path_parameters);
1009
+ const referencepath_parametersValidationError = validate$7(obj_parameters, path_parameters);
904
1010
  if (referencepath_parametersValidationError !== null) {
905
1011
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
906
1012
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -978,13 +1084,21 @@ function normalize(input, existing, path, luvio, store, timestamp) {
978
1084
  return input;
979
1085
  }
980
1086
  const select$1 = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
981
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$7();
982
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$6();
1087
+ const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$2();
1088
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$8();
1089
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$7();
983
1090
  return {
984
1091
  kind: 'Fragment',
985
1092
  version: VERSION,
986
1093
  private: [],
987
1094
  selections: [
1095
+ {
1096
+ name: 'generationErrors',
1097
+ kind: 'Object',
1098
+ plural: true,
1099
+ selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections,
1100
+ required: false
1101
+ },
988
1102
  {
989
1103
  name: 'generations',
990
1104
  kind: 'Object',
@@ -1023,10 +1137,28 @@ function equals(existing, incoming) {
1023
1137
  if (!(existing_requestId === incoming_requestId)) {
1024
1138
  return false;
1025
1139
  }
1140
+ const existing_generationErrors = existing.generationErrors;
1141
+ const incoming_generationErrors = incoming.generationErrors;
1142
+ // if at least one of these optionals is defined
1143
+ if (existing_generationErrors !== undefined || incoming_generationErrors !== undefined) {
1144
+ // if one of these is not defined we know the other is defined and therefore
1145
+ // not equal
1146
+ if (existing_generationErrors === undefined || incoming_generationErrors === undefined) {
1147
+ return false;
1148
+ }
1149
+ const equals_generationErrors_items = equalsArray(existing_generationErrors, incoming_generationErrors, (existing_generationErrors_item, incoming_generationErrors_item) => {
1150
+ if (!(equals$1(existing_generationErrors_item, incoming_generationErrors_item))) {
1151
+ return false;
1152
+ }
1153
+ });
1154
+ if (equals_generationErrors_items === false) {
1155
+ return false;
1156
+ }
1157
+ }
1026
1158
  const existing_generations = existing.generations;
1027
1159
  const incoming_generations = incoming.generations;
1028
1160
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
1029
- if (!(equals$4(existing_generations_item, incoming_generations_item))) {
1161
+ if (!(equals$5(existing_generations_item, incoming_generations_item))) {
1030
1162
  return false;
1031
1163
  }
1032
1164
  });
@@ -1038,7 +1170,7 @@ function equals(existing, incoming) {
1038
1170
  if (!(existing_parameters === incoming_parameters
1039
1171
  || (existing_parameters != null &&
1040
1172
  incoming_parameters != null &&
1041
- equals$3(existing_parameters, incoming_parameters)))) {
1173
+ equals$4(existing_parameters, incoming_parameters)))) {
1042
1174
  return false;
1043
1175
  }
1044
1176
  const existing_prompt = existing.prompt;
@@ -1119,7 +1251,7 @@ function typeCheckConfig(untrustedConfig) {
1119
1251
  const config = {};
1120
1252
  typeCheckConfig$3(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
1121
1253
  const untrustedConfig_promptTemplateGenerationsInput = untrustedConfig.promptTemplateGenerationsInput;
1122
- const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$1(untrustedConfig_promptTemplateGenerationsInput);
1254
+ const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$2(untrustedConfig_promptTemplateGenerationsInput);
1123
1255
  if (referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError === null) {
1124
1256
  config.promptTemplateGenerationsInput = untrustedConfig_promptTemplateGenerationsInput;
1125
1257
  }
@@ -0,0 +1,37 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "6458d624e5a1691821c764b6de0badb3";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: EinsteinPromptTemplateGenerationsErrorRepresentation, existing: EinsteinPromptTemplateGenerationsErrorRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateGenerationsErrorRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: EinsteinPromptTemplateGenerationsErrorRepresentationNormalized, incoming: EinsteinPromptTemplateGenerationsErrorRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: EinsteinPromptTemplateGenerationsErrorRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Error output of a EinsteinPromptTemplateGeneration request
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface EinsteinPromptTemplateGenerationsErrorRepresentationNormalized {
17
+ /** This is the error message meant for client consumption. It may differ from the Gateway Error Message */
18
+ errorMessage: string;
19
+ /** HTTP Error Code classifying the error */
20
+ httpErrorCode: string;
21
+ /** This is the localized error message. */
22
+ localizedErrorMessage?: string;
23
+ /** The message code received from the LLM Gateway */
24
+ messageCode: string;
25
+ }
26
+ /**
27
+ * Error output of a EinsteinPromptTemplateGeneration request
28
+ *
29
+ * Keys:
30
+ * (none)
31
+ */
32
+ export interface EinsteinPromptTemplateGenerationsErrorRepresentation {
33
+ errorMessage: string;
34
+ httpErrorCode: string;
35
+ localizedErrorMessage?: string;
36
+ messageCode: string;
37
+ }
@@ -1,8 +1,9 @@
1
+ import { EinsteinPromptTemplateGenerationsErrorRepresentation as EinsteinPromptTemplateGenerationsErrorRepresentation_EinsteinPromptTemplateGenerationsErrorRepresentation } from './EinsteinPromptTemplateGenerationsErrorRepresentation';
1
2
  import { EinsteinLlmGenerationItemRepresentation as EinsteinLlmGenerationItemRepresentation_EinsteinLlmGenerationItemRepresentation } from './EinsteinLlmGenerationItemRepresentation';
2
3
  import { WrappedMap as WrappedMap_WrappedMap } from './WrappedMap';
3
4
  import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
4
5
  export declare const TTL = 100;
5
- export declare const VERSION = "72c96c11855d430a55c0a79c239c0838";
6
+ export declare const VERSION = "a4c71dd12b7b696b7b04ebf6cf5101a3";
6
7
  export declare function validate(obj: any, path?: string): TypeError | null;
7
8
  export declare const RepresentationType: string;
8
9
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -26,6 +27,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
26
27
  * requestId (string): requestId
27
28
  */
28
29
  export interface EinsteinPromptTemplateGenerationsRepresentationNormalized {
30
+ /** generated prompt template generationErrors */
31
+ generationErrors?: Array<EinsteinPromptTemplateGenerationsErrorRepresentation_EinsteinPromptTemplateGenerationsErrorRepresentation>;
29
32
  /** List of generated text */
30
33
  generations: Array<EinsteinLlmGenerationItemRepresentation_EinsteinLlmGenerationItemRepresentation>;
31
34
  /** Any provider specific attributes will be included as part of this object */
@@ -44,6 +47,7 @@ export interface EinsteinPromptTemplateGenerationsRepresentationNormalized {
44
47
  * requestId (string): requestId
45
48
  */
46
49
  export interface EinsteinPromptTemplateGenerationsRepresentation {
50
+ generationErrors?: Array<EinsteinPromptTemplateGenerationsErrorRepresentation_EinsteinPromptTemplateGenerationsErrorRepresentation>;
47
51
  generations: Array<EinsteinLlmGenerationItemRepresentation_EinsteinLlmGenerationItemRepresentation>;
48
52
  parameters: WrappedMap_WrappedMap | null;
49
53
  prompt: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einsteinllm",
3
- "version": "1.266.0-dev24",
3
+ "version": "1.266.0-dev25",
4
4
  "description": "Connect family for Einstein LLM generations",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/service-einsteinllm.js",
@@ -43,11 +43,11 @@
43
43
  "test": "nx build:karma && karma start --single-run"
44
44
  },
45
45
  "dependencies": {
46
- "@salesforce/lds-bindings": "^1.266.0-dev24"
46
+ "@salesforce/lds-bindings": "^1.266.0-dev25"
47
47
  },
48
48
  "devDependencies": {
49
- "@salesforce/lds-compiler-plugins": "^1.266.0-dev24",
50
- "@salesforce/lds-karma": "^1.266.0-dev24"
49
+ "@salesforce/lds-compiler-plugins": "^1.266.0-dev25",
50
+ "@salesforce/lds-karma": "^1.266.0-dev25"
51
51
  },
52
52
  "nx": {
53
53
  "targets": {
package/sfdc/index.js CHANGED
@@ -113,7 +113,7 @@ function createLink(ref) {
113
113
  };
114
114
  }
115
115
 
116
- function validate$9(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
116
+ function validate$a(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
117
117
  const v_error = (() => {
118
118
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
119
119
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -161,8 +161,8 @@ function validate$9(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
161
161
  }
162
162
 
163
163
  const TTL$2 = 100;
164
- const VERSION$4 = "4033328f65865dd5d80c68a7573a4522";
165
- function validate$8(obj, path = 'EinsteinLlmFeedbackRepresentation') {
164
+ const VERSION$5 = "4033328f65865dd5d80c68a7573a4522";
165
+ function validate$9(obj, path = 'EinsteinLlmFeedbackRepresentation') {
166
166
  const v_error = (() => {
167
167
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
168
168
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -188,10 +188,10 @@ function keyBuilderFromType$2(luvio, object) {
188
188
  function normalize$2(input, existing, path, luvio, store, timestamp) {
189
189
  return input;
190
190
  }
191
- const select$7 = function EinsteinLlmFeedbackRepresentationSelect() {
191
+ const select$8 = function EinsteinLlmFeedbackRepresentationSelect() {
192
192
  return {
193
193
  kind: 'Fragment',
194
- version: VERSION$4,
194
+ version: VERSION$5,
195
195
  private: [],
196
196
  selections: [
197
197
  {
@@ -201,7 +201,7 @@ const select$7 = function EinsteinLlmFeedbackRepresentationSelect() {
201
201
  ]
202
202
  };
203
203
  };
204
- function equals$4(existing, incoming) {
204
+ function equals$5(existing, incoming) {
205
205
  const existing_message = existing.message;
206
206
  const incoming_message = incoming.message;
207
207
  if (!(existing_message === incoming_message)) {
@@ -211,14 +211,14 @@ function equals$4(existing, incoming) {
211
211
  }
212
212
  const ingest$2 = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
213
213
  if (process.env.NODE_ENV !== 'production') {
214
- const validateError = validate$8(input);
214
+ const validateError = validate$9(input);
215
215
  if (validateError !== null) {
216
216
  throw validateError;
217
217
  }
218
218
  }
219
219
  const key = keyBuilderFromType$2(luvio, input);
220
220
  const ttlToUse = TTL$2;
221
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$4, RepresentationType$2, equals$4);
221
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$5, RepresentationType$2, equals$5);
222
222
  return createLink(key);
223
223
  };
224
224
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
@@ -231,8 +231,8 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
231
231
  });
232
232
  }
233
233
 
234
- function select$6(luvio, params) {
235
- return select$7();
234
+ function select$7(luvio, params) {
235
+ return select$8();
236
236
  }
237
237
  function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
238
238
  getTypeCacheKeys$2(storeKeyMap, luvio, response);
@@ -243,7 +243,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
243
243
  luvio.storeIngest(key, ingest$2, body);
244
244
  const snapshot = luvio.storeLookup({
245
245
  recordId: key,
246
- node: select$6(),
246
+ node: select$7(),
247
247
  variables: {},
248
248
  });
249
249
  if (process.env.NODE_ENV !== 'production') {
@@ -277,7 +277,7 @@ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(createFeedba
277
277
  function typeCheckConfig$2(untrustedConfig) {
278
278
  const config = {};
279
279
  const untrustedConfig_feedbackInput = untrustedConfig.feedbackInput;
280
- const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$9(untrustedConfig_feedbackInput);
280
+ const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$a(untrustedConfig_feedbackInput);
281
281
  if (referenceEinsteinLlmFeedbackInputRepresentationValidationError === null) {
282
282
  config.feedbackInput = untrustedConfig_feedbackInput;
283
283
  }
@@ -325,7 +325,7 @@ const createFeedbackAdapterFactory = (luvio) => {
325
325
  };
326
326
  };
327
327
 
328
- function validate$7(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
328
+ function validate$8(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
329
329
  const v_error = (() => {
330
330
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
331
331
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -408,7 +408,7 @@ function validate$7(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation'
408
408
  return v_error === undefined ? null : v_error;
409
409
  }
410
410
 
411
- function validate$6(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
411
+ function validate$7(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
412
412
  const v_error = (() => {
413
413
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
414
414
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -416,7 +416,7 @@ function validate$6(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
416
416
  if (obj.additionalConfig !== undefined) {
417
417
  const obj_additionalConfig = obj.additionalConfig;
418
418
  const path_additionalConfig = path + '.additionalConfig';
419
- const referencepath_additionalConfigValidationError = validate$7(obj_additionalConfig, path_additionalConfig);
419
+ const referencepath_additionalConfigValidationError = validate$8(obj_additionalConfig, path_additionalConfig);
420
420
  if (referencepath_additionalConfigValidationError !== null) {
421
421
  let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
422
422
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -439,8 +439,8 @@ function validate$6(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
439
439
  return v_error === undefined ? null : v_error;
440
440
  }
441
441
 
442
- const VERSION$3 = "9b45c0734fec120819b03e3b115caf64";
443
- function validate$5(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
442
+ const VERSION$4 = "9b45c0734fec120819b03e3b115caf64";
443
+ function validate$6(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
444
444
  const v_error = (() => {
445
445
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
446
446
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -463,10 +463,10 @@ function validate$5(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
463
463
  })();
464
464
  return v_error === undefined ? null : v_error;
465
465
  }
466
- const select$5 = function EinsteinLlmGenerationItemRepresentationSelect() {
466
+ const select$6 = function EinsteinLlmGenerationItemRepresentationSelect() {
467
467
  return {
468
468
  kind: 'Fragment',
469
- version: VERSION$3,
469
+ version: VERSION$4,
470
470
  private: [],
471
471
  selections: [
472
472
  {
@@ -484,7 +484,7 @@ const select$5 = function EinsteinLlmGenerationItemRepresentationSelect() {
484
484
  ]
485
485
  };
486
486
  };
487
- function equals$3(existing, incoming) {
487
+ function equals$4(existing, incoming) {
488
488
  const existing_parameters = existing.parameters;
489
489
  const incoming_parameters = incoming.parameters;
490
490
  if (!(existing_parameters === incoming_parameters)) {
@@ -503,8 +503,8 @@ function equals$3(existing, incoming) {
503
503
  return true;
504
504
  }
505
505
 
506
- const VERSION$2 = "4656c961c9d093a9e206c1db7d4de0b0";
507
- function validate$4(obj, path = 'WrappedMap') {
506
+ const VERSION$3 = "4656c961c9d093a9e206c1db7d4de0b0";
507
+ function validate$5(obj, path = 'WrappedMap') {
508
508
  const v_error = (() => {
509
509
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
510
510
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -526,15 +526,15 @@ function validate$4(obj, path = 'WrappedMap') {
526
526
  })();
527
527
  return v_error === undefined ? null : v_error;
528
528
  }
529
- const select$4 = function WrappedMapSelect() {
529
+ const select$5 = function WrappedMapSelect() {
530
530
  return {
531
531
  kind: 'Fragment',
532
- version: VERSION$2,
532
+ version: VERSION$3,
533
533
  private: [],
534
534
  selections: []
535
535
  };
536
536
  };
537
- function equals$2(existing, incoming) {
537
+ function equals$3(existing, incoming) {
538
538
  const existing_wrappedMap = existing.wrappedMap;
539
539
  const incoming_wrappedMap = incoming.wrappedMap;
540
540
  const equals_wrappedMap_props = equalsObject(existing_wrappedMap, incoming_wrappedMap, (existing_wrappedMap_prop, incoming_wrappedMap_prop) => {
@@ -546,8 +546,8 @@ function equals$2(existing, incoming) {
546
546
  }
547
547
 
548
548
  const TTL$1 = 100;
549
- const VERSION$1 = "d8abd72a42e842b253da1c38954dafbc";
550
- function validate$3(obj, path = 'EinsteinLlmGenerationsRepresentation') {
549
+ const VERSION$2 = "d8abd72a42e842b253da1c38954dafbc";
550
+ function validate$4(obj, path = 'EinsteinLlmGenerationsRepresentation') {
551
551
  const v_error = (() => {
552
552
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
553
553
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -560,7 +560,7 @@ function validate$3(obj, path = 'EinsteinLlmGenerationsRepresentation') {
560
560
  for (let i = 0; i < obj_generations.length; i++) {
561
561
  const obj_generations_item = obj_generations[i];
562
562
  const path_generations_item = path_generations + '[' + i + ']';
563
- const referencepath_generations_itemValidationError = validate$5(obj_generations_item, path_generations_item);
563
+ const referencepath_generations_itemValidationError = validate$6(obj_generations_item, path_generations_item);
564
564
  if (referencepath_generations_itemValidationError !== null) {
565
565
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
566
566
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -571,7 +571,7 @@ function validate$3(obj, path = 'EinsteinLlmGenerationsRepresentation') {
571
571
  const path_parameters = path + '.parameters';
572
572
  let obj_parameters_union0 = null;
573
573
  const obj_parameters_union0_error = (() => {
574
- const referencepath_parametersValidationError = validate$4(obj_parameters, path_parameters);
574
+ const referencepath_parametersValidationError = validate$5(obj_parameters, path_parameters);
575
575
  if (referencepath_parametersValidationError !== null) {
576
576
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
577
577
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -643,12 +643,12 @@ function keyBuilderFromType$1(luvio, object) {
643
643
  function normalize$1(input, existing, path, luvio, store, timestamp) {
644
644
  return input;
645
645
  }
646
- const select$3 = function EinsteinLlmGenerationsRepresentationSelect() {
647
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$5();
648
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$4();
646
+ const select$4 = function EinsteinLlmGenerationsRepresentationSelect() {
647
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$6();
648
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$5();
649
649
  return {
650
650
  kind: 'Fragment',
651
- version: VERSION$1,
651
+ version: VERSION$2,
652
652
  private: [],
653
653
  selections: [
654
654
  {
@@ -674,7 +674,7 @@ const select$3 = function EinsteinLlmGenerationsRepresentationSelect() {
674
674
  ]
675
675
  };
676
676
  };
677
- function equals$1(existing, incoming) {
677
+ function equals$2(existing, incoming) {
678
678
  const existing_requestId = existing.requestId;
679
679
  const incoming_requestId = incoming.requestId;
680
680
  if (!(existing_requestId === incoming_requestId)) {
@@ -683,7 +683,7 @@ function equals$1(existing, incoming) {
683
683
  const existing_generations = existing.generations;
684
684
  const incoming_generations = incoming.generations;
685
685
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
686
- if (!(equals$3(existing_generations_item, incoming_generations_item))) {
686
+ if (!(equals$4(existing_generations_item, incoming_generations_item))) {
687
687
  return false;
688
688
  }
689
689
  });
@@ -695,7 +695,7 @@ function equals$1(existing, incoming) {
695
695
  if (!(existing_parameters === incoming_parameters
696
696
  || (existing_parameters != null &&
697
697
  incoming_parameters != null &&
698
- equals$2(existing_parameters, incoming_parameters)))) {
698
+ equals$3(existing_parameters, incoming_parameters)))) {
699
699
  return false;
700
700
  }
701
701
  const existing_prompt = existing.prompt;
@@ -707,14 +707,14 @@ function equals$1(existing, incoming) {
707
707
  }
708
708
  const ingest$1 = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
709
709
  if (process.env.NODE_ENV !== 'production') {
710
- const validateError = validate$3(input);
710
+ const validateError = validate$4(input);
711
711
  if (validateError !== null) {
712
712
  throw validateError;
713
713
  }
714
714
  }
715
715
  const key = keyBuilderFromType$1(luvio, input);
716
716
  const ttlToUse = TTL$1;
717
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "EinsteinLLM", VERSION$1, RepresentationType$1, equals$1);
717
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "EinsteinLLM", VERSION$2, RepresentationType$1, equals$2);
718
718
  return createLink(key);
719
719
  };
720
720
  function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
@@ -727,8 +727,8 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
727
727
  });
728
728
  }
729
729
 
730
- function select$2(luvio, params) {
731
- return select$3();
730
+ function select$3(luvio, params) {
731
+ return select$4();
732
732
  }
733
733
  function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
734
734
  getTypeCacheKeys$1(storeKeyMap, luvio, response);
@@ -739,7 +739,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
739
739
  luvio.storeIngest(key, ingest$1, body);
740
740
  const snapshot = luvio.storeLookup({
741
741
  recordId: key,
742
- node: select$2(),
742
+ node: select$3(),
743
743
  variables: {},
744
744
  });
745
745
  if (process.env.NODE_ENV !== 'production') {
@@ -773,7 +773,7 @@ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(createGenera
773
773
  function typeCheckConfig$1(untrustedConfig) {
774
774
  const config = {};
775
775
  const untrustedConfig_generationsInput = untrustedConfig.generationsInput;
776
- const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$6(untrustedConfig_generationsInput);
776
+ const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$7(untrustedConfig_generationsInput);
777
777
  if (referenceEinsteinLlmGenerationsInputRepresentationValidationError === null) {
778
778
  config.generationsInput = untrustedConfig_generationsInput;
779
779
  }
@@ -821,7 +821,7 @@ const createGenerationsAdapterFactory = (luvio) => {
821
821
  };
822
822
  };
823
823
 
824
- function validate$2(obj, path = 'WrappedValueMap') {
824
+ function validate$3(obj, path = 'WrappedValueMap') {
825
825
  const v_error = (() => {
826
826
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
827
827
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -844,7 +844,7 @@ function validate$2(obj, path = 'WrappedValueMap') {
844
844
  return v_error === undefined ? null : v_error;
845
845
  }
846
846
 
847
- function validate$1(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
847
+ function validate$2(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
848
848
  const v_error = (() => {
849
849
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
850
850
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -852,7 +852,7 @@ function validate$1(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
852
852
  if (obj.additionalConfig !== undefined) {
853
853
  const obj_additionalConfig = obj.additionalConfig;
854
854
  const path_additionalConfig = path + '.additionalConfig';
855
- const referencepath_additionalConfigValidationError = validate$7(obj_additionalConfig, path_additionalConfig);
855
+ const referencepath_additionalConfigValidationError = validate$8(obj_additionalConfig, path_additionalConfig);
856
856
  if (referencepath_additionalConfigValidationError !== null) {
857
857
  let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
858
858
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -861,7 +861,7 @@ function validate$1(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
861
861
  }
862
862
  const obj_inputParams = obj.inputParams;
863
863
  const path_inputParams = path + '.inputParams';
864
- const referencepath_inputParamsValidationError = validate$2(obj_inputParams, path_inputParams);
864
+ const referencepath_inputParamsValidationError = validate$3(obj_inputParams, path_inputParams);
865
865
  if (referencepath_inputParamsValidationError !== null) {
866
866
  let message = 'Object doesn\'t match WrappedValueMap (at "' + path_inputParams + '")\n';
867
867
  message += referencepath_inputParamsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -883,13 +883,119 @@ function validate$1(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
883
883
  return v_error === undefined ? null : v_error;
884
884
  }
885
885
 
886
+ const VERSION$1 = "6458d624e5a1691821c764b6de0badb3";
887
+ function validate$1(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresentation') {
888
+ const v_error = (() => {
889
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
890
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
891
+ }
892
+ const obj_errorMessage = obj.errorMessage;
893
+ const path_errorMessage = path + '.errorMessage';
894
+ if (typeof obj_errorMessage !== 'string') {
895
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
896
+ }
897
+ const obj_httpErrorCode = obj.httpErrorCode;
898
+ const path_httpErrorCode = path + '.httpErrorCode';
899
+ if (typeof obj_httpErrorCode !== 'string') {
900
+ return new TypeError('Expected "string" but received "' + typeof obj_httpErrorCode + '" (at "' + path_httpErrorCode + '")');
901
+ }
902
+ if (obj.localizedErrorMessage !== undefined) {
903
+ const obj_localizedErrorMessage = obj.localizedErrorMessage;
904
+ const path_localizedErrorMessage = path + '.localizedErrorMessage';
905
+ if (typeof obj_localizedErrorMessage !== 'string') {
906
+ return new TypeError('Expected "string" but received "' + typeof obj_localizedErrorMessage + '" (at "' + path_localizedErrorMessage + '")');
907
+ }
908
+ }
909
+ const obj_messageCode = obj.messageCode;
910
+ const path_messageCode = path + '.messageCode';
911
+ if (typeof obj_messageCode !== 'string') {
912
+ return new TypeError('Expected "string" but received "' + typeof obj_messageCode + '" (at "' + path_messageCode + '")');
913
+ }
914
+ })();
915
+ return v_error === undefined ? null : v_error;
916
+ }
917
+ const select$2 = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
918
+ return {
919
+ kind: 'Fragment',
920
+ version: VERSION$1,
921
+ private: [],
922
+ selections: [
923
+ {
924
+ name: 'errorMessage',
925
+ kind: 'Scalar'
926
+ },
927
+ {
928
+ name: 'httpErrorCode',
929
+ kind: 'Scalar'
930
+ },
931
+ {
932
+ name: 'localizedErrorMessage',
933
+ kind: 'Scalar',
934
+ required: false
935
+ },
936
+ {
937
+ name: 'messageCode',
938
+ kind: 'Scalar'
939
+ }
940
+ ]
941
+ };
942
+ };
943
+ function equals$1(existing, incoming) {
944
+ const existing_errorMessage = existing.errorMessage;
945
+ const incoming_errorMessage = incoming.errorMessage;
946
+ if (!(existing_errorMessage === incoming_errorMessage)) {
947
+ return false;
948
+ }
949
+ const existing_httpErrorCode = existing.httpErrorCode;
950
+ const incoming_httpErrorCode = incoming.httpErrorCode;
951
+ if (!(existing_httpErrorCode === incoming_httpErrorCode)) {
952
+ return false;
953
+ }
954
+ const existing_localizedErrorMessage = existing.localizedErrorMessage;
955
+ const incoming_localizedErrorMessage = incoming.localizedErrorMessage;
956
+ // if at least one of these optionals is defined
957
+ if (existing_localizedErrorMessage !== undefined || incoming_localizedErrorMessage !== undefined) {
958
+ // if one of these is not defined we know the other is defined and therefore
959
+ // not equal
960
+ if (existing_localizedErrorMessage === undefined || incoming_localizedErrorMessage === undefined) {
961
+ return false;
962
+ }
963
+ if (!(existing_localizedErrorMessage === incoming_localizedErrorMessage)) {
964
+ return false;
965
+ }
966
+ }
967
+ const existing_messageCode = existing.messageCode;
968
+ const incoming_messageCode = incoming.messageCode;
969
+ if (!(existing_messageCode === incoming_messageCode)) {
970
+ return false;
971
+ }
972
+ return true;
973
+ }
974
+
886
975
  const TTL = 100;
887
- const VERSION = "72c96c11855d430a55c0a79c239c0838";
976
+ const VERSION = "a4c71dd12b7b696b7b04ebf6cf5101a3";
888
977
  function validate(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
889
978
  const v_error = (() => {
890
979
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
891
980
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
892
981
  }
982
+ if (obj.generationErrors !== undefined) {
983
+ const obj_generationErrors = obj.generationErrors;
984
+ const path_generationErrors = path + '.generationErrors';
985
+ if (!ArrayIsArray(obj_generationErrors)) {
986
+ return new TypeError('Expected "array" but received "' + typeof obj_generationErrors + '" (at "' + path_generationErrors + '")');
987
+ }
988
+ for (let i = 0; i < obj_generationErrors.length; i++) {
989
+ const obj_generationErrors_item = obj_generationErrors[i];
990
+ const path_generationErrors_item = path_generationErrors + '[' + i + ']';
991
+ const referencepath_generationErrors_itemValidationError = validate$1(obj_generationErrors_item, path_generationErrors_item);
992
+ if (referencepath_generationErrors_itemValidationError !== null) {
993
+ let message = 'Object doesn\'t match EinsteinPromptTemplateGenerationsErrorRepresentation (at "' + path_generationErrors_item + '")\n';
994
+ message += referencepath_generationErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
995
+ return new TypeError(message);
996
+ }
997
+ }
998
+ }
893
999
  const obj_generations = obj.generations;
894
1000
  const path_generations = path + '.generations';
895
1001
  if (!ArrayIsArray(obj_generations)) {
@@ -898,7 +1004,7 @@ function validate(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation')
898
1004
  for (let i = 0; i < obj_generations.length; i++) {
899
1005
  const obj_generations_item = obj_generations[i];
900
1006
  const path_generations_item = path_generations + '[' + i + ']';
901
- const referencepath_generations_itemValidationError = validate$5(obj_generations_item, path_generations_item);
1007
+ const referencepath_generations_itemValidationError = validate$6(obj_generations_item, path_generations_item);
902
1008
  if (referencepath_generations_itemValidationError !== null) {
903
1009
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
904
1010
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -909,7 +1015,7 @@ function validate(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation')
909
1015
  const path_parameters = path + '.parameters';
910
1016
  let obj_parameters_union0 = null;
911
1017
  const obj_parameters_union0_error = (() => {
912
- const referencepath_parametersValidationError = validate$4(obj_parameters, path_parameters);
1018
+ const referencepath_parametersValidationError = validate$5(obj_parameters, path_parameters);
913
1019
  if (referencepath_parametersValidationError !== null) {
914
1020
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
915
1021
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -987,13 +1093,21 @@ function normalize(input, existing, path, luvio, store, timestamp) {
987
1093
  return input;
988
1094
  }
989
1095
  const select$1 = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
990
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$5();
991
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$4();
1096
+ const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$2();
1097
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$6();
1098
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$5();
992
1099
  return {
993
1100
  kind: 'Fragment',
994
1101
  version: VERSION,
995
1102
  private: [],
996
1103
  selections: [
1104
+ {
1105
+ name: 'generationErrors',
1106
+ kind: 'Object',
1107
+ plural: true,
1108
+ selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections,
1109
+ required: false
1110
+ },
997
1111
  {
998
1112
  name: 'generations',
999
1113
  kind: 'Object',
@@ -1032,10 +1146,28 @@ function equals(existing, incoming) {
1032
1146
  if (!(existing_requestId === incoming_requestId)) {
1033
1147
  return false;
1034
1148
  }
1149
+ const existing_generationErrors = existing.generationErrors;
1150
+ const incoming_generationErrors = incoming.generationErrors;
1151
+ // if at least one of these optionals is defined
1152
+ if (existing_generationErrors !== undefined || incoming_generationErrors !== undefined) {
1153
+ // if one of these is not defined we know the other is defined and therefore
1154
+ // not equal
1155
+ if (existing_generationErrors === undefined || incoming_generationErrors === undefined) {
1156
+ return false;
1157
+ }
1158
+ const equals_generationErrors_items = equalsArray(existing_generationErrors, incoming_generationErrors, (existing_generationErrors_item, incoming_generationErrors_item) => {
1159
+ if (!(equals$1(existing_generationErrors_item, incoming_generationErrors_item))) {
1160
+ return false;
1161
+ }
1162
+ });
1163
+ if (equals_generationErrors_items === false) {
1164
+ return false;
1165
+ }
1166
+ }
1035
1167
  const existing_generations = existing.generations;
1036
1168
  const incoming_generations = incoming.generations;
1037
1169
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
1038
- if (!(equals$3(existing_generations_item, incoming_generations_item))) {
1170
+ if (!(equals$4(existing_generations_item, incoming_generations_item))) {
1039
1171
  return false;
1040
1172
  }
1041
1173
  });
@@ -1047,7 +1179,7 @@ function equals(existing, incoming) {
1047
1179
  if (!(existing_parameters === incoming_parameters
1048
1180
  || (existing_parameters != null &&
1049
1181
  incoming_parameters != null &&
1050
- equals$2(existing_parameters, incoming_parameters)))) {
1182
+ equals$3(existing_parameters, incoming_parameters)))) {
1051
1183
  return false;
1052
1184
  }
1053
1185
  const existing_prompt = existing.prompt;
@@ -1128,7 +1260,7 @@ function typeCheckConfig(untrustedConfig) {
1128
1260
  const config = {};
1129
1261
  typeCheckConfig$3(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
1130
1262
  const untrustedConfig_promptTemplateGenerationsInput = untrustedConfig.promptTemplateGenerationsInput;
1131
- const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$1(untrustedConfig_promptTemplateGenerationsInput);
1263
+ const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$2(untrustedConfig_promptTemplateGenerationsInput);
1132
1264
  if (referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError === null) {
1133
1265
  config.promptTemplateGenerationsInput = untrustedConfig_promptTemplateGenerationsInput;
1134
1266
  }
@@ -1200,4 +1332,4 @@ withDefaultLuvio((luvio) => {
1200
1332
  });
1201
1333
 
1202
1334
  export { createFeedback, createGenerations, createGenerationsForPromptTemplate };
1203
- // version: 1.266.0-dev24-0b4af2a22
1335
+ // version: 1.266.0-dev25-12da0454b
package/src/raml/api.raml CHANGED
@@ -2,7 +2,7 @@
2
2
  securedBy:
3
3
  - OAuth2
4
4
  title: Salesforce Connect API
5
- version: '59.0'
5
+ version: '60.0'
6
6
  mediaType: application/json
7
7
  protocols:
8
8
  - https
@@ -198,6 +198,24 @@ types:
198
198
  promptTemplateGenerationsInput:
199
199
  description: Set the parameters for prompt template message generation
200
200
  type: EinsteinPromptTemplateGenerationsInputRepresentation
201
+ EinsteinPromptTemplateGenerationsErrorRepresentation:
202
+ description: Error output of a EinsteinPromptTemplateGeneration request
203
+ type: object
204
+ properties:
205
+ errorMessage:
206
+ description: This is the error message meant for client consumption. It may
207
+ differ from the Gateway Error Message
208
+ type: string
209
+ httpErrorCode:
210
+ description: HTTP Error Code classifying the error
211
+ type: string
212
+ localizedErrorMessage:
213
+ description: This is the localized error message.
214
+ type: string
215
+ required: false # TODO Hand-rolled W-9314597
216
+ messageCode:
217
+ description: The message code received from the LLM Gateway
218
+ type: string
201
219
  EinsteinPromptTemplateGenerationsInputRepresentation:
202
220
  description: Input representation for generating prompt template responses with
203
221
  Einstein LLM
@@ -226,6 +244,12 @@ types:
226
244
  description: Output of a einstein llm generations response for given prompt template
227
245
  type: object
228
246
  properties:
247
+ generationErrors:
248
+ description: generated prompt template generationErrors
249
+ type: array
250
+ required: false # TODO Hand-rolled W-9314597
251
+ items:
252
+ type: EinsteinPromptTemplateGenerationsErrorRepresentation
229
253
  generations:
230
254
  description: List of generated text
231
255
  type: array