@salesforce/lds-adapters-service-einsteinllm 1.450.0 → 1.451.0-dev10
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 +697 -387
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateAttachmentRepresentation.d.ts +8 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateLatencyExecutionRepresentation.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateTokenUsageRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTypeModelAffinityRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTypeRecordRepresentation.d.ts +11 -1
- package/package.json +4 -10
- package/sfdc/index.js +712 -402
- package/src/raml/api.raml +53 -0
package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateAttachmentRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EinsteinPromptTemplateAttachmentExclusionInfoRepresentation as EinsteinPromptTemplateAttachmentExclusionInfoRepresentation_EinsteinPromptTemplateAttachmentExclusionInfoRepresentation } from './EinsteinPromptTemplateAttachmentExclusionInfoRepresentation';
|
|
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 = "c7f101a8a143591c7e9c5e987860078e";
|
|
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: EinsteinPromptTemplateAttachmentRepresentation, existing: EinsteinPromptTemplateAttachmentRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateAttachmentRepresentationNormalized;
|
|
@@ -28,6 +28,10 @@ export interface EinsteinPromptTemplateAttachmentRepresentationNormalized {
|
|
|
28
28
|
parentName?: string;
|
|
29
29
|
/** title of the attachment file */
|
|
30
30
|
title: string;
|
|
31
|
+
/** Type of transformation applied to the file before it was sent to the model, such as conversion to PDF */
|
|
32
|
+
transformationInfo?: {
|
|
33
|
+
[key: string]: string;
|
|
34
|
+
};
|
|
31
35
|
}
|
|
32
36
|
/**
|
|
33
37
|
* Representation of file data for prompt template attachments
|
|
@@ -43,4 +47,7 @@ export interface EinsteinPromptTemplateAttachmentRepresentation {
|
|
|
43
47
|
latestPublishedVersion: string;
|
|
44
48
|
parentName?: string;
|
|
45
49
|
title: string;
|
|
50
|
+
transformationInfo?: {
|
|
51
|
+
[key: string]: string;
|
|
52
|
+
};
|
|
46
53
|
}
|
|
@@ -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/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateTokenUsageRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EinsteinPromptTemplatePromptTokenUsageRepresentation as EinsteinPromptTemplatePromptTokenUsageRepresentation_EinsteinPromptTemplatePromptTokenUsageRepresentation } from './EinsteinPromptTemplatePromptTokenUsageRepresentation';
|
|
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 = "f27af32e86a9a76c9625ede41c99c08e";
|
|
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: EinsteinPromptTemplateTokenUsageRepresentation, existing: EinsteinPromptTemplateTokenUsageRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateTokenUsageRepresentationNormalized;
|
|
@@ -15,6 +15,10 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
15
|
* (none)
|
|
16
16
|
*/
|
|
17
17
|
export interface EinsteinPromptTemplateTokenUsageRepresentationNormalized {
|
|
18
|
+
/** Number of tokens read from the cache (Bedrock/Anthropic prompt caching) */
|
|
19
|
+
cacheReadTokens?: number;
|
|
20
|
+
/** Number of tokens written to the cache (Bedrock/Anthropic prompt caching) */
|
|
21
|
+
cacheWriteTokens?: number;
|
|
18
22
|
/** Number of tokens used for completion */
|
|
19
23
|
completion: number;
|
|
20
24
|
/** Prompt token usage details including breakdown by source */
|
|
@@ -29,6 +33,8 @@ export interface EinsteinPromptTemplateTokenUsageRepresentationNormalized {
|
|
|
29
33
|
* (none)
|
|
30
34
|
*/
|
|
31
35
|
export interface EinsteinPromptTemplateTokenUsageRepresentation {
|
|
36
|
+
cacheReadTokens?: number;
|
|
37
|
+
cacheWriteTokens?: number;
|
|
32
38
|
completion: number;
|
|
33
39
|
prompt: EinsteinPromptTemplatePromptTokenUsageRepresentation_EinsteinPromptTemplatePromptTokenUsageRepresentation;
|
|
34
40
|
total: number;
|
package/dist/es/es2018/types/src/generated/types/EinsteinPromptTypeModelAffinityRepresentation.d.ts
ADDED
|
@@ -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 = "623bf343adaad84a1a57137d70c052cf";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: EinsteinPromptTypeModelAffinityRepresentation, existing: EinsteinPromptTypeModelAffinityRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTypeModelAffinityRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: EinsteinPromptTypeModelAffinityRepresentationNormalized, incoming: EinsteinPromptTypeModelAffinityRepresentationNormalized): 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: EinsteinPromptTypeModelAffinityRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Representation of the model affinity of a Prompt Template type
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface EinsteinPromptTypeModelAffinityRepresentationNormalized {
|
|
17
|
+
/** The capabilities preferred by the template type */
|
|
18
|
+
preferredCapabilities?: Array<string>;
|
|
19
|
+
/** The capabilities required by the template type */
|
|
20
|
+
requiredCapabilities?: Array<string>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Representation of the model affinity of a Prompt Template type
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface EinsteinPromptTypeModelAffinityRepresentation {
|
|
29
|
+
preferredCapabilities?: Array<string>;
|
|
30
|
+
requiredCapabilities?: Array<string>;
|
|
31
|
+
}
|
package/dist/es/es2018/types/src/generated/types/EinsteinPromptTypeRecordRepresentation.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { EinsteinPromptTypeModelAffinityRepresentation as EinsteinPromptTypeModelAffinityRepresentation_EinsteinPromptTypeModelAffinityRepresentation } from './EinsteinPromptTypeModelAffinityRepresentation';
|
|
1
2
|
import { EinsteinPromptTypeSchemaRepresentation as EinsteinPromptTypeSchemaRepresentation_EinsteinPromptTypeSchemaRepresentation } from './EinsteinPromptTypeSchemaRepresentation';
|
|
2
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';
|
|
3
4
|
export declare const TTL = 300;
|
|
4
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "687e1fa3402f444465804964fd16a221";
|
|
5
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
7
|
export declare const RepresentationType: string;
|
|
7
8
|
export declare function normalize(input: EinsteinPromptTypeRecordRepresentation, existing: EinsteinPromptTypeRecordRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTypeRecordRepresentationNormalized;
|
|
@@ -16,8 +17,14 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
16
17
|
* (none)
|
|
17
18
|
*/
|
|
18
19
|
export interface EinsteinPromptTypeRecordRepresentationNormalized {
|
|
20
|
+
/** Whether templates of this type may invoke actions */
|
|
21
|
+
allowActions?: boolean;
|
|
22
|
+
/** The list of input-type classifications this template type may use */
|
|
23
|
+
allowedInputTypes?: Array<string>;
|
|
19
24
|
/** The list of excluded global variables */
|
|
20
25
|
excludedGlobalVariables: Array<string>;
|
|
26
|
+
/** The model affinity of the prompt template type */
|
|
27
|
+
modelAffinity?: EinsteinPromptTypeModelAffinityRepresentation_EinsteinPromptTypeModelAffinityRepresentation;
|
|
21
28
|
schema: EinsteinPromptTypeSchemaRepresentation_EinsteinPromptTypeSchemaRepresentation;
|
|
22
29
|
/** The unique name of the prompt template type */
|
|
23
30
|
templateTypeName: string;
|
|
@@ -29,7 +36,10 @@ export interface EinsteinPromptTypeRecordRepresentationNormalized {
|
|
|
29
36
|
* (none)
|
|
30
37
|
*/
|
|
31
38
|
export interface EinsteinPromptTypeRecordRepresentation {
|
|
39
|
+
allowActions?: boolean;
|
|
40
|
+
allowedInputTypes?: Array<string>;
|
|
32
41
|
excludedGlobalVariables: Array<string>;
|
|
42
|
+
modelAffinity?: EinsteinPromptTypeModelAffinityRepresentation_EinsteinPromptTypeModelAffinityRepresentation;
|
|
33
43
|
schema: EinsteinPromptTypeSchemaRepresentation_EinsteinPromptTypeSchemaRepresentation;
|
|
34
44
|
templateTypeName: string;
|
|
35
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-einsteinllm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.451.0-dev10",
|
|
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",
|
|
@@ -35,17 +35,16 @@
|
|
|
35
35
|
"build": "yarn build:services",
|
|
36
36
|
"build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
|
|
37
37
|
"build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
|
|
38
|
-
"clean": "rm -rf dist sfdc src/generated
|
|
38
|
+
"clean": "rm -rf dist sfdc src/generated",
|
|
39
39
|
"release:core": "../../scripts/release/core.js --adapter=lds-adapters-service-einsteinllm",
|
|
40
40
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-service-einsteinllm",
|
|
41
41
|
"test:unit": "jest --config=./jest.config.js"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@salesforce/lds-bindings": "^1.
|
|
44
|
+
"@salesforce/lds-bindings": "^1.451.0-dev10"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
48
|
-
"@salesforce/lds-karma": "^1.450.0"
|
|
47
|
+
"@salesforce/lds-compiler-plugins": "^1.451.0-dev10"
|
|
49
48
|
},
|
|
50
49
|
"nx": {
|
|
51
50
|
"targets": {
|
|
@@ -59,11 +58,6 @@
|
|
|
59
58
|
"outputs": [
|
|
60
59
|
"{projectRoot}/src/generated"
|
|
61
60
|
]
|
|
62
|
-
},
|
|
63
|
-
"build:karma": {
|
|
64
|
-
"outputs": [
|
|
65
|
-
"{projectRoot}/karma/dist"
|
|
66
|
-
]
|
|
67
61
|
}
|
|
68
62
|
}
|
|
69
63
|
},
|