@salesforce/lds-adapters-service-einsteinllm 1.332.0-dev7 → 1.332.0-dev9
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.
|
@@ -2561,12 +2561,26 @@ function equals$4(existing, incoming) {
|
|
|
2561
2561
|
}
|
|
2562
2562
|
|
|
2563
2563
|
const TTL$1 = 100;
|
|
2564
|
-
const VERSION$3 = "
|
|
2564
|
+
const VERSION$3 = "5c0988467d96a6294bb404f5c378bf8a";
|
|
2565
2565
|
function validate$3(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
|
|
2566
2566
|
const v_error = (() => {
|
|
2567
2567
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2568
2568
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2569
2569
|
}
|
|
2570
|
+
if (obj.fileIds !== undefined) {
|
|
2571
|
+
const obj_fileIds = obj.fileIds;
|
|
2572
|
+
const path_fileIds = path + '.fileIds';
|
|
2573
|
+
if (!ArrayIsArray(obj_fileIds)) {
|
|
2574
|
+
return new TypeError('Expected "array" but received "' + typeof obj_fileIds + '" (at "' + path_fileIds + '")');
|
|
2575
|
+
}
|
|
2576
|
+
for (let i = 0; i < obj_fileIds.length; i++) {
|
|
2577
|
+
const obj_fileIds_item = obj_fileIds[i];
|
|
2578
|
+
const path_fileIds_item = path_fileIds + '[' + i + ']';
|
|
2579
|
+
if (typeof obj_fileIds_item !== 'string') {
|
|
2580
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fileIds_item + '" (at "' + path_fileIds_item + '")');
|
|
2581
|
+
}
|
|
2582
|
+
}
|
|
2583
|
+
}
|
|
2570
2584
|
if (obj.generationErrors !== undefined) {
|
|
2571
2585
|
const obj_generationErrors = obj.generationErrors;
|
|
2572
2586
|
const path_generationErrors = path + '.generationErrors';
|
|
@@ -2742,6 +2756,12 @@ const select$5 = function EinsteinPromptTemplateGenerationsRepresentationSelect(
|
|
|
2742
2756
|
version: VERSION$3,
|
|
2743
2757
|
private: [],
|
|
2744
2758
|
selections: [
|
|
2759
|
+
{
|
|
2760
|
+
name: 'fileIds',
|
|
2761
|
+
kind: 'Scalar',
|
|
2762
|
+
plural: true,
|
|
2763
|
+
required: false
|
|
2764
|
+
},
|
|
2745
2765
|
{
|
|
2746
2766
|
name: 'generationErrors',
|
|
2747
2767
|
kind: 'Object',
|
|
@@ -2808,6 +2828,24 @@ function equals$3(existing, incoming) {
|
|
|
2808
2828
|
if (!(existing_requestId === incoming_requestId)) {
|
|
2809
2829
|
return false;
|
|
2810
2830
|
}
|
|
2831
|
+
const existing_fileIds = existing.fileIds;
|
|
2832
|
+
const incoming_fileIds = incoming.fileIds;
|
|
2833
|
+
// if at least one of these optionals is defined
|
|
2834
|
+
if (existing_fileIds !== undefined || incoming_fileIds !== undefined) {
|
|
2835
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2836
|
+
// not equal
|
|
2837
|
+
if (existing_fileIds === undefined || incoming_fileIds === undefined) {
|
|
2838
|
+
return false;
|
|
2839
|
+
}
|
|
2840
|
+
const equals_fileIds_items = equalsArray(existing_fileIds, incoming_fileIds, (existing_fileIds_item, incoming_fileIds_item) => {
|
|
2841
|
+
if (!(existing_fileIds_item === incoming_fileIds_item)) {
|
|
2842
|
+
return false;
|
|
2843
|
+
}
|
|
2844
|
+
});
|
|
2845
|
+
if (equals_fileIds_items === false) {
|
|
2846
|
+
return false;
|
|
2847
|
+
}
|
|
2848
|
+
}
|
|
2811
2849
|
const existing_generationErrors = existing.generationErrors;
|
|
2812
2850
|
const incoming_generationErrors = incoming.generationErrors;
|
|
2813
2851
|
// if at least one of these optionals is defined
|
|
@@ -5,7 +5,7 @@ import { EinsteinPromptTemplateMaskContentRepresentation as EinsteinPromptTempla
|
|
|
5
5
|
import { EinsteinPromptTemplateMaskDataRepresentation as EinsteinPromptTemplateMaskDataRepresentation_EinsteinPromptTemplateMaskDataRepresentation } from './EinsteinPromptTemplateMaskDataRepresentation';
|
|
6
6
|
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';
|
|
7
7
|
export declare const TTL = 100;
|
|
8
|
-
export declare const VERSION = "
|
|
8
|
+
export declare const VERSION = "5c0988467d96a6294bb404f5c378bf8a";
|
|
9
9
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
10
10
|
export declare const RepresentationType: string;
|
|
11
11
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -29,6 +29,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
29
29
|
* requestId (string): requestId
|
|
30
30
|
*/
|
|
31
31
|
export interface EinsteinPromptTemplateGenerationsRepresentationNormalized {
|
|
32
|
+
/** file info of the input files used in generation */
|
|
33
|
+
fileIds?: Array<string>;
|
|
32
34
|
/** generated prompt template generationErrors */
|
|
33
35
|
generationErrors?: Array<EinsteinPromptTemplateGenerationsErrorRepresentation_EinsteinPromptTemplateGenerationsErrorRepresentation>;
|
|
34
36
|
/** List of generated text */
|
|
@@ -55,6 +57,7 @@ export interface EinsteinPromptTemplateGenerationsRepresentationNormalized {
|
|
|
55
57
|
* requestId (string): requestId
|
|
56
58
|
*/
|
|
57
59
|
export interface EinsteinPromptTemplateGenerationsRepresentation {
|
|
60
|
+
fileIds?: Array<string>;
|
|
58
61
|
generationErrors?: Array<EinsteinPromptTemplateGenerationsErrorRepresentation_EinsteinPromptTemplateGenerationsErrorRepresentation>;
|
|
59
62
|
generations: Array<EinsteinLlmGenerationItemRepresentation_EinsteinLlmGenerationItemRepresentation>;
|
|
60
63
|
parameters: WrappedMap_WrappedMap | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-einsteinllm",
|
|
3
|
-
"version": "1.332.0-
|
|
3
|
+
"version": "1.332.0-dev9",
|
|
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.332.0-
|
|
47
|
+
"@salesforce/lds-bindings": "^1.332.0-dev9"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.332.0-
|
|
51
|
-
"@salesforce/lds-karma": "^1.332.0-
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.332.0-dev9",
|
|
51
|
+
"@salesforce/lds-karma": "^1.332.0-dev9"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -2228,12 +2228,26 @@ function equals$5(existing, incoming) {
|
|
|
2228
2228
|
}
|
|
2229
2229
|
|
|
2230
2230
|
const TTL$2 = 100;
|
|
2231
|
-
const VERSION$4 = "
|
|
2231
|
+
const VERSION$4 = "5c0988467d96a6294bb404f5c378bf8a";
|
|
2232
2232
|
function validate$6(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
|
|
2233
2233
|
const v_error = (() => {
|
|
2234
2234
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2235
2235
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2236
2236
|
}
|
|
2237
|
+
if (obj.fileIds !== undefined) {
|
|
2238
|
+
const obj_fileIds = obj.fileIds;
|
|
2239
|
+
const path_fileIds = path + '.fileIds';
|
|
2240
|
+
if (!ArrayIsArray(obj_fileIds)) {
|
|
2241
|
+
return new TypeError('Expected "array" but received "' + typeof obj_fileIds + '" (at "' + path_fileIds + '")');
|
|
2242
|
+
}
|
|
2243
|
+
for (let i = 0; i < obj_fileIds.length; i++) {
|
|
2244
|
+
const obj_fileIds_item = obj_fileIds[i];
|
|
2245
|
+
const path_fileIds_item = path_fileIds + '[' + i + ']';
|
|
2246
|
+
if (typeof obj_fileIds_item !== 'string') {
|
|
2247
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fileIds_item + '" (at "' + path_fileIds_item + '")');
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2250
|
+
}
|
|
2237
2251
|
if (obj.generationErrors !== undefined) {
|
|
2238
2252
|
const obj_generationErrors = obj.generationErrors;
|
|
2239
2253
|
const path_generationErrors = path + '.generationErrors';
|
|
@@ -2409,6 +2423,12 @@ const select$7 = function EinsteinPromptTemplateGenerationsRepresentationSelect(
|
|
|
2409
2423
|
version: VERSION$4,
|
|
2410
2424
|
private: [],
|
|
2411
2425
|
selections: [
|
|
2426
|
+
{
|
|
2427
|
+
name: 'fileIds',
|
|
2428
|
+
kind: 'Scalar',
|
|
2429
|
+
plural: true,
|
|
2430
|
+
required: false
|
|
2431
|
+
},
|
|
2412
2432
|
{
|
|
2413
2433
|
name: 'generationErrors',
|
|
2414
2434
|
kind: 'Object',
|
|
@@ -2475,6 +2495,24 @@ function equals$4(existing, incoming) {
|
|
|
2475
2495
|
if (!(existing_requestId === incoming_requestId)) {
|
|
2476
2496
|
return false;
|
|
2477
2497
|
}
|
|
2498
|
+
const existing_fileIds = existing.fileIds;
|
|
2499
|
+
const incoming_fileIds = incoming.fileIds;
|
|
2500
|
+
// if at least one of these optionals is defined
|
|
2501
|
+
if (existing_fileIds !== undefined || incoming_fileIds !== undefined) {
|
|
2502
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2503
|
+
// not equal
|
|
2504
|
+
if (existing_fileIds === undefined || incoming_fileIds === undefined) {
|
|
2505
|
+
return false;
|
|
2506
|
+
}
|
|
2507
|
+
const equals_fileIds_items = equalsArray(existing_fileIds, incoming_fileIds, (existing_fileIds_item, incoming_fileIds_item) => {
|
|
2508
|
+
if (!(existing_fileIds_item === incoming_fileIds_item)) {
|
|
2509
|
+
return false;
|
|
2510
|
+
}
|
|
2511
|
+
});
|
|
2512
|
+
if (equals_fileIds_items === false) {
|
|
2513
|
+
return false;
|
|
2514
|
+
}
|
|
2515
|
+
}
|
|
2478
2516
|
const existing_generationErrors = existing.generationErrors;
|
|
2479
2517
|
const incoming_generationErrors = incoming.generationErrors;
|
|
2480
2518
|
// if at least one of these optionals is defined
|
|
@@ -3489,4 +3527,4 @@ withDefaultLuvio((luvio) => {
|
|
|
3489
3527
|
});
|
|
3490
3528
|
|
|
3491
3529
|
export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, getOutputLanguages, getOutputLanguages_imperative, getPromptTemplates, getPromptTemplates_imperative };
|
|
3492
|
-
// version: 1.332.0-
|
|
3530
|
+
// version: 1.332.0-dev9-1981b1cf7c
|
package/src/raml/api.raml
CHANGED
|
@@ -472,6 +472,12 @@ types:
|
|
|
472
472
|
type: array
|
|
473
473
|
items:
|
|
474
474
|
type: EinsteinPromptTemplateMaskDataRepresentation
|
|
475
|
+
fileIds:
|
|
476
|
+
description: file info of the input files used in generation
|
|
477
|
+
type: array
|
|
478
|
+
required: false # TODO Hand-rolled W-17552098
|
|
479
|
+
items:
|
|
480
|
+
type: string
|
|
475
481
|
EinsteinPromptTemplateMaskContentRepresentation:
|
|
476
482
|
description: Output of a einstein mask data request and response for given prompt template
|
|
477
483
|
type: object
|