@salesforce/lds-adapters-service-einsteinllm 1.404.0-dev2 → 1.404.0-dev21
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 +2638 -1261
- package/dist/es/es2018/types/src/generated/adapters/getEinsteinPromptTemplateReferences.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/putEinsteinPromptTemplateStatus.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplatesReferencesByPromptTemplateDevName.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/putEinsteinPromptTemplatesStatusByPromptTemplateDevName.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmGenerationGenAiCitedReferenceRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptRecordFieldRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateAttachmentRepresentation.d.ts +4 -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 +7 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateLatencyBreakdownItemRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateLatencyExecutionRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateLatencyRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateLatencyStepRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplatePerformanceRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplatePromptTokenUsageRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateReferencesRepresentation.d.ts +50 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateStatusRepresentation.d.ts +59 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateTokenBreakdownRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateTokenUsageRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderInstanceConfigRepresentation.d.ts +4 -1
- package/package.json +4 -4
- package/sfdc/index.js +2938 -1546
- package/src/raml/api.raml +241 -1
- package/src/raml/luvio.raml +17 -0
|
@@ -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_getEinsteinPromptTemplatesReferencesByPromptTemplateDevName_ResourceRequestConfig } from '../resources/getEinsteinPromptTemplatesReferencesByPromptTemplateDevName';
|
|
4
|
+
import { EinsteinPromptTemplateReferencesRepresentation as types_EinsteinPromptTemplateReferencesRepresentation_EinsteinPromptTemplateReferencesRepresentation } from '../types/EinsteinPromptTemplateReferencesRepresentation';
|
|
5
|
+
export declare const adapterName = "getEinsteinPromptTemplateReferences";
|
|
6
|
+
export declare const getEinsteinPromptTemplateReferences_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getEinsteinPromptTemplateReferences_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetEinsteinPromptTemplateReferencesConfig {
|
|
9
|
+
promptTemplateDevName: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const createResourceParams: (config: GetEinsteinPromptTemplateReferencesConfig) => resources_getEinsteinPromptTemplatesReferencesByPromptTemplateDevName_ResourceRequestConfig;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetEinsteinPromptTemplateReferencesConfig): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetEinsteinPromptTemplateReferencesConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetEinsteinPromptTemplateReferencesConfig>): adapter$45$utils_Untrusted<GetEinsteinPromptTemplateReferencesConfig>;
|
|
15
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetEinsteinPromptTemplateReferencesConfig | null;
|
|
16
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetEinsteinPromptTemplateReferencesConfig): $64$luvio_engine_Fragment;
|
|
17
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetEinsteinPromptTemplateReferencesConfig): $64$luvio_engine_Snapshot<types_EinsteinPromptTemplateReferencesRepresentation_EinsteinPromptTemplateReferencesRepresentation, any>;
|
|
18
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetEinsteinPromptTemplateReferencesConfig, resourceParams: resources_getEinsteinPromptTemplatesReferencesByPromptTemplateDevName_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EinsteinPromptTemplateReferencesRepresentation_EinsteinPromptTemplateReferencesRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_EinsteinPromptTemplateReferencesRepresentation_EinsteinPromptTemplateReferencesRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_EinsteinPromptTemplateReferencesRepresentation_EinsteinPromptTemplateReferencesRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_EinsteinPromptTemplateReferencesRepresentation_EinsteinPromptTemplateReferencesRepresentation, any>>;
|
|
19
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetEinsteinPromptTemplateReferencesConfig, resourceParams: resources_getEinsteinPromptTemplatesReferencesByPromptTemplateDevName_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetEinsteinPromptTemplateReferencesConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_EinsteinPromptTemplateReferencesRepresentation_EinsteinPromptTemplateReferencesRepresentation, any>>;
|
|
21
|
+
export type BuildSnapshotContext = {
|
|
22
|
+
luvio: $64$luvio_engine_Luvio;
|
|
23
|
+
config: GetEinsteinPromptTemplateReferencesConfig;
|
|
24
|
+
};
|
|
25
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_EinsteinPromptTemplateReferencesRepresentation_EinsteinPromptTemplateReferencesRepresentation, any>>;
|
|
26
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_EinsteinPromptTemplateReferencesRepresentation_EinsteinPromptTemplateReferencesRepresentation>): $64$luvio_engine_Snapshot<types_EinsteinPromptTemplateReferencesRepresentation_EinsteinPromptTemplateReferencesRepresentation, any>;
|
|
27
|
+
export declare const getEinsteinPromptTemplateReferencesAdapterFactory: $64$luvio_engine_AdapterFactory<GetEinsteinPromptTemplateReferencesConfig, types_EinsteinPromptTemplateReferencesRepresentation_EinsteinPromptTemplateReferencesRepresentation>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, 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_putEinsteinPromptTemplatesStatusByPromptTemplateDevName_ResourceRequestConfig } from '../resources/putEinsteinPromptTemplatesStatusByPromptTemplateDevName';
|
|
4
|
+
import { EinsteinPromptTemplateStatusRepresentation as types_EinsteinPromptTemplateStatusRepresentation_EinsteinPromptTemplateStatusRepresentation } from '../types/EinsteinPromptTemplateStatusRepresentation';
|
|
5
|
+
export declare const adapterName = "putEinsteinPromptTemplateStatus";
|
|
6
|
+
export declare const putEinsteinPromptTemplateStatus_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const putEinsteinPromptTemplateStatus_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface PutEinsteinPromptTemplateStatusConfig {
|
|
9
|
+
promptTemplateDevName: string;
|
|
10
|
+
action?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const createResourceParams: (config: PutEinsteinPromptTemplateStatusConfig) => resources_putEinsteinPromptTemplatesStatusByPromptTemplateDevName_ResourceRequestConfig;
|
|
13
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<PutEinsteinPromptTemplateStatusConfig>): adapter$45$utils_Untrusted<PutEinsteinPromptTemplateStatusConfig>;
|
|
14
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): PutEinsteinPromptTemplateStatusConfig | null;
|
|
15
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: PutEinsteinPromptTemplateStatusConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_EinsteinPromptTemplateStatusRepresentation_EinsteinPromptTemplateStatusRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_EinsteinPromptTemplateStatusRepresentation_EinsteinPromptTemplateStatusRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_EinsteinPromptTemplateStatusRepresentation_EinsteinPromptTemplateStatusRepresentation, any>>;
|
|
16
|
+
export declare const putEinsteinPromptTemplateStatusAdapterFactory: $64$luvio_engine_AdapterFactory<PutEinsteinPromptTemplateStatusConfig, types_EinsteinPromptTemplateStatusRepresentation_EinsteinPromptTemplateStatusRepresentation>;
|
|
@@ -8,6 +8,8 @@ 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 { putEinsteinPromptTemplateStatusAdapterFactory } from '../adapters/putEinsteinPromptTemplateStatus';
|
|
12
|
+
export { getEinsteinPromptTemplateReferencesAdapterFactory } from '../adapters/getEinsteinPromptTemplateReferences';
|
|
11
13
|
export { getPromptTemplateVersionsAdapterFactory } from '../adapters/getPromptTemplateVersions';
|
|
12
14
|
export { createPromptTemplateVersionAdapterFactory } from '../adapters/createPromptTemplateVersion';
|
|
13
15
|
export { getPromptTemplateVersionAdapterFactory } from '../adapters/getPromptTemplateVersion';
|
|
@@ -7,6 +7,7 @@ declare let createPromptTemplateVersion: any;
|
|
|
7
7
|
declare let getDataProviderInstanceConfig: any;
|
|
8
8
|
declare let getDataProviderTypeConfigs: any;
|
|
9
9
|
declare let getDataProviders: any;
|
|
10
|
+
declare let getEinsteinPromptTemplateReferences: any;
|
|
10
11
|
declare let getInputMappedDataProviders: any;
|
|
11
12
|
declare let getOutputLanguages: any;
|
|
12
13
|
declare let getPromptTemplate: any;
|
|
@@ -14,12 +15,14 @@ declare let getPromptTemplateVersion: any;
|
|
|
14
15
|
declare let getPromptTemplateVersions: any;
|
|
15
16
|
declare let getPromptTemplates: any;
|
|
16
17
|
declare let getTemplateType: any;
|
|
18
|
+
declare let putEinsteinPromptTemplateStatus: any;
|
|
17
19
|
declare let putEinsteinPromptTemplateVersionStatus: any;
|
|
18
20
|
declare let updatePromptTemplateVersion: any;
|
|
19
21
|
declare let createEmbeddings_imperative: any;
|
|
20
22
|
declare let getDataProviderInstanceConfig_imperative: any;
|
|
21
23
|
declare let getDataProviderTypeConfigs_imperative: any;
|
|
22
24
|
declare let getDataProviders_imperative: any;
|
|
25
|
+
declare let getEinsteinPromptTemplateReferences_imperative: any;
|
|
23
26
|
declare let getInputMappedDataProviders_imperative: any;
|
|
24
27
|
declare let getOutputLanguages_imperative: any;
|
|
25
28
|
declare let getPromptTemplate_imperative: any;
|
|
@@ -27,4 +30,4 @@ declare let getPromptTemplateVersion_imperative: any;
|
|
|
27
30
|
declare let getPromptTemplateVersions_imperative: any;
|
|
28
31
|
declare let getPromptTemplates_imperative: any;
|
|
29
32
|
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, };
|
|
33
|
+
export { createEmbeddings, createFeedback, createGenerations, createGenerationsForPromptTemplate, createPromptTemplate, createPromptTemplateVersion, getDataProviderInstanceConfig, getDataProviderTypeConfigs, getDataProviders, getEinsteinPromptTemplateReferences, getInputMappedDataProviders, getOutputLanguages, getPromptTemplate, getPromptTemplateVersion, getPromptTemplateVersions, getPromptTemplates, getTemplateType, putEinsteinPromptTemplateStatus, putEinsteinPromptTemplateVersionStatus, updatePromptTemplateVersion, createEmbeddings_imperative, getDataProviderInstanceConfig_imperative, getDataProviderTypeConfigs_imperative, getDataProviders_imperative, getEinsteinPromptTemplateReferences_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 { EinsteinPromptTemplateReferencesRepresentation as types_EinsteinPromptTemplateReferencesRepresentation_EinsteinPromptTemplateReferencesRepresentation } from '../types/EinsteinPromptTemplateReferencesRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
promptTemplateDevName: 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_EinsteinPromptTemplateReferencesRepresentation_EinsteinPromptTemplateReferencesRepresentation): void;
|
|
12
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EinsteinPromptTemplateReferencesRepresentation_EinsteinPromptTemplateReferencesRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EinsteinPromptTemplateReferencesRepresentation_EinsteinPromptTemplateReferencesRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EinsteinPromptTemplateReferencesRepresentation_EinsteinPromptTemplateReferencesRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EinsteinPromptTemplateReferencesRepresentation_EinsteinPromptTemplateReferencesRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EinsteinPromptTemplateReferencesRepresentation_EinsteinPromptTemplateReferencesRepresentation, any>;
|
|
13
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EinsteinPromptTemplateReferencesRepresentation_EinsteinPromptTemplateReferencesRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { EinsteinPromptTemplateStatusRepresentation as types_EinsteinPromptTemplateStatusRepresentation_EinsteinPromptTemplateStatusRepresentation } from '../types/EinsteinPromptTemplateStatusRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
promptTemplateDevName: string;
|
|
6
|
+
};
|
|
7
|
+
queryParams: {
|
|
8
|
+
action?: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
12
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EinsteinPromptTemplateStatusRepresentation_EinsteinPromptTemplateStatusRepresentation): void;
|
|
13
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EinsteinPromptTemplateStatusRepresentation_EinsteinPromptTemplateStatusRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EinsteinPromptTemplateStatusRepresentation_EinsteinPromptTemplateStatusRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EinsteinPromptTemplateStatusRepresentation_EinsteinPromptTemplateStatusRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EinsteinPromptTemplateStatusRepresentation_EinsteinPromptTemplateStatusRepresentation, any>;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
export default createResourceRequest;
|
|
@@ -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/dist/es/es2018/types/src/generated/types/EinsteinPromptRecordFieldRepresentation.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 = "c4993d997b5852ad9d11bd2a720192b3";
|
|
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: EinsteinPromptRecordFieldRepresentation, existing: EinsteinPromptRecordFieldRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptRecordFieldRepresentationNormalized;
|
|
@@ -17,7 +17,7 @@ export interface EinsteinPromptRecordFieldRepresentationNormalized {
|
|
|
17
17
|
/** The displayable value for a field */
|
|
18
18
|
displayValue: string;
|
|
19
19
|
/** The value of a field in its raw data form. */
|
|
20
|
-
value: boolean | number | string | null;
|
|
20
|
+
value: boolean | number | string | Array<string> | null;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Contains both the raw and displayable field values for a field in a Record.
|
|
@@ -27,5 +27,5 @@ export interface EinsteinPromptRecordFieldRepresentationNormalized {
|
|
|
27
27
|
*/
|
|
28
28
|
export interface EinsteinPromptRecordFieldRepresentation {
|
|
29
29
|
displayValue: string;
|
|
30
|
-
value: boolean | number | string | null;
|
|
30
|
+
value: boolean | number | string | Array<string> | null;
|
|
31
31
|
}
|
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 = "9edc7f85ed953923f7b48f294886471a";
|
|
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;
|
|
@@ -15,6 +15,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
15
|
* (none)
|
|
16
16
|
*/
|
|
17
17
|
export interface EinsteinPromptTemplateAttachmentRepresentationNormalized {
|
|
18
|
+
/** Actual detected MIME type when file is excluded due to MIME/extension mismatch */
|
|
19
|
+
actualFileMimeType?: string;
|
|
18
20
|
exclusionInfo?: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation_EinsteinPromptTemplateAttachmentExclusionInfoRepresentation;
|
|
19
21
|
/** extension of the file attachment */
|
|
20
22
|
fileExtension: string;
|
|
@@ -34,6 +36,7 @@ export interface EinsteinPromptTemplateAttachmentRepresentationNormalized {
|
|
|
34
36
|
* (none)
|
|
35
37
|
*/
|
|
36
38
|
export interface EinsteinPromptTemplateAttachmentRepresentation {
|
|
39
|
+
actualFileMimeType?: string;
|
|
37
40
|
exclusionInfo?: EinsteinPromptTemplateAttachmentExclusionInfoRepresentation_EinsteinPromptTemplateAttachmentExclusionInfoRepresentation;
|
|
38
41
|
fileExtension: string;
|
|
39
42
|
id: string;
|
|
@@ -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 = "11234f9f5283cd50abfc80a596f954ec";
|
|
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;
|
|
@@ -18,6 +18,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
18
18
|
export interface EinsteinPromptTemplateGenerationsInputRepresentationNormalized {
|
|
19
19
|
/** Additional configuration to fine tune model parameters */
|
|
20
20
|
additionalConfig?: EinsteinLlmAdditionalConfigInputRepresentation_EinsteinLlmAdditionalConfigInputRepresentation;
|
|
21
|
+
/** Whether to return metrics */
|
|
22
|
+
includeMetrics?: boolean;
|
|
21
23
|
/** Dictionary of input parameters to generate prompt from prompt template. */
|
|
22
24
|
inputParams: WrappedValueMap_WrappedValueMap;
|
|
23
25
|
/** Whether to generate prompt template preview by resolving merge fields */
|
|
@@ -37,6 +39,7 @@ export interface EinsteinPromptTemplateGenerationsInputRepresentationNormalized
|
|
|
37
39
|
*/
|
|
38
40
|
export interface EinsteinPromptTemplateGenerationsInputRepresentation {
|
|
39
41
|
additionalConfig?: EinsteinLlmAdditionalConfigInputRepresentation_EinsteinLlmAdditionalConfigInputRepresentation;
|
|
42
|
+
includeMetrics?: boolean;
|
|
40
43
|
inputParams: WrappedValueMap_WrappedValueMap;
|
|
41
44
|
isPreview: boolean;
|
|
42
45
|
outputLanguage?: string;
|
|
@@ -3,11 +3,13 @@ import { EinsteinPromptTemplateAttachmentRepresentation as EinsteinPromptTemplat
|
|
|
3
3
|
import { EinsteinPromptTemplateGenerationsErrorRepresentation as EinsteinPromptTemplateGenerationsErrorRepresentation_EinsteinPromptTemplateGenerationsErrorRepresentation } from './EinsteinPromptTemplateGenerationsErrorRepresentation';
|
|
4
4
|
import { EinsteinLlmGenerationItemRepresentation as EinsteinLlmGenerationItemRepresentation_EinsteinLlmGenerationItemRepresentation } from './EinsteinLlmGenerationItemRepresentation';
|
|
5
5
|
import { WrappedMap as WrappedMap_WrappedMap } from './WrappedMap';
|
|
6
|
+
import { EinsteinPromptTemplatePerformanceRepresentation as EinsteinPromptTemplatePerformanceRepresentation_EinsteinPromptTemplatePerformanceRepresentation } from './EinsteinPromptTemplatePerformanceRepresentation';
|
|
6
7
|
import { EinsteinPromptTemplateMaskContentRepresentation as EinsteinPromptTemplateMaskContentRepresentation_EinsteinPromptTemplateMaskContentRepresentation } from './EinsteinPromptTemplateMaskContentRepresentation';
|
|
7
8
|
import { EinsteinPromptTemplateMaskDataRepresentation as EinsteinPromptTemplateMaskDataRepresentation_EinsteinPromptTemplateMaskDataRepresentation } from './EinsteinPromptTemplateMaskDataRepresentation';
|
|
9
|
+
import { EinsteinPromptTemplateTokenUsageRepresentation as EinsteinPromptTemplateTokenUsageRepresentation_EinsteinPromptTemplateTokenUsageRepresentation } from './EinsteinPromptTemplateTokenUsageRepresentation';
|
|
8
10
|
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
11
|
export declare const TTL = 100;
|
|
10
|
-
export declare const VERSION = "
|
|
12
|
+
export declare const VERSION = "c298962a9a914e248606ab1ac01d1d08";
|
|
11
13
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
12
14
|
export declare const RepresentationType: string;
|
|
13
15
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -44,6 +46,7 @@ export interface EinsteinPromptTemplateGenerationsRepresentationNormalized {
|
|
|
44
46
|
};
|
|
45
47
|
/** Any provider specific attributes will be included as part of this object */
|
|
46
48
|
parameters: WrappedMap_WrappedMap | null;
|
|
49
|
+
performance?: EinsteinPromptTemplatePerformanceRepresentation_EinsteinPromptTemplatePerformanceRepresentation;
|
|
47
50
|
/** Prompt used for the generation */
|
|
48
51
|
prompt: string | null;
|
|
49
52
|
/** generated prompt template promptTemplateDevName */
|
|
@@ -58,6 +61,7 @@ export interface EinsteinPromptTemplateGenerationsRepresentationNormalized {
|
|
|
58
61
|
responseMessages?: Array<EinsteinPromptTemplateMaskContentRepresentation_EinsteinPromptTemplateMaskContentRepresentation>;
|
|
59
62
|
/** generated prompt template slotsMaskingInformation */
|
|
60
63
|
slotsMaskingInformation?: Array<EinsteinPromptTemplateMaskDataRepresentation_EinsteinPromptTemplateMaskDataRepresentation>;
|
|
64
|
+
tokenUsage?: EinsteinPromptTemplateTokenUsageRepresentation_EinsteinPromptTemplateTokenUsageRepresentation;
|
|
61
65
|
}
|
|
62
66
|
/**
|
|
63
67
|
* Output of a einstein llm generations response for given prompt template
|
|
@@ -74,6 +78,7 @@ export interface EinsteinPromptTemplateGenerationsRepresentation {
|
|
|
74
78
|
[key: string]: unknown;
|
|
75
79
|
};
|
|
76
80
|
parameters: WrappedMap_WrappedMap | null;
|
|
81
|
+
performance?: EinsteinPromptTemplatePerformanceRepresentation_EinsteinPromptTemplatePerformanceRepresentation;
|
|
77
82
|
prompt: string | null;
|
|
78
83
|
promptTemplateDevName: string;
|
|
79
84
|
rawPrompt: string | null;
|
|
@@ -81,4 +86,5 @@ export interface EinsteinPromptTemplateGenerationsRepresentation {
|
|
|
81
86
|
requestMessages?: Array<EinsteinPromptTemplateMaskContentRepresentation_EinsteinPromptTemplateMaskContentRepresentation>;
|
|
82
87
|
responseMessages?: Array<EinsteinPromptTemplateMaskContentRepresentation_EinsteinPromptTemplateMaskContentRepresentation>;
|
|
83
88
|
slotsMaskingInformation?: Array<EinsteinPromptTemplateMaskDataRepresentation_EinsteinPromptTemplateMaskDataRepresentation>;
|
|
89
|
+
tokenUsage?: EinsteinPromptTemplateTokenUsageRepresentation_EinsteinPromptTemplateTokenUsageRepresentation;
|
|
84
90
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EinsteinPromptTemplateLatencyRepresentation as EinsteinPromptTemplateLatencyRepresentation_EinsteinPromptTemplateLatencyRepresentation } from './EinsteinPromptTemplateLatencyRepresentation';
|
|
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 = "9ef738d379a8db0dc8193d438d7995ad";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: EinsteinPromptTemplateLatencyBreakdownItemRepresentation, existing: EinsteinPromptTemplateLatencyBreakdownItemRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateLatencyBreakdownItemRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: EinsteinPromptTemplateLatencyBreakdownItemRepresentationNormalized, incoming: EinsteinPromptTemplateLatencyBreakdownItemRepresentationNormalized): 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: EinsteinPromptTemplateLatencyBreakdownItemRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Latency breakdown item with reference name and latency metrics
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface EinsteinPromptTemplateLatencyBreakdownItemRepresentationNormalized {
|
|
18
|
+
latency: EinsteinPromptTemplateLatencyRepresentation_EinsteinPromptTemplateLatencyRepresentation;
|
|
19
|
+
/** Reference name for the breakdown item */
|
|
20
|
+
referenceName: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Latency breakdown item with reference name and latency metrics
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface EinsteinPromptTemplateLatencyBreakdownItemRepresentation {
|
|
29
|
+
latency: EinsteinPromptTemplateLatencyRepresentation_EinsteinPromptTemplateLatencyRepresentation;
|
|
30
|
+
referenceName: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EinsteinPromptTemplateLatencyStepRepresentation as EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation } from './EinsteinPromptTemplateLatencyStepRepresentation';
|
|
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 = "d6838fb296069ed6df17b2215be2da09";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
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;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: EinsteinPromptTemplateLatencyExecutionRepresentationNormalized, incoming: EinsteinPromptTemplateLatencyExecutionRepresentationNormalized): 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: EinsteinPromptTemplateLatencyExecutionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Latency execution breakdown with metrics for all execution steps
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface EinsteinPromptTemplateLatencyExecutionRepresentationNormalized {
|
|
18
|
+
generation?: EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation;
|
|
19
|
+
hydration?: EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation;
|
|
20
|
+
loadTemplate: EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation;
|
|
21
|
+
mask?: EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation;
|
|
22
|
+
resolveData?: EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation;
|
|
23
|
+
summarize?: EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Latency execution breakdown with metrics for all execution steps
|
|
27
|
+
*
|
|
28
|
+
* Keys:
|
|
29
|
+
* (none)
|
|
30
|
+
*/
|
|
31
|
+
export interface EinsteinPromptTemplateLatencyExecutionRepresentation {
|
|
32
|
+
generation?: EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation;
|
|
33
|
+
hydration?: EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation;
|
|
34
|
+
loadTemplate: EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation;
|
|
35
|
+
mask?: EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation;
|
|
36
|
+
resolveData?: EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation;
|
|
37
|
+
summarize?: EinsteinPromptTemplateLatencyStepRepresentation_EinsteinPromptTemplateLatencyStepRepresentation;
|
|
38
|
+
}
|
package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateLatencyRepresentation.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 = "3ce695c87c874dcb5ac019766a3b64f0";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: EinsteinPromptTemplateLatencyRepresentation, existing: EinsteinPromptTemplateLatencyRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateLatencyRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: EinsteinPromptTemplateLatencyRepresentationNormalized, incoming: EinsteinPromptTemplateLatencyRepresentationNormalized): 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: EinsteinPromptTemplateLatencyRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Latency information with duration and start time
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface EinsteinPromptTemplateLatencyRepresentationNormalized {
|
|
17
|
+
/** Duration of the operation in milliseconds */
|
|
18
|
+
duration: number;
|
|
19
|
+
/** Start time of the operation in milliseconds */
|
|
20
|
+
startTime: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Latency information with duration and start time
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface EinsteinPromptTemplateLatencyRepresentation {
|
|
29
|
+
duration: number;
|
|
30
|
+
startTime: number;
|
|
31
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { EinsteinPromptTemplateLatencyBreakdownItemRepresentation as EinsteinPromptTemplateLatencyBreakdownItemRepresentation_EinsteinPromptTemplateLatencyBreakdownItemRepresentation } from './EinsteinPromptTemplateLatencyBreakdownItemRepresentation';
|
|
2
|
+
import { EinsteinPromptTemplateLatencyRepresentation as EinsteinPromptTemplateLatencyRepresentation_EinsteinPromptTemplateLatencyRepresentation } from './EinsteinPromptTemplateLatencyRepresentation';
|
|
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 = "4b1840167fa1759c2413bafa7708e137";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export declare function normalize(input: EinsteinPromptTemplateLatencyStepRepresentation, existing: EinsteinPromptTemplateLatencyStepRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateLatencyStepRepresentationNormalized;
|
|
8
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
|
+
export declare function equals(existing: EinsteinPromptTemplateLatencyStepRepresentationNormalized, incoming: EinsteinPromptTemplateLatencyStepRepresentationNormalized): 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: EinsteinPromptTemplateLatencyStepRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
+
/**
|
|
13
|
+
* Latency step information with latency metrics and breakdown
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface EinsteinPromptTemplateLatencyStepRepresentationNormalized {
|
|
19
|
+
/** Breakdown of latency by reference name */
|
|
20
|
+
breakdown?: Array<EinsteinPromptTemplateLatencyBreakdownItemRepresentation_EinsteinPromptTemplateLatencyBreakdownItemRepresentation>;
|
|
21
|
+
/** Latency information for this step */
|
|
22
|
+
latency: EinsteinPromptTemplateLatencyRepresentation_EinsteinPromptTemplateLatencyRepresentation;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Latency step information with latency metrics and breakdown
|
|
26
|
+
*
|
|
27
|
+
* Keys:
|
|
28
|
+
* (none)
|
|
29
|
+
*/
|
|
30
|
+
export interface EinsteinPromptTemplateLatencyStepRepresentation {
|
|
31
|
+
breakdown?: Array<EinsteinPromptTemplateLatencyBreakdownItemRepresentation_EinsteinPromptTemplateLatencyBreakdownItemRepresentation>;
|
|
32
|
+
latency: EinsteinPromptTemplateLatencyRepresentation_EinsteinPromptTemplateLatencyRepresentation;
|
|
33
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EinsteinPromptTemplateLatencyExecutionRepresentation as EinsteinPromptTemplateLatencyExecutionRepresentation_EinsteinPromptTemplateLatencyExecutionRepresentation } from './EinsteinPromptTemplateLatencyExecutionRepresentation';
|
|
2
|
+
import { EinsteinPromptTemplateLatencyRepresentation as EinsteinPromptTemplateLatencyRepresentation_EinsteinPromptTemplateLatencyRepresentation } from './EinsteinPromptTemplateLatencyRepresentation';
|
|
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 = "bfbfa37e3d6bd35c36ba73c3f9b973b6";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export declare function normalize(input: EinsteinPromptTemplatePerformanceRepresentation, existing: EinsteinPromptTemplatePerformanceRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplatePerformanceRepresentationNormalized;
|
|
8
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
|
+
export declare function equals(existing: EinsteinPromptTemplatePerformanceRepresentationNormalized, incoming: EinsteinPromptTemplatePerformanceRepresentationNormalized): 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: EinsteinPromptTemplatePerformanceRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
+
/**
|
|
13
|
+
* Performance metrics including overall latency and detailed execution breakdown
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface EinsteinPromptTemplatePerformanceRepresentationNormalized {
|
|
19
|
+
execution: EinsteinPromptTemplateLatencyExecutionRepresentation_EinsteinPromptTemplateLatencyExecutionRepresentation;
|
|
20
|
+
latency: EinsteinPromptTemplateLatencyRepresentation_EinsteinPromptTemplateLatencyRepresentation;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Performance metrics including overall latency and detailed execution breakdown
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface EinsteinPromptTemplatePerformanceRepresentation {
|
|
29
|
+
execution: EinsteinPromptTemplateLatencyExecutionRepresentation_EinsteinPromptTemplateLatencyExecutionRepresentation;
|
|
30
|
+
latency: EinsteinPromptTemplateLatencyRepresentation_EinsteinPromptTemplateLatencyRepresentation;
|
|
31
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EinsteinPromptTemplateTokenBreakdownRepresentation as EinsteinPromptTemplateTokenBreakdownRepresentation_EinsteinPromptTemplateTokenBreakdownRepresentation } from './EinsteinPromptTemplateTokenBreakdownRepresentation';
|
|
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 = "7212a778ca53a828691ec38760108a72";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: EinsteinPromptTemplatePromptTokenUsageRepresentation, existing: EinsteinPromptTemplatePromptTokenUsageRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplatePromptTokenUsageRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: EinsteinPromptTemplatePromptTokenUsageRepresentationNormalized, incoming: EinsteinPromptTemplatePromptTokenUsageRepresentationNormalized): 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: EinsteinPromptTemplatePromptTokenUsageRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Output representation for prompt token usage with breakdown
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface EinsteinPromptTemplatePromptTokenUsageRepresentationNormalized {
|
|
18
|
+
/** Breakdown of token usage by source (text expressions, files, etc.) */
|
|
19
|
+
breakdown?: Array<EinsteinPromptTemplateTokenBreakdownRepresentation_EinsteinPromptTemplateTokenBreakdownRepresentation>;
|
|
20
|
+
/** Total number of tokens used in the prompt */
|
|
21
|
+
total: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Output representation for prompt token usage with breakdown
|
|
25
|
+
*
|
|
26
|
+
* Keys:
|
|
27
|
+
* (none)
|
|
28
|
+
*/
|
|
29
|
+
export interface EinsteinPromptTemplatePromptTokenUsageRepresentation {
|
|
30
|
+
breakdown?: Array<EinsteinPromptTemplateTokenBreakdownRepresentation_EinsteinPromptTemplateTokenBreakdownRepresentation>;
|
|
31
|
+
total: number;
|
|
32
|
+
}
|
package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateReferencesRepresentation.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { WrappedMap as WrappedMap_WrappedMap } from './WrappedMap';
|
|
2
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, 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 = 100;
|
|
4
|
+
export declare const VERSION = "fb53643f64759f6cff6a161f34c670fb";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export declare function normalize(input: EinsteinPromptTemplateReferencesRepresentation, existing: EinsteinPromptTemplateReferencesRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateReferencesRepresentationNormalized;
|
|
8
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
9
|
+
export declare function equals(existing: EinsteinPromptTemplateReferencesRepresentationNormalized, incoming: EinsteinPromptTemplateReferencesRepresentationNormalized): 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: EinsteinPromptTemplateReferencesRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
+
/**
|
|
13
|
+
* Representation for prompt template references response
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface EinsteinPromptTemplateReferencesRepresentationNormalized {
|
|
19
|
+
additionalData?: WrappedMap_WrappedMap;
|
|
20
|
+
/** Error Messages */
|
|
21
|
+
errorMessages: Array<string>;
|
|
22
|
+
/** has warning messages */
|
|
23
|
+
hasWarning: boolean;
|
|
24
|
+
/** IsSuccessful */
|
|
25
|
+
isSuccessful: boolean;
|
|
26
|
+
/** Status Code of connect api */
|
|
27
|
+
statusCode?: string;
|
|
28
|
+
/** Template Id */
|
|
29
|
+
templateId: string;
|
|
30
|
+
/** Template Type */
|
|
31
|
+
templateType?: string;
|
|
32
|
+
/** Warning Messages */
|
|
33
|
+
warningMessages: Array<string>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Representation for prompt template references response
|
|
37
|
+
*
|
|
38
|
+
* Keys:
|
|
39
|
+
* (none)
|
|
40
|
+
*/
|
|
41
|
+
export interface EinsteinPromptTemplateReferencesRepresentation {
|
|
42
|
+
additionalData?: WrappedMap_WrappedMap;
|
|
43
|
+
errorMessages: Array<string>;
|
|
44
|
+
hasWarning: boolean;
|
|
45
|
+
isSuccessful: boolean;
|
|
46
|
+
statusCode?: string;
|
|
47
|
+
templateId: string;
|
|
48
|
+
templateType?: string;
|
|
49
|
+
warningMessages: Array<string>;
|
|
50
|
+
}
|
package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateStatusRepresentation.d.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { WrappedMap as WrappedMap_WrappedMap } from './WrappedMap';
|
|
2
|
+
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';
|
|
3
|
+
export declare const TTL = 100;
|
|
4
|
+
export declare const VERSION = "ecde90304d12947c5205ddc7c99d747b";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
8
|
+
templateId: string;
|
|
9
|
+
}
|
|
10
|
+
export type EinsteinPromptTemplateStatusRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export type PartialEinsteinPromptTemplateStatusRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): EinsteinPromptTemplateStatusRepresentationNormalizedKeyMetadata;
|
|
14
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: EinsteinPromptTemplateStatusRepresentation): string;
|
|
15
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: EinsteinPromptTemplateStatusRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
|
+
export declare function normalize(input: EinsteinPromptTemplateStatusRepresentation, existing: EinsteinPromptTemplateStatusRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateStatusRepresentationNormalized;
|
|
17
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
18
|
+
export declare function equals(existing: EinsteinPromptTemplateStatusRepresentationNormalized, incoming: EinsteinPromptTemplateStatusRepresentationNormalized): boolean;
|
|
19
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
20
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: EinsteinPromptTemplateStatusRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
21
|
+
/**
|
|
22
|
+
* Comprehensive representation for prompt template operations including creation, updates, and activation/deactivation
|
|
23
|
+
*
|
|
24
|
+
* Keys:
|
|
25
|
+
* templateId (string): templateId
|
|
26
|
+
*/
|
|
27
|
+
export interface EinsteinPromptTemplateStatusRepresentationNormalized {
|
|
28
|
+
additionalData?: WrappedMap_WrappedMap;
|
|
29
|
+
/** Error Messages */
|
|
30
|
+
errorMessages: Array<string>;
|
|
31
|
+
/** has warning messages */
|
|
32
|
+
hasWarning: boolean;
|
|
33
|
+
/** IsSuccessful */
|
|
34
|
+
isSuccessful: boolean;
|
|
35
|
+
/** Status Code of connect api */
|
|
36
|
+
statusCode?: string;
|
|
37
|
+
/** Template Id */
|
|
38
|
+
templateId: string;
|
|
39
|
+
/** Template Type */
|
|
40
|
+
templateType?: string;
|
|
41
|
+
/** Warning Messages */
|
|
42
|
+
warningMessages: Array<string>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Comprehensive representation for prompt template operations including creation, updates, and activation/deactivation
|
|
46
|
+
*
|
|
47
|
+
* Keys:
|
|
48
|
+
* templateId (string): templateId
|
|
49
|
+
*/
|
|
50
|
+
export interface EinsteinPromptTemplateStatusRepresentation {
|
|
51
|
+
additionalData?: WrappedMap_WrappedMap;
|
|
52
|
+
errorMessages: Array<string>;
|
|
53
|
+
hasWarning: boolean;
|
|
54
|
+
isSuccessful: boolean;
|
|
55
|
+
statusCode?: string;
|
|
56
|
+
templateId: string;
|
|
57
|
+
templateType?: string;
|
|
58
|
+
warningMessages: Array<string>;
|
|
59
|
+
}
|