@salesforce/lds-adapters-sfap-einstein-ai-gateway 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/README.md +18 -0
- package/dist/es/es2018/sfap-einstein-ai-gateway.js +1792 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getEmbeddings.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/adapters/getGenerations.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/adapters/registerFeedback.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -0
- package/dist/es/es2018/types/src/generated/resources/postAiGptV1Embeddings.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/resources/postAiGptV1Feedback.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/resources/postAiGptV1Generations.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/ChatMessage.d.ts +46 -0
- package/dist/es/es2018/types/src/generated/types/ContentQualityRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/ConversationalMemorySettings.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EmbeddingErrorRepresentation.d.ts +53 -0
- package/dist/es/es2018/types/src/generated/types/EmbeddingRequest.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/EmbeddingResponse.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/Embeddings.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/Error.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/FeedbackErrorRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/FeedbackRequest.d.ts +56 -0
- package/dist/es/es2018/types/src/generated/types/FeedbackResponse202Representation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/FeedbackResponseRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/GenerationDetails.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/GenerationRequest.d.ts +66 -0
- package/dist/es/es2018/types/src/generated/types/GenerationResponse.d.ts +55 -0
- package/dist/es/es2018/types/src/generated/types/GenerationResponseGenerations.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/GenerationSettings.d.ts +50 -0
- package/dist/es/es2018/types/src/generated/types/GenerationsErrorRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/HyperLink.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/LLMProviderDetails.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/LLMProviderResponse.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/Links.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/Localization.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/ModelResponse.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/PluginGenerationRequest.d.ts +25 -0
- package/dist/es/es2018/types/src/generated/types/PluginGenerationResponse.d.ts +25 -0
- package/dist/es/es2018/types/src/generated/types/ProbableLocale.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/SafetyCategoryScores.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/SafetyScoreRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/dist/es/es2018/types/src/raml-artifacts/resources/postAiGptV1Embeddings/createResourceRequest.d.ts +20 -0
- package/dist/es/es2018/types/src/raml-artifacts/resources/postAiGptV1Feedback/createResourceRequest.d.ts +21 -0
- package/dist/es/es2018/types/src/raml-artifacts/resources/postAiGptV1Generations/createResourceRequest.d.ts +26 -0
- package/package.json +76 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1831 -0
- package/src/raml/api.raml +1003 -0
- package/src/raml/luvio.raml +38 -0
|
@@ -0,0 +1,56 @@
|
|
|
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 = "1ab8d6091197e3772731210a2d3678a9";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: FeedbackRequest, existing: FeedbackRequestNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FeedbackRequestNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: FeedbackRequestNormalized, incoming: FeedbackRequestNormalized): 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: FeedbackRequest, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface FeedbackRequestNormalized {
|
|
17
|
+
/** Dictionary of any app-level feedback and any other free-form parameters. */
|
|
18
|
+
app_feedback?: {
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
/** The app-specific generation text to support cases where the client further splits a generation into multiple generations. */
|
|
22
|
+
app_generation?: string;
|
|
23
|
+
/** The app-specific generation ID to support cases where client further split a generation into multiple generations. */
|
|
24
|
+
app_generation_id?: string;
|
|
25
|
+
/** The feedback sentiment. Can be `null`. */
|
|
26
|
+
feedback?: string | null;
|
|
27
|
+
/** The textual representation of the feedback as provided by the user. */
|
|
28
|
+
feedback_text?: string;
|
|
29
|
+
/** The ID of the gateway's generation response. For example, `GenerationResponseGenerations.id`. */
|
|
30
|
+
generation_id?: string;
|
|
31
|
+
/** A unique ID for the feedback object. */
|
|
32
|
+
id: string;
|
|
33
|
+
/** The source of the feedback. For example, `human` or `app`. */
|
|
34
|
+
source?: string;
|
|
35
|
+
/** The unique ID of a batch of generations to support to capture a single feedback for multiple generations. */
|
|
36
|
+
turn_id?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*
|
|
41
|
+
* Keys:
|
|
42
|
+
* (none)
|
|
43
|
+
*/
|
|
44
|
+
export interface FeedbackRequest {
|
|
45
|
+
app_feedback?: {
|
|
46
|
+
[key: string]: unknown;
|
|
47
|
+
};
|
|
48
|
+
app_generation?: string;
|
|
49
|
+
app_generation_id?: string;
|
|
50
|
+
feedback?: string | null;
|
|
51
|
+
feedback_text?: string;
|
|
52
|
+
generation_id?: string;
|
|
53
|
+
id: string;
|
|
54
|
+
source?: string;
|
|
55
|
+
turn_id?: string;
|
|
56
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "d61f6becfa76c75ed03347c8d8b40c6a";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: FeedbackResponse202Representation, existing: FeedbackResponse202RepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FeedbackResponse202RepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: FeedbackResponse202RepresentationNormalized, incoming: FeedbackResponse202RepresentationNormalized): 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: FeedbackResponse202Representation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Output of a einstein llm feedback call
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface FeedbackResponse202RepresentationNormalized {
|
|
17
|
+
/** Response text of the feedback API */
|
|
18
|
+
message: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Output of a einstein llm feedback call
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* (none)
|
|
25
|
+
*/
|
|
26
|
+
export interface FeedbackResponse202Representation {
|
|
27
|
+
message: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
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';
|
|
2
|
+
export declare const TTL = 100;
|
|
3
|
+
export declare const VERSION = "f29dcf556357658d72f8330fc3a9d1ac";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
7
|
+
message: string;
|
|
8
|
+
}
|
|
9
|
+
export type FeedbackResponseRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
+
export type PartialFeedbackResponseRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
12
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): FeedbackResponseRepresentationNormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: FeedbackResponseRepresentation): string;
|
|
14
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: FeedbackResponseRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function normalize(input: FeedbackResponseRepresentation, existing: FeedbackResponseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FeedbackResponseRepresentationNormalized;
|
|
16
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
|
+
export declare function equals(existing: FeedbackResponseRepresentationNormalized, incoming: FeedbackResponseRepresentationNormalized): boolean;
|
|
18
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: FeedbackResponseRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
20
|
+
/**
|
|
21
|
+
* Output of a einstein llm feedback call
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* message (string): message
|
|
25
|
+
*/
|
|
26
|
+
export interface FeedbackResponseRepresentationNormalized {
|
|
27
|
+
/** Response text of the feedback API */
|
|
28
|
+
message: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Output of a einstein llm feedback call
|
|
32
|
+
*
|
|
33
|
+
* Keys:
|
|
34
|
+
* message (string): message
|
|
35
|
+
*/
|
|
36
|
+
export interface FeedbackResponseRepresentation {
|
|
37
|
+
message: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ChatMessage as ChatMessage_ChatMessage } from './ChatMessage';
|
|
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 = "467a0e7c4d55fcae3ba5578a877d5b0a";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: GenerationDetails, existing: GenerationDetailsNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): GenerationDetailsNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: GenerationDetailsNormalized, incoming: GenerationDetailsNormalized): 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: GenerationDetails, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Details for a generation request.
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface GenerationDetailsNormalized {
|
|
18
|
+
/** Generated responses from the LLM. */
|
|
19
|
+
generations: Array<ChatMessage_ChatMessage>;
|
|
20
|
+
/** Any provider-specific attributes included as part of this object. */
|
|
21
|
+
parameters?: {};
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Details for a generation request.
|
|
25
|
+
*
|
|
26
|
+
* Keys:
|
|
27
|
+
* (none)
|
|
28
|
+
*/
|
|
29
|
+
export interface GenerationDetails {
|
|
30
|
+
generations: Array<ChatMessage_ChatMessage>;
|
|
31
|
+
parameters?: {};
|
|
32
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 = "2a7a1d4afe523792197b7276c67c0ecb";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: GenerationRequest, existing: GenerationRequestNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): GenerationRequestNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: GenerationRequestNormalized, incoming: GenerationRequestNormalized): 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: GenerationRequest, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface GenerationRequestNormalized {
|
|
17
|
+
/** Indicates whether to mask personally identifiable information (PII) in the prompt. Defaults to `false`. */
|
|
18
|
+
enable_pii_masking?: boolean;
|
|
19
|
+
/** The frequency penalty. Min value is 0.0; max value is 1.0. Can reduce the 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. */
|
|
20
|
+
frequency_penalty?: number;
|
|
21
|
+
/** Maximum number of tokens to be generated. */
|
|
22
|
+
max_tokens?: number;
|
|
23
|
+
/** The model to be used for generating responses. Defaults to a provider-specific model. */
|
|
24
|
+
model?: string;
|
|
25
|
+
/** Number of completions to be generated for the prompt. */
|
|
26
|
+
num_generations?: number;
|
|
27
|
+
/** Dictionary of any other parameters that are required by the provider. Values are passed as is to the provider so that the request can include parameters that are unique to a provider. */
|
|
28
|
+
parameters?: {
|
|
29
|
+
[key: string]: unknown;
|
|
30
|
+
};
|
|
31
|
+
/** The presence penalty. Min value is 0.0; max value is 1.0. Can reduce the repetitiveness of generated tokens. Behaves similarly to `frequency_penalty`, except that this penalty is applied equally to all tokens that have already appeared, regardless of their exact frequencies. */
|
|
32
|
+
presence_penalty?: number;
|
|
33
|
+
/** The prompt or text to be completed. */
|
|
34
|
+
prompt: string;
|
|
35
|
+
/** An array of stop sequences. The generated text is cut at the end of the earliest occurrence of a stop sequence. */
|
|
36
|
+
stop_sequences?: Array<string>;
|
|
37
|
+
/** Dictionary of any other information relevant to the gateway client. */
|
|
38
|
+
tags?: {
|
|
39
|
+
[key: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
/** Sampling temperature to be used. Higher values mean more random token choices. Lower values mean less random token choices. Min value of 0; max value of 1.0. */
|
|
42
|
+
temperature?: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
*
|
|
47
|
+
* Keys:
|
|
48
|
+
* (none)
|
|
49
|
+
*/
|
|
50
|
+
export interface GenerationRequest {
|
|
51
|
+
enable_pii_masking?: boolean;
|
|
52
|
+
frequency_penalty?: number;
|
|
53
|
+
max_tokens?: number;
|
|
54
|
+
model?: string;
|
|
55
|
+
num_generations?: number;
|
|
56
|
+
parameters?: {
|
|
57
|
+
[key: string]: unknown;
|
|
58
|
+
};
|
|
59
|
+
presence_penalty?: number;
|
|
60
|
+
prompt: string;
|
|
61
|
+
stop_sequences?: Array<string>;
|
|
62
|
+
tags?: {
|
|
63
|
+
[key: string]: unknown;
|
|
64
|
+
};
|
|
65
|
+
temperature?: number;
|
|
66
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { GenerationResponseGenerations as GenerationResponseGenerations_GenerationResponseGenerations } from './GenerationResponseGenerations';
|
|
2
|
+
import { SafetyScoreRepresentation as SafetyScoreRepresentation_SafetyScoreRepresentation } from './SafetyScoreRepresentation';
|
|
3
|
+
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
4
|
+
export declare const TTL = 100;
|
|
5
|
+
export declare const VERSION = "4bce29cece0fd6272204a8fbdc02c35b";
|
|
6
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
|
+
export declare const RepresentationType: string;
|
|
8
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
9
|
+
id: string;
|
|
10
|
+
}
|
|
11
|
+
export type GenerationResponseNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
+
export type PartialGenerationResponseNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
14
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): GenerationResponseNormalizedKeyMetadata;
|
|
15
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: GenerationResponse): string;
|
|
16
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: GenerationResponse): $64$luvio_engine_NormalizedKeyMetadata;
|
|
17
|
+
export declare function normalize(input: GenerationResponse, existing: GenerationResponseNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): GenerationResponseNormalized;
|
|
18
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
19
|
+
export declare function equals(existing: GenerationResponseNormalized, incoming: GenerationResponseNormalized): boolean;
|
|
20
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
21
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: GenerationResponse, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* id (string): id
|
|
27
|
+
*/
|
|
28
|
+
export interface GenerationResponseNormalized {
|
|
29
|
+
/** List of generated text items. */
|
|
30
|
+
generations: Array<GenerationResponseGenerations_GenerationResponseGenerations>;
|
|
31
|
+
/** ID of the generation request. */
|
|
32
|
+
id: string;
|
|
33
|
+
input_safety_score?: SafetyScoreRepresentation_SafetyScoreRepresentation | null;
|
|
34
|
+
/** Any provider-specific attributes included as part of this object. Can be `null`. */
|
|
35
|
+
parameters?: {
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
/** Prompt used for the generation. Can be `null`. */
|
|
39
|
+
prompt?: string | null;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
* Keys:
|
|
45
|
+
* id (string): id
|
|
46
|
+
*/
|
|
47
|
+
export interface GenerationResponse {
|
|
48
|
+
generations: Array<GenerationResponseGenerations_GenerationResponseGenerations>;
|
|
49
|
+
id: string;
|
|
50
|
+
input_safety_score?: SafetyScoreRepresentation_SafetyScoreRepresentation | null;
|
|
51
|
+
parameters?: {
|
|
52
|
+
[key: string]: unknown;
|
|
53
|
+
};
|
|
54
|
+
prompt?: string | null;
|
|
55
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ContentQualityRepresentation as ContentQualityRepresentation_ContentQualityRepresentation } from './ContentQualityRepresentation';
|
|
2
|
+
import { SafetyScoreRepresentation as SafetyScoreRepresentation_SafetyScoreRepresentation } from './SafetyScoreRepresentation';
|
|
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 = "8777be1ae9f7cf216ac8618fd17a03c9";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export declare function normalize(input: GenerationResponseGenerations, existing: GenerationResponseGenerationsNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): GenerationResponseGenerationsNormalized;
|
|
8
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
|
+
export declare function equals(existing: GenerationResponseGenerationsNormalized, incoming: GenerationResponseGenerationsNormalized): 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: GenerationResponseGenerations, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
+
/**
|
|
13
|
+
* Generated text that is part of the generated response.
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface GenerationResponseGenerationsNormalized {
|
|
19
|
+
generation_content_quality?: ContentQualityRepresentation_ContentQualityRepresentation | null;
|
|
20
|
+
generation_safety_score?: SafetyScoreRepresentation_SafetyScoreRepresentation | null;
|
|
21
|
+
/** Generation ID. This value is required to register feedback. */
|
|
22
|
+
id?: string;
|
|
23
|
+
/** Any provider-specific attributes included as part of this object. Can be `null`. */
|
|
24
|
+
parameters?: {
|
|
25
|
+
[key: string]: unknown;
|
|
26
|
+
};
|
|
27
|
+
/** The generated text. */
|
|
28
|
+
text: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Generated text that is part of the generated response.
|
|
32
|
+
*
|
|
33
|
+
* Keys:
|
|
34
|
+
* (none)
|
|
35
|
+
*/
|
|
36
|
+
export interface GenerationResponseGenerations {
|
|
37
|
+
generation_content_quality?: ContentQualityRepresentation_ContentQualityRepresentation | null;
|
|
38
|
+
generation_safety_score?: SafetyScoreRepresentation_SafetyScoreRepresentation | null;
|
|
39
|
+
id?: string;
|
|
40
|
+
parameters?: {
|
|
41
|
+
[key: string]: unknown;
|
|
42
|
+
};
|
|
43
|
+
text: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 = "e497bea0175bf1c5896a8cca051ac8ad";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: GenerationSettings, existing: GenerationSettingsNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): GenerationSettingsNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: GenerationSettingsNormalized, incoming: GenerationSettingsNormalized): 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: GenerationSettings, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Settings that can be configured for a generation.
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface GenerationSettingsNormalized {
|
|
17
|
+
/** The frequency penalty to be used. Min value is 0.0; max value is 1.0. Can reduce the 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. */
|
|
18
|
+
frequency_penalty?: number;
|
|
19
|
+
/** Maximum number of tokens to be generated. */
|
|
20
|
+
max_tokens?: number;
|
|
21
|
+
/** Number of completions to be generated for a prompt. */
|
|
22
|
+
num_generations?: number;
|
|
23
|
+
/** Dictionary of any other parameters that are required by the specified provider. Values are passed as is to the provider so that the request can include parameters that are unique to a provider. */
|
|
24
|
+
parameters?: {
|
|
25
|
+
[key: string]: unknown;
|
|
26
|
+
};
|
|
27
|
+
/** The presence penalty to be used. Min value is 0.0; max value is 1.0. Can reduce the repetitiveness of generated tokens. Behaves similarly to `frequency_penalty`, except that this penalty is applied equally to all tokens that have already appeared, regardless of their exact frequencies. */
|
|
28
|
+
presence_penalty?: number;
|
|
29
|
+
/** An array of stop sequences to be used. The generated text is cut at the end of the earliest occurrence of a stop sequence. */
|
|
30
|
+
stop_sequences?: Array<string>;
|
|
31
|
+
/** Sampling temperature to be used. Higher values mean more random token choices. Lower values mean less random token choices. Min value of 0; max value of 1.0. */
|
|
32
|
+
temperature?: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Settings that can be configured for a generation.
|
|
36
|
+
*
|
|
37
|
+
* Keys:
|
|
38
|
+
* (none)
|
|
39
|
+
*/
|
|
40
|
+
export interface GenerationSettings {
|
|
41
|
+
frequency_penalty?: number;
|
|
42
|
+
max_tokens?: number;
|
|
43
|
+
num_generations?: number;
|
|
44
|
+
parameters?: {
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
presence_penalty?: number;
|
|
48
|
+
stop_sequences?: Array<string>;
|
|
49
|
+
temperature?: number;
|
|
50
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "d01776f996fe394bf0ea0ded2f10b594";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: GenerationsErrorRepresentation, existing: GenerationsErrorRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): GenerationsErrorRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: GenerationsErrorRepresentationNormalized, incoming: GenerationsErrorRepresentationNormalized): 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: GenerationsErrorRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Error response representation
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface GenerationsErrorRepresentationNormalized {
|
|
17
|
+
/** Exception error message */
|
|
18
|
+
message: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Error response representation
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* (none)
|
|
25
|
+
*/
|
|
26
|
+
export interface GenerationsErrorRepresentation {
|
|
27
|
+
message: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "f783b46ba9d013a0f241850ca4fe7b85";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: HyperLink, existing: HyperLinkNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): HyperLinkNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: HyperLinkNormalized, incoming: HyperLinkNormalized): 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: HyperLink, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Hyperlink object included in the Links schema.
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface HyperLinkNormalized {
|
|
17
|
+
/** Link to the endpoint. */
|
|
18
|
+
href?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Hyperlink object included in the Links schema.
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* (none)
|
|
25
|
+
*/
|
|
26
|
+
export interface HyperLink {
|
|
27
|
+
href?: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 = "e05aa7da8ede76f58255c678c598f404";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: LLMProviderDetails, existing: LLMProviderDetailsNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LLMProviderDetailsNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: LLMProviderDetailsNormalized, incoming: LLMProviderDetailsNormalized): 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: LLMProviderDetails, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Dictionary of properties for the provider.
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface LLMProviderDetailsNormalized {
|
|
17
|
+
/** The maximum number of tokens allowed by the provider. */
|
|
18
|
+
max_tokens: number;
|
|
19
|
+
/** Short description of the provider. */
|
|
20
|
+
provider_description: string;
|
|
21
|
+
/** Type of LLM provider (internal or external). */
|
|
22
|
+
provider_type: string;
|
|
23
|
+
/** Indicates whether the provider supports the `embeddings` operation. */
|
|
24
|
+
supports_embeddings: boolean;
|
|
25
|
+
/** Indicates whether the provider supports the `generate` operation. */
|
|
26
|
+
supports_generate: boolean;
|
|
27
|
+
/** Indicates whether the provider supports the `models` operation. */
|
|
28
|
+
supports_models: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Dictionary of properties for the provider.
|
|
32
|
+
*
|
|
33
|
+
* Keys:
|
|
34
|
+
* (none)
|
|
35
|
+
*/
|
|
36
|
+
export interface LLMProviderDetails {
|
|
37
|
+
max_tokens: number;
|
|
38
|
+
provider_description: string;
|
|
39
|
+
provider_type: string;
|
|
40
|
+
supports_embeddings: boolean;
|
|
41
|
+
supports_generate: boolean;
|
|
42
|
+
supports_models: boolean;
|
|
43
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { LLMProviderDetails as LLMProviderDetails_LLMProviderDetails } from './LLMProviderDetails';
|
|
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 = "b8ed81e14b7f803cfecc475c9c84686d";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: LLMProviderResponse, existing: LLMProviderResponseNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LLMProviderResponseNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: LLMProviderResponseNormalized, incoming: LLMProviderResponseNormalized): 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: LLMProviderResponse, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* LLM provider properties.
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface LLMProviderResponseNormalized {
|
|
18
|
+
details?: LLMProviderDetails_LLMProviderDetails;
|
|
19
|
+
/** Name of the provider. */
|
|
20
|
+
name: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* LLM provider properties.
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface LLMProviderResponse {
|
|
29
|
+
details?: LLMProviderDetails_LLMProviderDetails;
|
|
30
|
+
name: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { HyperLink as HyperLink_HyperLink } from './HyperLink';
|
|
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 = "d3c08cec82021ea675d1eabe93063466";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: Links, existing: LinksNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LinksNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: LinksNormalized, incoming: LinksNormalized): 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: Links, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* List of Einstein GPT API endpoints for HATEOAS compliance.
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface LinksNormalized {
|
|
18
|
+
messages?: HyperLink_HyperLink;
|
|
19
|
+
self: HyperLink_HyperLink;
|
|
20
|
+
session?: HyperLink_HyperLink;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* List of Einstein GPT API endpoints for HATEOAS compliance.
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface Links {
|
|
29
|
+
messages?: HyperLink_HyperLink;
|
|
30
|
+
self: HyperLink_HyperLink;
|
|
31
|
+
session?: HyperLink_HyperLink;
|
|
32
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ProbableLocale as ProbableLocale_ProbableLocale } from './ProbableLocale';
|
|
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 = "ae12cb805402995e763e46a3653996a8";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: Localization, existing: LocalizationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LocalizationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: LocalizationNormalized, incoming: LocalizationNormalized): 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: Localization, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Localization
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface LocalizationNormalized {
|
|
18
|
+
/** Language and region code. */
|
|
19
|
+
defaultLocale: string;
|
|
20
|
+
/** Expected output languages of the generations. Derived from output language instructions of the prompt. */
|
|
21
|
+
expectedLocales?: Array<string>;
|
|
22
|
+
/** Locales contained in the prompt text. */
|
|
23
|
+
inputLocales?: Array<ProbableLocale_ProbableLocale>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Localization
|
|
27
|
+
*
|
|
28
|
+
* Keys:
|
|
29
|
+
* (none)
|
|
30
|
+
*/
|
|
31
|
+
export interface Localization {
|
|
32
|
+
defaultLocale: string;
|
|
33
|
+
expectedLocales?: Array<string>;
|
|
34
|
+
inputLocales?: Array<ProbableLocale_ProbableLocale>;
|
|
35
|
+
}
|
|
@@ -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 = "c77b2dc4c2f24102c608c88c493bb5d9";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: ModelResponse, existing: ModelResponseNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ModelResponseNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ModelResponseNormalized, incoming: ModelResponseNormalized): 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: ModelResponse, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Model properties.
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface ModelResponseNormalized {
|
|
17
|
+
/** ID of the model. */
|
|
18
|
+
id: string;
|
|
19
|
+
/** Dictionary of properties for the model. Values are specific to each provider. */
|
|
20
|
+
properties?: {};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Model properties.
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface ModelResponse {
|
|
29
|
+
id: string;
|
|
30
|
+
properties?: {};
|
|
31
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 = "1bd09a85f09dd6e48175ea08a7a8dfd0";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: PluginGenerationRequest, existing: PluginGenerationRequestNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PluginGenerationRequestNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: PluginGenerationRequestNormalized, incoming: PluginGenerationRequestNormalized): 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: PluginGenerationRequest, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Generic plug-in generation request
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface PluginGenerationRequestNormalized {
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Generic plug-in generation request
|
|
20
|
+
*
|
|
21
|
+
* Keys:
|
|
22
|
+
* (none)
|
|
23
|
+
*/
|
|
24
|
+
export interface PluginGenerationRequest {
|
|
25
|
+
}
|