@salesforce/lds-adapters-service-einsteinllm 1.451.0-dev4 → 1.451.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.
|
@@ -5914,12 +5914,22 @@ function equals$g(existing, incoming) {
|
|
|
5914
5914
|
return true;
|
|
5915
5915
|
}
|
|
5916
5916
|
|
|
5917
|
-
const VERSION$f = "
|
|
5917
|
+
const VERSION$f = "b9a79aedb4ae9102574eccd6cbc6831c";
|
|
5918
5918
|
function validate$f(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresentation') {
|
|
5919
5919
|
const v_error = (() => {
|
|
5920
5920
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5921
5921
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5922
5922
|
}
|
|
5923
|
+
if (obj.fileProcessing !== undefined) {
|
|
5924
|
+
const obj_fileProcessing = obj.fileProcessing;
|
|
5925
|
+
const path_fileProcessing = path + '.fileProcessing';
|
|
5926
|
+
const referencepath_fileProcessingValidationError = validate$g(obj_fileProcessing, path_fileProcessing);
|
|
5927
|
+
if (referencepath_fileProcessingValidationError !== null) {
|
|
5928
|
+
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_fileProcessing + '")\n';
|
|
5929
|
+
message += referencepath_fileProcessingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5930
|
+
return new TypeError(message);
|
|
5931
|
+
}
|
|
5932
|
+
}
|
|
5923
5933
|
if (obj.generation !== undefined) {
|
|
5924
5934
|
const obj_generation = obj.generation;
|
|
5925
5935
|
const path_generation = path + '.generation';
|
|
@@ -5988,6 +5998,12 @@ const select$i = function EinsteinPromptTemplateLatencyExecutionRepresentationSe
|
|
|
5988
5998
|
version: VERSION$f,
|
|
5989
5999
|
private: [],
|
|
5990
6000
|
selections: [
|
|
6001
|
+
{
|
|
6002
|
+
name: 'fileProcessing',
|
|
6003
|
+
kind: 'Object',
|
|
6004
|
+
selections: EinsteinPromptTemplateLatencyStepRepresentation__selections,
|
|
6005
|
+
required: false
|
|
6006
|
+
},
|
|
5991
6007
|
{
|
|
5992
6008
|
name: 'generation',
|
|
5993
6009
|
kind: 'Object',
|
|
@@ -6027,6 +6043,19 @@ const select$i = function EinsteinPromptTemplateLatencyExecutionRepresentationSe
|
|
|
6027
6043
|
};
|
|
6028
6044
|
};
|
|
6029
6045
|
function equals$f(existing, incoming) {
|
|
6046
|
+
const existing_fileProcessing = existing.fileProcessing;
|
|
6047
|
+
const incoming_fileProcessing = incoming.fileProcessing;
|
|
6048
|
+
// if at least one of these optionals is defined
|
|
6049
|
+
if (existing_fileProcessing !== undefined || incoming_fileProcessing !== undefined) {
|
|
6050
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
6051
|
+
// not equal
|
|
6052
|
+
if (existing_fileProcessing === undefined || incoming_fileProcessing === undefined) {
|
|
6053
|
+
return false;
|
|
6054
|
+
}
|
|
6055
|
+
if (!(equals$g(existing_fileProcessing, incoming_fileProcessing))) {
|
|
6056
|
+
return false;
|
|
6057
|
+
}
|
|
6058
|
+
}
|
|
6030
6059
|
const existing_generation = existing.generation;
|
|
6031
6060
|
const incoming_generation = incoming.generation;
|
|
6032
6061
|
// if at least one of these optionals is defined
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EinsteinPromptTemplateLatencyStepRepresentation as EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation } from './EinsteinPromptTemplateLatencyStepRepresentation';
|
|
2
2
|
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';
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "b9a79aedb4ae9102574eccd6cbc6831c";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export declare function normalize(input: EinsteinPromptTemplateLatencyExecutionRepresentation, existing: EinsteinPromptTemplateLatencyExecutionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateLatencyExecutionRepresentationNormalized;
|
|
@@ -15,6 +15,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
15
|
* (none)
|
|
16
16
|
*/
|
|
17
17
|
export interface EinsteinPromptTemplateLatencyExecutionRepresentationNormalized {
|
|
18
|
+
fileProcessing?: EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation;
|
|
18
19
|
generation?: EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation;
|
|
19
20
|
hydration?: EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation;
|
|
20
21
|
loadTemplate: EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation;
|
|
@@ -29,6 +30,7 @@ export interface EinsteinPromptTemplateLatencyExecutionRepresentationNormalized
|
|
|
29
30
|
* (none)
|
|
30
31
|
*/
|
|
31
32
|
export interface EinsteinPromptTemplateLatencyExecutionRepresentation {
|
|
33
|
+
fileProcessing?: EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation;
|
|
32
34
|
generation?: EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation;
|
|
33
35
|
hydration?: EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation;
|
|
34
36
|
loadTemplate: EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-einsteinllm",
|
|
3
|
-
"version": "1.451.0-
|
|
3
|
+
"version": "1.451.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",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"test:unit": "jest --config=./jest.config.js"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@salesforce/lds-bindings": "^1.451.0-
|
|
44
|
+
"@salesforce/lds-bindings": "^1.451.0-dev5"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@salesforce/lds-compiler-plugins": "^1.451.0-
|
|
47
|
+
"@salesforce/lds-compiler-plugins": "^1.451.0-dev5"
|
|
48
48
|
},
|
|
49
49
|
"nx": {
|
|
50
50
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -2721,12 +2721,22 @@ function equals$o(existing, incoming) {
|
|
|
2721
2721
|
return true;
|
|
2722
2722
|
}
|
|
2723
2723
|
|
|
2724
|
-
const VERSION$n = "
|
|
2724
|
+
const VERSION$n = "b9a79aedb4ae9102574eccd6cbc6831c";
|
|
2725
2725
|
function validate$r(obj, path = 'EinsteinPromptTemplateLatencyExecutionRepresentation') {
|
|
2726
2726
|
const v_error = (() => {
|
|
2727
2727
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2728
2728
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2729
2729
|
}
|
|
2730
|
+
if (obj.fileProcessing !== undefined) {
|
|
2731
|
+
const obj_fileProcessing = obj.fileProcessing;
|
|
2732
|
+
const path_fileProcessing = path + '.fileProcessing';
|
|
2733
|
+
const referencepath_fileProcessingValidationError = validate$s(obj_fileProcessing, path_fileProcessing);
|
|
2734
|
+
if (referencepath_fileProcessingValidationError !== null) {
|
|
2735
|
+
let message = 'Object doesn\'t match EinsteinPromptTemplateLatencyStepRepresentation (at "' + path_fileProcessing + '")\n';
|
|
2736
|
+
message += referencepath_fileProcessingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2737
|
+
return new TypeError(message);
|
|
2738
|
+
}
|
|
2739
|
+
}
|
|
2730
2740
|
if (obj.generation !== undefined) {
|
|
2731
2741
|
const obj_generation = obj.generation;
|
|
2732
2742
|
const path_generation = path + '.generation';
|
|
@@ -2795,6 +2805,12 @@ const select$E = function EinsteinPromptTemplateLatencyExecutionRepresentationSe
|
|
|
2795
2805
|
version: VERSION$n,
|
|
2796
2806
|
private: [],
|
|
2797
2807
|
selections: [
|
|
2808
|
+
{
|
|
2809
|
+
name: 'fileProcessing',
|
|
2810
|
+
kind: 'Object',
|
|
2811
|
+
selections: EinsteinPromptTemplateLatencyStepRepresentation__selections,
|
|
2812
|
+
required: false
|
|
2813
|
+
},
|
|
2798
2814
|
{
|
|
2799
2815
|
name: 'generation',
|
|
2800
2816
|
kind: 'Object',
|
|
@@ -2834,6 +2850,19 @@ const select$E = function EinsteinPromptTemplateLatencyExecutionRepresentationSe
|
|
|
2834
2850
|
};
|
|
2835
2851
|
};
|
|
2836
2852
|
function equals$n(existing, incoming) {
|
|
2853
|
+
const existing_fileProcessing = existing.fileProcessing;
|
|
2854
|
+
const incoming_fileProcessing = incoming.fileProcessing;
|
|
2855
|
+
// if at least one of these optionals is defined
|
|
2856
|
+
if (existing_fileProcessing !== undefined || incoming_fileProcessing !== undefined) {
|
|
2857
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2858
|
+
// not equal
|
|
2859
|
+
if (existing_fileProcessing === undefined || incoming_fileProcessing === undefined) {
|
|
2860
|
+
return false;
|
|
2861
|
+
}
|
|
2862
|
+
if (!(equals$o(existing_fileProcessing, incoming_fileProcessing))) {
|
|
2863
|
+
return false;
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2837
2866
|
const existing_generation = existing.generation;
|
|
2838
2867
|
const incoming_generation = incoming.generation;
|
|
2839
2868
|
// if at least one of these optionals is defined
|
|
@@ -8503,4 +8532,4 @@ withDefaultLuvio((luvio) => {
|
|
|
8503
8532
|
});
|
|
8504
8533
|
|
|
8505
8534
|
export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, createPromptTemplate, createPromptTemplateVersion, getDataProviderInstanceConfig, getDataProviderInstanceConfig_imperative, getDataProviderTypeConfigs, getDataProviderTypeConfigs_imperative, getDataProviders, getDataProviders_imperative, getEinsteinPromptTemplateReferences, getEinsteinPromptTemplateReferences_imperative, getInputMappedDataProviders, getInputMappedDataProviders_imperative, getOutputLanguages, getOutputLanguages_imperative, getPromptTemplate, getPromptTemplateVersion, getPromptTemplateVersion_imperative, getPromptTemplateVersions, getPromptTemplateVersions_imperative, getPromptTemplate_imperative, getPromptTemplates, getPromptTemplates_imperative, getTemplateType, getTemplateType_imperative, putEinsteinPromptTemplateStatus, putEinsteinPromptTemplateVersionStatus, updatePromptTemplateVersion };
|
|
8506
|
-
// version: 1.451.0-
|
|
8535
|
+
// version: 1.451.0-dev5-0eda94ec17
|
package/src/raml/api.raml
CHANGED
|
@@ -1104,6 +1104,10 @@ types:
|
|
|
1104
1104
|
description: Latency execution breakdown with metrics for all execution steps
|
|
1105
1105
|
type: object
|
|
1106
1106
|
properties:
|
|
1107
|
+
fileProcessing:
|
|
1108
|
+
description: Latency metrics for file processing step
|
|
1109
|
+
type: EinsteinPromptTemplateLatencyStepRepresentation
|
|
1110
|
+
required: false
|
|
1107
1111
|
generation:
|
|
1108
1112
|
description: Latency metrics for generation step
|
|
1109
1113
|
type: EinsteinPromptTemplateLatencyStepRepresentation
|