@salesforce/lds-adapters-service-einsteinllm 0.1.0-dev1
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/LICENSE.txt +82 -0
- package/dist/es/es2018/service-einsteinllm.js +5967 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/createEmbeddings.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/createFeedback.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/adapters/createGenerations.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/adapters/createGenerationsForPromptTemplate.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/adapters/createPromptTemplate.d.ts +23 -0
- package/dist/es/es2018/types/src/generated/adapters/createPromptTemplateVersion.d.ts +24 -0
- package/dist/es/es2018/types/src/generated/adapters/getDataProviderInstanceConfig.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/adapters/getDataProviderTypeConfigs.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/getDataProviders.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getInputMappedDataProviders.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/adapters/getOutputLanguages.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getPromptTemplate.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getPromptTemplates.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/adapters/putEinsteinPromptTemplateVersionStatus.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/adapters/updatePromptTemplateVersion.d.ts +25 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +24 -0
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplateOutputLanguagesByPromptTemplateDevName.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplates.d.ts +22 -0
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplatesByPromptTemplateDevName.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplatesDataProviderTypesByTemplateType.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplatesDataProvidersByTemplateType.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/postEinsteinLlmEmbeddings.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/postEinsteinLlmFeedback.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/resources/postEinsteinLlmPromptGenerations.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/resources/postEinsteinPromptTemplates.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/resources/postEinsteinPromptTemplatesDataProviderDescribe.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/postEinsteinPromptTemplatesDataProvidersMapped.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postEinsteinPromptTemplatesGenerationsByPromptTemplateDevName.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/postEinsteinPromptTemplatesVersionsByPromptTemplateDevName.d.ts +23 -0
- package/dist/es/es2018/types/src/generated/resources/putEinsteinPromptTemplatesVersionsByPromptTemplateDevNameAndVersionId.d.ts +24 -0
- package/dist/es/es2018/types/src/generated/resources/putEinsteinPromptTemplatesVersionsStatusByPromptTemplateDevNameAndVersionId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmAdditionalConfigInputRepresentation.d.ts +59 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmEmbeddingItemRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmEmbeddingsInputRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmEmbeddingsRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmEmbeddingsWrapperRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmFeedbackInputRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmFeedbackRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmFeedbackWrapperRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmGenerationCitationRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmGenerationGenAiCitedReferenceRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmGenerationItemRepresentation.d.ts +45 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmGenerationsContentQualityRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmGenerationsInputRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmGenerationsInputWrapperRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmGenerationsRepresentation.d.ts +49 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmGenerationsSafetyScoreRepresentation.d.ts +46 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptRecordCollectionOutputRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptRecordFieldRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptRecordInputRepresentation.d.ts +48 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptRecordRepresentation.d.ts +47 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateAttachmentExclusionInfoRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateAttachmentRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsErrorRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsInputRepresentation.d.ts +45 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsInputWrapperRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsRepresentation.d.ts +81 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateMaskContentRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateMaskDataRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateMaskSettingsRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateRepresentation.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateSupportedLanguageErrorRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateSupportedLanguageRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateVersionOutputLanguagesRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderDiscoveryInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderInputParamRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderInstanceConfigCollectionRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderInstanceConfigInputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderInstanceConfigRepresentation.d.ts +77 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderOutputParamRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderTypeConfigCollectionRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderTypeConfigRepresentation.d.ts +46 -0
- package/dist/es/es2018/types/src/generated/types/WrappedListString.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/WrappedMap.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/WrappedValue.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/WrappedValueMap.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +76 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +6102 -0
- package/src/raml/api.raml +1228 -0
- package/src/raml/luvio.raml +122 -0
|
@@ -0,0 +1,22 @@
|
|
|
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 { EinsteinPromptRecordCollectionOutputRepresentation as types_EinsteinPromptRecordCollectionOutputRepresentation_EinsteinPromptRecordCollectionOutputRepresentation } from '../types/EinsteinPromptRecordCollectionOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
queryParams: {
|
|
5
|
+
isActive?: boolean;
|
|
6
|
+
fields?: Array<string>;
|
|
7
|
+
relatedEntity?: string;
|
|
8
|
+
offset?: number;
|
|
9
|
+
pageLimit?: number;
|
|
10
|
+
type?: string;
|
|
11
|
+
query?: string;
|
|
12
|
+
sortBy?: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
16
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
17
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
18
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EinsteinPromptRecordCollectionOutputRepresentation_EinsteinPromptRecordCollectionOutputRepresentation): void;
|
|
19
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EinsteinPromptRecordCollectionOutputRepresentation_EinsteinPromptRecordCollectionOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EinsteinPromptRecordCollectionOutputRepresentation_EinsteinPromptRecordCollectionOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EinsteinPromptRecordCollectionOutputRepresentation_EinsteinPromptRecordCollectionOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EinsteinPromptRecordCollectionOutputRepresentation_EinsteinPromptRecordCollectionOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EinsteinPromptRecordCollectionOutputRepresentation_EinsteinPromptRecordCollectionOutputRepresentation, any>;
|
|
20
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EinsteinPromptRecordCollectionOutputRepresentation_EinsteinPromptRecordCollectionOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
21
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
22
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { EinsteinPromptRecordRepresentation as types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation } from '../types/EinsteinPromptRecordRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
promptTemplateDevName: string;
|
|
6
|
+
};
|
|
7
|
+
queryParams: {
|
|
8
|
+
versionId?: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation): void;
|
|
15
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation, any>;
|
|
16
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EinsteinPromptRecordRepresentation_EinsteinPromptRecordRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
17
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
18
|
+
export default createResourceRequest;
|
|
@@ -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 { PromptTemplateDataProviderTypeConfigCollectionRepresentation as types_PromptTemplateDataProviderTypeConfigCollectionRepresentation_PromptTemplateDataProviderTypeConfigCollectionRepresentation } from '../types/PromptTemplateDataProviderTypeConfigCollectionRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
templateType: 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_PromptTemplateDataProviderTypeConfigCollectionRepresentation_PromptTemplateDataProviderTypeConfigCollectionRepresentation): void;
|
|
12
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_PromptTemplateDataProviderTypeConfigCollectionRepresentation_PromptTemplateDataProviderTypeConfigCollectionRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_PromptTemplateDataProviderTypeConfigCollectionRepresentation_PromptTemplateDataProviderTypeConfigCollectionRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_PromptTemplateDataProviderTypeConfigCollectionRepresentation_PromptTemplateDataProviderTypeConfigCollectionRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_PromptTemplateDataProviderTypeConfigCollectionRepresentation_PromptTemplateDataProviderTypeConfigCollectionRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_PromptTemplateDataProviderTypeConfigCollectionRepresentation_PromptTemplateDataProviderTypeConfigCollectionRepresentation, any>;
|
|
13
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_PromptTemplateDataProviderTypeConfigCollectionRepresentation_PromptTemplateDataProviderTypeConfigCollectionRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { PromptTemplateDataProviderInstanceConfigCollectionRepresentation as types_PromptTemplateDataProviderInstanceConfigCollectionRepresentation_PromptTemplateDataProviderInstanceConfigCollectionRepresentation } from '../types/PromptTemplateDataProviderInstanceConfigCollectionRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
templateType: string;
|
|
6
|
+
};
|
|
7
|
+
queryParams: {
|
|
8
|
+
groupNames?: Array<string>;
|
|
9
|
+
targets?: Array<string>;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
13
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
14
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_PromptTemplateDataProviderInstanceConfigCollectionRepresentation_PromptTemplateDataProviderInstanceConfigCollectionRepresentation): void;
|
|
16
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_PromptTemplateDataProviderInstanceConfigCollectionRepresentation_PromptTemplateDataProviderInstanceConfigCollectionRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_PromptTemplateDataProviderInstanceConfigCollectionRepresentation_PromptTemplateDataProviderInstanceConfigCollectionRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_PromptTemplateDataProviderInstanceConfigCollectionRepresentation_PromptTemplateDataProviderInstanceConfigCollectionRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_PromptTemplateDataProviderInstanceConfigCollectionRepresentation_PromptTemplateDataProviderInstanceConfigCollectionRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_PromptTemplateDataProviderInstanceConfigCollectionRepresentation_PromptTemplateDataProviderInstanceConfigCollectionRepresentation, any>;
|
|
17
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_PromptTemplateDataProviderInstanceConfigCollectionRepresentation_PromptTemplateDataProviderInstanceConfigCollectionRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
18
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
19
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EinsteinLlmEmbeddingsInputRepresentation as types_EinsteinLlmEmbeddingsInputRepresentation_EinsteinLlmEmbeddingsInputRepresentation } from '../types/EinsteinLlmEmbeddingsInputRepresentation';
|
|
2
|
+
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';
|
|
3
|
+
import { EinsteinLlmEmbeddingsRepresentation as types_EinsteinLlmEmbeddingsRepresentation_EinsteinLlmEmbeddingsRepresentation } from '../types/EinsteinLlmEmbeddingsRepresentation';
|
|
4
|
+
export interface ResourceRequestConfig {
|
|
5
|
+
body: {
|
|
6
|
+
embeddingsInput: types_EinsteinLlmEmbeddingsInputRepresentation_EinsteinLlmEmbeddingsInputRepresentation;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
10
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
11
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EinsteinLlmEmbeddingsRepresentation_EinsteinLlmEmbeddingsRepresentation): void;
|
|
13
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EinsteinLlmEmbeddingsRepresentation_EinsteinLlmEmbeddingsRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EinsteinLlmEmbeddingsRepresentation_EinsteinLlmEmbeddingsRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EinsteinLlmEmbeddingsRepresentation_EinsteinLlmEmbeddingsRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EinsteinLlmEmbeddingsRepresentation_EinsteinLlmEmbeddingsRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EinsteinLlmEmbeddingsRepresentation_EinsteinLlmEmbeddingsRepresentation, any>;
|
|
14
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EinsteinLlmEmbeddingsRepresentation_EinsteinLlmEmbeddingsRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
15
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
16
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EinsteinLlmFeedbackInputRepresentation as types_EinsteinLlmFeedbackInputRepresentation_EinsteinLlmFeedbackInputRepresentation } from '../types/EinsteinLlmFeedbackInputRepresentation';
|
|
2
|
+
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';
|
|
3
|
+
import { EinsteinLlmFeedbackRepresentation as types_EinsteinLlmFeedbackRepresentation_EinsteinLlmFeedbackRepresentation } from '../types/EinsteinLlmFeedbackRepresentation';
|
|
4
|
+
export interface ResourceRequestConfig {
|
|
5
|
+
body: {
|
|
6
|
+
feedbackInput: types_EinsteinLlmFeedbackInputRepresentation_EinsteinLlmFeedbackInputRepresentation;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
10
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EinsteinLlmFeedbackRepresentation_EinsteinLlmFeedbackRepresentation): void;
|
|
11
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EinsteinLlmFeedbackRepresentation_EinsteinLlmFeedbackRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EinsteinLlmFeedbackRepresentation_EinsteinLlmFeedbackRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EinsteinLlmFeedbackRepresentation_EinsteinLlmFeedbackRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EinsteinLlmFeedbackRepresentation_EinsteinLlmFeedbackRepresentation, any>;
|
|
12
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
13
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EinsteinLlmGenerationsInputRepresentation as types_EinsteinLlmGenerationsInputRepresentation_EinsteinLlmGenerationsInputRepresentation } from '../types/EinsteinLlmGenerationsInputRepresentation';
|
|
2
|
+
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';
|
|
3
|
+
import { EinsteinLlmGenerationsRepresentation as types_EinsteinLlmGenerationsRepresentation_EinsteinLlmGenerationsRepresentation } from '../types/EinsteinLlmGenerationsRepresentation';
|
|
4
|
+
export interface ResourceRequestConfig {
|
|
5
|
+
body: {
|
|
6
|
+
generationsInput: types_EinsteinLlmGenerationsInputRepresentation_EinsteinLlmGenerationsInputRepresentation;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
10
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EinsteinLlmGenerationsRepresentation_EinsteinLlmGenerationsRepresentation): void;
|
|
11
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EinsteinLlmGenerationsRepresentation_EinsteinLlmGenerationsRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EinsteinLlmGenerationsRepresentation_EinsteinLlmGenerationsRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EinsteinLlmGenerationsRepresentation_EinsteinLlmGenerationsRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EinsteinLlmGenerationsRepresentation_EinsteinLlmGenerationsRepresentation, any>;
|
|
12
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
13
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { EinsteinPromptTemplateRepresentation as types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation } from '../types/EinsteinPromptTemplateRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
body: {
|
|
5
|
+
apiName: string;
|
|
6
|
+
childRelationships: {
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
};
|
|
9
|
+
fields: Array<{
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}>;
|
|
12
|
+
id?: string;
|
|
13
|
+
isStandard: boolean;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
17
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation): void;
|
|
18
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation, any>;
|
|
19
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
20
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { PromptTemplateDataProviderInstanceConfigRepresentation as types_PromptTemplateDataProviderInstanceConfigRepresentation_PromptTemplateDataProviderInstanceConfigRepresentation } from '../types/PromptTemplateDataProviderInstanceConfigRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
body: {
|
|
5
|
+
additionalParam?: {
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
};
|
|
8
|
+
definition: string;
|
|
9
|
+
groupName: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
13
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
14
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_PromptTemplateDataProviderInstanceConfigRepresentation_PromptTemplateDataProviderInstanceConfigRepresentation): void;
|
|
16
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_PromptTemplateDataProviderInstanceConfigRepresentation_PromptTemplateDataProviderInstanceConfigRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_PromptTemplateDataProviderInstanceConfigRepresentation_PromptTemplateDataProviderInstanceConfigRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_PromptTemplateDataProviderInstanceConfigRepresentation_PromptTemplateDataProviderInstanceConfigRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_PromptTemplateDataProviderInstanceConfigRepresentation_PromptTemplateDataProviderInstanceConfigRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_PromptTemplateDataProviderInstanceConfigRepresentation_PromptTemplateDataProviderInstanceConfigRepresentation, any>;
|
|
17
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_PromptTemplateDataProviderInstanceConfigRepresentation_PromptTemplateDataProviderInstanceConfigRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
18
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
19
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { PromptTemplateDataProviderInstanceConfigCollectionRepresentation as types_PromptTemplateDataProviderInstanceConfigCollectionRepresentation_PromptTemplateDataProviderInstanceConfigCollectionRepresentation } from '../types/PromptTemplateDataProviderInstanceConfigCollectionRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
body: {
|
|
5
|
+
groupName?: string;
|
|
6
|
+
target?: string;
|
|
7
|
+
templateInputs: Array<unknown>;
|
|
8
|
+
templateTypeName: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_PromptTemplateDataProviderInstanceConfigCollectionRepresentation_PromptTemplateDataProviderInstanceConfigCollectionRepresentation): void;
|
|
15
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_PromptTemplateDataProviderInstanceConfigCollectionRepresentation_PromptTemplateDataProviderInstanceConfigCollectionRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_PromptTemplateDataProviderInstanceConfigCollectionRepresentation_PromptTemplateDataProviderInstanceConfigCollectionRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_PromptTemplateDataProviderInstanceConfigCollectionRepresentation_PromptTemplateDataProviderInstanceConfigCollectionRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_PromptTemplateDataProviderInstanceConfigCollectionRepresentation_PromptTemplateDataProviderInstanceConfigCollectionRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_PromptTemplateDataProviderInstanceConfigCollectionRepresentation_PromptTemplateDataProviderInstanceConfigCollectionRepresentation, any>;
|
|
16
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_PromptTemplateDataProviderInstanceConfigCollectionRepresentation_PromptTemplateDataProviderInstanceConfigCollectionRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
17
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
18
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EinsteinPromptTemplateGenerationsInputRepresentation as types_EinsteinPromptTemplateGenerationsInputRepresentation_EinsteinPromptTemplateGenerationsInputRepresentation } from '../types/EinsteinPromptTemplateGenerationsInputRepresentation';
|
|
2
|
+
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';
|
|
3
|
+
import { EinsteinPromptTemplateGenerationsRepresentation as types_EinsteinPromptTemplateGenerationsRepresentation_EinsteinPromptTemplateGenerationsRepresentation } from '../types/EinsteinPromptTemplateGenerationsRepresentation';
|
|
4
|
+
export interface ResourceRequestConfig {
|
|
5
|
+
urlParams: {
|
|
6
|
+
promptTemplateDevName: string;
|
|
7
|
+
};
|
|
8
|
+
queryParams: {
|
|
9
|
+
versionId?: string;
|
|
10
|
+
};
|
|
11
|
+
body: {
|
|
12
|
+
promptTemplateGenerationsInput: types_EinsteinPromptTemplateGenerationsInputRepresentation_EinsteinPromptTemplateGenerationsInputRepresentation;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
16
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EinsteinPromptTemplateGenerationsRepresentation_EinsteinPromptTemplateGenerationsRepresentation): void;
|
|
17
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EinsteinPromptTemplateGenerationsRepresentation_EinsteinPromptTemplateGenerationsRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EinsteinPromptTemplateGenerationsRepresentation_EinsteinPromptTemplateGenerationsRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EinsteinPromptTemplateGenerationsRepresentation_EinsteinPromptTemplateGenerationsRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EinsteinPromptTemplateGenerationsRepresentation_EinsteinPromptTemplateGenerationsRepresentation, any>;
|
|
18
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
19
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { EinsteinPromptTemplateRepresentation as types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation } from '../types/EinsteinPromptTemplateRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
promptTemplateDevName: string;
|
|
6
|
+
};
|
|
7
|
+
body: {
|
|
8
|
+
apiName: string;
|
|
9
|
+
childRelationships: {
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
};
|
|
12
|
+
fields: Array<{
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}>;
|
|
15
|
+
id?: string;
|
|
16
|
+
isStandard: boolean;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
20
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation): void;
|
|
21
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation, any>;
|
|
22
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
23
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { EinsteinPromptTemplateRepresentation as types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation } from '../types/EinsteinPromptTemplateRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
promptTemplateDevName: string;
|
|
6
|
+
versionId: string;
|
|
7
|
+
};
|
|
8
|
+
body: {
|
|
9
|
+
apiName: string;
|
|
10
|
+
childRelationships: {
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
};
|
|
13
|
+
fields: Array<{
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
}>;
|
|
16
|
+
id?: string;
|
|
17
|
+
isStandard: boolean;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
21
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation): void;
|
|
22
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation, any>;
|
|
23
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
24
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { EinsteinPromptTemplateRepresentation as types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation } from '../types/EinsteinPromptTemplateRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
promptTemplateDevName: string;
|
|
6
|
+
versionId: string;
|
|
7
|
+
};
|
|
8
|
+
queryParams: {
|
|
9
|
+
action?: string;
|
|
10
|
+
ignoreWarnings?: boolean;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
14
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation): void;
|
|
15
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation, any>;
|
|
16
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
17
|
+
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/types/EinsteinLlmAdditionalConfigInputRepresentation.d.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
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 = "9c88636788b841dfdd0ee1eb2f5ff8a3";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: EinsteinLlmAdditionalConfigInputRepresentation, existing: EinsteinLlmAdditionalConfigInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinLlmAdditionalConfigInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: EinsteinLlmAdditionalConfigInputRepresentationNormalized, incoming: EinsteinLlmAdditionalConfigInputRepresentationNormalized): 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: EinsteinLlmAdditionalConfigInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Input representation for additional configurations for Einstein LLM generations
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface EinsteinLlmAdditionalConfigInputRepresentationNormalized {
|
|
17
|
+
/** Dictionary of any other parameters that are required by the specific provider. The values will be passed as is to the provider. This is to allow parameters that are unique to each provider to be specified as part of the request. */
|
|
18
|
+
additionalParameters?: {
|
|
19
|
+
[key: string]: {};
|
|
20
|
+
};
|
|
21
|
+
/** Salesforce Hawking Application Name */
|
|
22
|
+
applicationName?: string;
|
|
23
|
+
/** Whether to mask PII for this request. Defaults is provider specific. */
|
|
24
|
+
enablePiiMasking?: boolean;
|
|
25
|
+
/** Defaults to 0.0, min value of 0.0, max value of 1.0. Can be used to reduce repetitiveness of generated tokens. The higher the value, the stronger a penalty is applied to previously present tokens, proportional to how many times they have already appeared in the prompt or prior generation. */
|
|
26
|
+
frequencyPenalty?: number;
|
|
27
|
+
/** Maximum number of tokens to be generated */
|
|
28
|
+
maxTokens?: number;
|
|
29
|
+
/** The model to be used for the generations request. Defaults to provider specific model. */
|
|
30
|
+
model?: string;
|
|
31
|
+
/** Number of completions to be generated for this prompt */
|
|
32
|
+
numGenerations?: number;
|
|
33
|
+
/** Defaults to 0.0, min value of 0.0, max value of 1.0. Can be used to reduce repetitiveness of generated tokens. Similar to frequency_penalty, except that this penalty is applied equally to all tokens that have already appeared, regardless of their exact frequencies. */
|
|
34
|
+
presencePenalty?: number;
|
|
35
|
+
/** The generated text will be cut at the end of the earliest occurence of a stop sequence. */
|
|
36
|
+
stopSequences?: Array<string>;
|
|
37
|
+
/** Sampling temperature to be used. Higher values means the model will take more risks. Lower temperatures mean less random generations. Min value of 0 and max value of 1.0 */
|
|
38
|
+
temperature?: number;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Input representation for additional configurations for Einstein LLM generations
|
|
42
|
+
*
|
|
43
|
+
* Keys:
|
|
44
|
+
* (none)
|
|
45
|
+
*/
|
|
46
|
+
export interface EinsteinLlmAdditionalConfigInputRepresentation {
|
|
47
|
+
additionalParameters?: {
|
|
48
|
+
[key: string]: {};
|
|
49
|
+
};
|
|
50
|
+
applicationName?: string;
|
|
51
|
+
enablePiiMasking?: boolean;
|
|
52
|
+
frequencyPenalty?: number;
|
|
53
|
+
maxTokens?: number;
|
|
54
|
+
model?: string;
|
|
55
|
+
numGenerations?: number;
|
|
56
|
+
presencePenalty?: number;
|
|
57
|
+
stopSequences?: Array<string>;
|
|
58
|
+
temperature?: number;
|
|
59
|
+
}
|
|
@@ -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 = "5ed5ccc6fa6f15691ec0fc1080e41fe6";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: EinsteinLlmEmbeddingItemRepresentation, existing: EinsteinLlmEmbeddingItemRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinLlmEmbeddingItemRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: EinsteinLlmEmbeddingItemRepresentationNormalized, incoming: EinsteinLlmEmbeddingItemRepresentationNormalized): 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: EinsteinLlmEmbeddingItemRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Output of a einstein llm embedding item response
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface EinsteinLlmEmbeddingItemRepresentationNormalized {
|
|
17
|
+
/** Embedding of the text */
|
|
18
|
+
embedding: Array<number>;
|
|
19
|
+
/** Index of the input text to which this embedding belongs */
|
|
20
|
+
index: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Output of a einstein llm embedding item response
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface EinsteinLlmEmbeddingItemRepresentation {
|
|
29
|
+
embedding: Array<number>;
|
|
30
|
+
index: number;
|
|
31
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 = "c513f4e1e84791ad751c351565f17a5d";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation, existing: EinsteinLlmEmbeddingsAdditionalConfigInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinLlmEmbeddingsAdditionalConfigInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: EinsteinLlmEmbeddingsAdditionalConfigInputRepresentationNormalized, incoming: EinsteinLlmEmbeddingsAdditionalConfigInputRepresentationNormalized): 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: EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Input representation for additional configurations for Einstein LLM generations
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface EinsteinLlmEmbeddingsAdditionalConfigInputRepresentationNormalized {
|
|
17
|
+
/** Dictionary of any other parameters that are required by the specific provider. The values will be passed as is to the provider. This is to allow parameters that are unique to each provider to be specified as part of the request. */
|
|
18
|
+
additionalParameters?: {
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
/** Salesforce Einstein Application Name */
|
|
22
|
+
applicationName: string;
|
|
23
|
+
/** Whether to mask PII for this request. Defaults is provider specific. */
|
|
24
|
+
enablePiiMasking?: boolean;
|
|
25
|
+
/** The model to be used for the generations request. Defaults to provider specific model. */
|
|
26
|
+
model?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Input representation for additional configurations for Einstein LLM generations
|
|
30
|
+
*
|
|
31
|
+
* Keys:
|
|
32
|
+
* (none)
|
|
33
|
+
*/
|
|
34
|
+
export interface EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation {
|
|
35
|
+
additionalParameters?: {
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
applicationName: string;
|
|
39
|
+
enablePiiMasking?: boolean;
|
|
40
|
+
model?: string;
|
|
41
|
+
}
|
package/dist/es/es2018/types/src/generated/types/EinsteinLlmEmbeddingsInputRepresentation.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation as EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation_EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation } from './EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation';
|
|
2
|
+
import { WrappedListString as WrappedListString_WrappedListString } from './WrappedListString';
|
|
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 = "8b5b9c38b92c453f85169a4f54c46708";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export declare function normalize(input: EinsteinLlmEmbeddingsInputRepresentation, existing: EinsteinLlmEmbeddingsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinLlmEmbeddingsInputRepresentationNormalized;
|
|
8
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
|
+
export declare function equals(existing: EinsteinLlmEmbeddingsInputRepresentationNormalized, incoming: EinsteinLlmEmbeddingsInputRepresentationNormalized): 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: EinsteinLlmEmbeddingsInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
+
/**
|
|
13
|
+
* Input representation for creating embedding vector with Einstein LLM
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface EinsteinLlmEmbeddingsInputRepresentationNormalized {
|
|
19
|
+
/** Additional configuration to fine tune model parameters */
|
|
20
|
+
additionalConfig: EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation_EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation;
|
|
21
|
+
prompts: WrappedListString_WrappedListString;
|
|
22
|
+
/** Provider to be used. Should be one of OpenAI|Cohere */
|
|
23
|
+
provider?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Input representation for creating embedding vector with Einstein LLM
|
|
27
|
+
*
|
|
28
|
+
* Keys:
|
|
29
|
+
* (none)
|
|
30
|
+
*/
|
|
31
|
+
export interface EinsteinLlmEmbeddingsInputRepresentation {
|
|
32
|
+
additionalConfig: EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation_EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation;
|
|
33
|
+
prompts: WrappedListString_WrappedListString;
|
|
34
|
+
provider?: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EinsteinLlmEmbeddingItemRepresentation as EinsteinLlmEmbeddingItemRepresentation_EinsteinLlmEmbeddingItemRepresentation } from './EinsteinLlmEmbeddingItemRepresentation';
|
|
2
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
+
export declare const TTL = 100;
|
|
4
|
+
export declare const VERSION = "d9873651f09d29764ef4d4231eb653d7";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export declare function normalize(input: EinsteinLlmEmbeddingsRepresentation, existing: EinsteinLlmEmbeddingsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinLlmEmbeddingsRepresentationNormalized;
|
|
8
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
|
+
export declare function equals(existing: EinsteinLlmEmbeddingsRepresentationNormalized, incoming: EinsteinLlmEmbeddingsRepresentationNormalized): 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: EinsteinLlmEmbeddingsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
+
/**
|
|
13
|
+
* Output of a einstein llm embeddings response
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface EinsteinLlmEmbeddingsRepresentationNormalized {
|
|
19
|
+
/** Embeddings of the text */
|
|
20
|
+
embeddings: Array<EinsteinLlmEmbeddingItemRepresentation_EinsteinLlmEmbeddingItemRepresentation>;
|
|
21
|
+
/** Any provider specific attributes will be included as part of this object */
|
|
22
|
+
parameters: {
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Output of a einstein llm embeddings response
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface EinsteinLlmEmbeddingsRepresentation {
|
|
33
|
+
embeddings: Array<EinsteinLlmEmbeddingItemRepresentation_EinsteinLlmEmbeddingItemRepresentation>;
|
|
34
|
+
parameters: {
|
|
35
|
+
[key: string]: unknown;
|
|
36
|
+
};
|
|
37
|
+
}
|
package/dist/es/es2018/types/src/generated/types/EinsteinLlmEmbeddingsWrapperRepresentation.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EinsteinLlmEmbeddingsInputRepresentation as EinsteinLlmEmbeddingsInputRepresentation_EinsteinLlmEmbeddingsInputRepresentation } from './EinsteinLlmEmbeddingsInputRepresentation';
|
|
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 = "9243b3d89ee730e1e2d79bfc4f45bfed";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: EinsteinLlmEmbeddingsWrapperRepresentation, existing: EinsteinLlmEmbeddingsWrapperRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinLlmEmbeddingsWrapperRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: EinsteinLlmEmbeddingsWrapperRepresentationNormalized, incoming: EinsteinLlmEmbeddingsWrapperRepresentationNormalized): 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: EinsteinLlmEmbeddingsWrapperRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Input wrapper for embeddings representation
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface EinsteinLlmEmbeddingsWrapperRepresentationNormalized {
|
|
18
|
+
embeddingsInput: EinsteinLlmEmbeddingsInputRepresentation_EinsteinLlmEmbeddingsInputRepresentation;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Input wrapper for embeddings representation
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* (none)
|
|
25
|
+
*/
|
|
26
|
+
export interface EinsteinLlmEmbeddingsWrapperRepresentation {
|
|
27
|
+
embeddingsInput: EinsteinLlmEmbeddingsInputRepresentation_EinsteinLlmEmbeddingsInputRepresentation;
|
|
28
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 = "d8791823dc6a931709bc42ac1d0bd098";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: EinsteinLlmFeedbackInputRepresentation, existing: EinsteinLlmFeedbackInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinLlmFeedbackInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: EinsteinLlmFeedbackInputRepresentationNormalized, incoming: EinsteinLlmFeedbackInputRepresentationNormalized): 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: EinsteinLlmFeedbackInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Input representation for Feedback with Einstein LLM
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface EinsteinLlmFeedbackInputRepresentationNormalized {
|
|
17
|
+
/** app feedback map */
|
|
18
|
+
appFeedback?: {
|
|
19
|
+
[key: string]: {};
|
|
20
|
+
};
|
|
21
|
+
/** feedback */
|
|
22
|
+
feedback?: string;
|
|
23
|
+
/** Feedback Text */
|
|
24
|
+
feedbackText: string;
|
|
25
|
+
/** Generation Id - Generations.response.id */
|
|
26
|
+
generationId: string;
|
|
27
|
+
/** Feedback id */
|
|
28
|
+
id: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Input representation for Feedback with Einstein LLM
|
|
32
|
+
*
|
|
33
|
+
* Keys:
|
|
34
|
+
* (none)
|
|
35
|
+
*/
|
|
36
|
+
export interface EinsteinLlmFeedbackInputRepresentation {
|
|
37
|
+
appFeedback?: {
|
|
38
|
+
[key: string]: {};
|
|
39
|
+
};
|
|
40
|
+
feedback?: string;
|
|
41
|
+
feedbackText: string;
|
|
42
|
+
generationId: string;
|
|
43
|
+
id: string;
|
|
44
|
+
}
|