@salesforce/lds-adapters-service-einsteinllm 1.399.0 → 1.401.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 +1770 -1028
- package/dist/es/es2018/types/src/generated/adapters/createPromptTemplate.d.ts +2 -3
- package/dist/es/es2018/types/src/generated/adapters/createPromptTemplateVersion.d.ts +2 -3
- package/dist/es/es2018/types/src/generated/adapters/getPromptTemplateVersion.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/adapters/getPromptTemplateVersions.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getTemplateType.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/updatePromptTemplateVersion.d.ts +2 -3
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplateTypesByTemplateTypeName.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplatesVersionsByPromptTemplateDevName.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplatesVersionsByPromptTemplateDevNameAndVersionId.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/resources/postEinsteinPromptTemplates.d.ts +2 -3
- package/dist/es/es2018/types/src/generated/resources/postEinsteinPromptTemplatesVersionsByPromptTemplateDevName.d.ts +2 -3
- package/dist/es/es2018/types/src/generated/resources/putEinsteinPromptTemplatesVersionsByPromptTemplateDevNameAndVersionId.d.ts +2 -3
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptRecordInputRepresentation.d.ts +5 -8
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTypeRecordRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTypeSchemaInputFieldRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTypeSchemaRepresentation.d.ts +35 -0
- package/package.json +4 -4
- package/sfdc/index.js +1648 -874
- package/src/raml/api.raml +103 -9
- package/src/raml/luvio.raml +13 -0
|
@@ -10,11 +10,10 @@ export interface CreatePromptTemplateConfig {
|
|
|
10
10
|
childRelationships: {
|
|
11
11
|
[key: string]: unknown;
|
|
12
12
|
};
|
|
13
|
-
fields:
|
|
13
|
+
fields: {
|
|
14
14
|
[key: string]: unknown;
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
id?: string;
|
|
17
|
-
isStandard: boolean;
|
|
18
17
|
}
|
|
19
18
|
export declare const createResourceParams: (config: CreatePromptTemplateConfig) => resources_postEinsteinPromptTemplates_ResourceRequestConfig;
|
|
20
19
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreatePromptTemplateConfig>): adapter$45$utils_Untrusted<CreatePromptTemplateConfig>;
|
|
@@ -11,11 +11,10 @@ export interface CreatePromptTemplateVersionConfig {
|
|
|
11
11
|
childRelationships: {
|
|
12
12
|
[key: string]: unknown;
|
|
13
13
|
};
|
|
14
|
-
fields:
|
|
14
|
+
fields: {
|
|
15
15
|
[key: string]: unknown;
|
|
16
|
-
}
|
|
16
|
+
};
|
|
17
17
|
id?: string;
|
|
18
|
-
isStandard: boolean;
|
|
19
18
|
}
|
|
20
19
|
export declare const createResourceParams: (config: CreatePromptTemplateVersionConfig) => resources_postEinsteinPromptTemplatesVersionsByPromptTemplateDevName_ResourceRequestConfig;
|
|
21
20
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreatePromptTemplateVersionConfig>): adapter$45$utils_Untrusted<CreatePromptTemplateVersionConfig>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_getEinsteinPromptTemplatesVersionsByPromptTemplateDevNameAndVersionId_ResourceRequestConfig } from '../resources/getEinsteinPromptTemplatesVersionsByPromptTemplateDevNameAndVersionId';
|
|
4
|
+
import { EinsteinPromptRecordRepresentation as types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation } from '../types/EinsteinPromptRecordRepresentation';
|
|
5
|
+
export declare const adapterName = "getPromptTemplateVersion";
|
|
6
|
+
export declare const getPromptTemplateVersion_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getPromptTemplateVersion_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetPromptTemplateVersionConfig {
|
|
9
|
+
promptTemplateDevName: string;
|
|
10
|
+
versionId: string;
|
|
11
|
+
includingContent?: boolean;
|
|
12
|
+
includingVersionDetail?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const createResourceParams: (config: GetPromptTemplateVersionConfig) => resources_getEinsteinPromptTemplatesVersionsByPromptTemplateDevNameAndVersionId_ResourceRequestConfig;
|
|
15
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetPromptTemplateVersionConfig): string;
|
|
16
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetPromptTemplateVersionConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
17
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetPromptTemplateVersionConfig>): adapter$45$utils_Untrusted<GetPromptTemplateVersionConfig>;
|
|
18
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetPromptTemplateVersionConfig | null;
|
|
19
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetPromptTemplateVersionConfig): $64$luvio_engine_Fragment;
|
|
20
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetPromptTemplateVersionConfig): $64$luvio_engine_Snapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, any>;
|
|
21
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetPromptTemplateVersionConfig, resourceParams: resources_getEinsteinPromptTemplatesVersionsByPromptTemplateDevNameAndVersionId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, any>>;
|
|
22
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetPromptTemplateVersionConfig, resourceParams: resources_getEinsteinPromptTemplatesVersionsByPromptTemplateDevNameAndVersionId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
23
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetPromptTemplateVersionConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, any>>;
|
|
24
|
+
export type BuildSnapshotContext = {
|
|
25
|
+
luvio: $64$luvio_engine_Luvio;
|
|
26
|
+
config: GetPromptTemplateVersionConfig;
|
|
27
|
+
};
|
|
28
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, any>>;
|
|
29
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation>): $64$luvio_engine_Snapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, any>;
|
|
30
|
+
export declare const getPromptTemplateVersionAdapterFactory: $64$luvio_engine_AdapterFactory<GetPromptTemplateVersionConfig, types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_getEinsteinPromptTemplatesVersionsByPromptTemplateDevName_ResourceRequestConfig } from '../resources/getEinsteinPromptTemplatesVersionsByPromptTemplateDevName';
|
|
4
|
+
import { EinsteinPromptRecordRepresentation as types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation } from '../types/EinsteinPromptRecordRepresentation';
|
|
5
|
+
export declare const adapterName = "getPromptTemplateVersions";
|
|
6
|
+
export declare const getPromptTemplateVersions_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getPromptTemplateVersions_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetPromptTemplateVersionsConfig {
|
|
9
|
+
promptTemplateDevName: string;
|
|
10
|
+
includingContent?: boolean;
|
|
11
|
+
includingVersionDetail?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const createResourceParams: (config: GetPromptTemplateVersionsConfig) => resources_getEinsteinPromptTemplatesVersionsByPromptTemplateDevName_ResourceRequestConfig;
|
|
14
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetPromptTemplateVersionsConfig): string;
|
|
15
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetPromptTemplateVersionsConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetPromptTemplateVersionsConfig>): adapter$45$utils_Untrusted<GetPromptTemplateVersionsConfig>;
|
|
17
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetPromptTemplateVersionsConfig | null;
|
|
18
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetPromptTemplateVersionsConfig): $64$luvio_engine_Fragment;
|
|
19
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetPromptTemplateVersionsConfig): $64$luvio_engine_Snapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, any>;
|
|
20
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetPromptTemplateVersionsConfig, resourceParams: resources_getEinsteinPromptTemplatesVersionsByPromptTemplateDevName_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, any>>;
|
|
21
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetPromptTemplateVersionsConfig, resourceParams: resources_getEinsteinPromptTemplatesVersionsByPromptTemplateDevName_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
22
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetPromptTemplateVersionsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, any>>;
|
|
23
|
+
export type BuildSnapshotContext = {
|
|
24
|
+
luvio: $64$luvio_engine_Luvio;
|
|
25
|
+
config: GetPromptTemplateVersionsConfig;
|
|
26
|
+
};
|
|
27
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, any>>;
|
|
28
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation>): $64$luvio_engine_Snapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, any>;
|
|
29
|
+
export declare const getPromptTemplateVersionsAdapterFactory: $64$luvio_engine_AdapterFactory<GetPromptTemplateVersionsConfig, types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_getEinsteinPromptTemplateTypesByTemplateTypeName_ResourceRequestConfig } from '../resources/getEinsteinPromptTemplateTypesByTemplateTypeName';
|
|
4
|
+
import { EinsteinPromptTypeRecordRepresentation as types_EinsteinPromptTypeRecordRepresentation_EinsteinPromptTypeRecordRepresentation } from '../types/EinsteinPromptTypeRecordRepresentation';
|
|
5
|
+
export declare const adapterName = "getTemplateType";
|
|
6
|
+
export declare const getTemplateType_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getTemplateType_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetTemplateTypeConfig {
|
|
9
|
+
templateTypeName: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const createResourceParams: (config: GetTemplateTypeConfig) => resources_getEinsteinPromptTemplateTypesByTemplateTypeName_ResourceRequestConfig;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetTemplateTypeConfig): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetTemplateTypeConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetTemplateTypeConfig>): adapter$45$utils_Untrusted<GetTemplateTypeConfig>;
|
|
15
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetTemplateTypeConfig | null;
|
|
16
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetTemplateTypeConfig): $64$luvio_engine_Fragment;
|
|
17
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetTemplateTypeConfig): $64$luvio_engine_Snapshot<types_EinsteinPromptTypeRecordRepresentation_EinsteinPromptTypeRecordRepresentation, any>;
|
|
18
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetTemplateTypeConfig, resourceParams: resources_getEinsteinPromptTemplateTypesByTemplateTypeName_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EinsteinPromptTypeRecordRepresentation_EinsteinPromptTypeRecordRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_EinsteinPromptTypeRecordRepresentation_EinsteinPromptTypeRecordRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_EinsteinPromptTypeRecordRepresentation_EinsteinPromptTypeRecordRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_EinsteinPromptTypeRecordRepresentation_EinsteinPromptTypeRecordRepresentation, any>>;
|
|
19
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetTemplateTypeConfig, resourceParams: resources_getEinsteinPromptTemplateTypesByTemplateTypeName_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetTemplateTypeConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_EinsteinPromptTypeRecordRepresentation_EinsteinPromptTypeRecordRepresentation, any>>;
|
|
21
|
+
export type BuildSnapshotContext = {
|
|
22
|
+
luvio: $64$luvio_engine_Luvio;
|
|
23
|
+
config: GetTemplateTypeConfig;
|
|
24
|
+
};
|
|
25
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_EinsteinPromptTypeRecordRepresentation_EinsteinPromptTypeRecordRepresentation, any>>;
|
|
26
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_EinsteinPromptTypeRecordRepresentation_EinsteinPromptTypeRecordRepresentation>): $64$luvio_engine_Snapshot<types_EinsteinPromptTypeRecordRepresentation_EinsteinPromptTypeRecordRepresentation, any>;
|
|
27
|
+
export declare const getTemplateTypeAdapterFactory: $64$luvio_engine_AdapterFactory<GetTemplateTypeConfig, types_EinsteinPromptTypeRecordRepresentation_EinsteinPromptTypeRecordRepresentation>;
|
|
@@ -12,11 +12,10 @@ export interface UpdatePromptTemplateVersionConfig {
|
|
|
12
12
|
childRelationships: {
|
|
13
13
|
[key: string]: unknown;
|
|
14
14
|
};
|
|
15
|
-
fields:
|
|
15
|
+
fields: {
|
|
16
16
|
[key: string]: unknown;
|
|
17
|
-
}
|
|
17
|
+
};
|
|
18
18
|
id?: string;
|
|
19
|
-
isStandard: boolean;
|
|
20
19
|
}
|
|
21
20
|
export declare const createResourceParams: (config: UpdatePromptTemplateVersionConfig) => resources_putEinsteinPromptTemplatesVersionsByPromptTemplateDevNameAndVersionId_ResourceRequestConfig;
|
|
22
21
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdatePromptTemplateVersionConfig>): adapter$45$utils_Untrusted<UpdatePromptTemplateVersionConfig>;
|
|
@@ -8,8 +8,11 @@ export { getDataProvidersAdapterFactory } from '../adapters/getDataProviders';
|
|
|
8
8
|
export { getDataProviderInstanceConfigAdapterFactory } from '../adapters/getDataProviderInstanceConfig';
|
|
9
9
|
export { getDataProviderTypeConfigsAdapterFactory } from '../adapters/getDataProviderTypeConfigs';
|
|
10
10
|
export { getPromptTemplateAdapterFactory } from '../adapters/getPromptTemplate';
|
|
11
|
+
export { getPromptTemplateVersionsAdapterFactory } from '../adapters/getPromptTemplateVersions';
|
|
11
12
|
export { createPromptTemplateVersionAdapterFactory } from '../adapters/createPromptTemplateVersion';
|
|
13
|
+
export { getPromptTemplateVersionAdapterFactory } from '../adapters/getPromptTemplateVersion';
|
|
12
14
|
export { updatePromptTemplateVersionAdapterFactory } from '../adapters/updatePromptTemplateVersion';
|
|
13
15
|
export { putEinsteinPromptTemplateVersionStatusAdapterFactory } from '../adapters/putEinsteinPromptTemplateVersionStatus';
|
|
14
16
|
export { createGenerationsForPromptTemplateAdapterFactory } from '../adapters/createGenerationsForPromptTemplate';
|
|
17
|
+
export { getTemplateTypeAdapterFactory } from '../adapters/getTemplateType';
|
|
15
18
|
export { getOutputLanguagesAdapterFactory } from '../adapters/getOutputLanguages';
|
|
@@ -10,7 +10,10 @@ declare let getDataProviders: any;
|
|
|
10
10
|
declare let getInputMappedDataProviders: any;
|
|
11
11
|
declare let getOutputLanguages: any;
|
|
12
12
|
declare let getPromptTemplate: any;
|
|
13
|
+
declare let getPromptTemplateVersion: any;
|
|
14
|
+
declare let getPromptTemplateVersions: any;
|
|
13
15
|
declare let getPromptTemplates: any;
|
|
16
|
+
declare let getTemplateType: any;
|
|
14
17
|
declare let putEinsteinPromptTemplateVersionStatus: any;
|
|
15
18
|
declare let updatePromptTemplateVersion: any;
|
|
16
19
|
declare let createEmbeddings_imperative: any;
|
|
@@ -20,5 +23,8 @@ declare let getDataProviders_imperative: any;
|
|
|
20
23
|
declare let getInputMappedDataProviders_imperative: any;
|
|
21
24
|
declare let getOutputLanguages_imperative: any;
|
|
22
25
|
declare let getPromptTemplate_imperative: any;
|
|
26
|
+
declare let getPromptTemplateVersion_imperative: any;
|
|
27
|
+
declare let getPromptTemplateVersions_imperative: any;
|
|
23
28
|
declare let getPromptTemplates_imperative: any;
|
|
24
|
-
|
|
29
|
+
declare let getTemplateType_imperative: any;
|
|
30
|
+
export { createEmbeddings, createFeedback, createGenerations, createGenerationsForPromptTemplate, createPromptTemplate, createPromptTemplateVersion, getDataProviderInstanceConfig, getDataProviderTypeConfigs, getDataProviders, getInputMappedDataProviders, getOutputLanguages, getPromptTemplate, getPromptTemplateVersion, getPromptTemplateVersions, getPromptTemplates, getTemplateType, putEinsteinPromptTemplateVersionStatus, updatePromptTemplateVersion, createEmbeddings_imperative, getDataProviderInstanceConfig_imperative, getDataProviderTypeConfigs_imperative, getDataProviders_imperative, getInputMappedDataProviders_imperative, getOutputLanguages_imperative, getPromptTemplate_imperative, getPromptTemplateVersion_imperative, getPromptTemplateVersions_imperative, getPromptTemplates_imperative, getTemplateType_imperative, };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { EinsteinPromptTypeRecordRepresentation as types_EinsteinPromptTypeRecordRepresentation_EinsteinPromptTypeRecordRepresentation } from '../types/EinsteinPromptTypeRecordRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
templateTypeName: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EinsteinPromptTypeRecordRepresentation_EinsteinPromptTypeRecordRepresentation): void;
|
|
12
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EinsteinPromptTypeRecordRepresentation_EinsteinPromptTypeRecordRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EinsteinPromptTypeRecordRepresentation_EinsteinPromptTypeRecordRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EinsteinPromptTypeRecordRepresentation_EinsteinPromptTypeRecordRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EinsteinPromptTypeRecordRepresentation_EinsteinPromptTypeRecordRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EinsteinPromptTypeRecordRepresentation_EinsteinPromptTypeRecordRepresentation, any>;
|
|
13
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EinsteinPromptTypeRecordRepresentation_EinsteinPromptTypeRecordRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { EinsteinPromptRecordRepresentation as types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation } from '../types/EinsteinPromptRecordRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
promptTemplateDevName: string;
|
|
6
|
+
};
|
|
7
|
+
queryParams: {
|
|
8
|
+
includingContent?: boolean;
|
|
9
|
+
includingVersionDetail?: boolean;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
13
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
14
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation): void;
|
|
16
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, any>;
|
|
17
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
18
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
19
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { EinsteinPromptRecordRepresentation as types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation } from '../types/EinsteinPromptRecordRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
promptTemplateDevName: string;
|
|
6
|
+
versionId: string;
|
|
7
|
+
};
|
|
8
|
+
queryParams: {
|
|
9
|
+
includingContent?: boolean;
|
|
10
|
+
includingVersionDetail?: boolean;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
14
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
15
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation): void;
|
|
17
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, any>;
|
|
18
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
19
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
20
|
+
export default createResourceRequest;
|
|
@@ -6,11 +6,10 @@ export interface ResourceRequestConfig {
|
|
|
6
6
|
childRelationships: {
|
|
7
7
|
[key: string]: unknown;
|
|
8
8
|
};
|
|
9
|
-
fields:
|
|
9
|
+
fields: {
|
|
10
10
|
[key: string]: unknown;
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
id?: string;
|
|
13
|
-
isStandard: boolean;
|
|
14
13
|
};
|
|
15
14
|
}
|
|
16
15
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -9,11 +9,10 @@ export interface ResourceRequestConfig {
|
|
|
9
9
|
childRelationships: {
|
|
10
10
|
[key: string]: unknown;
|
|
11
11
|
};
|
|
12
|
-
fields:
|
|
12
|
+
fields: {
|
|
13
13
|
[key: string]: unknown;
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
15
|
id?: string;
|
|
16
|
-
isStandard: boolean;
|
|
17
16
|
};
|
|
18
17
|
}
|
|
19
18
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -10,11 +10,10 @@ export interface ResourceRequestConfig {
|
|
|
10
10
|
childRelationships: {
|
|
11
11
|
[key: string]: unknown;
|
|
12
12
|
};
|
|
13
|
-
fields:
|
|
13
|
+
fields: {
|
|
14
14
|
[key: string]: unknown;
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
id?: string;
|
|
17
|
-
isStandard: boolean;
|
|
18
17
|
};
|
|
19
18
|
}
|
|
20
19
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
package/dist/es/es2018/types/src/generated/types/EinsteinPromptRecordInputRepresentation.d.ts
CHANGED
|
@@ -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 = "fb8ff3eb5cea43d2e9913f9b44ce0052";
|
|
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: EinsteinPromptRecordInputRepresentation, existing: EinsteinPromptRecordInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptRecordInputRepresentationNormalized;
|
|
@@ -21,13 +21,11 @@ export interface EinsteinPromptRecordInputRepresentationNormalized {
|
|
|
21
21
|
[key: string]: unknown;
|
|
22
22
|
};
|
|
23
23
|
/** GenAiPromptTemplate Fields */
|
|
24
|
-
fields:
|
|
24
|
+
fields: {
|
|
25
25
|
[key: string]: unknown;
|
|
26
|
-
}
|
|
26
|
+
};
|
|
27
27
|
/** The ID of the prompt template */
|
|
28
28
|
id?: string;
|
|
29
|
-
/** isStandard */
|
|
30
|
-
isStandard: boolean;
|
|
31
29
|
}
|
|
32
30
|
/**
|
|
33
31
|
* Input representation for creating a prompt template
|
|
@@ -40,9 +38,8 @@ export interface EinsteinPromptRecordInputRepresentation {
|
|
|
40
38
|
childRelationships: {
|
|
41
39
|
[key: string]: unknown;
|
|
42
40
|
};
|
|
43
|
-
fields:
|
|
41
|
+
fields: {
|
|
44
42
|
[key: string]: unknown;
|
|
45
|
-
}
|
|
43
|
+
};
|
|
46
44
|
id?: string;
|
|
47
|
-
isStandard: boolean;
|
|
48
45
|
}
|
|
@@ -7,7 +7,7 @@ import { EinsteinPromptTemplateMaskContentRepresentation as EinsteinPromptTempla
|
|
|
7
7
|
import { EinsteinPromptTemplateMaskDataRepresentation as EinsteinPromptTemplateMaskDataRepresentation_EinsteinPromptTemplateMaskDataRepresentation } from './EinsteinPromptTemplateMaskDataRepresentation';
|
|
8
8
|
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';
|
|
9
9
|
export declare const TTL = 100;
|
|
10
|
-
export declare const VERSION = "
|
|
10
|
+
export declare const VERSION = "4f8799314eebcd45e3fca72dcdf7722d";
|
|
11
11
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
12
12
|
export declare const RepresentationType: string;
|
|
13
13
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -48,6 +48,8 @@ export interface EinsteinPromptTemplateGenerationsRepresentationNormalized {
|
|
|
48
48
|
prompt: string | null;
|
|
49
49
|
/** generated prompt template promptTemplateDevName */
|
|
50
50
|
promptTemplateDevName: string;
|
|
51
|
+
/** Raw prompt with unresolved merge fields */
|
|
52
|
+
rawPrompt: string | null;
|
|
51
53
|
/** ID of the generation request */
|
|
52
54
|
requestId: string;
|
|
53
55
|
/** generated prompt template RequestMessages */
|
|
@@ -74,6 +76,7 @@ export interface EinsteinPromptTemplateGenerationsRepresentation {
|
|
|
74
76
|
parameters: WrappedMap_WrappedMap | null;
|
|
75
77
|
prompt: string | null;
|
|
76
78
|
promptTemplateDevName: string;
|
|
79
|
+
rawPrompt: string | null;
|
|
77
80
|
requestId: string;
|
|
78
81
|
requestMessages?: Array<EinsteinPromptTemplateMaskContentRepresentation_EinsteinPromptTemplateMaskContentRepresentation>;
|
|
79
82
|
responseMessages?: Array<EinsteinPromptTemplateMaskContentRepresentation_EinsteinPromptTemplateMaskContentRepresentation>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { EinsteinPromptTypeSchemaRepresentation as EinsteinPromptTypeSchemaRepresentation_EinsteinPromptTypeSchemaRepresentation } from './EinsteinPromptTypeSchemaRepresentation';
|
|
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 TTL = 300;
|
|
4
|
+
export declare const VERSION = "bb627c12e7041da02926d6b2affc98a1";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
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;
|
|
8
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
|
+
export declare function equals(existing: EinsteinPromptTypeRecordRepresentationNormalized, incoming: EinsteinPromptTypeRecordRepresentationNormalized): boolean;
|
|
10
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: EinsteinPromptTypeRecordRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
+
/**
|
|
13
|
+
* Representation of a single Prompt Template Type
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface EinsteinPromptTypeRecordRepresentationNormalized {
|
|
19
|
+
/** The list of excluded global variables */
|
|
20
|
+
excludedGlobalVariables: Array<string>;
|
|
21
|
+
schema: EinsteinPromptTypeSchemaRepresentation_EinsteinPromptTypeSchemaRepresentation;
|
|
22
|
+
/** The unique name of the prompt template type */
|
|
23
|
+
templateTypeName: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Representation of a single Prompt Template Type
|
|
27
|
+
*
|
|
28
|
+
* Keys:
|
|
29
|
+
* (none)
|
|
30
|
+
*/
|
|
31
|
+
export interface EinsteinPromptTypeRecordRepresentation {
|
|
32
|
+
excludedGlobalVariables: Array<string>;
|
|
33
|
+
schema: EinsteinPromptTypeSchemaRepresentation_EinsteinPromptTypeSchemaRepresentation;
|
|
34
|
+
templateTypeName: string;
|
|
35
|
+
}
|
|
@@ -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 = "f08355bdc491f090c787309a8a476caa";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: EinsteinPromptTypeSchemaInputFieldRepresentation, existing: EinsteinPromptTypeSchemaInputFieldRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTypeSchemaInputFieldRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: EinsteinPromptTypeSchemaInputFieldRepresentationNormalized, incoming: EinsteinPromptTypeSchemaInputFieldRepresentationNormalized): 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: EinsteinPromptTypeSchemaInputFieldRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Representation of an input in the schema of Prompt Template Type
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface EinsteinPromptTypeSchemaInputFieldRepresentationNormalized {
|
|
17
|
+
/** The unique API name of the input */
|
|
18
|
+
apiName: string;
|
|
19
|
+
/** The label of the input */
|
|
20
|
+
label?: string;
|
|
21
|
+
/** The reference name of the input */
|
|
22
|
+
referenceName?: string;
|
|
23
|
+
/** The type definition of the input */
|
|
24
|
+
typeDefinition?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Representation of an input in the schema of Prompt Template Type
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface EinsteinPromptTypeSchemaInputFieldRepresentation {
|
|
33
|
+
apiName: string;
|
|
34
|
+
label?: string;
|
|
35
|
+
referenceName?: string;
|
|
36
|
+
typeDefinition?: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { EinsteinPromptTypeSchemaInputFieldRepresentation as EinsteinPromptTypeSchemaInputFieldRepresentation_EinsteinPromptTypeSchemaInputFieldRepresentation } from './EinsteinPromptTypeSchemaInputFieldRepresentation';
|
|
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 = "a0cab6d022a5571ceb94328166f1db95";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: EinsteinPromptTypeSchemaRepresentation, existing: EinsteinPromptTypeSchemaRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTypeSchemaRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: EinsteinPromptTypeSchemaRepresentationNormalized, incoming: EinsteinPromptTypeSchemaRepresentationNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: EinsteinPromptTypeSchemaRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Representation of the schema of a Prompt Template type
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface EinsteinPromptTypeSchemaRepresentationNormalized {
|
|
18
|
+
/** Whether to allow input extension */
|
|
19
|
+
allowInputExtension: boolean;
|
|
20
|
+
/** Inputs in this template type */
|
|
21
|
+
inputs: Array<EinsteinPromptTypeSchemaInputFieldRepresentation_EinsteinPromptTypeSchemaInputFieldRepresentation>;
|
|
22
|
+
/** The ID of the primary object in the template type */
|
|
23
|
+
primaryObjectId?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Representation of the schema of a Prompt Template type
|
|
27
|
+
*
|
|
28
|
+
* Keys:
|
|
29
|
+
* (none)
|
|
30
|
+
*/
|
|
31
|
+
export interface EinsteinPromptTypeSchemaRepresentation {
|
|
32
|
+
allowInputExtension: boolean;
|
|
33
|
+
inputs: Array<EinsteinPromptTypeSchemaInputFieldRepresentation_EinsteinPromptTypeSchemaInputFieldRepresentation>;
|
|
34
|
+
primaryObjectId?: string;
|
|
35
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-einsteinllm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.401.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",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"test:unit": "jest --config=./jest.config.js"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@salesforce/lds-bindings": "^1.
|
|
47
|
+
"@salesforce/lds-bindings": "^1.401.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
51
|
-
"@salesforce/lds-karma": "^1.
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.401.0",
|
|
51
|
+
"@salesforce/lds-karma": "^1.401.0"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|