@salesforce/lds-adapters-service-einsteinllm 1.288.0 → 1.289.0
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 +700 -380
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmGenerationItemRepresentation.d.ts +8 -2
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmGenerationsContentQualityRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmGenerationsSafetyScoreRepresentation.d.ts +46 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsErrorRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsRepresentation.d.ts +5 -1
- package/package.json +4 -4
- package/sfdc/index.js +375 -55
- package/src/raml/api.raml +88 -17
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createGenerationsAdapterFactory } from '../adapters/createGenerations';
|
|
2
1
|
export { createFeedbackAdapterFactory } from '../adapters/createFeedback';
|
|
2
|
+
export { createGenerationsAdapterFactory } from '../adapters/createGenerations';
|
|
3
3
|
export { createGenerationsForPromptTemplateAdapterFactory } from '../adapters/createGenerationsForPromptTemplate';
|
package/dist/es/es2018/types/src/generated/types/EinsteinLlmGenerationItemRepresentation.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { EinsteinLlmGenerationsContentQualityRepresentation as EinsteinLlmGenerationsContentQualityRepresentation_EinsteinLlmGenerationsContentQualityRepresentation } from './EinsteinLlmGenerationsContentQualityRepresentation';
|
|
2
|
+
import { EinsteinLlmGenerationsSafetyScoreRepresentation as EinsteinLlmGenerationsSafetyScoreRepresentation_EinsteinLlmGenerationsSafetyScoreRepresentation } from './EinsteinLlmGenerationsSafetyScoreRepresentation';
|
|
1
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';
|
|
2
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "ac8fee86830c1fbf10c9d8746373fedf";
|
|
3
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
6
|
export declare const RepresentationType: string;
|
|
5
7
|
export declare function normalize(input: EinsteinLlmGenerationItemRepresentation, existing: EinsteinLlmGenerationItemRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinLlmGenerationItemRepresentationNormalized;
|
|
@@ -14,10 +16,12 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
16
|
* (none)
|
|
15
17
|
*/
|
|
16
18
|
export interface EinsteinLlmGenerationItemRepresentationNormalized {
|
|
19
|
+
contentQualityRepresentation?: EinsteinLlmGenerationsContentQualityRepresentation_EinsteinLlmGenerationsContentQualityRepresentation;
|
|
17
20
|
/** Any provider specific attributes will be included as part of this object */
|
|
18
21
|
parameters: string;
|
|
19
|
-
/**
|
|
22
|
+
/** Generations Response Id */
|
|
20
23
|
responseId: string;
|
|
24
|
+
safetyScoreRepresentation?: EinsteinLlmGenerationsSafetyScoreRepresentation_EinsteinLlmGenerationsSafetyScoreRepresentation;
|
|
21
25
|
/** Text */
|
|
22
26
|
text: string;
|
|
23
27
|
}
|
|
@@ -28,7 +32,9 @@ export interface EinsteinLlmGenerationItemRepresentationNormalized {
|
|
|
28
32
|
* (none)
|
|
29
33
|
*/
|
|
30
34
|
export interface EinsteinLlmGenerationItemRepresentation {
|
|
35
|
+
contentQualityRepresentation?: EinsteinLlmGenerationsContentQualityRepresentation_EinsteinLlmGenerationsContentQualityRepresentation;
|
|
31
36
|
parameters: string;
|
|
32
37
|
responseId: string;
|
|
38
|
+
safetyScoreRepresentation?: EinsteinLlmGenerationsSafetyScoreRepresentation_EinsteinLlmGenerationsSafetyScoreRepresentation;
|
|
33
39
|
text: string;
|
|
34
40
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 = "6ee3138e459fdb5a6bad0e0a8e4f4fd8";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: EinsteinLlmGenerationsContentQualityRepresentation, existing: EinsteinLlmGenerationsContentQualityRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinLlmGenerationsContentQualityRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: EinsteinLlmGenerationsContentQualityRepresentationNormalized, incoming: EinsteinLlmGenerationsContentQualityRepresentationNormalized): 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: EinsteinLlmGenerationsContentQualityRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Output of a einstein llm generation content quality representation
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface EinsteinLlmGenerationsContentQualityRepresentationNormalized {
|
|
17
|
+
/** Content Quality */
|
|
18
|
+
isToxicityDetected: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Output of a einstein llm generation content quality representation
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* (none)
|
|
25
|
+
*/
|
|
26
|
+
export interface EinsteinLlmGenerationsContentQualityRepresentation {
|
|
27
|
+
isToxicityDetected: boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 = "adf07d0c188c76ccfc6796d610950421";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: EinsteinLlmGenerationsSafetyScoreRepresentation, existing: EinsteinLlmGenerationsSafetyScoreRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinLlmGenerationsSafetyScoreRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: EinsteinLlmGenerationsSafetyScoreRepresentationNormalized, incoming: EinsteinLlmGenerationsSafetyScoreRepresentationNormalized): 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: EinsteinLlmGenerationsSafetyScoreRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Output of a einstein llm generation safety score representation
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface EinsteinLlmGenerationsSafetyScoreRepresentationNormalized {
|
|
17
|
+
/** Hate Score */
|
|
18
|
+
hateScore: number;
|
|
19
|
+
/** Physical Score */
|
|
20
|
+
physicalScore: number;
|
|
21
|
+
/** Profanity Score */
|
|
22
|
+
profanityScore: number;
|
|
23
|
+
/** Safety Score */
|
|
24
|
+
safetyScore: number;
|
|
25
|
+
/** Sexual Score */
|
|
26
|
+
sexualScore: number;
|
|
27
|
+
/** Toxicity Score */
|
|
28
|
+
toxicityScore: number;
|
|
29
|
+
/** Violence Score */
|
|
30
|
+
violenceScore: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Output of a einstein llm generation safety score representation
|
|
34
|
+
*
|
|
35
|
+
* Keys:
|
|
36
|
+
* (none)
|
|
37
|
+
*/
|
|
38
|
+
export interface EinsteinLlmGenerationsSafetyScoreRepresentation {
|
|
39
|
+
hateScore: number;
|
|
40
|
+
physicalScore: number;
|
|
41
|
+
profanityScore: number;
|
|
42
|
+
safetyScore: number;
|
|
43
|
+
sexualScore: number;
|
|
44
|
+
toxicityScore: number;
|
|
45
|
+
violenceScore: number;
|
|
46
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 = "6458d624e5a1691821c764b6de0badb3";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: EinsteinPromptTemplateGenerationsErrorRepresentation, existing: EinsteinPromptTemplateGenerationsErrorRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateGenerationsErrorRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: EinsteinPromptTemplateGenerationsErrorRepresentationNormalized, incoming: EinsteinPromptTemplateGenerationsErrorRepresentationNormalized): 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: EinsteinPromptTemplateGenerationsErrorRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Error output of a EinsteinPromptTemplateGeneration request
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface EinsteinPromptTemplateGenerationsErrorRepresentationNormalized {
|
|
17
|
+
/** This is the error message meant for client consumption. It may differ from the Gateway Error Message */
|
|
18
|
+
errorMessage: string;
|
|
19
|
+
/** HTTP Error Code classifying the error */
|
|
20
|
+
httpErrorCode: string;
|
|
21
|
+
/** This is the localized error message. */
|
|
22
|
+
localizedErrorMessage?: string;
|
|
23
|
+
/** The message code received from the LLM Gateway */
|
|
24
|
+
messageCode: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Error output of a EinsteinPromptTemplateGeneration request
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface EinsteinPromptTemplateGenerationsErrorRepresentation {
|
|
33
|
+
errorMessage: string;
|
|
34
|
+
httpErrorCode: string;
|
|
35
|
+
localizedErrorMessage?: string;
|
|
36
|
+
messageCode: string;
|
|
37
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { EinsteinPromptTemplateGenerationsErrorRepresentation as EinsteinPromptTemplateGenerationsErrorRepresentation_EinsteinPromptTemplateGenerationsErrorRepresentation } from './EinsteinPromptTemplateGenerationsErrorRepresentation';
|
|
1
2
|
import { EinsteinLlmGenerationItemRepresentation as EinsteinLlmGenerationItemRepresentation_EinsteinLlmGenerationItemRepresentation } from './EinsteinLlmGenerationItemRepresentation';
|
|
2
3
|
import { WrappedMap as WrappedMap_WrappedMap } from './WrappedMap';
|
|
3
4
|
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';
|
|
4
5
|
export declare const TTL = 100;
|
|
5
|
-
export declare const VERSION = "
|
|
6
|
+
export declare const VERSION = "a4c71dd12b7b696b7b04ebf6cf5101a3";
|
|
6
7
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
8
|
export declare const RepresentationType: string;
|
|
8
9
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -26,6 +27,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
26
27
|
* requestId (string): requestId
|
|
27
28
|
*/
|
|
28
29
|
export interface EinsteinPromptTemplateGenerationsRepresentationNormalized {
|
|
30
|
+
/** generated prompt template generationErrors */
|
|
31
|
+
generationErrors?: Array<EinsteinPromptTemplateGenerationsErrorRepresentation_EinsteinPromptTemplateGenerationsErrorRepresentation>;
|
|
29
32
|
/** List of generated text */
|
|
30
33
|
generations: Array<EinsteinLlmGenerationItemRepresentation_EinsteinLlmGenerationItemRepresentation>;
|
|
31
34
|
/** Any provider specific attributes will be included as part of this object */
|
|
@@ -44,6 +47,7 @@ export interface EinsteinPromptTemplateGenerationsRepresentationNormalized {
|
|
|
44
47
|
* requestId (string): requestId
|
|
45
48
|
*/
|
|
46
49
|
export interface EinsteinPromptTemplateGenerationsRepresentation {
|
|
50
|
+
generationErrors?: Array<EinsteinPromptTemplateGenerationsErrorRepresentation_EinsteinPromptTemplateGenerationsErrorRepresentation>;
|
|
47
51
|
generations: Array<EinsteinLlmGenerationItemRepresentation_EinsteinLlmGenerationItemRepresentation>;
|
|
48
52
|
parameters: WrappedMap_WrappedMap | null;
|
|
49
53
|
prompt: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-einsteinllm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.289.0",
|
|
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",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"test": "nx build:karma && karma start --single-run"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@salesforce/lds-bindings": "^1.
|
|
46
|
+
"@salesforce/lds-bindings": "^1.289.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
50
|
-
"@salesforce/lds-karma": "^1.
|
|
49
|
+
"@salesforce/lds-compiler-plugins": "^1.289.0",
|
|
50
|
+
"@salesforce/lds-karma": "^1.289.0"
|
|
51
51
|
},
|
|
52
52
|
"nx": {
|
|
53
53
|
"targets": {
|