@salesforce/lds-adapters-service-einsteinllm 1.354.0-dev2 → 1.354.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.
- package/dist/es/es2018/service-einsteinllm.js +276 -125
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateAttachmentExclusionInfoRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateAttachmentRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsRepresentation.d.ts +8 -1
- package/package.json +4 -4
- package/sfdc/index.js +249 -98
- package/src/raml/api.raml +28 -0
|
@@ -0,0 +1,31 @@
|
|
|
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 = "f62ac44b024b123f079b57f349e05230";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation, existing: EinsteinPromptTemplateAttachmentExclusionInfoRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateAttachmentExclusionInfoRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: EinsteinPromptTemplateAttachmentExclusionInfoRepresentationNormalized, incoming: EinsteinPromptTemplateAttachmentExclusionInfoRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Representation for info of file exclusion from LLM requests
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface EinsteinPromptTemplateAttachmentExclusionInfoRepresentationNormalized {
|
|
17
|
+
/** Reason for file exclusion from LLM request */
|
|
18
|
+
exclusionReason: string;
|
|
19
|
+
/** true if the file is excluded from LLM request, false otherwise */
|
|
20
|
+
isExcluded: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Representation for info of file exclusion from LLM requests
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface EinsteinPromptTemplateAttachmentExclusionInfoRepresentation {
|
|
29
|
+
exclusionReason: string;
|
|
30
|
+
isExcluded: boolean;
|
|
31
|
+
}
|
package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateAttachmentRepresentation.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { EinsteinPromptTemplateAttachmentExclusionInfoRepresentation as EinsteinPromptTemplateAttachmentExclusionInfoRepresentation_EinsteinPromptTemplateAttachmentExclusionInfoRepresentation } from './EinsteinPromptTemplateAttachmentExclusionInfoRepresentation';
|
|
1
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';
|
|
2
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "b85a5621c60125d9f1644af130f67680";
|
|
3
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
5
|
export declare const RepresentationType: string;
|
|
5
6
|
export declare function normalize(input: EinsteinPromptTemplateAttachmentRepresentation, existing: EinsteinPromptTemplateAttachmentRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateAttachmentRepresentationNormalized;
|
|
@@ -14,12 +15,15 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
15
|
* (none)
|
|
15
16
|
*/
|
|
16
17
|
export interface EinsteinPromptTemplateAttachmentRepresentationNormalized {
|
|
18
|
+
exclusionInfo?: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation_EinsteinPromptTemplateAttachmentExclusionInfoRepresentation;
|
|
17
19
|
/** extension of the file attachment */
|
|
18
20
|
fileExtension: string;
|
|
19
21
|
/** ContentDocument Id of file attached to prompt template */
|
|
20
22
|
id: string;
|
|
21
23
|
/** ContentVersion of the latest published version of the file attachment */
|
|
22
24
|
latestPublishedVersion: string;
|
|
25
|
+
/** ParentName of the file attachment */
|
|
26
|
+
parentName?: string;
|
|
23
27
|
/** title of the attachment file */
|
|
24
28
|
title: string;
|
|
25
29
|
}
|
|
@@ -30,8 +34,10 @@ export interface EinsteinPromptTemplateAttachmentRepresentationNormalized {
|
|
|
30
34
|
* (none)
|
|
31
35
|
*/
|
|
32
36
|
export interface EinsteinPromptTemplateAttachmentRepresentation {
|
|
37
|
+
exclusionInfo?: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation_EinsteinPromptTemplateAttachmentExclusionInfoRepresentation;
|
|
33
38
|
fileExtension: string;
|
|
34
39
|
id: string;
|
|
35
40
|
latestPublishedVersion: string;
|
|
41
|
+
parentName?: string;
|
|
36
42
|
title: string;
|
|
37
43
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EinsteinLlmAdditionalConfigInputRepresentation as EinsteinLlmAdditionalConfigInputRepresentation_EinsteinLlmAdditionalConfigInputRepresentation } from './EinsteinLlmAdditionalConfigInputRepresentation';
|
|
2
2
|
import { WrappedValueMap as WrappedValueMap_WrappedValueMap } from './WrappedValueMap';
|
|
3
3
|
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';
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "a2cd7e0282d520ef2004c8eb2a8178b1";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
7
|
export declare function normalize(input: EinsteinPromptTemplateGenerationsInputRepresentation, existing: EinsteinPromptTemplateGenerationsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateGenerationsInputRepresentationNormalized;
|
|
@@ -26,6 +26,8 @@ export interface EinsteinPromptTemplateGenerationsInputRepresentationNormalized
|
|
|
26
26
|
outputLanguage?: string;
|
|
27
27
|
/** LLM Provider */
|
|
28
28
|
provider?: string;
|
|
29
|
+
/** When this flag is true, mergeFieldInformation will be added to the LLM Generations Response output, which will be used to show annotations in the resolved prompt. */
|
|
30
|
+
showGroundingMetadataInResolvedPrompt?: boolean;
|
|
29
31
|
}
|
|
30
32
|
/**
|
|
31
33
|
* Input representation for generating prompt template responses with Einstein LLM
|
|
@@ -39,4 +41,5 @@ export interface EinsteinPromptTemplateGenerationsInputRepresentation {
|
|
|
39
41
|
isPreview: boolean;
|
|
40
42
|
outputLanguage?: string;
|
|
41
43
|
provider?: string;
|
|
44
|
+
showGroundingMetadataInResolvedPrompt?: boolean;
|
|
42
45
|
}
|
|
@@ -6,7 +6,7 @@ import { EinsteinPromptTemplateMaskContentRepresentation as EinsteinPromptTempla
|
|
|
6
6
|
import { EinsteinPromptTemplateMaskDataRepresentation as EinsteinPromptTemplateMaskDataRepresentation_EinsteinPromptTemplateMaskDataRepresentation } from './EinsteinPromptTemplateMaskDataRepresentation';
|
|
7
7
|
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';
|
|
8
8
|
export declare const TTL = 100;
|
|
9
|
-
export declare const VERSION = "
|
|
9
|
+
export declare const VERSION = "492c5045545dfbf96d7f660532a30499";
|
|
10
10
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
11
11
|
export declare const RepresentationType: string;
|
|
12
12
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -36,6 +36,10 @@ export interface EinsteinPromptTemplateGenerationsRepresentationNormalized {
|
|
|
36
36
|
generationErrors?: Array<EinsteinPromptTemplateGenerationsErrorRepresentation_EinsteinPromptTemplateGenerationsErrorRepresentation>;
|
|
37
37
|
/** List of generated text */
|
|
38
38
|
generations: Array<EinsteinLlmGenerationItemRepresentation_EinsteinLlmGenerationItemRepresentation>;
|
|
39
|
+
/** merge field information mapping used for annotations in the resolved prompt */
|
|
40
|
+
mergeFieldInformation?: {
|
|
41
|
+
[key: string]: unknown;
|
|
42
|
+
};
|
|
39
43
|
/** Any provider specific attributes will be included as part of this object */
|
|
40
44
|
parameters: WrappedMap_WrappedMap | null;
|
|
41
45
|
/** Prompt used for the generation */
|
|
@@ -61,6 +65,9 @@ export interface EinsteinPromptTemplateGenerationsRepresentation {
|
|
|
61
65
|
fileData?: Array<EinsteinPromptTemplateAttachmentRepresentation_EinsteinPromptTemplateAttachmentRepresentation>;
|
|
62
66
|
generationErrors?: Array<EinsteinPromptTemplateGenerationsErrorRepresentation_EinsteinPromptTemplateGenerationsErrorRepresentation>;
|
|
63
67
|
generations: Array<EinsteinLlmGenerationItemRepresentation_EinsteinLlmGenerationItemRepresentation>;
|
|
68
|
+
mergeFieldInformation?: {
|
|
69
|
+
[key: string]: unknown;
|
|
70
|
+
};
|
|
64
71
|
parameters: WrappedMap_WrappedMap | null;
|
|
65
72
|
prompt: string | null;
|
|
66
73
|
promptTemplateDevName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-einsteinllm",
|
|
3
|
-
"version": "1.354.0-
|
|
3
|
+
"version": "1.354.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.354.0-
|
|
47
|
+
"@salesforce/lds-bindings": "^1.354.0-dev20"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.354.0-
|
|
51
|
-
"@salesforce/lds-karma": "^1.354.0-
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.354.0-dev20",
|
|
51
|
+
"@salesforce/lds-karma": "^1.354.0-dev20"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|