@salesforce/lds-adapters-service-einsteinllm 1.380.0-dev6 → 1.380.0-dev8

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.
@@ -5252,7 +5252,7 @@ function equals$4(existing, incoming) {
5252
5252
  }
5253
5253
 
5254
5254
  const TTL$1 = 100;
5255
- const VERSION$3 = "25461f267931be0754b36e2788461191";
5255
+ const VERSION$3 = "4f8799314eebcd45e3fca72dcdf7722d";
5256
5256
  function validate$3(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
5257
5257
  const v_error = (() => {
5258
5258
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5393,6 +5393,32 @@ function validate$3(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
5393
5393
  if (typeof obj_promptTemplateDevName !== 'string') {
5394
5394
  return new TypeError('Expected "string" but received "' + typeof obj_promptTemplateDevName + '" (at "' + path_promptTemplateDevName + '")');
5395
5395
  }
5396
+ const obj_rawPrompt = obj.rawPrompt;
5397
+ const path_rawPrompt = path + '.rawPrompt';
5398
+ let obj_rawPrompt_union0 = null;
5399
+ const obj_rawPrompt_union0_error = (() => {
5400
+ if (typeof obj_rawPrompt !== 'string') {
5401
+ return new TypeError('Expected "string" but received "' + typeof obj_rawPrompt + '" (at "' + path_rawPrompt + '")');
5402
+ }
5403
+ })();
5404
+ if (obj_rawPrompt_union0_error != null) {
5405
+ obj_rawPrompt_union0 = obj_rawPrompt_union0_error.message;
5406
+ }
5407
+ let obj_rawPrompt_union1 = null;
5408
+ const obj_rawPrompt_union1_error = (() => {
5409
+ if (obj_rawPrompt !== null) {
5410
+ return new TypeError('Expected "null" but received "' + typeof obj_rawPrompt + '" (at "' + path_rawPrompt + '")');
5411
+ }
5412
+ })();
5413
+ if (obj_rawPrompt_union1_error != null) {
5414
+ obj_rawPrompt_union1 = obj_rawPrompt_union1_error.message;
5415
+ }
5416
+ if (obj_rawPrompt_union0 && obj_rawPrompt_union1) {
5417
+ let message = 'Object doesn\'t match union (at "' + path_rawPrompt + '")';
5418
+ message += '\n' + obj_rawPrompt_union0.split('\n').map((line) => '\t' + line).join('\n');
5419
+ message += '\n' + obj_rawPrompt_union1.split('\n').map((line) => '\t' + line).join('\n');
5420
+ return new TypeError(message);
5421
+ }
5396
5422
  const obj_requestId = obj.requestId;
5397
5423
  const path_requestId = path + '.requestId';
5398
5424
  if (typeof obj_requestId !== 'string') {
@@ -5523,6 +5549,10 @@ const select$5 = function EinsteinPromptTemplateGenerationsRepresentationSelect(
5523
5549
  name: 'promptTemplateDevName',
5524
5550
  kind: 'Scalar'
5525
5551
  },
5552
+ {
5553
+ name: 'rawPrompt',
5554
+ kind: 'Scalar'
5555
+ },
5526
5556
  {
5527
5557
  name: 'requestId',
5528
5558
  kind: 'Scalar'
@@ -5652,6 +5682,11 @@ function equals$3(existing, incoming) {
5652
5682
  if (!(existing_prompt === incoming_prompt)) {
5653
5683
  return false;
5654
5684
  }
5685
+ const existing_rawPrompt = existing.rawPrompt;
5686
+ const incoming_rawPrompt = incoming.rawPrompt;
5687
+ if (!(existing_rawPrompt === incoming_rawPrompt)) {
5688
+ return false;
5689
+ }
5655
5690
  const existing_requestMessages = existing.requestMessages;
5656
5691
  const incoming_requestMessages = incoming.requestMessages;
5657
5692
  // if at least one of these optionals is defined
@@ -7,7 +7,7 @@ import { EinsteinPromptTemplateMaskContentRepresentation as EinsteinPromptTempla
7
7
  import { EinsteinPromptTemplateMaskDataRepresentation as EinsteinPromptTemplateMaskDataRepresentation_EinsteinPromptTemplateMaskDataRepresentation } from './EinsteinPromptTemplateMaskDataRepresentation';
8
8
  import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
9
9
  export declare const TTL = 100;
10
- export declare const VERSION = "25461f267931be0754b36e2788461191";
10
+ export declare const VERSION = "4f8799314eebcd45e3fca72dcdf7722d";
11
11
  export declare function validate(obj: any, path?: string): TypeError | null;
12
12
  export declare const RepresentationType: string;
13
13
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -48,6 +48,8 @@ export interface EinsteinPromptTemplateGenerationsRepresentationNormalized {
48
48
  prompt: string | null;
49
49
  /** generated prompt template promptTemplateDevName */
50
50
  promptTemplateDevName: string;
51
+ /** Raw prompt with unresolved merge fields */
52
+ rawPrompt: string | null;
51
53
  /** ID of the generation request */
52
54
  requestId: string;
53
55
  /** generated prompt template RequestMessages */
@@ -74,6 +76,7 @@ export interface EinsteinPromptTemplateGenerationsRepresentation {
74
76
  parameters: WrappedMap_WrappedMap | null;
75
77
  prompt: string | null;
76
78
  promptTemplateDevName: string;
79
+ rawPrompt: string | null;
77
80
  requestId: string;
78
81
  requestMessages?: Array<EinsteinPromptTemplateMaskContentRepresentation_EinsteinPromptTemplateMaskContentRepresentation>;
79
82
  responseMessages?: Array<EinsteinPromptTemplateMaskContentRepresentation_EinsteinPromptTemplateMaskContentRepresentation>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einsteinllm",
3
- "version": "1.380.0-dev6",
3
+ "version": "1.380.0-dev8",
4
4
  "description": "Connect family for Einstein LLM generations",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/service-einsteinllm.js",
@@ -44,11 +44,11 @@
44
44
  "test:unit": "jest --config=./jest.config.js"
45
45
  },
46
46
  "dependencies": {
47
- "@salesforce/lds-bindings": "^1.380.0-dev6"
47
+ "@salesforce/lds-bindings": "^1.380.0-dev8"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "^1.380.0-dev6",
51
- "@salesforce/lds-karma": "^1.380.0-dev6"
50
+ "@salesforce/lds-compiler-plugins": "^1.380.0-dev8",
51
+ "@salesforce/lds-karma": "^1.380.0-dev8"
52
52
  },
53
53
  "nx": {
54
54
  "targets": {
package/sfdc/index.js CHANGED
@@ -2665,7 +2665,7 @@ function equals$a(existing, incoming) {
2665
2665
  }
2666
2666
 
2667
2667
  const TTL$7 = 100;
2668
- const VERSION$9 = "25461f267931be0754b36e2788461191";
2668
+ const VERSION$9 = "4f8799314eebcd45e3fca72dcdf7722d";
2669
2669
  function validate$d(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
2670
2670
  const v_error = (() => {
2671
2671
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2806,6 +2806,32 @@ function validate$d(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
2806
2806
  if (typeof obj_promptTemplateDevName !== 'string') {
2807
2807
  return new TypeError('Expected "string" but received "' + typeof obj_promptTemplateDevName + '" (at "' + path_promptTemplateDevName + '")');
2808
2808
  }
2809
+ const obj_rawPrompt = obj.rawPrompt;
2810
+ const path_rawPrompt = path + '.rawPrompt';
2811
+ let obj_rawPrompt_union0 = null;
2812
+ const obj_rawPrompt_union0_error = (() => {
2813
+ if (typeof obj_rawPrompt !== 'string') {
2814
+ return new TypeError('Expected "string" but received "' + typeof obj_rawPrompt + '" (at "' + path_rawPrompt + '")');
2815
+ }
2816
+ })();
2817
+ if (obj_rawPrompt_union0_error != null) {
2818
+ obj_rawPrompt_union0 = obj_rawPrompt_union0_error.message;
2819
+ }
2820
+ let obj_rawPrompt_union1 = null;
2821
+ const obj_rawPrompt_union1_error = (() => {
2822
+ if (obj_rawPrompt !== null) {
2823
+ return new TypeError('Expected "null" but received "' + typeof obj_rawPrompt + '" (at "' + path_rawPrompt + '")');
2824
+ }
2825
+ })();
2826
+ if (obj_rawPrompt_union1_error != null) {
2827
+ obj_rawPrompt_union1 = obj_rawPrompt_union1_error.message;
2828
+ }
2829
+ if (obj_rawPrompt_union0 && obj_rawPrompt_union1) {
2830
+ let message = 'Object doesn\'t match union (at "' + path_rawPrompt + '")';
2831
+ message += '\n' + obj_rawPrompt_union0.split('\n').map((line) => '\t' + line).join('\n');
2832
+ message += '\n' + obj_rawPrompt_union1.split('\n').map((line) => '\t' + line).join('\n');
2833
+ return new TypeError(message);
2834
+ }
2809
2835
  const obj_requestId = obj.requestId;
2810
2836
  const path_requestId = path + '.requestId';
2811
2837
  if (typeof obj_requestId !== 'string') {
@@ -2936,6 +2962,10 @@ const select$n = function EinsteinPromptTemplateGenerationsRepresentationSelect(
2936
2962
  name: 'promptTemplateDevName',
2937
2963
  kind: 'Scalar'
2938
2964
  },
2965
+ {
2966
+ name: 'rawPrompt',
2967
+ kind: 'Scalar'
2968
+ },
2939
2969
  {
2940
2970
  name: 'requestId',
2941
2971
  kind: 'Scalar'
@@ -3065,6 +3095,11 @@ function equals$9(existing, incoming) {
3065
3095
  if (!(existing_prompt === incoming_prompt)) {
3066
3096
  return false;
3067
3097
  }
3098
+ const existing_rawPrompt = existing.rawPrompt;
3099
+ const incoming_rawPrompt = incoming.rawPrompt;
3100
+ if (!(existing_rawPrompt === incoming_rawPrompt)) {
3101
+ return false;
3102
+ }
3068
3103
  const existing_requestMessages = existing.requestMessages;
3069
3104
  const incoming_requestMessages = incoming.requestMessages;
3070
3105
  // if at least one of these optionals is defined
@@ -6380,4 +6415,4 @@ withDefaultLuvio((luvio) => {
6380
6415
  });
6381
6416
 
6382
6417
  export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, createPromptTemplate, createPromptTemplateVersion, getDataProviderInstanceConfig, getDataProviderInstanceConfig_imperative, getDataProviderTypeConfigs, getDataProviderTypeConfigs_imperative, getDataProviders, getDataProviders_imperative, getInputMappedDataProviders, getInputMappedDataProviders_imperative, getOutputLanguages, getOutputLanguages_imperative, getPromptTemplate, getPromptTemplateVersion, getPromptTemplateVersion_imperative, getPromptTemplateVersions, getPromptTemplateVersions_imperative, getPromptTemplate_imperative, getPromptTemplates, getPromptTemplates_imperative, putEinsteinPromptTemplateVersionStatus, updatePromptTemplateVersion };
6383
- // version: 1.380.0-dev6-9d4fd6e5dc
6418
+ // version: 1.380.0-dev8-60930b5790
package/src/raml/api.raml CHANGED
@@ -484,6 +484,9 @@ types:
484
484
  prompt:
485
485
  description: Prompt used for the generation
486
486
  type: string | nil # Hand-rolled union 'nil'
487
+ rawPrompt:
488
+ description: Raw prompt with unresolved merge fields
489
+ type: string | nil # Hand-rolled union 'nil'
487
490
  promptTemplateDevName:
488
491
  description: generated prompt template promptTemplateDevName
489
492
  type: string