@aws-sdk/client-bedrock-agent-runtime 3.896.0 → 3.898.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +804 -621
- package/dist-es/commands/RetrieveAndGenerateCommand.js +1 -2
- package/dist-es/models/models_0.js +662 -625
- package/dist-es/models/models_1.js +53 -1
- package/dist-es/protocols/Aws_restJson1.js +78 -0
- package/dist-types/commands/InvokeFlowCommand.d.ts +773 -0
- package/dist-types/commands/ListFlowExecutionEventsCommand.d.ts +780 -0
- package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +1 -2
- package/dist-types/models/models_0.d.ts +2963 -2757
- package/dist-types/models/models_1.d.ts +272 -1
- package/dist-types/ts3.4/commands/RetrieveAndGenerateCommand.d.ts +4 -2
- package/dist-types/ts3.4/models/models_0.d.ts +1871 -1756
- package/dist-types/ts3.4/models/models_1.d.ts +102 -8
- package/package.json +1 -1
|
@@ -5,35 +5,36 @@ import {
|
|
|
5
5
|
AgentCollaboration,
|
|
6
6
|
BadGatewayException,
|
|
7
7
|
BedrockModelConfigurations,
|
|
8
|
-
|
|
8
|
+
ByteContentDoc,
|
|
9
|
+
Citation,
|
|
9
10
|
CollaboratorConfiguration,
|
|
10
11
|
ConflictException,
|
|
11
12
|
ConversationHistory,
|
|
12
13
|
CustomOrchestration,
|
|
13
14
|
DependencyFailedException,
|
|
14
|
-
|
|
15
|
+
ExternalSourcesGenerationConfiguration,
|
|
15
16
|
FilterAttribute,
|
|
16
|
-
|
|
17
|
-
GuadrailAction,
|
|
17
|
+
GeneratedResponsePart,
|
|
18
18
|
GuardrailConfiguration,
|
|
19
19
|
GuardrailConfigurationWithArn,
|
|
20
|
-
GuardrailEvent,
|
|
21
20
|
ImplicitFilterConfiguration,
|
|
21
|
+
InferenceConfig,
|
|
22
22
|
InlineBedrockModelConfigurations,
|
|
23
23
|
InlineSessionState,
|
|
24
24
|
InputFile,
|
|
25
25
|
InternalServerException,
|
|
26
26
|
InvocationResultMember,
|
|
27
|
-
OrchestrationConfiguration,
|
|
28
27
|
OrchestrationType,
|
|
28
|
+
PerformanceConfiguration,
|
|
29
29
|
PromptCreationConfigurations,
|
|
30
30
|
PromptOverrideConfiguration,
|
|
31
|
+
PromptTemplate,
|
|
31
32
|
ResourceNotFoundException,
|
|
32
33
|
RetrievalResultContent,
|
|
33
34
|
RetrievalResultLocation,
|
|
34
35
|
RetrieveAndGenerateInput,
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
RetrievedReference,
|
|
37
|
+
S3ObjectDoc,
|
|
37
38
|
SearchType,
|
|
38
39
|
ServiceQuotaExceededException,
|
|
39
40
|
StreamingConfigurations,
|
|
@@ -41,6 +42,78 @@ import {
|
|
|
41
42
|
ValidationException,
|
|
42
43
|
VectorSearchRerankingConfiguration,
|
|
43
44
|
} from "./models_0";
|
|
45
|
+
export declare const ExternalSourceType: {
|
|
46
|
+
readonly BYTE_CONTENT: "BYTE_CONTENT";
|
|
47
|
+
readonly S3: "S3";
|
|
48
|
+
};
|
|
49
|
+
export type ExternalSourceType =
|
|
50
|
+
(typeof ExternalSourceType)[keyof typeof ExternalSourceType];
|
|
51
|
+
export interface ExternalSource {
|
|
52
|
+
sourceType: ExternalSourceType | undefined;
|
|
53
|
+
s3Location?: S3ObjectDoc | undefined;
|
|
54
|
+
byteContent?: ByteContentDoc | undefined;
|
|
55
|
+
}
|
|
56
|
+
export interface ExternalSourcesRetrieveAndGenerateConfiguration {
|
|
57
|
+
modelArn: string | undefined;
|
|
58
|
+
sources: ExternalSource[] | undefined;
|
|
59
|
+
generationConfiguration?: ExternalSourcesGenerationConfiguration | undefined;
|
|
60
|
+
}
|
|
61
|
+
export interface GenerationConfiguration {
|
|
62
|
+
promptTemplate?: PromptTemplate | undefined;
|
|
63
|
+
guardrailConfiguration?: GuardrailConfiguration | undefined;
|
|
64
|
+
inferenceConfig?: InferenceConfig | undefined;
|
|
65
|
+
additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
|
|
66
|
+
performanceConfig?: PerformanceConfiguration | undefined;
|
|
67
|
+
}
|
|
68
|
+
export declare const QueryTransformationType: {
|
|
69
|
+
readonly QUERY_DECOMPOSITION: "QUERY_DECOMPOSITION";
|
|
70
|
+
};
|
|
71
|
+
export type QueryTransformationType =
|
|
72
|
+
(typeof QueryTransformationType)[keyof typeof QueryTransformationType];
|
|
73
|
+
export interface QueryTransformationConfiguration {
|
|
74
|
+
type: QueryTransformationType | undefined;
|
|
75
|
+
}
|
|
76
|
+
export interface OrchestrationConfiguration {
|
|
77
|
+
promptTemplate?: PromptTemplate | undefined;
|
|
78
|
+
inferenceConfig?: InferenceConfig | undefined;
|
|
79
|
+
additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
|
|
80
|
+
queryTransformationConfiguration?:
|
|
81
|
+
| QueryTransformationConfiguration
|
|
82
|
+
| undefined;
|
|
83
|
+
performanceConfig?: PerformanceConfiguration | undefined;
|
|
84
|
+
}
|
|
85
|
+
export declare const RetrieveAndGenerateType: {
|
|
86
|
+
readonly EXTERNAL_SOURCES: "EXTERNAL_SOURCES";
|
|
87
|
+
readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
|
|
88
|
+
};
|
|
89
|
+
export type RetrieveAndGenerateType =
|
|
90
|
+
(typeof RetrieveAndGenerateType)[keyof typeof RetrieveAndGenerateType];
|
|
91
|
+
export interface RetrieveAndGenerateSessionConfiguration {
|
|
92
|
+
kmsKeyArn: string | undefined;
|
|
93
|
+
}
|
|
94
|
+
export declare const GuadrailAction: {
|
|
95
|
+
readonly INTERVENED: "INTERVENED";
|
|
96
|
+
readonly NONE: "NONE";
|
|
97
|
+
};
|
|
98
|
+
export type GuadrailAction =
|
|
99
|
+
(typeof GuadrailAction)[keyof typeof GuadrailAction];
|
|
100
|
+
export interface RetrieveAndGenerateOutput {
|
|
101
|
+
text: string | undefined;
|
|
102
|
+
}
|
|
103
|
+
export interface RetrieveAndGenerateResponse {
|
|
104
|
+
sessionId: string | undefined;
|
|
105
|
+
output: RetrieveAndGenerateOutput | undefined;
|
|
106
|
+
citations?: Citation[] | undefined;
|
|
107
|
+
guardrailAction?: GuadrailAction | undefined;
|
|
108
|
+
}
|
|
109
|
+
export interface CitationEvent {
|
|
110
|
+
citation?: Citation | undefined;
|
|
111
|
+
generatedResponsePart?: GeneratedResponsePart | undefined;
|
|
112
|
+
retrievedReferences?: RetrievedReference[] | undefined;
|
|
113
|
+
}
|
|
114
|
+
export interface GuardrailEvent {
|
|
115
|
+
action?: GuadrailAction | undefined;
|
|
116
|
+
}
|
|
44
117
|
export interface RetrieveAndGenerateOutputEvent {
|
|
45
118
|
text: string | undefined;
|
|
46
119
|
}
|
|
@@ -902,6 +975,27 @@ export interface InvokeInlineAgentRequest {
|
|
|
902
975
|
orchestrationType?: OrchestrationType | undefined;
|
|
903
976
|
customOrchestration?: CustomOrchestration | undefined;
|
|
904
977
|
}
|
|
978
|
+
export declare const ExternalSourceFilterSensitiveLog: (
|
|
979
|
+
obj: ExternalSource
|
|
980
|
+
) => any;
|
|
981
|
+
export declare const ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog: (
|
|
982
|
+
obj: ExternalSourcesRetrieveAndGenerateConfiguration
|
|
983
|
+
) => any;
|
|
984
|
+
export declare const GenerationConfigurationFilterSensitiveLog: (
|
|
985
|
+
obj: GenerationConfiguration
|
|
986
|
+
) => any;
|
|
987
|
+
export declare const OrchestrationConfigurationFilterSensitiveLog: (
|
|
988
|
+
obj: OrchestrationConfiguration
|
|
989
|
+
) => any;
|
|
990
|
+
export declare const RetrieveAndGenerateOutputFilterSensitiveLog: (
|
|
991
|
+
obj: RetrieveAndGenerateOutput
|
|
992
|
+
) => any;
|
|
993
|
+
export declare const RetrieveAndGenerateResponseFilterSensitiveLog: (
|
|
994
|
+
obj: RetrieveAndGenerateResponse
|
|
995
|
+
) => any;
|
|
996
|
+
export declare const CitationEventFilterSensitiveLog: (
|
|
997
|
+
obj: CitationEvent
|
|
998
|
+
) => any;
|
|
905
999
|
export declare const RetrieveAndGenerateOutputEventFilterSensitiveLog: (
|
|
906
1000
|
obj: RetrieveAndGenerateOutputEvent
|
|
907
1001
|
) => any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-agent-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Agent Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.898.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-agent-runtime",
|