@salesforce/lds-adapters-service-einsteinllm 1.293.0 → 1.294.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.
@@ -104,7 +104,7 @@ function createLink(ref) {
104
104
  };
105
105
  }
106
106
 
107
- function validate$c(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
107
+ function validate$f(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
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 + '")');
@@ -152,8 +152,8 @@ function validate$c(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
152
152
  }
153
153
 
154
154
  const TTL$2 = 100;
155
- const VERSION$7 = "4033328f65865dd5d80c68a7573a4522";
156
- function validate$b(obj, path = 'EinsteinLlmFeedbackRepresentation') {
155
+ const VERSION$a = "4033328f65865dd5d80c68a7573a4522";
156
+ function validate$e(obj, path = 'EinsteinLlmFeedbackRepresentation') {
157
157
  const v_error = (() => {
158
158
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
159
159
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -179,10 +179,10 @@ function keyBuilderFromType$2(luvio, object) {
179
179
  function normalize$2(input, existing, path, luvio, store, timestamp) {
180
180
  return input;
181
181
  }
182
- const select$a = function EinsteinLlmFeedbackRepresentationSelect() {
182
+ const select$d = function EinsteinLlmFeedbackRepresentationSelect() {
183
183
  return {
184
184
  kind: 'Fragment',
185
- version: VERSION$7,
185
+ version: VERSION$a,
186
186
  private: [],
187
187
  selections: [
188
188
  {
@@ -192,7 +192,7 @@ const select$a = function EinsteinLlmFeedbackRepresentationSelect() {
192
192
  ]
193
193
  };
194
194
  };
195
- function equals$7(existing, incoming) {
195
+ function equals$a(existing, incoming) {
196
196
  const existing_message = existing.message;
197
197
  const incoming_message = incoming.message;
198
198
  if (!(existing_message === incoming_message)) {
@@ -202,14 +202,14 @@ function equals$7(existing, incoming) {
202
202
  }
203
203
  const ingest$2 = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
204
204
  if (process.env.NODE_ENV !== 'production') {
205
- const validateError = validate$b(input);
205
+ const validateError = validate$e(input);
206
206
  if (validateError !== null) {
207
207
  throw validateError;
208
208
  }
209
209
  }
210
210
  const key = keyBuilderFromType$2(luvio, input);
211
211
  const ttlToUse = TTL$2;
212
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$7, RepresentationType$2, equals$7);
212
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "EinsteinLLM", VERSION$a, RepresentationType$2, equals$a);
213
213
  return createLink(key);
214
214
  };
215
215
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
@@ -222,8 +222,8 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
222
222
  });
223
223
  }
224
224
 
225
- function select$9(luvio, params) {
226
- return select$a();
225
+ function select$c(luvio, params) {
226
+ return select$d();
227
227
  }
228
228
  function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
229
229
  getTypeCacheKeys$2(storeKeyMap, luvio, response);
@@ -234,7 +234,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
234
234
  luvio.storeIngest(key, ingest$2, body);
235
235
  const snapshot = luvio.storeLookup({
236
236
  recordId: key,
237
- node: select$9(),
237
+ node: select$c(),
238
238
  variables: {},
239
239
  });
240
240
  if (process.env.NODE_ENV !== 'production') {
@@ -268,7 +268,7 @@ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(createFeedba
268
268
  function typeCheckConfig$2(untrustedConfig) {
269
269
  const config = {};
270
270
  const untrustedConfig_feedbackInput = untrustedConfig.feedbackInput;
271
- const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$c(untrustedConfig_feedbackInput);
271
+ const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$f(untrustedConfig_feedbackInput);
272
272
  if (referenceEinsteinLlmFeedbackInputRepresentationValidationError === null) {
273
273
  config.feedbackInput = untrustedConfig_feedbackInput;
274
274
  }
@@ -316,7 +316,7 @@ const createFeedbackAdapterFactory = (luvio) => {
316
316
  };
317
317
  };
318
318
 
319
- function validate$a(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
319
+ function validate$d(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation') {
320
320
  const v_error = (() => {
321
321
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
322
322
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -399,7 +399,7 @@ function validate$a(obj, path = 'EinsteinLlmAdditionalConfigInputRepresentation'
399
399
  return v_error === undefined ? null : v_error;
400
400
  }
401
401
 
402
- function validate$9(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
402
+ function validate$c(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
403
403
  const v_error = (() => {
404
404
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
405
405
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -407,7 +407,7 @@ function validate$9(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
407
407
  if (obj.additionalConfig !== undefined) {
408
408
  const obj_additionalConfig = obj.additionalConfig;
409
409
  const path_additionalConfig = path + '.additionalConfig';
410
- const referencepath_additionalConfigValidationError = validate$a(obj_additionalConfig, path_additionalConfig);
410
+ const referencepath_additionalConfigValidationError = validate$d(obj_additionalConfig, path_additionalConfig);
411
411
  if (referencepath_additionalConfigValidationError !== null) {
412
412
  let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
413
413
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -430,8 +430,8 @@ function validate$9(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
430
430
  return v_error === undefined ? null : v_error;
431
431
  }
432
432
 
433
- const VERSION$6 = "9ebac74e6f964c363d5fd1913df363af";
434
- function validate$8(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
433
+ const VERSION$9 = "9ebac74e6f964c363d5fd1913df363af";
434
+ function validate$b(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
435
435
  const v_error = (() => {
436
436
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
437
437
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -467,10 +467,10 @@ function validate$8(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentat
467
467
  })();
468
468
  return v_error === undefined ? null : v_error;
469
469
  }
470
- const select$8 = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
470
+ const select$b = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
471
471
  return {
472
472
  kind: 'Fragment',
473
- version: VERSION$6,
473
+ version: VERSION$9,
474
474
  private: [],
475
475
  selections: [
476
476
  {
@@ -481,7 +481,7 @@ const select$8 = function EinsteinLlmGenerationsContentQualityRepresentationSele
481
481
  ]
482
482
  };
483
483
  };
484
- function equals$6(existing, incoming) {
484
+ function equals$9(existing, incoming) {
485
485
  const existing_isToxicityDetected = existing.isToxicityDetected;
486
486
  const incoming_isToxicityDetected = incoming.isToxicityDetected;
487
487
  // if at least one of these optionals is defined
@@ -498,8 +498,8 @@ function equals$6(existing, incoming) {
498
498
  return true;
499
499
  }
500
500
 
501
- const VERSION$5 = "77af44a252cb5b45b4d9a8101368d2aa";
502
- function validate$7(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
501
+ const VERSION$8 = "77af44a252cb5b45b4d9a8101368d2aa";
502
+ function validate$a(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
503
503
  const v_error = (() => {
504
504
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
505
505
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -703,10 +703,10 @@ function validate$7(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation
703
703
  })();
704
704
  return v_error === undefined ? null : v_error;
705
705
  }
706
- const select$7 = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
706
+ const select$a = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
707
707
  return {
708
708
  kind: 'Fragment',
709
- version: VERSION$5,
709
+ version: VERSION$8,
710
710
  private: [],
711
711
  selections: [
712
712
  {
@@ -747,7 +747,7 @@ const select$7 = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect(
747
747
  ]
748
748
  };
749
749
  };
750
- function equals$5(existing, incoming) {
750
+ function equals$8(existing, incoming) {
751
751
  const existing_hateScore = existing.hateScore;
752
752
  const incoming_hateScore = incoming.hateScore;
753
753
  // if at least one of these optionals is defined
@@ -842,8 +842,8 @@ function equals$5(existing, incoming) {
842
842
  return true;
843
843
  }
844
844
 
845
- const VERSION$4 = "aebe0f32437ab18bd126a1fb5ff48d9b";
846
- function validate$6(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
845
+ const VERSION$7 = "aebe0f32437ab18bd126a1fb5ff48d9b";
846
+ function validate$9(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
847
847
  const v_error = (() => {
848
848
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
849
849
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -853,7 +853,7 @@ function validate$6(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
853
853
  const path_contentQualityRepresentation = path + '.contentQualityRepresentation';
854
854
  let obj_contentQualityRepresentation_union0 = null;
855
855
  const obj_contentQualityRepresentation_union0_error = (() => {
856
- const referencepath_contentQualityRepresentationValidationError = validate$8(obj_contentQualityRepresentation, path_contentQualityRepresentation);
856
+ const referencepath_contentQualityRepresentationValidationError = validate$b(obj_contentQualityRepresentation, path_contentQualityRepresentation);
857
857
  if (referencepath_contentQualityRepresentationValidationError !== null) {
858
858
  let message = 'Object doesn\'t match EinsteinLlmGenerationsContentQualityRepresentation (at "' + path_contentQualityRepresentation + '")\n';
859
859
  message += referencepath_contentQualityRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -894,7 +894,7 @@ function validate$6(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
894
894
  const path_safetyScoreRepresentation = path + '.safetyScoreRepresentation';
895
895
  let obj_safetyScoreRepresentation_union0 = null;
896
896
  const obj_safetyScoreRepresentation_union0_error = (() => {
897
- const referencepath_safetyScoreRepresentationValidationError = validate$7(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
897
+ const referencepath_safetyScoreRepresentationValidationError = validate$a(obj_safetyScoreRepresentation, path_safetyScoreRepresentation);
898
898
  if (referencepath_safetyScoreRepresentationValidationError !== null) {
899
899
  let message = 'Object doesn\'t match EinsteinLlmGenerationsSafetyScoreRepresentation (at "' + path_safetyScoreRepresentation + '")\n';
900
900
  message += referencepath_safetyScoreRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -928,12 +928,12 @@ function validate$6(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
928
928
  })();
929
929
  return v_error === undefined ? null : v_error;
930
930
  }
931
- const select$6 = function EinsteinLlmGenerationItemRepresentationSelect() {
932
- const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$8();
933
- const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$7();
931
+ const select$9 = function EinsteinLlmGenerationItemRepresentationSelect() {
932
+ const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$b();
933
+ const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$a();
934
934
  return {
935
935
  kind: 'Fragment',
936
- version: VERSION$4,
936
+ version: VERSION$7,
937
937
  private: [],
938
938
  selections: [
939
939
  {
@@ -965,7 +965,7 @@ const select$6 = function EinsteinLlmGenerationItemRepresentationSelect() {
965
965
  ]
966
966
  };
967
967
  };
968
- function equals$4(existing, incoming) {
968
+ function equals$7(existing, incoming) {
969
969
  const existing_parameters = existing.parameters;
970
970
  const incoming_parameters = incoming.parameters;
971
971
  if (!(existing_parameters === incoming_parameters)) {
@@ -993,7 +993,7 @@ function equals$4(existing, incoming) {
993
993
  if (!(existing_contentQualityRepresentation === incoming_contentQualityRepresentation
994
994
  || (existing_contentQualityRepresentation != null &&
995
995
  incoming_contentQualityRepresentation != null &&
996
- equals$6(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
996
+ equals$9(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
997
997
  return false;
998
998
  }
999
999
  }
@@ -1009,15 +1009,15 @@ function equals$4(existing, incoming) {
1009
1009
  if (!(existing_safetyScoreRepresentation === incoming_safetyScoreRepresentation
1010
1010
  || (existing_safetyScoreRepresentation != null &&
1011
1011
  incoming_safetyScoreRepresentation != null &&
1012
- equals$5(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1012
+ equals$8(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1013
1013
  return false;
1014
1014
  }
1015
1015
  }
1016
1016
  return true;
1017
1017
  }
1018
1018
 
1019
- const VERSION$3 = "4656c961c9d093a9e206c1db7d4de0b0";
1020
- function validate$5(obj, path = 'WrappedMap') {
1019
+ const VERSION$6 = "4656c961c9d093a9e206c1db7d4de0b0";
1020
+ function validate$8(obj, path = 'WrappedMap') {
1021
1021
  const v_error = (() => {
1022
1022
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1023
1023
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1039,15 +1039,15 @@ function validate$5(obj, path = 'WrappedMap') {
1039
1039
  })();
1040
1040
  return v_error === undefined ? null : v_error;
1041
1041
  }
1042
- const select$5 = function WrappedMapSelect() {
1042
+ const select$8 = function WrappedMapSelect() {
1043
1043
  return {
1044
1044
  kind: 'Fragment',
1045
- version: VERSION$3,
1045
+ version: VERSION$6,
1046
1046
  private: [],
1047
1047
  selections: []
1048
1048
  };
1049
1049
  };
1050
- function equals$3(existing, incoming) {
1050
+ function equals$6(existing, incoming) {
1051
1051
  const existing_wrappedMap = existing.wrappedMap;
1052
1052
  const incoming_wrappedMap = incoming.wrappedMap;
1053
1053
  const equals_wrappedMap_props = equalsObject(existing_wrappedMap, incoming_wrappedMap, (existing_wrappedMap_prop, incoming_wrappedMap_prop) => {
@@ -1059,8 +1059,8 @@ function equals$3(existing, incoming) {
1059
1059
  }
1060
1060
 
1061
1061
  const TTL$1 = 100;
1062
- const VERSION$2 = "d8abd72a42e842b253da1c38954dafbc";
1063
- function validate$4(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1062
+ const VERSION$5 = "d8abd72a42e842b253da1c38954dafbc";
1063
+ function validate$7(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1064
1064
  const v_error = (() => {
1065
1065
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1066
1066
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1073,7 +1073,7 @@ function validate$4(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1073
1073
  for (let i = 0; i < obj_generations.length; i++) {
1074
1074
  const obj_generations_item = obj_generations[i];
1075
1075
  const path_generations_item = path_generations + '[' + i + ']';
1076
- const referencepath_generations_itemValidationError = validate$6(obj_generations_item, path_generations_item);
1076
+ const referencepath_generations_itemValidationError = validate$9(obj_generations_item, path_generations_item);
1077
1077
  if (referencepath_generations_itemValidationError !== null) {
1078
1078
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
1079
1079
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1084,7 +1084,7 @@ function validate$4(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1084
1084
  const path_parameters = path + '.parameters';
1085
1085
  let obj_parameters_union0 = null;
1086
1086
  const obj_parameters_union0_error = (() => {
1087
- const referencepath_parametersValidationError = validate$5(obj_parameters, path_parameters);
1087
+ const referencepath_parametersValidationError = validate$8(obj_parameters, path_parameters);
1088
1088
  if (referencepath_parametersValidationError !== null) {
1089
1089
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
1090
1090
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1156,12 +1156,12 @@ function keyBuilderFromType$1(luvio, object) {
1156
1156
  function normalize$1(input, existing, path, luvio, store, timestamp) {
1157
1157
  return input;
1158
1158
  }
1159
- const select$4 = function EinsteinLlmGenerationsRepresentationSelect() {
1160
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$6();
1161
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$5();
1159
+ const select$7 = function EinsteinLlmGenerationsRepresentationSelect() {
1160
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$9();
1161
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$8();
1162
1162
  return {
1163
1163
  kind: 'Fragment',
1164
- version: VERSION$2,
1164
+ version: VERSION$5,
1165
1165
  private: [],
1166
1166
  selections: [
1167
1167
  {
@@ -1187,7 +1187,7 @@ const select$4 = function EinsteinLlmGenerationsRepresentationSelect() {
1187
1187
  ]
1188
1188
  };
1189
1189
  };
1190
- function equals$2(existing, incoming) {
1190
+ function equals$5(existing, incoming) {
1191
1191
  const existing_requestId = existing.requestId;
1192
1192
  const incoming_requestId = incoming.requestId;
1193
1193
  if (!(existing_requestId === incoming_requestId)) {
@@ -1196,7 +1196,7 @@ function equals$2(existing, incoming) {
1196
1196
  const existing_generations = existing.generations;
1197
1197
  const incoming_generations = incoming.generations;
1198
1198
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
1199
- if (!(equals$4(existing_generations_item, incoming_generations_item))) {
1199
+ if (!(equals$7(existing_generations_item, incoming_generations_item))) {
1200
1200
  return false;
1201
1201
  }
1202
1202
  });
@@ -1208,7 +1208,7 @@ function equals$2(existing, incoming) {
1208
1208
  if (!(existing_parameters === incoming_parameters
1209
1209
  || (existing_parameters != null &&
1210
1210
  incoming_parameters != null &&
1211
- equals$3(existing_parameters, incoming_parameters)))) {
1211
+ equals$6(existing_parameters, incoming_parameters)))) {
1212
1212
  return false;
1213
1213
  }
1214
1214
  const existing_prompt = existing.prompt;
@@ -1220,14 +1220,14 @@ function equals$2(existing, incoming) {
1220
1220
  }
1221
1221
  const ingest$1 = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
1222
1222
  if (process.env.NODE_ENV !== 'production') {
1223
- const validateError = validate$4(input);
1223
+ const validateError = validate$7(input);
1224
1224
  if (validateError !== null) {
1225
1225
  throw validateError;
1226
1226
  }
1227
1227
  }
1228
1228
  const key = keyBuilderFromType$1(luvio, input);
1229
1229
  const ttlToUse = TTL$1;
1230
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "EinsteinLLM", VERSION$2, RepresentationType$1, equals$2);
1230
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "EinsteinLLM", VERSION$5, RepresentationType$1, equals$5);
1231
1231
  return createLink(key);
1232
1232
  };
1233
1233
  function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
@@ -1240,8 +1240,8 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
1240
1240
  });
1241
1241
  }
1242
1242
 
1243
- function select$3(luvio, params) {
1244
- return select$4();
1243
+ function select$6(luvio, params) {
1244
+ return select$7();
1245
1245
  }
1246
1246
  function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1247
1247
  getTypeCacheKeys$1(storeKeyMap, luvio, response);
@@ -1252,7 +1252,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
1252
1252
  luvio.storeIngest(key, ingest$1, body);
1253
1253
  const snapshot = luvio.storeLookup({
1254
1254
  recordId: key,
1255
- node: select$3(),
1255
+ node: select$6(),
1256
1256
  variables: {},
1257
1257
  });
1258
1258
  if (process.env.NODE_ENV !== 'production') {
@@ -1286,7 +1286,7 @@ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(createGenera
1286
1286
  function typeCheckConfig$1(untrustedConfig) {
1287
1287
  const config = {};
1288
1288
  const untrustedConfig_generationsInput = untrustedConfig.generationsInput;
1289
- const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$9(untrustedConfig_generationsInput);
1289
+ const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$c(untrustedConfig_generationsInput);
1290
1290
  if (referenceEinsteinLlmGenerationsInputRepresentationValidationError === null) {
1291
1291
  config.generationsInput = untrustedConfig_generationsInput;
1292
1292
  }
@@ -1334,7 +1334,7 @@ const createGenerationsAdapterFactory = (luvio) => {
1334
1334
  };
1335
1335
  };
1336
1336
 
1337
- function validate$3(obj, path = 'WrappedValueMap') {
1337
+ function validate$6(obj, path = 'WrappedValueMap') {
1338
1338
  const v_error = (() => {
1339
1339
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1340
1340
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1357,7 +1357,7 @@ function validate$3(obj, path = 'WrappedValueMap') {
1357
1357
  return v_error === undefined ? null : v_error;
1358
1358
  }
1359
1359
 
1360
- function validate$2(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
1360
+ function validate$5(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresentation') {
1361
1361
  const v_error = (() => {
1362
1362
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1363
1363
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1365,7 +1365,7 @@ function validate$2(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
1365
1365
  if (obj.additionalConfig !== undefined) {
1366
1366
  const obj_additionalConfig = obj.additionalConfig;
1367
1367
  const path_additionalConfig = path + '.additionalConfig';
1368
- const referencepath_additionalConfigValidationError = validate$a(obj_additionalConfig, path_additionalConfig);
1368
+ const referencepath_additionalConfigValidationError = validate$d(obj_additionalConfig, path_additionalConfig);
1369
1369
  if (referencepath_additionalConfigValidationError !== null) {
1370
1370
  let message = 'Object doesn\'t match EinsteinLlmAdditionalConfigInputRepresentation (at "' + path_additionalConfig + '")\n';
1371
1371
  message += referencepath_additionalConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1374,7 +1374,7 @@ function validate$2(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
1374
1374
  }
1375
1375
  const obj_inputParams = obj.inputParams;
1376
1376
  const path_inputParams = path + '.inputParams';
1377
- const referencepath_inputParamsValidationError = validate$3(obj_inputParams, path_inputParams);
1377
+ const referencepath_inputParamsValidationError = validate$6(obj_inputParams, path_inputParams);
1378
1378
  if (referencepath_inputParamsValidationError !== null) {
1379
1379
  let message = 'Object doesn\'t match WrappedValueMap (at "' + path_inputParams + '")\n';
1380
1380
  message += referencepath_inputParamsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1396,8 +1396,8 @@ function validate$2(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
1396
1396
  return v_error === undefined ? null : v_error;
1397
1397
  }
1398
1398
 
1399
- const VERSION$1 = "6458d624e5a1691821c764b6de0badb3";
1400
- function validate$1(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresentation') {
1399
+ const VERSION$4 = "6458d624e5a1691821c764b6de0badb3";
1400
+ function validate$4(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresentation') {
1401
1401
  const v_error = (() => {
1402
1402
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1403
1403
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1427,10 +1427,10 @@ function validate$1(obj, path = 'EinsteinPromptTemplateGenerationsErrorRepresent
1427
1427
  })();
1428
1428
  return v_error === undefined ? null : v_error;
1429
1429
  }
1430
- const select$2 = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
1430
+ const select$5 = function EinsteinPromptTemplateGenerationsErrorRepresentationSelect() {
1431
1431
  return {
1432
1432
  kind: 'Fragment',
1433
- version: VERSION$1,
1433
+ version: VERSION$4,
1434
1434
  private: [],
1435
1435
  selections: [
1436
1436
  {
@@ -1453,7 +1453,7 @@ const select$2 = function EinsteinPromptTemplateGenerationsErrorRepresentationSe
1453
1453
  ]
1454
1454
  };
1455
1455
  };
1456
- function equals$1(existing, incoming) {
1456
+ function equals$4(existing, incoming) {
1457
1457
  const existing_errorMessage = existing.errorMessage;
1458
1458
  const incoming_errorMessage = incoming.errorMessage;
1459
1459
  if (!(existing_errorMessage === incoming_errorMessage)) {
@@ -1485,8 +1485,237 @@ function equals$1(existing, incoming) {
1485
1485
  return true;
1486
1486
  }
1487
1487
 
1488
+ const VERSION$3 = "7c417ce44e4bc05dfcc454e6825590e8";
1489
+ function validate$3(obj, path = 'EinsteinPromptTemplateMaskSettingsRepresentation') {
1490
+ const v_error = (() => {
1491
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1492
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1493
+ }
1494
+ const obj_enableModeration = obj.enableModeration;
1495
+ const path_enableModeration = path + '.enableModeration';
1496
+ if (typeof obj_enableModeration !== 'boolean') {
1497
+ return new TypeError('Expected "boolean" but received "' + typeof obj_enableModeration + '" (at "' + path_enableModeration + '")');
1498
+ }
1499
+ })();
1500
+ return v_error === undefined ? null : v_error;
1501
+ }
1502
+ const select$4 = function EinsteinPromptTemplateMaskSettingsRepresentationSelect() {
1503
+ return {
1504
+ kind: 'Fragment',
1505
+ version: VERSION$3,
1506
+ private: [],
1507
+ selections: [
1508
+ {
1509
+ name: 'enableModeration',
1510
+ kind: 'Scalar'
1511
+ }
1512
+ ]
1513
+ };
1514
+ };
1515
+ function equals$3(existing, incoming) {
1516
+ const existing_enableModeration = existing.enableModeration;
1517
+ const incoming_enableModeration = incoming.enableModeration;
1518
+ if (!(existing_enableModeration === incoming_enableModeration)) {
1519
+ return false;
1520
+ }
1521
+ return true;
1522
+ }
1523
+
1524
+ const VERSION$2 = "92ad1abd0e2a60bc36941409cadda7e2";
1525
+ function validate$2(obj, path = 'EinsteinPromptTemplateMaskContentRepresentation') {
1526
+ const v_error = (() => {
1527
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1528
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1529
+ }
1530
+ const obj_content = obj.content;
1531
+ const path_content = path + '.content';
1532
+ if (typeof obj_content !== 'string') {
1533
+ return new TypeError('Expected "string" but received "' + typeof obj_content + '" (at "' + path_content + '")');
1534
+ }
1535
+ if (obj.moderationSettings !== undefined) {
1536
+ const obj_moderationSettings = obj.moderationSettings;
1537
+ const path_moderationSettings = path + '.moderationSettings';
1538
+ let obj_moderationSettings_union0 = null;
1539
+ const obj_moderationSettings_union0_error = (() => {
1540
+ const referencepath_moderationSettingsValidationError = validate$3(obj_moderationSettings, path_moderationSettings);
1541
+ if (referencepath_moderationSettingsValidationError !== null) {
1542
+ let message = 'Object doesn\'t match EinsteinPromptTemplateMaskSettingsRepresentation (at "' + path_moderationSettings + '")\n';
1543
+ message += referencepath_moderationSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1544
+ return new TypeError(message);
1545
+ }
1546
+ })();
1547
+ if (obj_moderationSettings_union0_error != null) {
1548
+ obj_moderationSettings_union0 = obj_moderationSettings_union0_error.message;
1549
+ }
1550
+ let obj_moderationSettings_union1 = null;
1551
+ const obj_moderationSettings_union1_error = (() => {
1552
+ if (obj_moderationSettings !== null) {
1553
+ return new TypeError('Expected "null" but received "' + typeof obj_moderationSettings + '" (at "' + path_moderationSettings + '")');
1554
+ }
1555
+ })();
1556
+ if (obj_moderationSettings_union1_error != null) {
1557
+ obj_moderationSettings_union1 = obj_moderationSettings_union1_error.message;
1558
+ }
1559
+ if (obj_moderationSettings_union0 && obj_moderationSettings_union1) {
1560
+ let message = 'Object doesn\'t match union (at "' + path_moderationSettings + '")';
1561
+ message += '\n' + obj_moderationSettings_union0.split('\n').map((line) => '\t' + line).join('\n');
1562
+ message += '\n' + obj_moderationSettings_union1.split('\n').map((line) => '\t' + line).join('\n');
1563
+ return new TypeError(message);
1564
+ }
1565
+ }
1566
+ if (obj.role !== undefined) {
1567
+ const obj_role = obj.role;
1568
+ const path_role = path + '.role';
1569
+ if (typeof obj_role !== 'string') {
1570
+ return new TypeError('Expected "string" but received "' + typeof obj_role + '" (at "' + path_role + '")');
1571
+ }
1572
+ }
1573
+ })();
1574
+ return v_error === undefined ? null : v_error;
1575
+ }
1576
+ const select$3 = function EinsteinPromptTemplateMaskContentRepresentationSelect() {
1577
+ const { selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections, opaque: EinsteinPromptTemplateMaskSettingsRepresentation__opaque, } = select$4();
1578
+ return {
1579
+ kind: 'Fragment',
1580
+ version: VERSION$2,
1581
+ private: [],
1582
+ selections: [
1583
+ {
1584
+ name: 'content',
1585
+ kind: 'Scalar'
1586
+ },
1587
+ {
1588
+ name: 'moderationSettings',
1589
+ kind: 'Object',
1590
+ nullable: true,
1591
+ selections: EinsteinPromptTemplateMaskSettingsRepresentation__selections,
1592
+ required: false
1593
+ },
1594
+ {
1595
+ name: 'role',
1596
+ kind: 'Scalar',
1597
+ required: false
1598
+ }
1599
+ ]
1600
+ };
1601
+ };
1602
+ function equals$2(existing, incoming) {
1603
+ const existing_content = existing.content;
1604
+ const incoming_content = incoming.content;
1605
+ if (!(existing_content === incoming_content)) {
1606
+ return false;
1607
+ }
1608
+ const existing_role = existing.role;
1609
+ const incoming_role = incoming.role;
1610
+ // if at least one of these optionals is defined
1611
+ if (existing_role !== undefined || incoming_role !== undefined) {
1612
+ // if one of these is not defined we know the other is defined and therefore
1613
+ // not equal
1614
+ if (existing_role === undefined || incoming_role === undefined) {
1615
+ return false;
1616
+ }
1617
+ if (!(existing_role === incoming_role)) {
1618
+ return false;
1619
+ }
1620
+ }
1621
+ const existing_moderationSettings = existing.moderationSettings;
1622
+ const incoming_moderationSettings = incoming.moderationSettings;
1623
+ // if at least one of these optionals is defined
1624
+ if (existing_moderationSettings !== undefined || incoming_moderationSettings !== undefined) {
1625
+ // if one of these is not defined we know the other is defined and therefore
1626
+ // not equal
1627
+ if (existing_moderationSettings === undefined || incoming_moderationSettings === undefined) {
1628
+ return false;
1629
+ }
1630
+ if (!(existing_moderationSettings === incoming_moderationSettings
1631
+ || (existing_moderationSettings != null &&
1632
+ incoming_moderationSettings != null &&
1633
+ equals$3(existing_moderationSettings, incoming_moderationSettings)))) {
1634
+ return false;
1635
+ }
1636
+ }
1637
+ return true;
1638
+ }
1639
+
1640
+ const VERSION$1 = "507a815605f8d30ae9b52b0ec513d25e";
1641
+ function validate$1(obj, path = 'EinsteinPromptTemplateMaskDataRepresentation') {
1642
+ const v_error = (() => {
1643
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1644
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1645
+ }
1646
+ const obj_originalValue = obj.originalValue;
1647
+ const path_originalValue = path + '.originalValue';
1648
+ if (typeof obj_originalValue !== 'string') {
1649
+ return new TypeError('Expected "string" but received "' + typeof obj_originalValue + '" (at "' + path_originalValue + '")');
1650
+ }
1651
+ const obj_placeHolder = obj.placeHolder;
1652
+ const path_placeHolder = path + '.placeHolder';
1653
+ if (typeof obj_placeHolder !== 'string') {
1654
+ return new TypeError('Expected "string" but received "' + typeof obj_placeHolder + '" (at "' + path_placeHolder + '")');
1655
+ }
1656
+ const obj_recognizers = obj.recognizers;
1657
+ const path_recognizers = path + '.recognizers';
1658
+ if (!ArrayIsArray(obj_recognizers)) {
1659
+ return new TypeError('Expected "array" but received "' + typeof obj_recognizers + '" (at "' + path_recognizers + '")');
1660
+ }
1661
+ for (let i = 0; i < obj_recognizers.length; i++) {
1662
+ const obj_recognizers_item = obj_recognizers[i];
1663
+ const path_recognizers_item = path_recognizers + '[' + i + ']';
1664
+ if (typeof obj_recognizers_item !== 'string') {
1665
+ return new TypeError('Expected "string" but received "' + typeof obj_recognizers_item + '" (at "' + path_recognizers_item + '")');
1666
+ }
1667
+ }
1668
+ })();
1669
+ return v_error === undefined ? null : v_error;
1670
+ }
1671
+ const select$2 = function EinsteinPromptTemplateMaskDataRepresentationSelect() {
1672
+ return {
1673
+ kind: 'Fragment',
1674
+ version: VERSION$1,
1675
+ private: [],
1676
+ selections: [
1677
+ {
1678
+ name: 'originalValue',
1679
+ kind: 'Scalar'
1680
+ },
1681
+ {
1682
+ name: 'placeHolder',
1683
+ kind: 'Scalar'
1684
+ },
1685
+ {
1686
+ name: 'recognizers',
1687
+ kind: 'Scalar',
1688
+ plural: true
1689
+ }
1690
+ ]
1691
+ };
1692
+ };
1693
+ function equals$1(existing, incoming) {
1694
+ const existing_originalValue = existing.originalValue;
1695
+ const incoming_originalValue = incoming.originalValue;
1696
+ if (!(existing_originalValue === incoming_originalValue)) {
1697
+ return false;
1698
+ }
1699
+ const existing_placeHolder = existing.placeHolder;
1700
+ const incoming_placeHolder = incoming.placeHolder;
1701
+ if (!(existing_placeHolder === incoming_placeHolder)) {
1702
+ return false;
1703
+ }
1704
+ const existing_recognizers = existing.recognizers;
1705
+ const incoming_recognizers = incoming.recognizers;
1706
+ const equals_recognizers_items = equalsArray(existing_recognizers, incoming_recognizers, (existing_recognizers_item, incoming_recognizers_item) => {
1707
+ if (!(existing_recognizers_item === incoming_recognizers_item)) {
1708
+ return false;
1709
+ }
1710
+ });
1711
+ if (equals_recognizers_items === false) {
1712
+ return false;
1713
+ }
1714
+ return true;
1715
+ }
1716
+
1488
1717
  const TTL = 100;
1489
- const VERSION = "a4c71dd12b7b696b7b04ebf6cf5101a3";
1718
+ const VERSION = "af7cfa8bd9d9cdd1923263da1734499c";
1490
1719
  function validate(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
1491
1720
  const v_error = (() => {
1492
1721
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1501,7 +1730,7 @@ function validate(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation')
1501
1730
  for (let i = 0; i < obj_generationErrors.length; i++) {
1502
1731
  const obj_generationErrors_item = obj_generationErrors[i];
1503
1732
  const path_generationErrors_item = path_generationErrors + '[' + i + ']';
1504
- const referencepath_generationErrors_itemValidationError = validate$1(obj_generationErrors_item, path_generationErrors_item);
1733
+ const referencepath_generationErrors_itemValidationError = validate$4(obj_generationErrors_item, path_generationErrors_item);
1505
1734
  if (referencepath_generationErrors_itemValidationError !== null) {
1506
1735
  let message = 'Object doesn\'t match EinsteinPromptTemplateGenerationsErrorRepresentation (at "' + path_generationErrors_item + '")\n';
1507
1736
  message += referencepath_generationErrors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1517,7 +1746,7 @@ function validate(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation')
1517
1746
  for (let i = 0; i < obj_generations.length; i++) {
1518
1747
  const obj_generations_item = obj_generations[i];
1519
1748
  const path_generations_item = path_generations + '[' + i + ']';
1520
- const referencepath_generations_itemValidationError = validate$6(obj_generations_item, path_generations_item);
1749
+ const referencepath_generations_itemValidationError = validate$9(obj_generations_item, path_generations_item);
1521
1750
  if (referencepath_generations_itemValidationError !== null) {
1522
1751
  let message = 'Object doesn\'t match EinsteinLlmGenerationItemRepresentation (at "' + path_generations_item + '")\n';
1523
1752
  message += referencepath_generations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1528,7 +1757,7 @@ function validate(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation')
1528
1757
  const path_parameters = path + '.parameters';
1529
1758
  let obj_parameters_union0 = null;
1530
1759
  const obj_parameters_union0_error = (() => {
1531
- const referencepath_parametersValidationError = validate$5(obj_parameters, path_parameters);
1760
+ const referencepath_parametersValidationError = validate$8(obj_parameters, path_parameters);
1532
1761
  if (referencepath_parametersValidationError !== null) {
1533
1762
  let message = 'Object doesn\'t match WrappedMap (at "' + path_parameters + '")\n';
1534
1763
  message += referencepath_parametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1589,6 +1818,57 @@ function validate(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation')
1589
1818
  if (typeof obj_requestId !== 'string') {
1590
1819
  return new TypeError('Expected "string" but received "' + typeof obj_requestId + '" (at "' + path_requestId + '")');
1591
1820
  }
1821
+ if (obj.requestMessages !== undefined) {
1822
+ const obj_requestMessages = obj.requestMessages;
1823
+ const path_requestMessages = path + '.requestMessages';
1824
+ if (!ArrayIsArray(obj_requestMessages)) {
1825
+ return new TypeError('Expected "array" but received "' + typeof obj_requestMessages + '" (at "' + path_requestMessages + '")');
1826
+ }
1827
+ for (let i = 0; i < obj_requestMessages.length; i++) {
1828
+ const obj_requestMessages_item = obj_requestMessages[i];
1829
+ const path_requestMessages_item = path_requestMessages + '[' + i + ']';
1830
+ const referencepath_requestMessages_itemValidationError = validate$2(obj_requestMessages_item, path_requestMessages_item);
1831
+ if (referencepath_requestMessages_itemValidationError !== null) {
1832
+ let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_requestMessages_item + '")\n';
1833
+ message += referencepath_requestMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1834
+ return new TypeError(message);
1835
+ }
1836
+ }
1837
+ }
1838
+ if (obj.responseMessages !== undefined) {
1839
+ const obj_responseMessages = obj.responseMessages;
1840
+ const path_responseMessages = path + '.responseMessages';
1841
+ if (!ArrayIsArray(obj_responseMessages)) {
1842
+ return new TypeError('Expected "array" but received "' + typeof obj_responseMessages + '" (at "' + path_responseMessages + '")');
1843
+ }
1844
+ for (let i = 0; i < obj_responseMessages.length; i++) {
1845
+ const obj_responseMessages_item = obj_responseMessages[i];
1846
+ const path_responseMessages_item = path_responseMessages + '[' + i + ']';
1847
+ const referencepath_responseMessages_itemValidationError = validate$2(obj_responseMessages_item, path_responseMessages_item);
1848
+ if (referencepath_responseMessages_itemValidationError !== null) {
1849
+ let message = 'Object doesn\'t match EinsteinPromptTemplateMaskContentRepresentation (at "' + path_responseMessages_item + '")\n';
1850
+ message += referencepath_responseMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1851
+ return new TypeError(message);
1852
+ }
1853
+ }
1854
+ }
1855
+ if (obj.slotsMaskingInformation !== undefined) {
1856
+ const obj_slotsMaskingInformation = obj.slotsMaskingInformation;
1857
+ const path_slotsMaskingInformation = path + '.slotsMaskingInformation';
1858
+ if (!ArrayIsArray(obj_slotsMaskingInformation)) {
1859
+ return new TypeError('Expected "array" but received "' + typeof obj_slotsMaskingInformation + '" (at "' + path_slotsMaskingInformation + '")');
1860
+ }
1861
+ for (let i = 0; i < obj_slotsMaskingInformation.length; i++) {
1862
+ const obj_slotsMaskingInformation_item = obj_slotsMaskingInformation[i];
1863
+ const path_slotsMaskingInformation_item = path_slotsMaskingInformation + '[' + i + ']';
1864
+ const referencepath_slotsMaskingInformation_itemValidationError = validate$1(obj_slotsMaskingInformation_item, path_slotsMaskingInformation_item);
1865
+ if (referencepath_slotsMaskingInformation_itemValidationError !== null) {
1866
+ let message = 'Object doesn\'t match EinsteinPromptTemplateMaskDataRepresentation (at "' + path_slotsMaskingInformation_item + '")\n';
1867
+ message += referencepath_slotsMaskingInformation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1868
+ return new TypeError(message);
1869
+ }
1870
+ }
1871
+ }
1592
1872
  })();
1593
1873
  return v_error === undefined ? null : v_error;
1594
1874
  }
@@ -1606,9 +1886,11 @@ function normalize(input, existing, path, luvio, store, timestamp) {
1606
1886
  return input;
1607
1887
  }
1608
1888
  const select$1 = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
1609
- const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$2();
1610
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$6();
1611
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$5();
1889
+ const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$5();
1890
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$9();
1891
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$8();
1892
+ const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$3();
1893
+ const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$2();
1612
1894
  return {
1613
1895
  kind: 'Fragment',
1614
1896
  version: VERSION,
@@ -1644,6 +1926,27 @@ const select$1 = function EinsteinPromptTemplateGenerationsRepresentationSelect(
1644
1926
  {
1645
1927
  name: 'requestId',
1646
1928
  kind: 'Scalar'
1929
+ },
1930
+ {
1931
+ name: 'requestMessages',
1932
+ kind: 'Object',
1933
+ plural: true,
1934
+ selections: EinsteinPromptTemplateMaskContentRepresentation__selections,
1935
+ required: false
1936
+ },
1937
+ {
1938
+ name: 'responseMessages',
1939
+ kind: 'Object',
1940
+ plural: true,
1941
+ selections: EinsteinPromptTemplateMaskContentRepresentation__selections,
1942
+ required: false
1943
+ },
1944
+ {
1945
+ name: 'slotsMaskingInformation',
1946
+ kind: 'Object',
1947
+ plural: true,
1948
+ selections: EinsteinPromptTemplateMaskDataRepresentation__selections,
1949
+ required: false
1647
1950
  }
1648
1951
  ]
1649
1952
  };
@@ -1669,7 +1972,7 @@ function equals(existing, incoming) {
1669
1972
  return false;
1670
1973
  }
1671
1974
  const equals_generationErrors_items = equalsArray(existing_generationErrors, incoming_generationErrors, (existing_generationErrors_item, incoming_generationErrors_item) => {
1672
- if (!(equals$1(existing_generationErrors_item, incoming_generationErrors_item))) {
1975
+ if (!(equals$4(existing_generationErrors_item, incoming_generationErrors_item))) {
1673
1976
  return false;
1674
1977
  }
1675
1978
  });
@@ -1680,7 +1983,7 @@ function equals(existing, incoming) {
1680
1983
  const existing_generations = existing.generations;
1681
1984
  const incoming_generations = incoming.generations;
1682
1985
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
1683
- if (!(equals$4(existing_generations_item, incoming_generations_item))) {
1986
+ if (!(equals$7(existing_generations_item, incoming_generations_item))) {
1684
1987
  return false;
1685
1988
  }
1686
1989
  });
@@ -1692,7 +1995,7 @@ function equals(existing, incoming) {
1692
1995
  if (!(existing_parameters === incoming_parameters
1693
1996
  || (existing_parameters != null &&
1694
1997
  incoming_parameters != null &&
1695
- equals$3(existing_parameters, incoming_parameters)))) {
1998
+ equals$6(existing_parameters, incoming_parameters)))) {
1696
1999
  return false;
1697
2000
  }
1698
2001
  const existing_prompt = existing.prompt;
@@ -1700,6 +2003,60 @@ function equals(existing, incoming) {
1700
2003
  if (!(existing_prompt === incoming_prompt)) {
1701
2004
  return false;
1702
2005
  }
2006
+ const existing_requestMessages = existing.requestMessages;
2007
+ const incoming_requestMessages = incoming.requestMessages;
2008
+ // if at least one of these optionals is defined
2009
+ if (existing_requestMessages !== undefined || incoming_requestMessages !== undefined) {
2010
+ // if one of these is not defined we know the other is defined and therefore
2011
+ // not equal
2012
+ if (existing_requestMessages === undefined || incoming_requestMessages === undefined) {
2013
+ return false;
2014
+ }
2015
+ const equals_requestMessages_items = equalsArray(existing_requestMessages, incoming_requestMessages, (existing_requestMessages_item, incoming_requestMessages_item) => {
2016
+ if (!(equals$2(existing_requestMessages_item, incoming_requestMessages_item))) {
2017
+ return false;
2018
+ }
2019
+ });
2020
+ if (equals_requestMessages_items === false) {
2021
+ return false;
2022
+ }
2023
+ }
2024
+ const existing_responseMessages = existing.responseMessages;
2025
+ const incoming_responseMessages = incoming.responseMessages;
2026
+ // if at least one of these optionals is defined
2027
+ if (existing_responseMessages !== undefined || incoming_responseMessages !== undefined) {
2028
+ // if one of these is not defined we know the other is defined and therefore
2029
+ // not equal
2030
+ if (existing_responseMessages === undefined || incoming_responseMessages === undefined) {
2031
+ return false;
2032
+ }
2033
+ const equals_responseMessages_items = equalsArray(existing_responseMessages, incoming_responseMessages, (existing_responseMessages_item, incoming_responseMessages_item) => {
2034
+ if (!(equals$2(existing_responseMessages_item, incoming_responseMessages_item))) {
2035
+ return false;
2036
+ }
2037
+ });
2038
+ if (equals_responseMessages_items === false) {
2039
+ return false;
2040
+ }
2041
+ }
2042
+ const existing_slotsMaskingInformation = existing.slotsMaskingInformation;
2043
+ const incoming_slotsMaskingInformation = incoming.slotsMaskingInformation;
2044
+ // if at least one of these optionals is defined
2045
+ if (existing_slotsMaskingInformation !== undefined || incoming_slotsMaskingInformation !== undefined) {
2046
+ // if one of these is not defined we know the other is defined and therefore
2047
+ // not equal
2048
+ if (existing_slotsMaskingInformation === undefined || incoming_slotsMaskingInformation === undefined) {
2049
+ return false;
2050
+ }
2051
+ const equals_slotsMaskingInformation_items = equalsArray(existing_slotsMaskingInformation, incoming_slotsMaskingInformation, (existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item) => {
2052
+ if (!(equals$1(existing_slotsMaskingInformation_item, incoming_slotsMaskingInformation_item))) {
2053
+ return false;
2054
+ }
2055
+ });
2056
+ if (equals_slotsMaskingInformation_items === false) {
2057
+ return false;
2058
+ }
2059
+ }
1703
2060
  return true;
1704
2061
  }
1705
2062
  const ingest = function EinsteinPromptTemplateGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -1773,7 +2130,7 @@ function typeCheckConfig(untrustedConfig) {
1773
2130
  const config = {};
1774
2131
  typeCheckConfig$3(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
1775
2132
  const untrustedConfig_promptTemplateGenerationsInput = untrustedConfig.promptTemplateGenerationsInput;
1776
- const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$2(untrustedConfig_promptTemplateGenerationsInput);
2133
+ const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$5(untrustedConfig_promptTemplateGenerationsInput);
1777
2134
  if (referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError === null) {
1778
2135
  config.promptTemplateGenerationsInput = untrustedConfig_promptTemplateGenerationsInput;
1779
2136
  }