@salesforce/lds-adapters-service-einsteinllm 1.229.0-dev4 → 1.229.0-dev5

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.
@@ -629,6 +629,11 @@ function validate$4(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
629
629
  if (typeof obj_id !== 'string') {
630
630
  return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
631
631
  }
632
+ const obj_source = obj.source;
633
+ const path_source = path + '.source';
634
+ if (typeof obj_source !== 'string') {
635
+ return new TypeError('Expected "string" but received "' + typeof obj_source + '" (at "' + path_source + '")');
636
+ }
632
637
  })();
633
638
  return v_error === undefined ? null : v_error;
634
639
  }
@@ -1,5 +1,5 @@
1
1
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
- export declare const VERSION = "d8791823dc6a931709bc42ac1d0bd098";
2
+ export declare const VERSION = "47694ce9c242c84fe546f5ef976ed158";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export declare function normalize(input: EinsteinLlmFeedbackInputRepresentation, existing: EinsteinLlmFeedbackInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinLlmFeedbackInputRepresentationNormalized;
@@ -26,6 +26,8 @@ export interface EinsteinLlmFeedbackInputRepresentationNormalized {
26
26
  generationId: string;
27
27
  /** Feedback id */
28
28
  id: string;
29
+ /** Feedback source */
30
+ source: string;
29
31
  }
30
32
  /**
31
33
  * Input representation for Feedback with Einstein LLM
@@ -41,4 +43,5 @@ export interface EinsteinLlmFeedbackInputRepresentation {
41
43
  feedbackText: string;
42
44
  generationId: string;
43
45
  id: string;
46
+ source: string;
44
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einsteinllm",
3
- "version": "1.229.0-dev4",
3
+ "version": "1.229.0-dev5",
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:compat": "karma start --single-run --compat"
45
45
  },
46
46
  "dependencies": {
47
- "@salesforce/lds-bindings": "1.229.0-dev4"
47
+ "@salesforce/lds-bindings": "1.229.0-dev5"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "1.229.0-dev4",
51
- "@salesforce/lds-karma": "1.229.0-dev4"
50
+ "@salesforce/lds-compiler-plugins": "1.229.0-dev5",
51
+ "@salesforce/lds-karma": "1.229.0-dev5"
52
52
  },
53
53
  "nx": {
54
54
  "targets": {
package/sfdc/index.js CHANGED
@@ -156,6 +156,11 @@ function validate$9(obj, path = 'EinsteinLlmFeedbackInputRepresentation') {
156
156
  if (typeof obj_id !== 'string') {
157
157
  return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
158
158
  }
159
+ const obj_source = obj.source;
160
+ const path_source = path + '.source';
161
+ if (typeof obj_source !== 'string') {
162
+ return new TypeError('Expected "string" but received "' + typeof obj_source + '" (at "' + path_source + '")');
163
+ }
159
164
  })();
160
165
  return v_error === undefined ? null : v_error;
161
166
  }
@@ -1185,4 +1190,4 @@ withDefaultLuvio((luvio) => {
1185
1190
  });
1186
1191
 
1187
1192
  export { createFeedback, createGenerations, createGenerationsForPromptTemplate };
1188
- // version: 1.229.0-dev4-4a7593877
1193
+ // version: 1.229.0-dev5-577daa79a
package/src/raml/api.raml CHANGED
@@ -124,6 +124,9 @@ types:
124
124
  id:
125
125
  description: Feedback id
126
126
  type: string
127
+ source:
128
+ description: Feedback source
129
+ type: string
127
130
  EinsteinLlmFeedbackRepresentation:
128
131
  description: Output of a einstein llm feedback call
129
132
  type: object