@salesforce/lds-adapters-service-einsteinllm 1.380.0-dev19 → 1.380.0-dev20
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.
|
@@ -4519,7 +4519,7 @@ function validate$f(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
|
|
|
4519
4519
|
return v_error === undefined ? null : v_error;
|
|
4520
4520
|
}
|
|
4521
4521
|
|
|
4522
|
-
const VERSION$e = "
|
|
4522
|
+
const VERSION$e = "6a209d0b32d59e6e04155812fdf5c985";
|
|
4523
4523
|
function validate$e(obj, path = 'EinsteinLlmGenerationGenAiCitedReferenceRepresentation') {
|
|
4524
4524
|
const v_error = (() => {
|
|
4525
4525
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4553,6 +4553,13 @@ function validate$e(obj, path = 'EinsteinLlmGenerationGenAiCitedReferenceReprese
|
|
|
4553
4553
|
}
|
|
4554
4554
|
}
|
|
4555
4555
|
}
|
|
4556
|
+
if (obj.label !== undefined) {
|
|
4557
|
+
const obj_label = obj.label;
|
|
4558
|
+
const path_label = path + '.label';
|
|
4559
|
+
if (typeof obj_label !== 'string') {
|
|
4560
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
4561
|
+
}
|
|
4562
|
+
}
|
|
4556
4563
|
if (obj.link !== undefined) {
|
|
4557
4564
|
const obj_link = obj.link;
|
|
4558
4565
|
const path_link = path + '.link';
|
|
@@ -4595,6 +4602,11 @@ const select$h = function EinsteinLlmGenerationGenAiCitedReferenceRepresentation
|
|
|
4595
4602
|
plural: true,
|
|
4596
4603
|
required: false
|
|
4597
4604
|
},
|
|
4605
|
+
{
|
|
4606
|
+
name: 'label',
|
|
4607
|
+
kind: 'Scalar',
|
|
4608
|
+
required: false
|
|
4609
|
+
},
|
|
4598
4610
|
{
|
|
4599
4611
|
name: 'link',
|
|
4600
4612
|
kind: 'Scalar',
|
|
@@ -4614,6 +4626,19 @@ const select$h = function EinsteinLlmGenerationGenAiCitedReferenceRepresentation
|
|
|
4614
4626
|
};
|
|
4615
4627
|
};
|
|
4616
4628
|
function equals$e(existing, incoming) {
|
|
4629
|
+
const existing_label = existing.label;
|
|
4630
|
+
const incoming_label = incoming.label;
|
|
4631
|
+
// if at least one of these optionals is defined
|
|
4632
|
+
if (existing_label !== undefined || incoming_label !== undefined) {
|
|
4633
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4634
|
+
// not equal
|
|
4635
|
+
if (existing_label === undefined || incoming_label === undefined) {
|
|
4636
|
+
return false;
|
|
4637
|
+
}
|
|
4638
|
+
if (!(existing_label === incoming_label)) {
|
|
4639
|
+
return false;
|
|
4640
|
+
}
|
|
4641
|
+
}
|
|
4617
4642
|
const existing_link = existing.link;
|
|
4618
4643
|
const incoming_link = incoming.link;
|
|
4619
4644
|
// if at least one of these optionals is defined
|
|
@@ -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 = "6a209d0b32d59e6e04155812fdf5c985";
|
|
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: EinsteinLlmGenerationGenAiCitedReferenceRepresentation, existing: EinsteinLlmGenerationGenAiCitedReferenceRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinLlmGenerationGenAiCitedReferenceRepresentationNormalized;
|
|
@@ -18,6 +18,8 @@ export interface EinsteinLlmGenerationGenAiCitedReferenceRepresentationNormalize
|
|
|
18
18
|
citationLocations?: Array<number>;
|
|
19
19
|
/** Matching chunk from the input text */
|
|
20
20
|
claims?: Array<string>;
|
|
21
|
+
/** Label */
|
|
22
|
+
label?: string;
|
|
21
23
|
/** Link */
|
|
22
24
|
link?: string;
|
|
23
25
|
/** SourceObjectApiName */
|
|
@@ -34,6 +36,7 @@ export interface EinsteinLlmGenerationGenAiCitedReferenceRepresentationNormalize
|
|
|
34
36
|
export interface EinsteinLlmGenerationGenAiCitedReferenceRepresentation {
|
|
35
37
|
citationLocations?: Array<number>;
|
|
36
38
|
claims?: Array<string>;
|
|
39
|
+
label?: string;
|
|
37
40
|
link?: string;
|
|
38
41
|
sourceObjectApiName?: string;
|
|
39
42
|
sourceObjectRecordId?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-einsteinllm",
|
|
3
|
-
"version": "1.380.0-
|
|
3
|
+
"version": "1.380.0-dev20",
|
|
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.380.0-
|
|
47
|
+
"@salesforce/lds-bindings": "^1.380.0-dev20"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.380.0-
|
|
51
|
-
"@salesforce/lds-karma": "^1.380.0-
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.380.0-dev20",
|
|
51
|
+
"@salesforce/lds-karma": "^1.380.0-dev20"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -1925,7 +1925,7 @@ function validate$p(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
|
|
|
1925
1925
|
return v_error === undefined ? null : v_error;
|
|
1926
1926
|
}
|
|
1927
1927
|
|
|
1928
|
-
const VERSION$k = "
|
|
1928
|
+
const VERSION$k = "6a209d0b32d59e6e04155812fdf5c985";
|
|
1929
1929
|
function validate$o(obj, path = 'EinsteinLlmGenerationGenAiCitedReferenceRepresentation') {
|
|
1930
1930
|
const v_error = (() => {
|
|
1931
1931
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1959,6 +1959,13 @@ function validate$o(obj, path = 'EinsteinLlmGenerationGenAiCitedReferenceReprese
|
|
|
1959
1959
|
}
|
|
1960
1960
|
}
|
|
1961
1961
|
}
|
|
1962
|
+
if (obj.label !== undefined) {
|
|
1963
|
+
const obj_label = obj.label;
|
|
1964
|
+
const path_label = path + '.label';
|
|
1965
|
+
if (typeof obj_label !== 'string') {
|
|
1966
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1962
1969
|
if (obj.link !== undefined) {
|
|
1963
1970
|
const obj_link = obj.link;
|
|
1964
1971
|
const path_link = path + '.link';
|
|
@@ -2001,6 +2008,11 @@ const select$z = function EinsteinLlmGenerationGenAiCitedReferenceRepresentation
|
|
|
2001
2008
|
plural: true,
|
|
2002
2009
|
required: false
|
|
2003
2010
|
},
|
|
2011
|
+
{
|
|
2012
|
+
name: 'label',
|
|
2013
|
+
kind: 'Scalar',
|
|
2014
|
+
required: false
|
|
2015
|
+
},
|
|
2004
2016
|
{
|
|
2005
2017
|
name: 'link',
|
|
2006
2018
|
kind: 'Scalar',
|
|
@@ -2020,6 +2032,19 @@ const select$z = function EinsteinLlmGenerationGenAiCitedReferenceRepresentation
|
|
|
2020
2032
|
};
|
|
2021
2033
|
};
|
|
2022
2034
|
function equals$k(existing, incoming) {
|
|
2035
|
+
const existing_label = existing.label;
|
|
2036
|
+
const incoming_label = incoming.label;
|
|
2037
|
+
// if at least one of these optionals is defined
|
|
2038
|
+
if (existing_label !== undefined || incoming_label !== undefined) {
|
|
2039
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2040
|
+
// not equal
|
|
2041
|
+
if (existing_label === undefined || incoming_label === undefined) {
|
|
2042
|
+
return false;
|
|
2043
|
+
}
|
|
2044
|
+
if (!(existing_label === incoming_label)) {
|
|
2045
|
+
return false;
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2023
2048
|
const existing_link = existing.link;
|
|
2024
2049
|
const incoming_link = incoming.link;
|
|
2025
2050
|
// if at least one of these optionals is defined
|
|
@@ -6880,4 +6905,4 @@ withDefaultLuvio((luvio) => {
|
|
|
6880
6905
|
});
|
|
6881
6906
|
|
|
6882
6907
|
export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, createPromptTemplate, createPromptTemplateVersion, getDataProviderInstanceConfig, getDataProviderInstanceConfig_imperative, getDataProviderTypeConfigs, getDataProviderTypeConfigs_imperative, getDataProviders, getDataProviders_imperative, getInputMappedDataProviders, getInputMappedDataProviders_imperative, getOutputLanguages, getOutputLanguages_imperative, getPromptTemplate, getPromptTemplateVersion, getPromptTemplateVersion_imperative, getPromptTemplateVersions, getPromptTemplateVersions_imperative, getPromptTemplate_imperative, getPromptTemplates, getPromptTemplates_imperative, getTemplateType, getTemplateType_imperative, putEinsteinPromptTemplateVersionStatus, updatePromptTemplateVersion };
|
|
6883
|
-
// version: 1.380.0-
|
|
6908
|
+
// version: 1.380.0-dev20-504301d774
|
package/src/raml/api.raml
CHANGED