@salesforce/lds-adapters-service-einsteinllm 1.251.0 → 1.252.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.
|
@@ -218,7 +218,7 @@ function validate$8(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
|
|
|
218
218
|
return v_error === undefined ? null : v_error;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
const VERSION$4 = "
|
|
221
|
+
const VERSION$4 = "9b45c0734fec120819b03e3b115caf64";
|
|
222
222
|
function validate$7(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
|
|
223
223
|
const v_error = (() => {
|
|
224
224
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -229,6 +229,11 @@ function validate$7(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
|
|
|
229
229
|
if (typeof obj_parameters !== 'string') {
|
|
230
230
|
return new TypeError('Expected "string" but received "' + typeof obj_parameters + '" (at "' + path_parameters + '")');
|
|
231
231
|
}
|
|
232
|
+
const obj_responseId = obj.responseId;
|
|
233
|
+
const path_responseId = path + '.responseId';
|
|
234
|
+
if (typeof obj_responseId !== 'string') {
|
|
235
|
+
return new TypeError('Expected "string" but received "' + typeof obj_responseId + '" (at "' + path_responseId + '")');
|
|
236
|
+
}
|
|
232
237
|
const obj_text = obj.text;
|
|
233
238
|
const path_text = path + '.text';
|
|
234
239
|
if (typeof obj_text !== 'string') {
|
|
@@ -247,6 +252,10 @@ const select$7 = function EinsteinLlmGenerationItemRepresentationSelect() {
|
|
|
247
252
|
name: 'parameters',
|
|
248
253
|
kind: 'Scalar'
|
|
249
254
|
},
|
|
255
|
+
{
|
|
256
|
+
name: 'responseId',
|
|
257
|
+
kind: 'Scalar'
|
|
258
|
+
},
|
|
250
259
|
{
|
|
251
260
|
name: 'text',
|
|
252
261
|
kind: 'Scalar'
|
|
@@ -260,6 +269,11 @@ function equals$4(existing, incoming) {
|
|
|
260
269
|
if (!(existing_parameters === incoming_parameters)) {
|
|
261
270
|
return false;
|
|
262
271
|
}
|
|
272
|
+
const existing_responseId = existing.responseId;
|
|
273
|
+
const incoming_responseId = incoming.responseId;
|
|
274
|
+
if (!(existing_responseId === incoming_responseId)) {
|
|
275
|
+
return false;
|
|
276
|
+
}
|
|
263
277
|
const existing_text = existing.text;
|
|
264
278
|
const incoming_text = incoming.text;
|
|
265
279
|
if (!(existing_text === incoming_text)) {
|
package/dist/es/es2018/types/src/generated/types/EinsteinLlmGenerationItemRepresentation.d.ts
CHANGED
|
@@ -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 = "
|
|
2
|
+
export declare const VERSION = "9b45c0734fec120819b03e3b115caf64";
|
|
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: EinsteinLlmGenerationItemRepresentation, existing: EinsteinLlmGenerationItemRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinLlmGenerationItemRepresentationNormalized;
|
|
@@ -16,6 +16,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
16
16
|
export interface EinsteinLlmGenerationItemRepresentationNormalized {
|
|
17
17
|
/** Any provider specific attributes will be included as part of this object */
|
|
18
18
|
parameters: string;
|
|
19
|
+
/** Id of the generation response */
|
|
20
|
+
responseId: string;
|
|
19
21
|
/** Text */
|
|
20
22
|
text: string;
|
|
21
23
|
}
|
|
@@ -27,5 +29,6 @@ export interface EinsteinLlmGenerationItemRepresentationNormalized {
|
|
|
27
29
|
*/
|
|
28
30
|
export interface EinsteinLlmGenerationItemRepresentation {
|
|
29
31
|
parameters: string;
|
|
32
|
+
responseId: string;
|
|
30
33
|
text: string;
|
|
31
34
|
}
|
package/package.json
CHANGED
package/sfdc/index.js
CHANGED
|
@@ -439,7 +439,7 @@ function validate$6(obj, path = 'EinsteinLlmGenerationsInputRepresentation') {
|
|
|
439
439
|
return v_error === undefined ? null : v_error;
|
|
440
440
|
}
|
|
441
441
|
|
|
442
|
-
const VERSION$3 = "
|
|
442
|
+
const VERSION$3 = "9b45c0734fec120819b03e3b115caf64";
|
|
443
443
|
function validate$5(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
|
|
444
444
|
const v_error = (() => {
|
|
445
445
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -450,6 +450,11 @@ function validate$5(obj, path = 'EinsteinLlmGenerationItemRepresentation') {
|
|
|
450
450
|
if (typeof obj_parameters !== 'string') {
|
|
451
451
|
return new TypeError('Expected "string" but received "' + typeof obj_parameters + '" (at "' + path_parameters + '")');
|
|
452
452
|
}
|
|
453
|
+
const obj_responseId = obj.responseId;
|
|
454
|
+
const path_responseId = path + '.responseId';
|
|
455
|
+
if (typeof obj_responseId !== 'string') {
|
|
456
|
+
return new TypeError('Expected "string" but received "' + typeof obj_responseId + '" (at "' + path_responseId + '")');
|
|
457
|
+
}
|
|
453
458
|
const obj_text = obj.text;
|
|
454
459
|
const path_text = path + '.text';
|
|
455
460
|
if (typeof obj_text !== 'string') {
|
|
@@ -468,6 +473,10 @@ const select$5 = function EinsteinLlmGenerationItemRepresentationSelect() {
|
|
|
468
473
|
name: 'parameters',
|
|
469
474
|
kind: 'Scalar'
|
|
470
475
|
},
|
|
476
|
+
{
|
|
477
|
+
name: 'responseId',
|
|
478
|
+
kind: 'Scalar'
|
|
479
|
+
},
|
|
471
480
|
{
|
|
472
481
|
name: 'text',
|
|
473
482
|
kind: 'Scalar'
|
|
@@ -481,6 +490,11 @@ function equals$3(existing, incoming) {
|
|
|
481
490
|
if (!(existing_parameters === incoming_parameters)) {
|
|
482
491
|
return false;
|
|
483
492
|
}
|
|
493
|
+
const existing_responseId = existing.responseId;
|
|
494
|
+
const incoming_responseId = incoming.responseId;
|
|
495
|
+
if (!(existing_responseId === incoming_responseId)) {
|
|
496
|
+
return false;
|
|
497
|
+
}
|
|
484
498
|
const existing_text = existing.text;
|
|
485
499
|
const incoming_text = incoming.text;
|
|
486
500
|
if (!(existing_text === incoming_text)) {
|
|
@@ -1185,4 +1199,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1185
1199
|
});
|
|
1186
1200
|
|
|
1187
1201
|
export { createFeedback, createGenerations, createGenerationsForPromptTemplate };
|
|
1188
|
-
// version: 1.
|
|
1202
|
+
// version: 1.252.0-eca5ba0ae
|
package/src/raml/api.raml
CHANGED
|
@@ -143,6 +143,9 @@ types:
|
|
|
143
143
|
text:
|
|
144
144
|
description: Text
|
|
145
145
|
type: string
|
|
146
|
+
responseId:
|
|
147
|
+
description: Id of the generation response
|
|
148
|
+
type: string
|
|
146
149
|
# TODO Hand-rolled W-8334626
|
|
147
150
|
# Need to manually wrap the input representation with what the aura controller is expecting
|
|
148
151
|
EinsteinLlmGenerationsInputWrapperRepresentation:
|