@salesforce/lds-adapters-service-einsteinllm 1.414.1 → 1.416.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.
Files changed (20) hide show
  1. package/dist/es/es2018/service-einsteinllm.js +1835 -856
  2. package/dist/es/es2018/types/src/generated/adapters/getEinsteinPromptTemplateReferences.d.ts +27 -0
  3. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
  4. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
  5. package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplatesReferencesByPromptTemplateDevName.d.ts +15 -0
  6. package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsInputRepresentation.d.ts +4 -1
  7. package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsRepresentation.d.ts +7 -1
  8. package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateLatencyBreakdownItemRepresentation.d.ts +31 -0
  9. package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateLatencyExecutionRepresentation.d.ts +38 -0
  10. package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateLatencyRepresentation.d.ts +31 -0
  11. package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateLatencyStepRepresentation.d.ts +33 -0
  12. package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplatePerformanceRepresentation.d.ts +31 -0
  13. package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplatePromptTokenUsageRepresentation.d.ts +32 -0
  14. package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateReferencesRepresentation.d.ts +50 -0
  15. package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateTokenBreakdownRepresentation.d.ts +37 -0
  16. package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateTokenUsageRepresentation.d.ts +35 -0
  17. package/package.json +4 -4
  18. package/sfdc/index.js +1680 -689
  19. package/src/raml/api.raml +176 -0
  20. package/src/raml/luvio.raml +8 -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>;
@@ -9,6 +9,7 @@ export { getDataProviderInstanceConfigAdapterFactory } from '../adapters/getData
9
9
  export { getDataProviderTypeConfigsAdapterFactory } from '../adapters/getDataProviderTypeConfigs';
10
10
  export { getPromptTemplateAdapterFactory } from '../adapters/getPromptTemplate';
11
11
  export { putEinsteinPromptTemplateStatusAdapterFactory } from '../adapters/putEinsteinPromptTemplateStatus';
12
+ export { getEinsteinPromptTemplateReferencesAdapterFactory } from '../adapters/getEinsteinPromptTemplateReferences';
12
13
  export { getPromptTemplateVersionsAdapterFactory } from '../adapters/getPromptTemplateVersions';
13
14
  export { createPromptTemplateVersionAdapterFactory } from '../adapters/createPromptTemplateVersion';
14
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;
@@ -21,6 +22,7 @@ declare let createEmbeddings_imperative: any;
21
22
  declare let getDataProviderInstanceConfig_imperative: any;
22
23
  declare let getDataProviderTypeConfigs_imperative: any;
23
24
  declare let getDataProviders_imperative: any;
25
+ declare let getEinsteinPromptTemplateReferences_imperative: any;
24
26
  declare let getInputMappedDataProviders_imperative: any;
25
27
  declare let getOutputLanguages_imperative: any;
26
28
  declare let getPromptTemplate_imperative: any;
@@ -28,4 +30,4 @@ declare let getPromptTemplateVersion_imperative: any;
28
30
  declare let getPromptTemplateVersions_imperative: any;
29
31
  declare let getPromptTemplates_imperative: any;
30
32
  declare let getTemplateType_imperative: any;
31
- export { createEmbeddings, createFeedback, createGenerations, createGenerationsForPromptTemplate, createPromptTemplate, createPromptTemplateVersion, getDataProviderInstanceConfig, getDataProviderTypeConfigs, getDataProviders, getInputMappedDataProviders, getOutputLanguages, getPromptTemplate, getPromptTemplateVersion, getPromptTemplateVersions, getPromptTemplates, getTemplateType, putEinsteinPromptTemplateStatus, 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;
@@ -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 = "a2cd7e0282d520ef2004c8eb2a8178b1";
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 = "4f8799314eebcd45e3fca72dcdf7722d";
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
+ }
@@ -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
+ }
@@ -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
+ }
@@ -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 = "76811380b919e1427b00791d86819029";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: EinsteinPromptTemplateTokenBreakdownRepresentation, existing: EinsteinPromptTemplateTokenBreakdownRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateTokenBreakdownRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: EinsteinPromptTemplateTokenBreakdownRepresentationNormalized, incoming: EinsteinPromptTemplateTokenBreakdownRepresentationNormalized): 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: EinsteinPromptTemplateTokenBreakdownRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Output representation for a single token breakdown item by source
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface EinsteinPromptTemplateTokenBreakdownRepresentationNormalized {
17
+ /** Number of times this expression appears in the prompt */
18
+ occurrences: number;
19
+ /** Role associated with source of token. */
20
+ role: string;
21
+ /** Specific part of prompt that contributed to tokens. */
22
+ source: string;
23
+ /** Number of tokens contributed by this source */
24
+ tokens: number;
25
+ }
26
+ /**
27
+ * Output representation for a single token breakdown item by source
28
+ *
29
+ * Keys:
30
+ * (none)
31
+ */
32
+ export interface EinsteinPromptTemplateTokenBreakdownRepresentation {
33
+ occurrences: number;
34
+ role: string;
35
+ source: string;
36
+ tokens: number;
37
+ }
@@ -0,0 +1,35 @@
1
+ import { EinsteinPromptTemplatePromptTokenUsageRepresentation as EinsteinPromptTemplatePromptTokenUsageRepresentation_EinsteinPromptTemplatePromptTokenUsageRepresentation } from './EinsteinPromptTemplatePromptTokenUsageRepresentation';
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 = "20ed3f8bf15ce2c8910245591e27fae5";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: EinsteinPromptTemplateTokenUsageRepresentation, existing: EinsteinPromptTemplateTokenUsageRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateTokenUsageRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: EinsteinPromptTemplateTokenUsageRepresentationNormalized, incoming: EinsteinPromptTemplateTokenUsageRepresentationNormalized): 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: EinsteinPromptTemplateTokenUsageRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Output representation for token usage and its breakdown
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface EinsteinPromptTemplateTokenUsageRepresentationNormalized {
18
+ /** Number of tokens used for completion */
19
+ completion: number;
20
+ /** Prompt token usage details including breakdown by source */
21
+ prompt: EinsteinPromptTemplatePromptTokenUsageRepresentation_EinsteinPromptTemplatePromptTokenUsageRepresentation;
22
+ /** Total number of tokens used in the request */
23
+ total: number;
24
+ }
25
+ /**
26
+ * Output representation for token usage and its breakdown
27
+ *
28
+ * Keys:
29
+ * (none)
30
+ */
31
+ export interface EinsteinPromptTemplateTokenUsageRepresentation {
32
+ completion: number;
33
+ prompt: EinsteinPromptTemplatePromptTokenUsageRepresentation_EinsteinPromptTemplatePromptTokenUsageRepresentation;
34
+ total: number;
35
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einsteinllm",
3
- "version": "1.414.1",
3
+ "version": "1.416.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.414.1"
47
+ "@salesforce/lds-bindings": "^1.416.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "^1.414.1",
51
- "@salesforce/lds-karma": "^1.414.1"
50
+ "@salesforce/lds-compiler-plugins": "^1.416.0",
51
+ "@salesforce/lds-karma": "^1.416.0"
52
52
  },
53
53
  "nx": {
54
54
  "targets": {