@salesforce/lds-adapters-service-einsteinllm 1.287.0-dev10 → 1.287.0-dev12

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.
@@ -842,7 +842,7 @@ function equals$8(existing, incoming) {
842
842
  return true;
843
843
  }
844
844
 
845
- const VERSION$7 = "aebe0f32437ab18bd126a1fb5ff48d9b";
845
+ const VERSION$7 = "4a07778ff6c595d91c575188146647a1";
846
846
  function validate$9(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
847
847
  const v_error = (() => {
848
848
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -879,6 +879,13 @@ function validate$9(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
879
879
  return new TypeError(message);
880
880
  }
881
881
  }
882
+ if (obj.isSummarized !== undefined) {
883
+ const obj_isSummarized = obj.isSummarized;
884
+ const path_isSummarized = path + '.isSummarized';
885
+ if (typeof obj_isSummarized !== 'boolean') {
886
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isSummarized + '" (at "' + path_isSummarized + '")');
887
+ }
888
+ }
882
889
  const obj_parameters = obj.parameters;
883
890
  const path_parameters = path + '.parameters';
884
891
  if (typeof obj_parameters !== 'string') {
@@ -943,6 +950,11 @@ const select$9 = function EinsteinLlmGenerationItemRepresentationSelect() {
943
950
  selections: EinsteinLlmGenerationsContentQualityRepresentation__selections,
944
951
  required: false
945
952
  },
953
+ {
954
+ name: 'isSummarized',
955
+ kind: 'Scalar',
956
+ required: false
957
+ },
946
958
  {
947
959
  name: 'parameters',
948
960
  kind: 'Scalar'
@@ -966,6 +978,19 @@ const select$9 = function EinsteinLlmGenerationItemRepresentationSelect() {
966
978
  };
967
979
  };
968
980
  function equals$7(existing, incoming) {
981
+ const existing_isSummarized = existing.isSummarized;
982
+ const incoming_isSummarized = incoming.isSummarized;
983
+ // if at least one of these optionals is defined
984
+ if (existing_isSummarized !== undefined || incoming_isSummarized !== undefined) {
985
+ // if one of these is not defined we know the other is defined and therefore
986
+ // not equal
987
+ if (existing_isSummarized === undefined || incoming_isSummarized === undefined) {
988
+ return false;
989
+ }
990
+ if (!(existing_isSummarized === incoming_isSummarized)) {
991
+ return false;
992
+ }
993
+ }
969
994
  const existing_parameters = existing.parameters;
970
995
  const incoming_parameters = incoming.parameters;
971
996
  if (!(existing_parameters === incoming_parameters)) {
@@ -1385,6 +1410,13 @@ function validate$5(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
1385
1410
  if (typeof obj_isPreview !== 'boolean') {
1386
1411
  return new TypeError('Expected "boolean" but received "' + typeof obj_isPreview + '" (at "' + path_isPreview + '")');
1387
1412
  }
1413
+ if (obj.outputLanguage !== undefined) {
1414
+ const obj_outputLanguage = obj.outputLanguage;
1415
+ const path_outputLanguage = path + '.outputLanguage';
1416
+ if (typeof obj_outputLanguage !== 'string') {
1417
+ return new TypeError('Expected "string" but received "' + typeof obj_outputLanguage + '" (at "' + path_outputLanguage + '")');
1418
+ }
1419
+ }
1388
1420
  if (obj.provider !== undefined) {
1389
1421
  const obj_provider = obj.provider;
1390
1422
  const path_provider = path + '.provider';
@@ -1,7 +1,7 @@
1
1
  import { EinsteinLlmGenerationsContentQualityRepresentation as EinsteinLlmGenerationsContentQualityRepresentation_EinsteinLlmGenerationsContentQualityRepresentation } from './EinsteinLlmGenerationsContentQualityRepresentation';
2
2
  import { EinsteinLlmGenerationsSafetyScoreRepresentation as EinsteinLlmGenerationsSafetyScoreRepresentation_EinsteinLlmGenerationsSafetyScoreRepresentation } from './EinsteinLlmGenerationsSafetyScoreRepresentation';
3
3
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
4
- export declare const VERSION = "aebe0f32437ab18bd126a1fb5ff48d9b";
4
+ export declare const VERSION = "4a07778ff6c595d91c575188146647a1";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export declare function normalize(input: EinsteinLlmGenerationItemRepresentation, existing: EinsteinLlmGenerationItemRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinLlmGenerationItemRepresentationNormalized;
@@ -18,6 +18,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
18
18
  export interface EinsteinLlmGenerationItemRepresentationNormalized {
19
19
  /** Generations Content Quality Representation */
20
20
  contentQualityRepresentation?: EinsteinLlmGenerationsContentQualityRepresentation_EinsteinLlmGenerationsContentQualityRepresentation | null;
21
+ /** Flag indicating summarization was done */
22
+ isSummarized?: boolean;
21
23
  /** Any provider specific attributes will be included as part of this object */
22
24
  parameters: string;
23
25
  /** Generations Response Id */
@@ -35,6 +37,7 @@ export interface EinsteinLlmGenerationItemRepresentationNormalized {
35
37
  */
36
38
  export interface EinsteinLlmGenerationItemRepresentation {
37
39
  contentQualityRepresentation?: EinsteinLlmGenerationsContentQualityRepresentation_EinsteinLlmGenerationsContentQualityRepresentation | null;
40
+ isSummarized?: boolean;
38
41
  parameters: string;
39
42
  responseId: string;
40
43
  safetyScoreRepresentation?: EinsteinLlmGenerationsSafetyScoreRepresentation_EinsteinLlmGenerationsSafetyScoreRepresentation | null;
@@ -1,7 +1,7 @@
1
1
  import { EinsteinLlmAdditionalConfigInputRepresentation as EinsteinLlmAdditionalConfigInputRepresentation_EinsteinLlmAdditionalConfigInputRepresentation } from './EinsteinLlmAdditionalConfigInputRepresentation';
2
2
  import { WrappedValueMap as WrappedValueMap_WrappedValueMap } from './WrappedValueMap';
3
3
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
4
- export declare const VERSION = "8334d4ba5b617ae9ca9f82a1ab3a56dc";
4
+ export declare const VERSION = "0130f54028dfb4ebf390f32ccd147e6f";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export declare function normalize(input: EinsteinPromptTemplateGenerationsInputRepresentation, existing: EinsteinPromptTemplateGenerationsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateGenerationsInputRepresentationNormalized;
@@ -22,6 +22,8 @@ export interface EinsteinPromptTemplateGenerationsInputRepresentationNormalized
22
22
  inputParams: WrappedValueMap_WrappedValueMap;
23
23
  /** Whether to generate prompt template preview by resolving merge fields */
24
24
  isPreview: boolean;
25
+ /** Output Language */
26
+ outputLanguage?: string;
25
27
  /** LLM Provider */
26
28
  provider?: string;
27
29
  }
@@ -35,5 +37,6 @@ export interface EinsteinPromptTemplateGenerationsInputRepresentation {
35
37
  additionalConfig?: EinsteinLlmAdditionalConfigInputRepresentation_EinsteinLlmAdditionalConfigInputRepresentation;
36
38
  inputParams: WrappedValueMap_WrappedValueMap;
37
39
  isPreview: boolean;
40
+ outputLanguage?: string;
38
41
  provider?: string;
39
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einsteinllm",
3
- "version": "1.287.0-dev10",
3
+ "version": "1.287.0-dev12",
4
4
  "description": "Connect family for Einstein LLM generations",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/service-einsteinllm.js",
@@ -43,11 +43,11 @@
43
43
  "test": "nx build:karma && karma start --single-run"
44
44
  },
45
45
  "dependencies": {
46
- "@salesforce/lds-bindings": "^1.287.0-dev10"
46
+ "@salesforce/lds-bindings": "^1.287.0-dev12"
47
47
  },
48
48
  "devDependencies": {
49
- "@salesforce/lds-compiler-plugins": "^1.287.0-dev10",
50
- "@salesforce/lds-karma": "^1.287.0-dev10"
49
+ "@salesforce/lds-compiler-plugins": "^1.287.0-dev12",
50
+ "@salesforce/lds-karma": "^1.287.0-dev12"
51
51
  },
52
52
  "nx": {
53
53
  "targets": {
package/sfdc/index.js CHANGED
@@ -851,7 +851,7 @@ function equals$8(existing, incoming) {
851
851
  return true;
852
852
  }
853
853
 
854
- const VERSION$7 = "aebe0f32437ab18bd126a1fb5ff48d9b";
854
+ const VERSION$7 = "4a07778ff6c595d91c575188146647a1";
855
855
  function validate$9(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
856
856
  const v_error = (() => {
857
857
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -888,6 +888,13 @@ function validate$9(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
888
888
  return new TypeError(message);
889
889
  }
890
890
  }
891
+ if (obj.isSummarized !== undefined) {
892
+ const obj_isSummarized = obj.isSummarized;
893
+ const path_isSummarized = path + '.isSummarized';
894
+ if (typeof obj_isSummarized !== 'boolean') {
895
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isSummarized + '" (at "' + path_isSummarized + '")');
896
+ }
897
+ }
891
898
  const obj_parameters = obj.parameters;
892
899
  const path_parameters = path + '.parameters';
893
900
  if (typeof obj_parameters !== 'string') {
@@ -952,6 +959,11 @@ const select$9 = function EinsteinLlmGenerationItemRepresentationSelect() {
952
959
  selections: EinsteinLlmGenerationsContentQualityRepresentation__selections,
953
960
  required: false
954
961
  },
962
+ {
963
+ name: 'isSummarized',
964
+ kind: 'Scalar',
965
+ required: false
966
+ },
955
967
  {
956
968
  name: 'parameters',
957
969
  kind: 'Scalar'
@@ -975,6 +987,19 @@ const select$9 = function EinsteinLlmGenerationItemRepresentationSelect() {
975
987
  };
976
988
  };
977
989
  function equals$7(existing, incoming) {
990
+ const existing_isSummarized = existing.isSummarized;
991
+ const incoming_isSummarized = incoming.isSummarized;
992
+ // if at least one of these optionals is defined
993
+ if (existing_isSummarized !== undefined || incoming_isSummarized !== undefined) {
994
+ // if one of these is not defined we know the other is defined and therefore
995
+ // not equal
996
+ if (existing_isSummarized === undefined || incoming_isSummarized === undefined) {
997
+ return false;
998
+ }
999
+ if (!(existing_isSummarized === incoming_isSummarized)) {
1000
+ return false;
1001
+ }
1002
+ }
978
1003
  const existing_parameters = existing.parameters;
979
1004
  const incoming_parameters = incoming.parameters;
980
1005
  if (!(existing_parameters === incoming_parameters)) {
@@ -1394,6 +1419,13 @@ function validate$5(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
1394
1419
  if (typeof obj_isPreview !== 'boolean') {
1395
1420
  return new TypeError('Expected "boolean" but received "' + typeof obj_isPreview + '" (at "' + path_isPreview + '")');
1396
1421
  }
1422
+ if (obj.outputLanguage !== undefined) {
1423
+ const obj_outputLanguage = obj.outputLanguage;
1424
+ const path_outputLanguage = path + '.outputLanguage';
1425
+ if (typeof obj_outputLanguage !== 'string') {
1426
+ return new TypeError('Expected "string" but received "' + typeof obj_outputLanguage + '" (at "' + path_outputLanguage + '")');
1427
+ }
1428
+ }
1397
1429
  if (obj.provider !== undefined) {
1398
1430
  const obj_provider = obj.provider;
1399
1431
  const path_provider = path + '.provider';
@@ -2211,4 +2243,4 @@ withDefaultLuvio((luvio) => {
2211
2243
  });
2212
2244
 
2213
2245
  export { createFeedback, createGenerations, createGenerationsForPromptTemplate };
2214
- // version: 1.287.0-dev10-32adad9f2
2246
+ // version: 1.287.0-dev12-9b9aedb555
package/src/raml/api.raml CHANGED
@@ -140,6 +140,10 @@ types:
140
140
  description: Generations Content Quality Representation
141
141
  type: EinsteinLlmGenerationsContentQualityRepresentation | nil # Hand-rolled union 'nil'
142
142
  required: false # TODO Hand-rolled W-9314597
143
+ isSummarized:
144
+ description: Flag indicating summarization was done
145
+ type: boolean
146
+ required: false # TODO Hand-rolled W-15576505
143
147
  parameters:
144
148
  description: Any provider specific attributes will be included as part of
145
149
  this object
@@ -284,6 +288,10 @@ types:
284
288
  description: Whether to generate prompt template preview by resolving merge
285
289
  fields
286
290
  type: boolean
291
+ outputLanguage:
292
+ description: Output Language
293
+ type: string
294
+ required: false # TODO Hand-rolled W-15576505
287
295
  provider:
288
296
  description: LLM Provider
289
297
  type: string