@salesforce/lds-adapters-service-einsteinllm 1.345.0 → 1.347.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.
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, StoreKeyMap, createResourceParams as createResourceParams$6, typeCheckConfig as typeCheckConfig$6 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, StoreKeyMap, createResourceParams as createResourceParams$7, typeCheckConfig as typeCheckConfig$7 } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -265,7 +265,7 @@ function validate$p(obj, path = 'EinsteinLlmEmbeddingsInputRepresentation') {
265
265
  return v_error === undefined ? null : v_error;
266
266
  }
267
267
 
268
- const VERSION$h = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
268
+ const VERSION$i = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
269
269
  function validate$o(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
270
270
  const v_error = (() => {
271
271
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -287,10 +287,10 @@ function validate$o(obj, path = 'EinsteinLlmEmbeddingItemRepresentation') {
287
287
  })();
288
288
  return v_error === undefined ? null : v_error;
289
289
  }
290
- const select$n = function EinsteinLlmEmbeddingItemRepresentationSelect() {
290
+ const select$p = function EinsteinLlmEmbeddingItemRepresentationSelect() {
291
291
  return {
292
292
  kind: 'Fragment',
293
- version: VERSION$h,
293
+ version: VERSION$i,
294
294
  private: [],
295
295
  selections: [
296
296
  {
@@ -305,7 +305,7 @@ const select$n = function EinsteinLlmEmbeddingItemRepresentationSelect() {
305
305
  ]
306
306
  };
307
307
  };
308
- function equals$h(existing, incoming) {
308
+ function equals$i(existing, incoming) {
309
309
  const existing_index = existing.index;
310
310
  const incoming_index = incoming.index;
311
311
  if (!(existing_index === incoming_index)) {
@@ -324,8 +324,8 @@ function equals$h(existing, incoming) {
324
324
  return true;
325
325
  }
326
326
 
327
- const TTL$5 = 100;
328
- const VERSION$g = "d9873651f09d29764ef4d4231eb653d7";
327
+ const TTL$6 = 100;
328
+ const VERSION$h = "d9873651f09d29764ef4d4231eb653d7";
329
329
  function validate$n(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
330
330
  const v_error = (() => {
331
331
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -363,15 +363,15 @@ function validate$n(obj, path = 'EinsteinLlmEmbeddingsRepresentation') {
363
363
  })();
364
364
  return v_error === undefined ? null : v_error;
365
365
  }
366
- const RepresentationType$5 = 'EinsteinLlmEmbeddingsRepresentation';
367
- function normalize$5(input, existing, path, luvio, store, timestamp) {
366
+ const RepresentationType$6 = 'EinsteinLlmEmbeddingsRepresentation';
367
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
368
368
  return input;
369
369
  }
370
- const select$m = function EinsteinLlmEmbeddingsRepresentationSelect() {
371
- const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$n();
370
+ const select$o = function EinsteinLlmEmbeddingsRepresentationSelect() {
371
+ const { selections: EinsteinLlmEmbeddingItemRepresentation__selections, opaque: EinsteinLlmEmbeddingItemRepresentation__opaque, } = select$p();
372
372
  return {
373
373
  kind: 'Fragment',
374
- version: VERSION$g,
374
+ version: VERSION$h,
375
375
  private: [],
376
376
  selections: [
377
377
  {
@@ -388,11 +388,11 @@ const select$m = function EinsteinLlmEmbeddingsRepresentationSelect() {
388
388
  ]
389
389
  };
390
390
  };
391
- function equals$g(existing, incoming) {
391
+ function equals$h(existing, incoming) {
392
392
  const existing_embeddings = existing.embeddings;
393
393
  const incoming_embeddings = incoming.embeddings;
394
394
  const equals_embeddings_items = equalsArray(existing_embeddings, incoming_embeddings, (existing_embeddings_item, incoming_embeddings_item) => {
395
- if (!(equals$h(existing_embeddings_item, incoming_embeddings_item))) {
395
+ if (!(equals$i(existing_embeddings_item, incoming_embeddings_item))) {
396
396
  return false;
397
397
  }
398
398
  });
@@ -411,7 +411,7 @@ function equals$g(existing, incoming) {
411
411
  }
412
412
  return true;
413
413
  }
414
- const ingest$5 = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
414
+ const ingest$6 = function EinsteinLlmEmbeddingsRepresentationIngest(input, path, luvio, store, timestamp) {
415
415
  if (process.env.NODE_ENV !== 'production') {
416
416
  const validateError = validate$n(input);
417
417
  if (validateError !== null) {
@@ -419,36 +419,36 @@ const ingest$5 = function EinsteinLlmEmbeddingsRepresentationIngest(input, path,
419
419
  }
420
420
  }
421
421
  const key = path.fullPath;
422
- const ttlToUse = TTL$5;
423
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$g, RepresentationType$5, equals$g);
422
+ const ttlToUse = TTL$6;
423
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "EinsteinLLM", VERSION$h, RepresentationType$6, equals$h);
424
424
  return createLink(key);
425
425
  };
426
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
426
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
427
427
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
428
428
  const rootKey = fullPathFactory();
429
429
  rootKeySet.set(rootKey, {
430
430
  namespace: keyPrefix,
431
- representationName: RepresentationType$5,
431
+ representationName: RepresentationType$6,
432
432
  mergeable: false
433
433
  });
434
434
  }
435
435
 
436
- function select$l(luvio, params) {
437
- return select$m();
436
+ function select$n(luvio, params) {
437
+ return select$o();
438
438
  }
439
- function keyBuilder$8(luvio, params) {
439
+ function keyBuilder$a(luvio, params) {
440
440
  return keyPrefix + '::EinsteinLlmEmbeddingsRepresentation:(' + stableJSONStringify(params.body.embeddingsInput.additionalConfig.additionalParameters) + '::' + 'embeddingsInput.additionalConfig.applicationName:' + params.body.embeddingsInput.additionalConfig.applicationName + '::' + (params.body.embeddingsInput.additionalConfig.enablePiiMasking === undefined ? 'embeddingsInput.additionalConfig.enablePiiMasking' : 'embeddingsInput.additionalConfig.enablePiiMasking:' + params.body.embeddingsInput.additionalConfig.enablePiiMasking) + '::' + (params.body.embeddingsInput.additionalConfig.model === undefined ? 'embeddingsInput.additionalConfig.model' : 'embeddingsInput.additionalConfig.model:' + params.body.embeddingsInput.additionalConfig.model) + '::' + 'embeddingsInput.prompts.wrappedListString:' + params.body.embeddingsInput.prompts.wrappedListString + '::' + (params.body.embeddingsInput.provider === undefined ? 'embeddingsInput.provider' : 'embeddingsInput.provider:' + params.body.embeddingsInput.provider) + ')';
441
441
  }
442
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
443
- getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
442
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
443
+ getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
444
444
  }
445
- function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
445
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
446
446
  const { body } = response;
447
- const key = keyBuilder$8(luvio, resourceParams);
448
- luvio.storeIngest(key, ingest$5, body);
447
+ const key = keyBuilder$a(luvio, resourceParams);
448
+ luvio.storeIngest(key, ingest$6, body);
449
449
  const snapshot = luvio.storeLookup({
450
450
  recordId: key,
451
- node: select$l(),
451
+ node: select$n(),
452
452
  variables: {},
453
453
  }, snapshotRefresh);
454
454
  if (process.env.NODE_ENV !== 'production') {
@@ -459,19 +459,19 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
459
459
  deepFreeze(snapshot.data);
460
460
  return snapshot;
461
461
  }
462
- function ingestError$2(luvio, params, error, snapshotRefresh) {
463
- const key = keyBuilder$8(luvio, params);
462
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
463
+ const key = keyBuilder$a(luvio, params);
464
464
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
465
465
  const storeMetadataParams = {
466
- ttl: TTL$5,
466
+ ttl: TTL$6,
467
467
  namespace: keyPrefix,
468
- version: VERSION$g,
469
- representationName: RepresentationType$5
468
+ version: VERSION$h,
469
+ representationName: RepresentationType$6
470
470
  };
471
471
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
472
472
  return errorSnapshot;
473
473
  }
474
- function createResourceRequest$5(config) {
474
+ function createResourceRequest$6(config) {
475
475
  const headers = {};
476
476
  return {
477
477
  baseUri: '/services/data/v64.0',
@@ -485,17 +485,17 @@ function createResourceRequest$5(config) {
485
485
  };
486
486
  }
487
487
 
488
- const adapterName$5 = 'createEmbeddings';
488
+ const adapterName$6 = 'createEmbeddings';
489
489
  const createEmbeddings_ConfigPropertyMetadata = [
490
490
  generateParamConfigMetadata('embeddingsInput', true, 2 /* Body */, 4 /* Unsupported */),
491
491
  ];
492
- const createEmbeddings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createEmbeddings_ConfigPropertyMetadata);
493
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$6(createEmbeddings_ConfigPropertyMetadata);
494
- function keyBuilder$7(luvio, config) {
495
- const resourceParams = createResourceParams$5(config);
496
- return keyBuilder$8(luvio, resourceParams);
492
+ const createEmbeddings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createEmbeddings_ConfigPropertyMetadata);
493
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(createEmbeddings_ConfigPropertyMetadata);
494
+ function keyBuilder$9(luvio, config) {
495
+ const resourceParams = createResourceParams$6(config);
496
+ return keyBuilder$a(luvio, resourceParams);
497
497
  }
498
- function typeCheckConfig$5(untrustedConfig) {
498
+ function typeCheckConfig$6(untrustedConfig) {
499
499
  const config = {};
500
500
  const untrustedConfig_embeddingsInput = untrustedConfig.embeddingsInput;
501
501
  const referenceEinsteinLlmEmbeddingsInputRepresentationValidationError = validate$p(untrustedConfig_embeddingsInput);
@@ -504,75 +504,75 @@ function typeCheckConfig$5(untrustedConfig) {
504
504
  }
505
505
  return config;
506
506
  }
507
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
507
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
508
508
  if (!untrustedIsObject(untrustedConfig)) {
509
509
  return null;
510
510
  }
511
511
  if (process.env.NODE_ENV !== 'production') {
512
512
  validateConfig(untrustedConfig, configPropertyNames);
513
513
  }
514
- const config = typeCheckConfig$5(untrustedConfig);
514
+ const config = typeCheckConfig$6(untrustedConfig);
515
515
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
516
516
  return null;
517
517
  }
518
518
  return config;
519
519
  }
520
- function adapterFragment$2(luvio, config) {
521
- createResourceParams$5(config);
522
- return select$l();
520
+ function adapterFragment$3(luvio, config) {
521
+ createResourceParams$6(config);
522
+ return select$n();
523
523
  }
524
- function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
525
- const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
524
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
525
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
526
526
  config,
527
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
527
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
528
528
  });
529
529
  return luvio.storeBroadcast().then(() => snapshot);
530
530
  }
531
- function onFetchResponseError$2(luvio, config, resourceParams, response) {
532
- const snapshot = ingestError$2(luvio, resourceParams, response, {
531
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
532
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
533
533
  config,
534
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
534
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
535
535
  });
536
536
  return luvio.storeBroadcast().then(() => snapshot);
537
537
  }
538
- function buildNetworkSnapshot$5(luvio, config, options) {
539
- const resourceParams = createResourceParams$5(config);
540
- const request = createResourceRequest$5(resourceParams);
538
+ function buildNetworkSnapshot$6(luvio, config, options) {
539
+ const resourceParams = createResourceParams$6(config);
540
+ const request = createResourceRequest$6(resourceParams);
541
541
  return luvio.dispatchResourceRequest(request, options)
542
542
  .then((response) => {
543
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
543
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
544
544
  const cache = new StoreKeyMap();
545
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
545
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
546
546
  return cache;
547
547
  });
548
548
  }, (response) => {
549
- return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
549
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
550
550
  });
551
551
  }
552
- function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
553
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, 'get', false);
552
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
553
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, 'get', false);
554
554
  }
555
- function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
555
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
556
556
  const { luvio, config } = context;
557
557
  const selector = {
558
- recordId: keyBuilder$7(luvio, config),
559
- node: adapterFragment$2(luvio, config),
558
+ recordId: keyBuilder$9(luvio, config),
559
+ node: adapterFragment$3(luvio, config),
560
560
  variables: {},
561
561
  };
562
562
  const cacheSnapshot = storeLookup(selector, {
563
563
  config,
564
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
564
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
565
565
  });
566
566
  return cacheSnapshot;
567
567
  }
568
568
  const createEmbeddingsAdapterFactory = (luvio) => function EinsteinLLM__createEmbeddings(untrustedConfig, requestContext) {
569
- const config = validateAdapterConfig$5(untrustedConfig, createEmbeddings_ConfigPropertyNames);
569
+ const config = validateAdapterConfig$6(untrustedConfig, createEmbeddings_ConfigPropertyNames);
570
570
  // Invalid or incomplete config
571
571
  if (config === null) {
572
572
  return null;
573
573
  }
574
574
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
575
- buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
575
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
576
576
  };
577
577
 
578
578
  function validate$m(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
@@ -622,8 +622,8 @@ function validate$m(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
622
622
  return v_error === undefined ? null : v_error;
623
623
  }
624
624
 
625
- const TTL$4 = 100;
626
- const VERSION$f = "4033328f65865dd5d80c68a7573a4522";
625
+ const TTL$5 = 100;
626
+ const VERSION$g = "4033328f65865dd5d80c68a7573a4522";
627
627
  function validate$l(obj, path = 'EinsteinLlmFeedbackRepresentation') {
628
628
  const v_error = (() => {
629
629
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -637,23 +637,23 @@ function validate$l(obj, path = 'EinsteinLlmFeedbackRepresentation') {
637
637
  })();
638
638
  return v_error === undefined ? null : v_error;
639
639
  }
640
- const RepresentationType$4 = 'EinsteinLlmFeedbackRepresentation';
641
- function keyBuilder$6(luvio, config) {
642
- return keyPrefix + '::' + RepresentationType$4 + ':' + config.message;
640
+ const RepresentationType$5 = 'EinsteinLlmFeedbackRepresentation';
641
+ function keyBuilder$8(luvio, config) {
642
+ return keyPrefix + '::' + RepresentationType$5 + ':' + config.message;
643
643
  }
644
644
  function keyBuilderFromType$2(luvio, object) {
645
645
  const keyParams = {
646
646
  message: object.message
647
647
  };
648
- return keyBuilder$6(luvio, keyParams);
648
+ return keyBuilder$8(luvio, keyParams);
649
649
  }
650
- function normalize$4(input, existing, path, luvio, store, timestamp) {
650
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
651
651
  return input;
652
652
  }
653
- const select$k = function EinsteinLlmFeedbackRepresentationSelect() {
653
+ const select$m = function EinsteinLlmFeedbackRepresentationSelect() {
654
654
  return {
655
655
  kind: 'Fragment',
656
- version: VERSION$f,
656
+ version: VERSION$g,
657
657
  private: [],
658
658
  selections: [
659
659
  {
@@ -663,7 +663,7 @@ const select$k = function EinsteinLlmFeedbackRepresentationSelect() {
663
663
  ]
664
664
  };
665
665
  };
666
- function equals$f(existing, incoming) {
666
+ function equals$g(existing, incoming) {
667
667
  const existing_message = existing.message;
668
668
  const incoming_message = incoming.message;
669
669
  if (!(existing_message === incoming_message)) {
@@ -671,7 +671,7 @@ function equals$f(existing, incoming) {
671
671
  }
672
672
  return true;
673
673
  }
674
- const ingest$4 = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
674
+ const ingest$5 = function EinsteinLlmFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
675
675
  if (process.env.NODE_ENV !== 'production') {
676
676
  const validateError = validate$l(input);
677
677
  if (validateError !== null) {
@@ -679,33 +679,33 @@ const ingest$4 = function EinsteinLlmFeedbackRepresentationIngest(input, path, l
679
679
  }
680
680
  }
681
681
  const key = keyBuilderFromType$2(luvio, input);
682
- const ttlToUse = TTL$4;
683
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$f, RepresentationType$4, equals$f);
682
+ const ttlToUse = TTL$5;
683
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "EinsteinLLM", VERSION$g, RepresentationType$5, equals$g);
684
684
  return createLink(key);
685
685
  };
686
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
686
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
687
687
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
688
688
  const rootKey = keyBuilderFromType$2(luvio, input);
689
689
  rootKeySet.set(rootKey, {
690
690
  namespace: keyPrefix,
691
- representationName: RepresentationType$4,
691
+ representationName: RepresentationType$5,
692
692
  mergeable: false
693
693
  });
694
694
  }
695
695
 
696
- function select$j(luvio, params) {
697
- return select$k();
696
+ function select$l(luvio, params) {
697
+ return select$m();
698
698
  }
699
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
700
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
699
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
700
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
701
701
  }
702
- function ingestSuccess$4(luvio, resourceParams, response) {
702
+ function ingestSuccess$5(luvio, resourceParams, response) {
703
703
  const { body } = response;
704
704
  const key = keyBuilderFromType$2(luvio, body);
705
- luvio.storeIngest(key, ingest$4, body);
705
+ luvio.storeIngest(key, ingest$5, body);
706
706
  const snapshot = luvio.storeLookup({
707
707
  recordId: key,
708
- node: select$j(),
708
+ node: select$l(),
709
709
  variables: {},
710
710
  });
711
711
  if (process.env.NODE_ENV !== 'production') {
@@ -716,7 +716,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
716
716
  deepFreeze(snapshot.data);
717
717
  return snapshot;
718
718
  }
719
- function createResourceRequest$4(config) {
719
+ function createResourceRequest$5(config) {
720
720
  const headers = {};
721
721
  return {
722
722
  baseUri: '/services/data/v64.0',
@@ -730,13 +730,13 @@ function createResourceRequest$4(config) {
730
730
  };
731
731
  }
732
732
 
733
- const adapterName$4 = 'createFeedback';
733
+ const adapterName$5 = 'createFeedback';
734
734
  const createFeedback_ConfigPropertyMetadata = [
735
735
  generateParamConfigMetadata('feedbackInput', true, 2 /* Body */, 4 /* Unsupported */),
736
736
  ];
737
- const createFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createFeedback_ConfigPropertyMetadata);
738
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$6(createFeedback_ConfigPropertyMetadata);
739
- function typeCheckConfig$4(untrustedConfig) {
737
+ const createFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createFeedback_ConfigPropertyMetadata);
738
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(createFeedback_ConfigPropertyMetadata);
739
+ function typeCheckConfig$5(untrustedConfig) {
740
740
  const config = {};
741
741
  const untrustedConfig_feedbackInput = untrustedConfig.feedbackInput;
742
742
  const referenceEinsteinLlmFeedbackInputRepresentationValidationError = validate$m(untrustedConfig_feedbackInput);
@@ -745,30 +745,30 @@ function typeCheckConfig$4(untrustedConfig) {
745
745
  }
746
746
  return config;
747
747
  }
748
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
748
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
749
749
  if (!untrustedIsObject(untrustedConfig)) {
750
750
  return null;
751
751
  }
752
752
  if (process.env.NODE_ENV !== 'production') {
753
753
  validateConfig(untrustedConfig, configPropertyNames);
754
754
  }
755
- const config = typeCheckConfig$4(untrustedConfig);
755
+ const config = typeCheckConfig$5(untrustedConfig);
756
756
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
757
757
  return null;
758
758
  }
759
759
  return config;
760
760
  }
761
- function buildNetworkSnapshot$4(luvio, config, options) {
762
- const resourceParams = createResourceParams$4(config);
763
- const request = createResourceRequest$4(resourceParams);
761
+ function buildNetworkSnapshot$5(luvio, config, options) {
762
+ const resourceParams = createResourceParams$5(config);
763
+ const request = createResourceRequest$5(resourceParams);
764
764
  return luvio.dispatchResourceRequest(request, options)
765
765
  .then((response) => {
766
766
  return luvio.handleSuccessResponse(() => {
767
- const snapshot = ingestSuccess$4(luvio, resourceParams, response);
767
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response);
768
768
  return luvio.storeBroadcast().then(() => snapshot);
769
769
  }, () => {
770
770
  const cache = new StoreKeyMap();
771
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
771
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
772
772
  return cache;
773
773
  });
774
774
  }, (response) => {
@@ -778,12 +778,12 @@ function buildNetworkSnapshot$4(luvio, config, options) {
778
778
  }
779
779
  const createFeedbackAdapterFactory = (luvio) => {
780
780
  return function createFeedback(untrustedConfig) {
781
- const config = validateAdapterConfig$4(untrustedConfig, createFeedback_ConfigPropertyNames);
781
+ const config = validateAdapterConfig$5(untrustedConfig, createFeedback_ConfigPropertyNames);
782
782
  // Invalid or incomplete config
783
783
  if (config === null) {
784
784
  throw new Error('Invalid config for "createFeedback"');
785
785
  }
786
- return buildNetworkSnapshot$4(luvio, config);
786
+ return buildNetworkSnapshot$5(luvio, config);
787
787
  };
788
788
  };
789
789
 
@@ -901,7 +901,7 @@ function validate$j(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
901
901
  return v_error === undefined ? null : v_error;
902
902
  }
903
903
 
904
- const VERSION$e = "9ebac74e6f964c363d5fd1913df363af";
904
+ const VERSION$f = "9ebac74e6f964c363d5fd1913df363af";
905
905
  function validate$i(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentation') {
906
906
  const v_error = (() => {
907
907
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -938,10 +938,10 @@ function validate$i(obj, path = 'EinsteinLlmGenerationsContentQualityRepresentat
938
938
  })();
939
939
  return v_error === undefined ? null : v_error;
940
940
  }
941
- const select$i = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
941
+ const select$k = function EinsteinLlmGenerationsContentQualityRepresentationSelect() {
942
942
  return {
943
943
  kind: 'Fragment',
944
- version: VERSION$e,
944
+ version: VERSION$f,
945
945
  private: [],
946
946
  selections: [
947
947
  {
@@ -952,7 +952,7 @@ const select$i = function EinsteinLlmGenerationsContentQualityRepresentationSele
952
952
  ]
953
953
  };
954
954
  };
955
- function equals$e(existing, incoming) {
955
+ function equals$f(existing, incoming) {
956
956
  const existing_isToxicityDetected = existing.isToxicityDetected;
957
957
  const incoming_isToxicityDetected = incoming.isToxicityDetected;
958
958
  // if at least one of these optionals is defined
@@ -969,7 +969,7 @@ function equals$e(existing, incoming) {
969
969
  return true;
970
970
  }
971
971
 
972
- const VERSION$d = "77af44a252cb5b45b4d9a8101368d2aa";
972
+ const VERSION$e = "77af44a252cb5b45b4d9a8101368d2aa";
973
973
  function validate$h(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation') {
974
974
  const v_error = (() => {
975
975
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1174,10 +1174,10 @@ function validate$h(obj, path = 'EinsteinLlmGenerationsSafetyScoreRepresentation
1174
1174
  })();
1175
1175
  return v_error === undefined ? null : v_error;
1176
1176
  }
1177
- const select$h = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
1177
+ const select$j = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect() {
1178
1178
  return {
1179
1179
  kind: 'Fragment',
1180
- version: VERSION$d,
1180
+ version: VERSION$e,
1181
1181
  private: [],
1182
1182
  selections: [
1183
1183
  {
@@ -1218,7 +1218,7 @@ const select$h = function EinsteinLlmGenerationsSafetyScoreRepresentationSelect(
1218
1218
  ]
1219
1219
  };
1220
1220
  };
1221
- function equals$d(existing, incoming) {
1221
+ function equals$e(existing, incoming) {
1222
1222
  const existing_hateScore = existing.hateScore;
1223
1223
  const incoming_hateScore = incoming.hateScore;
1224
1224
  // if at least one of these optionals is defined
@@ -1313,7 +1313,7 @@ function equals$d(existing, incoming) {
1313
1313
  return true;
1314
1314
  }
1315
1315
 
1316
- const VERSION$c = "4a07778ff6c595d91c575188146647a1";
1316
+ const VERSION$d = "4a07778ff6c595d91c575188146647a1";
1317
1317
  function validate$g(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1318
1318
  const v_error = (() => {
1319
1319
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1406,12 +1406,12 @@ function validate$g(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
1406
1406
  })();
1407
1407
  return v_error === undefined ? null : v_error;
1408
1408
  }
1409
- const select$g = function EinsteinLlmGenerationItemRepresentationSelect() {
1410
- const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$i();
1411
- const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$h();
1409
+ const select$i = function EinsteinLlmGenerationItemRepresentationSelect() {
1410
+ const { selections: EinsteinLlmGenerationsContentQualityRepresentation__selections, opaque: EinsteinLlmGenerationsContentQualityRepresentation__opaque, } = select$k();
1411
+ const { selections: EinsteinLlmGenerationsSafetyScoreRepresentation__selections, opaque: EinsteinLlmGenerationsSafetyScoreRepresentation__opaque, } = select$j();
1412
1412
  return {
1413
1413
  kind: 'Fragment',
1414
- version: VERSION$c,
1414
+ version: VERSION$d,
1415
1415
  private: [],
1416
1416
  selections: [
1417
1417
  {
@@ -1448,7 +1448,7 @@ const select$g = function EinsteinLlmGenerationItemRepresentationSelect() {
1448
1448
  ]
1449
1449
  };
1450
1450
  };
1451
- function equals$c(existing, incoming) {
1451
+ function equals$d(existing, incoming) {
1452
1452
  const existing_isSummarized = existing.isSummarized;
1453
1453
  const incoming_isSummarized = incoming.isSummarized;
1454
1454
  // if at least one of these optionals is defined
@@ -1489,7 +1489,7 @@ function equals$c(existing, incoming) {
1489
1489
  if (!(existing_contentQualityRepresentation === incoming_contentQualityRepresentation
1490
1490
  || (existing_contentQualityRepresentation != null &&
1491
1491
  incoming_contentQualityRepresentation != null &&
1492
- equals$e(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1492
+ equals$f(existing_contentQualityRepresentation, incoming_contentQualityRepresentation)))) {
1493
1493
  return false;
1494
1494
  }
1495
1495
  }
@@ -1505,14 +1505,14 @@ function equals$c(existing, incoming) {
1505
1505
  if (!(existing_safetyScoreRepresentation === incoming_safetyScoreRepresentation
1506
1506
  || (existing_safetyScoreRepresentation != null &&
1507
1507
  incoming_safetyScoreRepresentation != null &&
1508
- equals$d(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1508
+ equals$e(existing_safetyScoreRepresentation, incoming_safetyScoreRepresentation)))) {
1509
1509
  return false;
1510
1510
  }
1511
1511
  }
1512
1512
  return true;
1513
1513
  }
1514
1514
 
1515
- const VERSION$b = "4656c961c9d093a9e206c1db7d4de0b0";
1515
+ const VERSION$c = "4656c961c9d093a9e206c1db7d4de0b0";
1516
1516
  function validate$f(obj, path = 'WrappedMap') {
1517
1517
  const v_error = (() => {
1518
1518
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1535,15 +1535,15 @@ function validate$f(obj, path = 'WrappedMap') {
1535
1535
  })();
1536
1536
  return v_error === undefined ? null : v_error;
1537
1537
  }
1538
- const select$f = function WrappedMapSelect() {
1538
+ const select$h = function WrappedMapSelect() {
1539
1539
  return {
1540
1540
  kind: 'Fragment',
1541
- version: VERSION$b,
1541
+ version: VERSION$c,
1542
1542
  private: [],
1543
1543
  selections: []
1544
1544
  };
1545
1545
  };
1546
- function equals$b(existing, incoming) {
1546
+ function equals$c(existing, incoming) {
1547
1547
  const existing_wrappedMap = existing.wrappedMap;
1548
1548
  const incoming_wrappedMap = incoming.wrappedMap;
1549
1549
  const equals_wrappedMap_props = equalsObject(existing_wrappedMap, incoming_wrappedMap, (existing_wrappedMap_prop, incoming_wrappedMap_prop) => {
@@ -1554,8 +1554,8 @@ function equals$b(existing, incoming) {
1554
1554
  return true;
1555
1555
  }
1556
1556
 
1557
- const TTL$3 = 100;
1558
- const VERSION$a = "d8abd72a42e842b253da1c38954dafbc";
1557
+ const TTL$4 = 100;
1558
+ const VERSION$b = "d8abd72a42e842b253da1c38954dafbc";
1559
1559
  function validate$e(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1560
1560
  const v_error = (() => {
1561
1561
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1639,25 +1639,25 @@ function validate$e(obj, path = 'EinsteinLlmGenerationsRepresentation') {
1639
1639
  })();
1640
1640
  return v_error === undefined ? null : v_error;
1641
1641
  }
1642
- const RepresentationType$3 = 'EinsteinLlmGenerationsRepresentation';
1643
- function keyBuilder$5(luvio, config) {
1644
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.requestId;
1642
+ const RepresentationType$4 = 'EinsteinLlmGenerationsRepresentation';
1643
+ function keyBuilder$7(luvio, config) {
1644
+ return keyPrefix + '::' + RepresentationType$4 + ':' + config.requestId;
1645
1645
  }
1646
1646
  function keyBuilderFromType$1(luvio, object) {
1647
1647
  const keyParams = {
1648
1648
  requestId: object.requestId
1649
1649
  };
1650
- return keyBuilder$5(luvio, keyParams);
1650
+ return keyBuilder$7(luvio, keyParams);
1651
1651
  }
1652
- function normalize$3(input, existing, path, luvio, store, timestamp) {
1652
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
1653
1653
  return input;
1654
1654
  }
1655
- const select$e = function EinsteinLlmGenerationsRepresentationSelect() {
1656
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$g();
1657
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$f();
1655
+ const select$g = function EinsteinLlmGenerationsRepresentationSelect() {
1656
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$i();
1657
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$h();
1658
1658
  return {
1659
1659
  kind: 'Fragment',
1660
- version: VERSION$a,
1660
+ version: VERSION$b,
1661
1661
  private: [],
1662
1662
  selections: [
1663
1663
  {
@@ -1683,7 +1683,7 @@ const select$e = function EinsteinLlmGenerationsRepresentationSelect() {
1683
1683
  ]
1684
1684
  };
1685
1685
  };
1686
- function equals$a(existing, incoming) {
1686
+ function equals$b(existing, incoming) {
1687
1687
  const existing_requestId = existing.requestId;
1688
1688
  const incoming_requestId = incoming.requestId;
1689
1689
  if (!(existing_requestId === incoming_requestId)) {
@@ -1692,7 +1692,7 @@ function equals$a(existing, incoming) {
1692
1692
  const existing_generations = existing.generations;
1693
1693
  const incoming_generations = incoming.generations;
1694
1694
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
1695
- if (!(equals$c(existing_generations_item, incoming_generations_item))) {
1695
+ if (!(equals$d(existing_generations_item, incoming_generations_item))) {
1696
1696
  return false;
1697
1697
  }
1698
1698
  });
@@ -1704,7 +1704,7 @@ function equals$a(existing, incoming) {
1704
1704
  if (!(existing_parameters === incoming_parameters
1705
1705
  || (existing_parameters != null &&
1706
1706
  incoming_parameters != null &&
1707
- equals$b(existing_parameters, incoming_parameters)))) {
1707
+ equals$c(existing_parameters, incoming_parameters)))) {
1708
1708
  return false;
1709
1709
  }
1710
1710
  const existing_prompt = existing.prompt;
@@ -1714,7 +1714,7 @@ function equals$a(existing, incoming) {
1714
1714
  }
1715
1715
  return true;
1716
1716
  }
1717
- const ingest$3 = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
1717
+ const ingest$4 = function EinsteinLlmGenerationsRepresentationIngest(input, path, luvio, store, timestamp) {
1718
1718
  if (process.env.NODE_ENV !== 'production') {
1719
1719
  const validateError = validate$e(input);
1720
1720
  if (validateError !== null) {
@@ -1722,33 +1722,33 @@ const ingest$3 = function EinsteinLlmGenerationsRepresentationIngest(input, path
1722
1722
  }
1723
1723
  }
1724
1724
  const key = keyBuilderFromType$1(luvio, input);
1725
- const ttlToUse = TTL$3;
1726
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$a, RepresentationType$3, equals$a);
1725
+ const ttlToUse = TTL$4;
1726
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "EinsteinLLM", VERSION$b, RepresentationType$4, equals$b);
1727
1727
  return createLink(key);
1728
1728
  };
1729
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1729
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1730
1730
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1731
1731
  const rootKey = keyBuilderFromType$1(luvio, input);
1732
1732
  rootKeySet.set(rootKey, {
1733
1733
  namespace: keyPrefix,
1734
- representationName: RepresentationType$3,
1734
+ representationName: RepresentationType$4,
1735
1735
  mergeable: false
1736
1736
  });
1737
1737
  }
1738
1738
 
1739
- function select$d(luvio, params) {
1740
- return select$e();
1739
+ function select$f(luvio, params) {
1740
+ return select$g();
1741
1741
  }
1742
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
1743
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
1742
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
1743
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
1744
1744
  }
1745
- function ingestSuccess$3(luvio, resourceParams, response) {
1745
+ function ingestSuccess$4(luvio, resourceParams, response) {
1746
1746
  const { body } = response;
1747
1747
  const key = keyBuilderFromType$1(luvio, body);
1748
- luvio.storeIngest(key, ingest$3, body);
1748
+ luvio.storeIngest(key, ingest$4, body);
1749
1749
  const snapshot = luvio.storeLookup({
1750
1750
  recordId: key,
1751
- node: select$d(),
1751
+ node: select$f(),
1752
1752
  variables: {},
1753
1753
  });
1754
1754
  if (process.env.NODE_ENV !== 'production') {
@@ -1759,7 +1759,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
1759
1759
  deepFreeze(snapshot.data);
1760
1760
  return snapshot;
1761
1761
  }
1762
- function createResourceRequest$3(config) {
1762
+ function createResourceRequest$4(config) {
1763
1763
  const headers = {};
1764
1764
  return {
1765
1765
  baseUri: '/services/data/v64.0',
@@ -1773,13 +1773,13 @@ function createResourceRequest$3(config) {
1773
1773
  };
1774
1774
  }
1775
1775
 
1776
- const adapterName$3 = 'createGenerations';
1776
+ const adapterName$4 = 'createGenerations';
1777
1777
  const createGenerations_ConfigPropertyMetadata = [
1778
1778
  generateParamConfigMetadata('generationsInput', true, 2 /* Body */, 4 /* Unsupported */),
1779
1779
  ];
1780
- const createGenerations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createGenerations_ConfigPropertyMetadata);
1781
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$6(createGenerations_ConfigPropertyMetadata);
1782
- function typeCheckConfig$3(untrustedConfig) {
1780
+ const createGenerations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createGenerations_ConfigPropertyMetadata);
1781
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(createGenerations_ConfigPropertyMetadata);
1782
+ function typeCheckConfig$4(untrustedConfig) {
1783
1783
  const config = {};
1784
1784
  const untrustedConfig_generationsInput = untrustedConfig.generationsInput;
1785
1785
  const referenceEinsteinLlmGenerationsInputRepresentationValidationError = validate$j(untrustedConfig_generationsInput);
@@ -1788,30 +1788,30 @@ function typeCheckConfig$3(untrustedConfig) {
1788
1788
  }
1789
1789
  return config;
1790
1790
  }
1791
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
1791
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
1792
1792
  if (!untrustedIsObject(untrustedConfig)) {
1793
1793
  return null;
1794
1794
  }
1795
1795
  if (process.env.NODE_ENV !== 'production') {
1796
1796
  validateConfig(untrustedConfig, configPropertyNames);
1797
1797
  }
1798
- const config = typeCheckConfig$3(untrustedConfig);
1798
+ const config = typeCheckConfig$4(untrustedConfig);
1799
1799
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1800
1800
  return null;
1801
1801
  }
1802
1802
  return config;
1803
1803
  }
1804
- function buildNetworkSnapshot$3(luvio, config, options) {
1805
- const resourceParams = createResourceParams$3(config);
1806
- const request = createResourceRequest$3(resourceParams);
1804
+ function buildNetworkSnapshot$4(luvio, config, options) {
1805
+ const resourceParams = createResourceParams$4(config);
1806
+ const request = createResourceRequest$4(resourceParams);
1807
1807
  return luvio.dispatchResourceRequest(request, options)
1808
1808
  .then((response) => {
1809
1809
  return luvio.handleSuccessResponse(() => {
1810
- const snapshot = ingestSuccess$3(luvio, resourceParams, response);
1810
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response);
1811
1811
  return luvio.storeBroadcast().then(() => snapshot);
1812
1812
  }, () => {
1813
1813
  const cache = new StoreKeyMap();
1814
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
1814
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
1815
1815
  return cache;
1816
1816
  });
1817
1817
  }, (response) => {
@@ -1821,12 +1821,12 @@ function buildNetworkSnapshot$3(luvio, config, options) {
1821
1821
  }
1822
1822
  const createGenerationsAdapterFactory = (luvio) => {
1823
1823
  return function createGenerations(untrustedConfig) {
1824
- const config = validateAdapterConfig$3(untrustedConfig, createGenerations_ConfigPropertyNames);
1824
+ const config = validateAdapterConfig$4(untrustedConfig, createGenerations_ConfigPropertyNames);
1825
1825
  // Invalid or incomplete config
1826
1826
  if (config === null) {
1827
1827
  throw new Error('Invalid config for "createGenerations"');
1828
1828
  }
1829
- return buildNetworkSnapshot$3(luvio, config);
1829
+ return buildNetworkSnapshot$4(luvio, config);
1830
1830
  };
1831
1831
  };
1832
1832
 
@@ -1890,6 +1890,8 @@ function validate$d(obj, path = 'EinsteinPromptRecordFieldRepresentation') {
1890
1890
  return v_error === undefined ? null : v_error;
1891
1891
  }
1892
1892
 
1893
+ const TTL$3 = 100;
1894
+ const VERSION$a = "2d1628544b54fc1701aa9b4eff05127b";
1893
1895
  function validate$c(obj, path = 'EinsteinPromptRecordRepresentation') {
1894
1896
  const v_error = (() => {
1895
1897
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1913,11 +1915,18 @@ function validate$c(obj, path = 'EinsteinPromptRecordRepresentation') {
1913
1915
  const key = obj_childRelationships_keys[i];
1914
1916
  const obj_childRelationships_prop = obj_childRelationships[key];
1915
1917
  const path_childRelationships_prop = path_childRelationships + '["' + key + '"]';
1916
- const referencepath_childRelationships_propValidationError = validate$c(obj_childRelationships_prop, path_childRelationships_prop);
1917
- if (referencepath_childRelationships_propValidationError !== null) {
1918
- let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_childRelationships_prop + '")\n';
1919
- message += referencepath_childRelationships_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1920
- return new TypeError(message);
1918
+ if (!ArrayIsArray(obj_childRelationships_prop)) {
1919
+ return new TypeError('Expected "array" but received "' + typeof obj_childRelationships_prop + '" (at "' + path_childRelationships_prop + '")');
1920
+ }
1921
+ for (let i = 0; i < obj_childRelationships_prop.length; i++) {
1922
+ const obj_childRelationships_prop_item = obj_childRelationships_prop[i];
1923
+ const path_childRelationships_prop_item = path_childRelationships_prop + '[' + i + ']';
1924
+ const referencepath_childRelationships_prop_itemValidationError = validate$c(obj_childRelationships_prop_item, path_childRelationships_prop_item);
1925
+ if (referencepath_childRelationships_prop_itemValidationError !== null) {
1926
+ let message = 'Object doesn\'t match EinsteinPromptRecordRepresentation (at "' + path_childRelationships_prop_item + '")\n';
1927
+ message += referencepath_childRelationships_prop_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1928
+ return new TypeError(message);
1929
+ }
1921
1930
  }
1922
1931
  }
1923
1932
  }
@@ -1950,9 +1959,48 @@ function validate$c(obj, path = 'EinsteinPromptRecordRepresentation') {
1950
1959
  })();
1951
1960
  return v_error === undefined ? null : v_error;
1952
1961
  }
1962
+ const RepresentationType$3 = 'EinsteinPromptRecordRepresentation';
1963
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
1964
+ return input;
1965
+ }
1966
+ const select$e = function EinsteinPromptRecordRepresentationSelect() {
1967
+ return {
1968
+ kind: 'Fragment',
1969
+ version: VERSION$a,
1970
+ private: [],
1971
+ opaque: true
1972
+ };
1973
+ };
1974
+ function equals$a(existing, incoming) {
1975
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
1976
+ return false;
1977
+ }
1978
+ return true;
1979
+ }
1980
+ const ingest$3 = function EinsteinPromptRecordRepresentationIngest(input, path, luvio, store, timestamp) {
1981
+ if (process.env.NODE_ENV !== 'production') {
1982
+ const validateError = validate$c(input);
1983
+ if (validateError !== null) {
1984
+ throw validateError;
1985
+ }
1986
+ }
1987
+ const key = path.fullPath;
1988
+ const ttlToUse = TTL$3;
1989
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "EinsteinLLM", VERSION$a, RepresentationType$3, equals$a);
1990
+ return createLink(key);
1991
+ };
1992
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1993
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1994
+ const rootKey = fullPathFactory();
1995
+ rootKeySet.set(rootKey, {
1996
+ namespace: keyPrefix,
1997
+ representationName: RepresentationType$3,
1998
+ mergeable: false
1999
+ });
2000
+ }
1953
2001
 
1954
2002
  const TTL$2 = 100;
1955
- const VERSION$9 = "b1bbf0a799a9fd0defceb1b9ff7e7502";
2003
+ const VERSION$9 = "5fd7b8a03d155ba601bcb4ee725e0893";
1956
2004
  function validate$b(obj, path = 'EinsteinPromptRecordCollectionOutputRepresentation') {
1957
2005
  const v_error = (() => {
1958
2006
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1992,7 +2040,7 @@ const RepresentationType$2 = 'EinsteinPromptRecordCollectionOutputRepresentation
1992
2040
  function normalize$2(input, existing, path, luvio, store, timestamp) {
1993
2041
  return input;
1994
2042
  }
1995
- const select$c = function EinsteinPromptRecordCollectionOutputRepresentationSelect() {
2043
+ const select$d = function EinsteinPromptRecordCollectionOutputRepresentationSelect() {
1996
2044
  return {
1997
2045
  kind: 'Fragment',
1998
2046
  version: VERSION$9,
@@ -2028,22 +2076,22 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
2028
2076
  });
2029
2077
  }
2030
2078
 
2031
- function select$b(luvio, params) {
2032
- return select$c();
2079
+ function select$c(luvio, params) {
2080
+ return select$d();
2033
2081
  }
2034
- function keyBuilder$4(luvio, params) {
2082
+ function keyBuilder$6(luvio, params) {
2035
2083
  return keyPrefix + '::EinsteinPromptRecordCollectionOutputRepresentation:(' + 'isActive:' + params.queryParams.isActive + ',' + 'fields:' + params.queryParams.fields + ',' + 'relatedEntity:' + params.queryParams.relatedEntity + ',' + 'offset:' + params.queryParams.offset + ',' + 'pageLimit:' + params.queryParams.pageLimit + ',' + 'type:' + params.queryParams.type + ',' + 'query:' + params.queryParams.query + ',' + 'sortBy:' + params.queryParams.sortBy + ')';
2036
2084
  }
2037
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
2038
- getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
2085
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
2086
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
2039
2087
  }
2040
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
2088
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
2041
2089
  const { body } = response;
2042
- const key = keyBuilder$4(luvio, resourceParams);
2090
+ const key = keyBuilder$6(luvio, resourceParams);
2043
2091
  luvio.storeIngest(key, ingest$2, body);
2044
2092
  const snapshot = luvio.storeLookup({
2045
2093
  recordId: key,
2046
- node: select$b(),
2094
+ node: select$c(),
2047
2095
  variables: {},
2048
2096
  }, snapshotRefresh);
2049
2097
  if (process.env.NODE_ENV !== 'production') {
@@ -2054,8 +2102,8 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
2054
2102
  deepFreeze(snapshot.data);
2055
2103
  return snapshot;
2056
2104
  }
2057
- function ingestError$1(luvio, params, error, snapshotRefresh) {
2058
- const key = keyBuilder$4(luvio, params);
2105
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
2106
+ const key = keyBuilder$6(luvio, params);
2059
2107
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2060
2108
  const storeMetadataParams = {
2061
2109
  ttl: TTL$2,
@@ -2066,7 +2114,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
2066
2114
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2067
2115
  return errorSnapshot;
2068
2116
  }
2069
- function createResourceRequest$2(config) {
2117
+ function createResourceRequest$3(config) {
2070
2118
  const headers = {};
2071
2119
  return {
2072
2120
  baseUri: '/services/data/v64.0',
@@ -2080,7 +2128,7 @@ function createResourceRequest$2(config) {
2080
2128
  };
2081
2129
  }
2082
2130
 
2083
- const adapterName$2 = 'getPromptTemplates';
2131
+ const adapterName$3 = 'getPromptTemplates';
2084
2132
  const getPromptTemplates_ConfigPropertyMetadata = [
2085
2133
  generateParamConfigMetadata('isActive', false, 1 /* QueryParameter */, 1 /* Boolean */),
2086
2134
  generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true),
@@ -2091,15 +2139,154 @@ const getPromptTemplates_ConfigPropertyMetadata = [
2091
2139
  generateParamConfigMetadata('query', false, 1 /* QueryParameter */, 0 /* String */),
2092
2140
  generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
2093
2141
  ];
2094
- const getPromptTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getPromptTemplates_ConfigPropertyMetadata);
2095
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$6(getPromptTemplates_ConfigPropertyMetadata);
2142
+ const getPromptTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getPromptTemplates_ConfigPropertyMetadata);
2143
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(getPromptTemplates_ConfigPropertyMetadata);
2144
+ function keyBuilder$5(luvio, config) {
2145
+ const resourceParams = createResourceParams$3(config);
2146
+ return keyBuilder$6(luvio, resourceParams);
2147
+ }
2148
+ function typeCheckConfig$3(untrustedConfig) {
2149
+ const config = {};
2150
+ typeCheckConfig$7(untrustedConfig, config, getPromptTemplates_ConfigPropertyMetadata);
2151
+ return config;
2152
+ }
2153
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
2154
+ if (!untrustedIsObject(untrustedConfig)) {
2155
+ return null;
2156
+ }
2157
+ if (process.env.NODE_ENV !== 'production') {
2158
+ validateConfig(untrustedConfig, configPropertyNames);
2159
+ }
2160
+ const config = typeCheckConfig$3(untrustedConfig);
2161
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2162
+ return null;
2163
+ }
2164
+ return config;
2165
+ }
2166
+ function adapterFragment$2(luvio, config) {
2167
+ createResourceParams$3(config);
2168
+ return select$c();
2169
+ }
2170
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
2171
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
2172
+ config,
2173
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2174
+ });
2175
+ return luvio.storeBroadcast().then(() => snapshot);
2176
+ }
2177
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
2178
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
2179
+ config,
2180
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2181
+ });
2182
+ return luvio.storeBroadcast().then(() => snapshot);
2183
+ }
2184
+ function buildNetworkSnapshot$3(luvio, config, options) {
2185
+ const resourceParams = createResourceParams$3(config);
2186
+ const request = createResourceRequest$3(resourceParams);
2187
+ return luvio.dispatchResourceRequest(request, options)
2188
+ .then((response) => {
2189
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
2190
+ const cache = new StoreKeyMap();
2191
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
2192
+ return cache;
2193
+ });
2194
+ }, (response) => {
2195
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
2196
+ });
2197
+ }
2198
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
2199
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
2200
+ }
2201
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
2202
+ const { luvio, config } = context;
2203
+ const selector = {
2204
+ recordId: keyBuilder$5(luvio, config),
2205
+ node: adapterFragment$2(luvio, config),
2206
+ variables: {},
2207
+ };
2208
+ const cacheSnapshot = storeLookup(selector, {
2209
+ config,
2210
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2211
+ });
2212
+ return cacheSnapshot;
2213
+ }
2214
+ const getPromptTemplatesAdapterFactory = (luvio) => function EinsteinLLM__getPromptTemplates(untrustedConfig, requestContext) {
2215
+ const config = validateAdapterConfig$3(untrustedConfig, getPromptTemplates_ConfigPropertyNames);
2216
+ // Invalid or incomplete config
2217
+ if (config === null) {
2218
+ return null;
2219
+ }
2220
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2221
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
2222
+ };
2223
+
2224
+ function select$b(luvio, params) {
2225
+ return select$e();
2226
+ }
2227
+ function keyBuilder$4(luvio, params) {
2228
+ return keyPrefix + '::EinsteinPromptRecordRepresentation:(' + 'versionId:' + params.queryParams.versionId + ',' + 'promptTemplateDevName:' + params.urlParams.promptTemplateDevName + ')';
2229
+ }
2230
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
2231
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
2232
+ }
2233
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
2234
+ const { body } = response;
2235
+ const key = keyBuilder$4(luvio, resourceParams);
2236
+ luvio.storeIngest(key, ingest$3, body);
2237
+ const snapshot = luvio.storeLookup({
2238
+ recordId: key,
2239
+ node: select$b(),
2240
+ variables: {},
2241
+ }, snapshotRefresh);
2242
+ if (process.env.NODE_ENV !== 'production') {
2243
+ if (snapshot.state !== 'Fulfilled') {
2244
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2245
+ }
2246
+ }
2247
+ deepFreeze(snapshot.data);
2248
+ return snapshot;
2249
+ }
2250
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
2251
+ const key = keyBuilder$4(luvio, params);
2252
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2253
+ const storeMetadataParams = {
2254
+ ttl: TTL$3,
2255
+ namespace: keyPrefix,
2256
+ version: VERSION$a,
2257
+ representationName: RepresentationType$3
2258
+ };
2259
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2260
+ return errorSnapshot;
2261
+ }
2262
+ function createResourceRequest$2(config) {
2263
+ const headers = {};
2264
+ return {
2265
+ baseUri: '/services/data/v64.0',
2266
+ basePath: '/einstein/prompt-templates/' + config.urlParams.promptTemplateDevName + '',
2267
+ method: 'get',
2268
+ body: null,
2269
+ urlParams: config.urlParams,
2270
+ queryParams: config.queryParams,
2271
+ headers,
2272
+ priority: 'normal',
2273
+ };
2274
+ }
2275
+
2276
+ const adapterName$2 = 'getPromptTemplate';
2277
+ const getPromptTemplate_ConfigPropertyMetadata = [
2278
+ generateParamConfigMetadata('promptTemplateDevName', true, 0 /* UrlParameter */, 0 /* String */),
2279
+ generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
2280
+ ];
2281
+ const getPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getPromptTemplate_ConfigPropertyMetadata);
2282
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$7(getPromptTemplate_ConfigPropertyMetadata);
2096
2283
  function keyBuilder$3(luvio, config) {
2097
2284
  const resourceParams = createResourceParams$2(config);
2098
2285
  return keyBuilder$4(luvio, resourceParams);
2099
2286
  }
2100
2287
  function typeCheckConfig$2(untrustedConfig) {
2101
2288
  const config = {};
2102
- typeCheckConfig$6(untrustedConfig, config, getPromptTemplates_ConfigPropertyMetadata);
2289
+ typeCheckConfig$7(untrustedConfig, config, getPromptTemplate_ConfigPropertyMetadata);
2103
2290
  return config;
2104
2291
  }
2105
2292
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -2148,7 +2335,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
2148
2335
  });
2149
2336
  }
2150
2337
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
2151
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
2338
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
2152
2339
  }
2153
2340
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
2154
2341
  const { luvio, config } = context;
@@ -2163,8 +2350,8 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
2163
2350
  });
2164
2351
  return cacheSnapshot;
2165
2352
  }
2166
- const getPromptTemplatesAdapterFactory = (luvio) => function EinsteinLLM__getPromptTemplates(untrustedConfig, requestContext) {
2167
- const config = validateAdapterConfig$2(untrustedConfig, getPromptTemplates_ConfigPropertyNames);
2353
+ const getPromptTemplateAdapterFactory = (luvio) => function EinsteinLLM__getPromptTemplate(untrustedConfig, requestContext) {
2354
+ const config = validateAdapterConfig$2(untrustedConfig, getPromptTemplate_ConfigPropertyNames);
2168
2355
  // Invalid or incomplete config
2169
2356
  if (config === null) {
2170
2357
  return null;
@@ -2829,8 +3016,8 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
2829
3016
  const select$5 = function EinsteinPromptTemplateGenerationsRepresentationSelect() {
2830
3017
  const { selections: EinsteinPromptTemplateAttachmentRepresentation__selections, opaque: EinsteinPromptTemplateAttachmentRepresentation__opaque, } = select$a();
2831
3018
  const { selections: EinsteinPromptTemplateGenerationsErrorRepresentation__selections, opaque: EinsteinPromptTemplateGenerationsErrorRepresentation__opaque, } = select$9();
2832
- const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$g();
2833
- const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$f();
3019
+ const { selections: EinsteinLlmGenerationItemRepresentation__selections, opaque: EinsteinLlmGenerationItemRepresentation__opaque, } = select$i();
3020
+ const { selections: WrappedMap__selections, opaque: WrappedMap__opaque, } = select$h();
2834
3021
  const { selections: EinsteinPromptTemplateMaskContentRepresentation__selections, opaque: EinsteinPromptTemplateMaskContentRepresentation__opaque, } = select$7();
2835
3022
  const { selections: EinsteinPromptTemplateMaskDataRepresentation__selections, opaque: EinsteinPromptTemplateMaskDataRepresentation__opaque, } = select$6();
2836
3023
  return {
@@ -2950,7 +3137,7 @@ function equals$3(existing, incoming) {
2950
3137
  const existing_generations = existing.generations;
2951
3138
  const incoming_generations = incoming.generations;
2952
3139
  const equals_generations_items = equalsArray(existing_generations, incoming_generations, (existing_generations_item, incoming_generations_item) => {
2953
- if (!(equals$c(existing_generations_item, incoming_generations_item))) {
3140
+ if (!(equals$d(existing_generations_item, incoming_generations_item))) {
2954
3141
  return false;
2955
3142
  }
2956
3143
  });
@@ -2962,7 +3149,7 @@ function equals$3(existing, incoming) {
2962
3149
  if (!(existing_parameters === incoming_parameters
2963
3150
  || (existing_parameters != null &&
2964
3151
  incoming_parameters != null &&
2965
- equals$b(existing_parameters, incoming_parameters)))) {
3152
+ equals$c(existing_parameters, incoming_parameters)))) {
2966
3153
  return false;
2967
3154
  }
2968
3155
  const existing_prompt = existing.prompt;
@@ -3092,10 +3279,10 @@ const createGenerationsForPromptTemplate_ConfigPropertyMetadata = [
3092
3279
  generateParamConfigMetadata('promptTemplateGenerationsInput', true, 2 /* Body */, 4 /* Unsupported */),
3093
3280
  ];
3094
3281
  const createGenerationsForPromptTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
3095
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$6(createGenerationsForPromptTemplate_ConfigPropertyMetadata);
3282
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$7(createGenerationsForPromptTemplate_ConfigPropertyMetadata);
3096
3283
  function typeCheckConfig$1(untrustedConfig) {
3097
3284
  const config = {};
3098
- typeCheckConfig$6(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
3285
+ typeCheckConfig$7(untrustedConfig, config, createGenerationsForPromptTemplate_ConfigPropertyMetadata);
3099
3286
  const untrustedConfig_promptTemplateGenerationsInput = untrustedConfig.promptTemplateGenerationsInput;
3100
3287
  const referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError = validate$9(untrustedConfig_promptTemplateGenerationsInput);
3101
3288
  if (referenceEinsteinPromptTemplateGenerationsInputRepresentationValidationError === null) {
@@ -3458,14 +3645,14 @@ const getOutputLanguages_ConfigPropertyMetadata = [
3458
3645
  generateParamConfigMetadata('versionId', false, 1 /* QueryParameter */, 0 /* String */),
3459
3646
  ];
3460
3647
  const getOutputLanguages_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getOutputLanguages_ConfigPropertyMetadata);
3461
- const createResourceParams = /*#__PURE__*/ createResourceParams$6(getOutputLanguages_ConfigPropertyMetadata);
3648
+ const createResourceParams = /*#__PURE__*/ createResourceParams$7(getOutputLanguages_ConfigPropertyMetadata);
3462
3649
  function keyBuilder(luvio, config) {
3463
3650
  const resourceParams = createResourceParams(config);
3464
3651
  return keyBuilder$1(luvio, resourceParams);
3465
3652
  }
3466
3653
  function typeCheckConfig(untrustedConfig) {
3467
3654
  const config = {};
3468
- typeCheckConfig$6(untrustedConfig, config, getOutputLanguages_ConfigPropertyMetadata);
3655
+ typeCheckConfig$7(untrustedConfig, config, getOutputLanguages_ConfigPropertyMetadata);
3469
3656
  return config;
3470
3657
  }
3471
3658
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -3514,7 +3701,7 @@ function buildNetworkSnapshot(luvio, config, options) {
3514
3701
  });
3515
3702
  }
3516
3703
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
3517
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
3704
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
3518
3705
  }
3519
3706
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
3520
3707
  const { luvio, config } = context;
@@ -3539,4 +3726,4 @@ const getOutputLanguagesAdapterFactory = (luvio) => function EinsteinLLM__getOut
3539
3726
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
3540
3727
  };
3541
3728
 
3542
- export { createEmbeddingsAdapterFactory, createFeedbackAdapterFactory, createGenerationsAdapterFactory, createGenerationsForPromptTemplateAdapterFactory, getOutputLanguagesAdapterFactory, getPromptTemplatesAdapterFactory };
3729
+ export { createEmbeddingsAdapterFactory, createFeedbackAdapterFactory, createGenerationsAdapterFactory, createGenerationsForPromptTemplateAdapterFactory, getOutputLanguagesAdapterFactory, getPromptTemplateAdapterFactory, getPromptTemplatesAdapterFactory };