@aws-sdk/client-bedrock-agent-runtime 3.928.0 → 3.930.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 +3454 -5248
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/BedrockAgentRuntimeClient.js +2 -0
- package/dist-es/commands/CreateInvocationCommand.js +3 -9
- package/dist-es/commands/CreateSessionCommand.js +3 -9
- package/dist-es/commands/DeleteAgentMemoryCommand.js +3 -9
- package/dist-es/commands/DeleteSessionCommand.js +3 -9
- package/dist-es/commands/EndSessionCommand.js +3 -9
- package/dist-es/commands/GenerateQueryCommand.js +3 -10
- package/dist-es/commands/GetAgentMemoryCommand.js +3 -9
- package/dist-es/commands/GetExecutionFlowSnapshotCommand.js +3 -9
- package/dist-es/commands/GetFlowExecutionCommand.js +3 -9
- package/dist-es/commands/GetInvocationStepCommand.js +3 -10
- package/dist-es/commands/GetSessionCommand.js +3 -9
- package/dist-es/commands/InvokeAgentCommand.js +3 -11
- package/dist-es/commands/InvokeFlowCommand.js +3 -10
- package/dist-es/commands/InvokeInlineAgentCommand.js +3 -11
- package/dist-es/commands/ListFlowExecutionEventsCommand.js +3 -10
- package/dist-es/commands/ListFlowExecutionsCommand.js +3 -9
- package/dist-es/commands/ListInvocationStepsCommand.js +3 -9
- package/dist-es/commands/ListInvocationsCommand.js +3 -9
- package/dist-es/commands/ListSessionsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/OptimizePromptCommand.js +3 -10
- package/dist-es/commands/PutInvocationStepCommand.js +3 -10
- package/dist-es/commands/RerankCommand.js +3 -10
- package/dist-es/commands/RetrieveAndGenerateCommand.js +3 -10
- package/dist-es/commands/RetrieveAndGenerateStreamCommand.js +3 -10
- package/dist-es/commands/RetrieveCommand.js +3 -10
- package/dist-es/commands/StartFlowExecutionCommand.js +3 -10
- package/dist-es/commands/StopFlowExecutionCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateSessionCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -1348
- package/dist-es/models/models_1.js +0 -352
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +3380 -0
- package/dist-types/BedrockAgentRuntimeClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +136 -678
- package/dist-types/models/models_1.d.ts +20 -133
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +445 -0
- package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -468
- package/dist-types/ts3.4/models/models_1.d.ts +0 -100
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +452 -0
- package/package.json +36 -36
- package/dist-es/protocols/Aws_restJson1.js +0 -3122
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -281
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -380
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
|
-
import { AgentActionGroupFilterSensitiveLog, ByteContentDocFilterSensitiveLog, CitationFilterSensitiveLog, CollaboratorConfigurationFilterSensitiveLog, ConversationHistoryFilterSensitiveLog, ExternalSourcesGenerationConfigurationFilterSensitiveLog, GeneratedResponsePartFilterSensitiveLog, ImplicitFilterConfigurationFilterSensitiveLog, InlineSessionStateFilterSensitiveLog, InputFileFilterSensitiveLog, InvocationResultMemberFilterSensitiveLog, PromptTemplateFilterSensitiveLog, RetrievedReferenceFilterSensitiveLog, VectorSearchRerankingConfigurationFilterSensitiveLog, } from "./models_0";
|
|
3
1
|
export const ExternalSourceType = {
|
|
4
2
|
BYTE_CONTENT: "BYTE_CONTENT",
|
|
5
3
|
S3: "S3",
|
|
@@ -15,36 +13,6 @@ export const GuadrailAction = {
|
|
|
15
13
|
INTERVENED: "INTERVENED",
|
|
16
14
|
NONE: "NONE",
|
|
17
15
|
};
|
|
18
|
-
export var RetrieveAndGenerateStreamResponseOutput;
|
|
19
|
-
(function (RetrieveAndGenerateStreamResponseOutput) {
|
|
20
|
-
RetrieveAndGenerateStreamResponseOutput.visit = (value, visitor) => {
|
|
21
|
-
if (value.output !== undefined)
|
|
22
|
-
return visitor.output(value.output);
|
|
23
|
-
if (value.citation !== undefined)
|
|
24
|
-
return visitor.citation(value.citation);
|
|
25
|
-
if (value.guardrail !== undefined)
|
|
26
|
-
return visitor.guardrail(value.guardrail);
|
|
27
|
-
if (value.internalServerException !== undefined)
|
|
28
|
-
return visitor.internalServerException(value.internalServerException);
|
|
29
|
-
if (value.validationException !== undefined)
|
|
30
|
-
return visitor.validationException(value.validationException);
|
|
31
|
-
if (value.resourceNotFoundException !== undefined)
|
|
32
|
-
return visitor.resourceNotFoundException(value.resourceNotFoundException);
|
|
33
|
-
if (value.serviceQuotaExceededException !== undefined)
|
|
34
|
-
return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
|
|
35
|
-
if (value.throttlingException !== undefined)
|
|
36
|
-
return visitor.throttlingException(value.throttlingException);
|
|
37
|
-
if (value.accessDeniedException !== undefined)
|
|
38
|
-
return visitor.accessDeniedException(value.accessDeniedException);
|
|
39
|
-
if (value.conflictException !== undefined)
|
|
40
|
-
return visitor.conflictException(value.conflictException);
|
|
41
|
-
if (value.dependencyFailedException !== undefined)
|
|
42
|
-
return visitor.dependencyFailedException(value.dependencyFailedException);
|
|
43
|
-
if (value.badGatewayException !== undefined)
|
|
44
|
-
return visitor.badGatewayException(value.badGatewayException);
|
|
45
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
46
|
-
};
|
|
47
|
-
})(RetrieveAndGenerateStreamResponseOutput || (RetrieveAndGenerateStreamResponseOutput = {}));
|
|
48
16
|
export const SessionStatus = {
|
|
49
17
|
ACTIVE: "ACTIVE",
|
|
50
18
|
ENDED: "ENDED",
|
|
@@ -56,323 +24,3 @@ export const ImageFormat = {
|
|
|
56
24
|
PNG: "png",
|
|
57
25
|
WEBP: "webp",
|
|
58
26
|
};
|
|
59
|
-
export var ImageSource;
|
|
60
|
-
(function (ImageSource) {
|
|
61
|
-
ImageSource.visit = (value, visitor) => {
|
|
62
|
-
if (value.bytes !== undefined)
|
|
63
|
-
return visitor.bytes(value.bytes);
|
|
64
|
-
if (value.s3Location !== undefined)
|
|
65
|
-
return visitor.s3Location(value.s3Location);
|
|
66
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
67
|
-
};
|
|
68
|
-
})(ImageSource || (ImageSource = {}));
|
|
69
|
-
export var BedrockSessionContentBlock;
|
|
70
|
-
(function (BedrockSessionContentBlock) {
|
|
71
|
-
BedrockSessionContentBlock.visit = (value, visitor) => {
|
|
72
|
-
if (value.text !== undefined)
|
|
73
|
-
return visitor.text(value.text);
|
|
74
|
-
if (value.image !== undefined)
|
|
75
|
-
return visitor.image(value.image);
|
|
76
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
77
|
-
};
|
|
78
|
-
})(BedrockSessionContentBlock || (BedrockSessionContentBlock = {}));
|
|
79
|
-
export var InvocationStepPayload;
|
|
80
|
-
(function (InvocationStepPayload) {
|
|
81
|
-
InvocationStepPayload.visit = (value, visitor) => {
|
|
82
|
-
if (value.contentBlocks !== undefined)
|
|
83
|
-
return visitor.contentBlocks(value.contentBlocks);
|
|
84
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
85
|
-
};
|
|
86
|
-
})(InvocationStepPayload || (InvocationStepPayload = {}));
|
|
87
|
-
export var RetrievalFilter;
|
|
88
|
-
(function (RetrievalFilter) {
|
|
89
|
-
RetrievalFilter.visit = (value, visitor) => {
|
|
90
|
-
if (value.equals !== undefined)
|
|
91
|
-
return visitor.equals(value.equals);
|
|
92
|
-
if (value.notEquals !== undefined)
|
|
93
|
-
return visitor.notEquals(value.notEquals);
|
|
94
|
-
if (value.greaterThan !== undefined)
|
|
95
|
-
return visitor.greaterThan(value.greaterThan);
|
|
96
|
-
if (value.greaterThanOrEquals !== undefined)
|
|
97
|
-
return visitor.greaterThanOrEquals(value.greaterThanOrEquals);
|
|
98
|
-
if (value.lessThan !== undefined)
|
|
99
|
-
return visitor.lessThan(value.lessThan);
|
|
100
|
-
if (value.lessThanOrEquals !== undefined)
|
|
101
|
-
return visitor.lessThanOrEquals(value.lessThanOrEquals);
|
|
102
|
-
if (value.in !== undefined)
|
|
103
|
-
return visitor.in(value.in);
|
|
104
|
-
if (value.notIn !== undefined)
|
|
105
|
-
return visitor.notIn(value.notIn);
|
|
106
|
-
if (value.startsWith !== undefined)
|
|
107
|
-
return visitor.startsWith(value.startsWith);
|
|
108
|
-
if (value.listContains !== undefined)
|
|
109
|
-
return visitor.listContains(value.listContains);
|
|
110
|
-
if (value.stringContains !== undefined)
|
|
111
|
-
return visitor.stringContains(value.stringContains);
|
|
112
|
-
if (value.andAll !== undefined)
|
|
113
|
-
return visitor.andAll(value.andAll);
|
|
114
|
-
if (value.orAll !== undefined)
|
|
115
|
-
return visitor.orAll(value.orAll);
|
|
116
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
117
|
-
};
|
|
118
|
-
})(RetrievalFilter || (RetrievalFilter = {}));
|
|
119
|
-
export const ExternalSourceFilterSensitiveLog = (obj) => ({
|
|
120
|
-
...obj,
|
|
121
|
-
...(obj.byteContent && { byteContent: ByteContentDocFilterSensitiveLog(obj.byteContent) }),
|
|
122
|
-
});
|
|
123
|
-
export const ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog = (obj) => ({
|
|
124
|
-
...obj,
|
|
125
|
-
...(obj.sources && { sources: obj.sources.map((item) => ExternalSourceFilterSensitiveLog(item)) }),
|
|
126
|
-
...(obj.generationConfiguration && {
|
|
127
|
-
generationConfiguration: ExternalSourcesGenerationConfigurationFilterSensitiveLog(obj.generationConfiguration),
|
|
128
|
-
}),
|
|
129
|
-
});
|
|
130
|
-
export const GenerationConfigurationFilterSensitiveLog = (obj) => ({
|
|
131
|
-
...obj,
|
|
132
|
-
...(obj.promptTemplate && { promptTemplate: PromptTemplateFilterSensitiveLog(obj.promptTemplate) }),
|
|
133
|
-
});
|
|
134
|
-
export const OrchestrationConfigurationFilterSensitiveLog = (obj) => ({
|
|
135
|
-
...obj,
|
|
136
|
-
...(obj.promptTemplate && { promptTemplate: PromptTemplateFilterSensitiveLog(obj.promptTemplate) }),
|
|
137
|
-
});
|
|
138
|
-
export const RetrieveAndGenerateOutputFilterSensitiveLog = (obj) => ({
|
|
139
|
-
...obj,
|
|
140
|
-
});
|
|
141
|
-
export const RetrieveAndGenerateResponseFilterSensitiveLog = (obj) => ({
|
|
142
|
-
...obj,
|
|
143
|
-
...(obj.output && { output: SENSITIVE_STRING }),
|
|
144
|
-
...(obj.citations && { citations: obj.citations.map((item) => CitationFilterSensitiveLog(item)) }),
|
|
145
|
-
});
|
|
146
|
-
export const CitationEventFilterSensitiveLog = (obj) => ({
|
|
147
|
-
...obj,
|
|
148
|
-
...(obj.citation && { citation: CitationFilterSensitiveLog(obj.citation) }),
|
|
149
|
-
...(obj.generatedResponsePart && {
|
|
150
|
-
generatedResponsePart: GeneratedResponsePartFilterSensitiveLog(obj.generatedResponsePart),
|
|
151
|
-
}),
|
|
152
|
-
...(obj.retrievedReferences && {
|
|
153
|
-
retrievedReferences: obj.retrievedReferences.map((item) => RetrievedReferenceFilterSensitiveLog(item)),
|
|
154
|
-
}),
|
|
155
|
-
});
|
|
156
|
-
export const RetrieveAndGenerateOutputEventFilterSensitiveLog = (obj) => ({
|
|
157
|
-
...obj,
|
|
158
|
-
});
|
|
159
|
-
export const RetrieveAndGenerateStreamResponseOutputFilterSensitiveLog = (obj) => {
|
|
160
|
-
if (obj.output !== undefined)
|
|
161
|
-
return { output: SENSITIVE_STRING };
|
|
162
|
-
if (obj.citation !== undefined)
|
|
163
|
-
return { citation: CitationEventFilterSensitiveLog(obj.citation) };
|
|
164
|
-
if (obj.guardrail !== undefined)
|
|
165
|
-
return { guardrail: obj.guardrail };
|
|
166
|
-
if (obj.internalServerException !== undefined)
|
|
167
|
-
return { internalServerException: obj.internalServerException };
|
|
168
|
-
if (obj.validationException !== undefined)
|
|
169
|
-
return { validationException: obj.validationException };
|
|
170
|
-
if (obj.resourceNotFoundException !== undefined)
|
|
171
|
-
return { resourceNotFoundException: obj.resourceNotFoundException };
|
|
172
|
-
if (obj.serviceQuotaExceededException !== undefined)
|
|
173
|
-
return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
|
|
174
|
-
if (obj.throttlingException !== undefined)
|
|
175
|
-
return { throttlingException: obj.throttlingException };
|
|
176
|
-
if (obj.accessDeniedException !== undefined)
|
|
177
|
-
return { accessDeniedException: obj.accessDeniedException };
|
|
178
|
-
if (obj.conflictException !== undefined)
|
|
179
|
-
return { conflictException: obj.conflictException };
|
|
180
|
-
if (obj.dependencyFailedException !== undefined)
|
|
181
|
-
return { dependencyFailedException: obj.dependencyFailedException };
|
|
182
|
-
if (obj.badGatewayException !== undefined)
|
|
183
|
-
return { badGatewayException: obj.badGatewayException };
|
|
184
|
-
if (obj.$unknown !== undefined)
|
|
185
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
186
|
-
};
|
|
187
|
-
export const RetrieveAndGenerateStreamResponseFilterSensitiveLog = (obj) => ({
|
|
188
|
-
...obj,
|
|
189
|
-
...(obj.stream && { stream: "STREAMING_CONTENT" }),
|
|
190
|
-
});
|
|
191
|
-
export const KnowledgeBaseQueryFilterSensitiveLog = (obj) => ({
|
|
192
|
-
...obj,
|
|
193
|
-
});
|
|
194
|
-
export const KnowledgeBaseRetrievalResultFilterSensitiveLog = (obj) => ({
|
|
195
|
-
...obj,
|
|
196
|
-
...(obj.content && { content: SENSITIVE_STRING }),
|
|
197
|
-
...(obj.location && { location: SENSITIVE_STRING }),
|
|
198
|
-
...(obj.metadata && { metadata: SENSITIVE_STRING }),
|
|
199
|
-
});
|
|
200
|
-
export const RetrieveResponseFilterSensitiveLog = (obj) => ({
|
|
201
|
-
...obj,
|
|
202
|
-
...(obj.retrievalResults && { retrievalResults: SENSITIVE_STRING }),
|
|
203
|
-
});
|
|
204
|
-
export const BedrockSessionContentBlockFilterSensitiveLog = (obj) => {
|
|
205
|
-
if (obj.text !== undefined)
|
|
206
|
-
return { text: obj.text };
|
|
207
|
-
if (obj.image !== undefined)
|
|
208
|
-
return { image: obj.image };
|
|
209
|
-
if (obj.$unknown !== undefined)
|
|
210
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
211
|
-
};
|
|
212
|
-
export const InvocationStepPayloadFilterSensitiveLog = (obj) => {
|
|
213
|
-
if (obj.contentBlocks !== undefined)
|
|
214
|
-
return { contentBlocks: SENSITIVE_STRING };
|
|
215
|
-
if (obj.$unknown !== undefined)
|
|
216
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
217
|
-
};
|
|
218
|
-
export const InvocationStepFilterSensitiveLog = (obj) => ({
|
|
219
|
-
...obj,
|
|
220
|
-
...(obj.payload && { payload: InvocationStepPayloadFilterSensitiveLog(obj.payload) }),
|
|
221
|
-
});
|
|
222
|
-
export const GetInvocationStepResponseFilterSensitiveLog = (obj) => ({
|
|
223
|
-
...obj,
|
|
224
|
-
...(obj.invocationStep && { invocationStep: InvocationStepFilterSensitiveLog(obj.invocationStep) }),
|
|
225
|
-
});
|
|
226
|
-
export const PutInvocationStepRequestFilterSensitiveLog = (obj) => ({
|
|
227
|
-
...obj,
|
|
228
|
-
...(obj.payload && { payload: InvocationStepPayloadFilterSensitiveLog(obj.payload) }),
|
|
229
|
-
});
|
|
230
|
-
export const RetrievalFilterFilterSensitiveLog = (obj) => {
|
|
231
|
-
if (obj.equals !== undefined)
|
|
232
|
-
return { equals: obj.equals };
|
|
233
|
-
if (obj.notEquals !== undefined)
|
|
234
|
-
return { notEquals: obj.notEquals };
|
|
235
|
-
if (obj.greaterThan !== undefined)
|
|
236
|
-
return { greaterThan: obj.greaterThan };
|
|
237
|
-
if (obj.greaterThanOrEquals !== undefined)
|
|
238
|
-
return { greaterThanOrEquals: obj.greaterThanOrEquals };
|
|
239
|
-
if (obj.lessThan !== undefined)
|
|
240
|
-
return { lessThan: obj.lessThan };
|
|
241
|
-
if (obj.lessThanOrEquals !== undefined)
|
|
242
|
-
return { lessThanOrEquals: obj.lessThanOrEquals };
|
|
243
|
-
if (obj.in !== undefined)
|
|
244
|
-
return { in: obj.in };
|
|
245
|
-
if (obj.notIn !== undefined)
|
|
246
|
-
return { notIn: obj.notIn };
|
|
247
|
-
if (obj.startsWith !== undefined)
|
|
248
|
-
return { startsWith: obj.startsWith };
|
|
249
|
-
if (obj.listContains !== undefined)
|
|
250
|
-
return { listContains: obj.listContains };
|
|
251
|
-
if (obj.stringContains !== undefined)
|
|
252
|
-
return { stringContains: obj.stringContains };
|
|
253
|
-
if (obj.andAll !== undefined)
|
|
254
|
-
return { andAll: SENSITIVE_STRING };
|
|
255
|
-
if (obj.orAll !== undefined)
|
|
256
|
-
return { orAll: SENSITIVE_STRING };
|
|
257
|
-
if (obj.$unknown !== undefined)
|
|
258
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
259
|
-
};
|
|
260
|
-
export const KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog = (obj) => ({
|
|
261
|
-
...obj,
|
|
262
|
-
...(obj.filter && { filter: SENSITIVE_STRING }),
|
|
263
|
-
...(obj.rerankingConfiguration && {
|
|
264
|
-
rerankingConfiguration: VectorSearchRerankingConfigurationFilterSensitiveLog(obj.rerankingConfiguration),
|
|
265
|
-
}),
|
|
266
|
-
...(obj.implicitFilterConfiguration && {
|
|
267
|
-
implicitFilterConfiguration: ImplicitFilterConfigurationFilterSensitiveLog(obj.implicitFilterConfiguration),
|
|
268
|
-
}),
|
|
269
|
-
});
|
|
270
|
-
export const KnowledgeBaseRetrievalConfigurationFilterSensitiveLog = (obj) => ({
|
|
271
|
-
...obj,
|
|
272
|
-
...(obj.vectorSearchConfiguration && {
|
|
273
|
-
vectorSearchConfiguration: KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog(obj.vectorSearchConfiguration),
|
|
274
|
-
}),
|
|
275
|
-
});
|
|
276
|
-
export const KnowledgeBaseFilterSensitiveLog = (obj) => ({
|
|
277
|
-
...obj,
|
|
278
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
279
|
-
...(obj.retrievalConfiguration && {
|
|
280
|
-
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration),
|
|
281
|
-
}),
|
|
282
|
-
});
|
|
283
|
-
export const KnowledgeBaseConfigurationFilterSensitiveLog = (obj) => ({
|
|
284
|
-
...obj,
|
|
285
|
-
...(obj.retrievalConfiguration && {
|
|
286
|
-
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration),
|
|
287
|
-
}),
|
|
288
|
-
});
|
|
289
|
-
export const KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog = (obj) => ({
|
|
290
|
-
...obj,
|
|
291
|
-
...(obj.retrievalConfiguration && {
|
|
292
|
-
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration),
|
|
293
|
-
}),
|
|
294
|
-
...(obj.generationConfiguration && {
|
|
295
|
-
generationConfiguration: GenerationConfigurationFilterSensitiveLog(obj.generationConfiguration),
|
|
296
|
-
}),
|
|
297
|
-
...(obj.orchestrationConfiguration && {
|
|
298
|
-
orchestrationConfiguration: OrchestrationConfigurationFilterSensitiveLog(obj.orchestrationConfiguration),
|
|
299
|
-
}),
|
|
300
|
-
});
|
|
301
|
-
export const RetrieveRequestFilterSensitiveLog = (obj) => ({
|
|
302
|
-
...obj,
|
|
303
|
-
...(obj.retrievalQuery && { retrievalQuery: SENSITIVE_STRING }),
|
|
304
|
-
...(obj.retrievalConfiguration && {
|
|
305
|
-
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration),
|
|
306
|
-
}),
|
|
307
|
-
});
|
|
308
|
-
export const RetrieveAndGenerateConfigurationFilterSensitiveLog = (obj) => ({
|
|
309
|
-
...obj,
|
|
310
|
-
...(obj.knowledgeBaseConfiguration && {
|
|
311
|
-
knowledgeBaseConfiguration: KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration),
|
|
312
|
-
}),
|
|
313
|
-
...(obj.externalSourcesConfiguration && {
|
|
314
|
-
externalSourcesConfiguration: ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog(obj.externalSourcesConfiguration),
|
|
315
|
-
}),
|
|
316
|
-
});
|
|
317
|
-
export const CollaboratorFilterSensitiveLog = (obj) => ({
|
|
318
|
-
...obj,
|
|
319
|
-
...(obj.instruction && { instruction: SENSITIVE_STRING }),
|
|
320
|
-
...(obj.actionGroups && { actionGroups: obj.actionGroups.map((item) => AgentActionGroupFilterSensitiveLog(item)) }),
|
|
321
|
-
...(obj.knowledgeBases && {
|
|
322
|
-
knowledgeBases: obj.knowledgeBases.map((item) => KnowledgeBaseFilterSensitiveLog(item)),
|
|
323
|
-
}),
|
|
324
|
-
...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: SENSITIVE_STRING }),
|
|
325
|
-
...(obj.collaboratorConfigurations && {
|
|
326
|
-
collaboratorConfigurations: obj.collaboratorConfigurations.map((item) => CollaboratorConfigurationFilterSensitiveLog(item)),
|
|
327
|
-
}),
|
|
328
|
-
...(obj.agentName && { agentName: SENSITIVE_STRING }),
|
|
329
|
-
});
|
|
330
|
-
export const RetrieveAndGenerateRequestFilterSensitiveLog = (obj) => ({
|
|
331
|
-
...obj,
|
|
332
|
-
...(obj.input && { input: SENSITIVE_STRING }),
|
|
333
|
-
...(obj.retrieveAndGenerateConfiguration && {
|
|
334
|
-
retrieveAndGenerateConfiguration: RetrieveAndGenerateConfigurationFilterSensitiveLog(obj.retrieveAndGenerateConfiguration),
|
|
335
|
-
}),
|
|
336
|
-
});
|
|
337
|
-
export const RetrieveAndGenerateStreamRequestFilterSensitiveLog = (obj) => ({
|
|
338
|
-
...obj,
|
|
339
|
-
...(obj.input && { input: SENSITIVE_STRING }),
|
|
340
|
-
...(obj.retrieveAndGenerateConfiguration && {
|
|
341
|
-
retrieveAndGenerateConfiguration: RetrieveAndGenerateConfigurationFilterSensitiveLog(obj.retrieveAndGenerateConfiguration),
|
|
342
|
-
}),
|
|
343
|
-
});
|
|
344
|
-
export const SessionStateFilterSensitiveLog = (obj) => ({
|
|
345
|
-
...obj,
|
|
346
|
-
...(obj.returnControlInvocationResults && {
|
|
347
|
-
returnControlInvocationResults: obj.returnControlInvocationResults.map((item) => InvocationResultMemberFilterSensitiveLog(item)),
|
|
348
|
-
}),
|
|
349
|
-
...(obj.files && { files: obj.files.map((item) => InputFileFilterSensitiveLog(item)) }),
|
|
350
|
-
...(obj.knowledgeBaseConfigurations && {
|
|
351
|
-
knowledgeBaseConfigurations: obj.knowledgeBaseConfigurations.map((item) => KnowledgeBaseConfigurationFilterSensitiveLog(item)),
|
|
352
|
-
}),
|
|
353
|
-
...(obj.conversationHistory && {
|
|
354
|
-
conversationHistory: ConversationHistoryFilterSensitiveLog(obj.conversationHistory),
|
|
355
|
-
}),
|
|
356
|
-
});
|
|
357
|
-
export const InvokeAgentRequestFilterSensitiveLog = (obj) => ({
|
|
358
|
-
...obj,
|
|
359
|
-
...(obj.sessionState && { sessionState: SessionStateFilterSensitiveLog(obj.sessionState) }),
|
|
360
|
-
...(obj.inputText && { inputText: SENSITIVE_STRING }),
|
|
361
|
-
});
|
|
362
|
-
export const InvokeInlineAgentRequestFilterSensitiveLog = (obj) => ({
|
|
363
|
-
...obj,
|
|
364
|
-
...(obj.instruction && { instruction: SENSITIVE_STRING }),
|
|
365
|
-
...(obj.actionGroups && { actionGroups: obj.actionGroups.map((item) => AgentActionGroupFilterSensitiveLog(item)) }),
|
|
366
|
-
...(obj.knowledgeBases && {
|
|
367
|
-
knowledgeBases: obj.knowledgeBases.map((item) => KnowledgeBaseFilterSensitiveLog(item)),
|
|
368
|
-
}),
|
|
369
|
-
...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: SENSITIVE_STRING }),
|
|
370
|
-
...(obj.collaboratorConfigurations && {
|
|
371
|
-
collaboratorConfigurations: obj.collaboratorConfigurations.map((item) => CollaboratorConfigurationFilterSensitiveLog(item)),
|
|
372
|
-
}),
|
|
373
|
-
...(obj.agentName && { agentName: SENSITIVE_STRING }),
|
|
374
|
-
...(obj.inputText && { inputText: SENSITIVE_STRING }),
|
|
375
|
-
...(obj.inlineSessionState && { inlineSessionState: InlineSessionStateFilterSensitiveLog(obj.inlineSessionState) }),
|
|
376
|
-
...(obj.collaborators && { collaborators: obj.collaborators.map((item) => CollaboratorFilterSensitiveLog(item)) }),
|
|
377
|
-
...(obj.customOrchestration && { customOrchestration: obj.customOrchestration }),
|
|
378
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.bedrockagentruntime" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "Bedrock Agent Runtime",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|