@aws-sdk/client-bedrock-agent-runtime 3.751.0 → 3.758.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/README.md +119 -7
- package/dist-cjs/index.js +1009 -55
- package/dist-es/BedrockAgentRuntime.js +28 -0
- package/dist-es/commands/CreateInvocationCommand.js +22 -0
- package/dist-es/commands/CreateSessionCommand.js +22 -0
- package/dist-es/commands/DeleteSessionCommand.js +22 -0
- package/dist-es/commands/EndSessionCommand.js +22 -0
- package/dist-es/commands/GetInvocationStepCommand.js +23 -0
- package/dist-es/commands/GetSessionCommand.js +22 -0
- package/dist-es/commands/InvokeAgentCommand.js +2 -1
- package/dist-es/commands/InvokeInlineAgentCommand.js +2 -1
- package/dist-es/commands/ListInvocationStepsCommand.js +22 -0
- package/dist-es/commands/ListInvocationsCommand.js +22 -0
- package/dist-es/commands/ListSessionsCommand.js +22 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
- package/dist-es/commands/PutInvocationStepCommand.js +23 -0
- package/dist-es/commands/RetrieveAndGenerateCommand.js +2 -1
- package/dist-es/commands/RetrieveAndGenerateStreamCommand.js +2 -1
- package/dist-es/commands/RetrieveCommand.js +2 -1
- package/dist-es/commands/TagResourceCommand.js +22 -0
- package/dist-es/commands/UntagResourceCommand.js +22 -0
- package/dist-es/commands/UpdateSessionCommand.js +22 -0
- package/dist-es/commands/index.js +14 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +78 -151
- package/dist-es/models/models_1.js +164 -0
- package/dist-es/pagination/ListInvocationStepsPaginator.js +4 -0
- package/dist-es/pagination/ListInvocationsPaginator.js +4 -0
- package/dist-es/pagination/ListSessionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +574 -11
- package/dist-types/BedrockAgentRuntime.d.ts +100 -0
- package/dist-types/BedrockAgentRuntimeClient.d.ts +16 -2
- package/dist-types/commands/CreateInvocationCommand.d.ts +115 -0
- package/dist-types/commands/CreateSessionCommand.d.ts +133 -0
- package/dist-types/commands/DeleteSessionCommand.d.ts +89 -0
- package/dist-types/commands/EndSessionCommand.d.ts +93 -0
- package/dist-types/commands/GetInvocationStepCommand.d.ts +109 -0
- package/dist-types/commands/GetSessionCommand.d.ts +94 -0
- package/dist-types/commands/InvokeAgentCommand.d.ts +23 -1
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +23 -1
- package/dist-types/commands/ListInvocationStepsCommand.d.ts +97 -0
- package/dist-types/commands/ListInvocationsCommand.d.ts +95 -0
- package/dist-types/commands/ListSessionsCommand.d.ts +93 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +88 -0
- package/dist-types/commands/PutInvocationStepCommand.d.ts +134 -0
- package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +2 -1
- package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -1
- package/dist-types/commands/RetrieveCommand.d.ts +2 -1
- package/dist-types/commands/TagResourceCommand.d.ts +90 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
- package/dist-types/commands/UpdateSessionCommand.d.ts +96 -0
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +582 -635
- package/dist-types/models/models_1.d.ts +919 -0
- package/dist-types/pagination/ListInvocationStepsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListInvocationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
- package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +240 -0
- package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +86 -2
- package/dist-types/ts3.4/commands/CreateInvocationCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/EndSessionCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetInvocationStepCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/InvokeAgentCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/InvokeInlineAgentCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListInvocationStepsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListInvocationsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PutInvocationStepCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RetrieveAndGenerateCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateSessionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +262 -365
- package/dist-types/ts3.4/models/models_1.d.ts +416 -0
- package/dist-types/ts3.4/pagination/ListInvocationStepsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListInvocationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
- package/package.json +12 -12
package/dist-cjs/index.js
CHANGED
|
@@ -43,6 +43,8 @@ __export(src_exports, {
|
|
|
43
43
|
BedrockAgentRuntime: () => BedrockAgentRuntime,
|
|
44
44
|
BedrockAgentRuntimeClient: () => BedrockAgentRuntimeClient,
|
|
45
45
|
BedrockAgentRuntimeServiceException: () => BedrockAgentRuntimeServiceException,
|
|
46
|
+
BedrockSessionContentBlock: () => BedrockSessionContentBlock,
|
|
47
|
+
BedrockSessionContentBlockFilterSensitiveLog: () => BedrockSessionContentBlockFilterSensitiveLog,
|
|
46
48
|
ByteContentDocFilterSensitiveLog: () => ByteContentDocFilterSensitiveLog,
|
|
47
49
|
ByteContentFileFilterSensitiveLog: () => ByteContentFileFilterSensitiveLog,
|
|
48
50
|
Caller: () => Caller,
|
|
@@ -54,12 +56,16 @@ __export(src_exports, {
|
|
|
54
56
|
ContentBlockFilterSensitiveLog: () => ContentBlockFilterSensitiveLog,
|
|
55
57
|
ConversationHistoryFilterSensitiveLog: () => ConversationHistoryFilterSensitiveLog,
|
|
56
58
|
ConversationRole: () => ConversationRole,
|
|
59
|
+
CreateInvocationCommand: () => CreateInvocationCommand,
|
|
60
|
+
CreateSessionCommand: () => CreateSessionCommand,
|
|
57
61
|
CreationMode: () => CreationMode,
|
|
58
62
|
CustomControlMethod: () => CustomControlMethod,
|
|
59
63
|
CustomOrchestrationTraceEventFilterSensitiveLog: () => CustomOrchestrationTraceEventFilterSensitiveLog,
|
|
60
64
|
CustomOrchestrationTraceFilterSensitiveLog: () => CustomOrchestrationTraceFilterSensitiveLog,
|
|
61
65
|
DeleteAgentMemoryCommand: () => DeleteAgentMemoryCommand,
|
|
66
|
+
DeleteSessionCommand: () => DeleteSessionCommand,
|
|
62
67
|
DependencyFailedException: () => DependencyFailedException,
|
|
68
|
+
EndSessionCommand: () => EndSessionCommand,
|
|
63
69
|
ExecutionType: () => ExecutionType,
|
|
64
70
|
ExternalSourceFilterSensitiveLog: () => ExternalSourceFilterSensitiveLog,
|
|
65
71
|
ExternalSourceType: () => ExternalSourceType,
|
|
@@ -106,6 +112,9 @@ __export(src_exports, {
|
|
|
106
112
|
GeneratedResponsePartFilterSensitiveLog: () => GeneratedResponsePartFilterSensitiveLog,
|
|
107
113
|
GenerationConfigurationFilterSensitiveLog: () => GenerationConfigurationFilterSensitiveLog,
|
|
108
114
|
GetAgentMemoryCommand: () => GetAgentMemoryCommand,
|
|
115
|
+
GetInvocationStepCommand: () => GetInvocationStepCommand,
|
|
116
|
+
GetInvocationStepResponseFilterSensitiveLog: () => GetInvocationStepResponseFilterSensitiveLog,
|
|
117
|
+
GetSessionCommand: () => GetSessionCommand,
|
|
109
118
|
GuadrailAction: () => GuadrailAction,
|
|
110
119
|
GuardrailAction: () => GuardrailAction,
|
|
111
120
|
GuardrailAssessmentFilterSensitiveLog: () => GuardrailAssessmentFilterSensitiveLog,
|
|
@@ -129,6 +138,8 @@ __export(src_exports, {
|
|
|
129
138
|
GuardrailTraceFilterSensitiveLog: () => GuardrailTraceFilterSensitiveLog,
|
|
130
139
|
GuardrailWordPolicyAction: () => GuardrailWordPolicyAction,
|
|
131
140
|
GuardrailWordPolicyAssessmentFilterSensitiveLog: () => GuardrailWordPolicyAssessmentFilterSensitiveLog,
|
|
141
|
+
ImageFormat: () => ImageFormat,
|
|
142
|
+
ImageSource: () => ImageSource,
|
|
132
143
|
ImplicitFilterConfigurationFilterSensitiveLog: () => ImplicitFilterConfigurationFilterSensitiveLog,
|
|
133
144
|
InlineAgentFilePartFilterSensitiveLog: () => InlineAgentFilePartFilterSensitiveLog,
|
|
134
145
|
InlineAgentPayloadPartFilterSensitiveLog: () => InlineAgentPayloadPartFilterSensitiveLog,
|
|
@@ -147,6 +158,9 @@ __export(src_exports, {
|
|
|
147
158
|
InvocationInputMemberFilterSensitiveLog: () => InvocationInputMemberFilterSensitiveLog,
|
|
148
159
|
InvocationResultMember: () => InvocationResultMember,
|
|
149
160
|
InvocationResultMemberFilterSensitiveLog: () => InvocationResultMemberFilterSensitiveLog,
|
|
161
|
+
InvocationStepFilterSensitiveLog: () => InvocationStepFilterSensitiveLog,
|
|
162
|
+
InvocationStepPayload: () => InvocationStepPayload,
|
|
163
|
+
InvocationStepPayloadFilterSensitiveLog: () => InvocationStepPayloadFilterSensitiveLog,
|
|
150
164
|
InvocationType: () => InvocationType,
|
|
151
165
|
InvokeAgentCommand: () => InvokeAgentCommand,
|
|
152
166
|
InvokeAgentRequestFilterSensitiveLog: () => InvokeAgentRequestFilterSensitiveLog,
|
|
@@ -166,6 +180,10 @@ __export(src_exports, {
|
|
|
166
180
|
KnowledgeBaseRetrievalResultFilterSensitiveLog: () => KnowledgeBaseRetrievalResultFilterSensitiveLog,
|
|
167
181
|
KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog: () => KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
168
182
|
KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog: () => KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog,
|
|
183
|
+
ListInvocationStepsCommand: () => ListInvocationStepsCommand,
|
|
184
|
+
ListInvocationsCommand: () => ListInvocationsCommand,
|
|
185
|
+
ListSessionsCommand: () => ListSessionsCommand,
|
|
186
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
169
187
|
Memory: () => Memory,
|
|
170
188
|
MemoryType: () => MemoryType,
|
|
171
189
|
MessageFilterSensitiveLog: () => MessageFilterSensitiveLog,
|
|
@@ -206,11 +224,16 @@ __export(src_exports, {
|
|
|
206
224
|
PromptState: () => PromptState,
|
|
207
225
|
PromptTemplateFilterSensitiveLog: () => PromptTemplateFilterSensitiveLog,
|
|
208
226
|
PromptType: () => PromptType,
|
|
227
|
+
PutInvocationStepCommand: () => PutInvocationStepCommand,
|
|
228
|
+
PutInvocationStepRequestFilterSensitiveLog: () => PutInvocationStepRequestFilterSensitiveLog,
|
|
209
229
|
QueryGenerationInputFilterSensitiveLog: () => QueryGenerationInputFilterSensitiveLog,
|
|
210
230
|
QueryTransformationMode: () => QueryTransformationMode,
|
|
211
231
|
QueryTransformationType: () => QueryTransformationType,
|
|
212
232
|
RationaleFilterSensitiveLog: () => RationaleFilterSensitiveLog,
|
|
213
233
|
RawResponseFilterSensitiveLog: () => RawResponseFilterSensitiveLog,
|
|
234
|
+
ReasoningContentBlock: () => ReasoningContentBlock,
|
|
235
|
+
ReasoningContentBlockFilterSensitiveLog: () => ReasoningContentBlockFilterSensitiveLog,
|
|
236
|
+
ReasoningTextBlockFilterSensitiveLog: () => ReasoningTextBlockFilterSensitiveLog,
|
|
214
237
|
RepromptResponseFilterSensitiveLog: () => RepromptResponseFilterSensitiveLog,
|
|
215
238
|
RequireConfirmation: () => RequireConfirmation,
|
|
216
239
|
RerankCommand: () => RerankCommand,
|
|
@@ -265,7 +288,9 @@ __export(src_exports, {
|
|
|
265
288
|
SearchType: () => SearchType,
|
|
266
289
|
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
267
290
|
SessionStateFilterSensitiveLog: () => SessionStateFilterSensitiveLog,
|
|
291
|
+
SessionStatus: () => SessionStatus,
|
|
268
292
|
Source: () => Source,
|
|
293
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
269
294
|
TextPromptFilterSensitiveLog: () => TextPromptFilterSensitiveLog,
|
|
270
295
|
TextResponsePartFilterSensitiveLog: () => TextResponsePartFilterSensitiveLog,
|
|
271
296
|
TextToSqlConfigurationType: () => TextToSqlConfigurationType,
|
|
@@ -274,6 +299,8 @@ __export(src_exports, {
|
|
|
274
299
|
TraceFilterSensitiveLog: () => TraceFilterSensitiveLog,
|
|
275
300
|
TracePartFilterSensitiveLog: () => TracePartFilterSensitiveLog,
|
|
276
301
|
Type: () => Type,
|
|
302
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
303
|
+
UpdateSessionCommand: () => UpdateSessionCommand,
|
|
277
304
|
UsageFilterSensitiveLog: () => UsageFilterSensitiveLog,
|
|
278
305
|
ValidationException: () => ValidationException,
|
|
279
306
|
VectorSearchBedrockRerankingConfigurationFilterSensitiveLog: () => VectorSearchBedrockRerankingConfigurationFilterSensitiveLog,
|
|
@@ -281,6 +308,9 @@ __export(src_exports, {
|
|
|
281
308
|
VectorSearchRerankingConfigurationType: () => VectorSearchRerankingConfigurationType,
|
|
282
309
|
__Client: () => import_smithy_client.Client,
|
|
283
310
|
paginateGetAgentMemory: () => paginateGetAgentMemory,
|
|
311
|
+
paginateListInvocationSteps: () => paginateListInvocationSteps,
|
|
312
|
+
paginateListInvocations: () => paginateListInvocations,
|
|
313
|
+
paginateListSessions: () => paginateListSessions,
|
|
284
314
|
paginateRerank: () => paginateRerank,
|
|
285
315
|
paginateRetrieve: () => paginateRetrieve
|
|
286
316
|
});
|
|
@@ -433,7 +463,7 @@ var BedrockAgentRuntimeClient = class extends import_smithy_client.Client {
|
|
|
433
463
|
// src/BedrockAgentRuntime.ts
|
|
434
464
|
|
|
435
465
|
|
|
436
|
-
// src/commands/
|
|
466
|
+
// src/commands/CreateInvocationCommand.ts
|
|
437
467
|
|
|
438
468
|
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
439
469
|
|
|
@@ -542,8 +572,8 @@ var ResponseState = {
|
|
|
542
572
|
REPROMPT: "REPROMPT"
|
|
543
573
|
};
|
|
544
574
|
var InvocationResultMember;
|
|
545
|
-
((
|
|
546
|
-
|
|
575
|
+
((InvocationResultMember4) => {
|
|
576
|
+
InvocationResultMember4.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
547
577
|
if (value.apiResult !== void 0)
|
|
548
578
|
return visitor.apiResult(value.apiResult);
|
|
549
579
|
if (value.functionResult !== void 0)
|
|
@@ -1024,6 +1054,16 @@ var PromptType = {
|
|
|
1024
1054
|
PRE_PROCESSING: "PRE_PROCESSING",
|
|
1025
1055
|
ROUTING_CLASSIFIER: "ROUTING_CLASSIFIER"
|
|
1026
1056
|
};
|
|
1057
|
+
var ReasoningContentBlock;
|
|
1058
|
+
((ReasoningContentBlock3) => {
|
|
1059
|
+
ReasoningContentBlock3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1060
|
+
if (value.reasoningText !== void 0)
|
|
1061
|
+
return visitor.reasoningText(value.reasoningText);
|
|
1062
|
+
if (value.redactedContent !== void 0)
|
|
1063
|
+
return visitor.redactedContent(value.redactedContent);
|
|
1064
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1065
|
+
}, "visit");
|
|
1066
|
+
})(ReasoningContentBlock || (ReasoningContentBlock = {}));
|
|
1027
1067
|
var Source = {
|
|
1028
1068
|
ACTION_GROUP: "ACTION_GROUP",
|
|
1029
1069
|
KNOWLEDGE_BASE: "KNOWLEDGE_BASE",
|
|
@@ -1284,38 +1324,45 @@ var RetrieveAndGenerateStreamResponseOutput;
|
|
|
1284
1324
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1285
1325
|
}, "visit");
|
|
1286
1326
|
})(RetrieveAndGenerateStreamResponseOutput || (RetrieveAndGenerateStreamResponseOutput = {}));
|
|
1287
|
-
var
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
return visitor.notIn(value.notIn);
|
|
1306
|
-
if (value.startsWith !== void 0)
|
|
1307
|
-
return visitor.startsWith(value.startsWith);
|
|
1308
|
-
if (value.listContains !== void 0)
|
|
1309
|
-
return visitor.listContains(value.listContains);
|
|
1310
|
-
if (value.stringContains !== void 0)
|
|
1311
|
-
return visitor.stringContains(value.stringContains);
|
|
1312
|
-
if (value.andAll !== void 0)
|
|
1313
|
-
return visitor.andAll(value.andAll);
|
|
1314
|
-
if (value.orAll !== void 0)
|
|
1315
|
-
return visitor.orAll(value.orAll);
|
|
1327
|
+
var SessionStatus = {
|
|
1328
|
+
ACTIVE: "ACTIVE",
|
|
1329
|
+
ENDED: "ENDED",
|
|
1330
|
+
EXPIRED: "EXPIRED"
|
|
1331
|
+
};
|
|
1332
|
+
var ImageFormat = {
|
|
1333
|
+
GIF: "gif",
|
|
1334
|
+
JPEG: "jpeg",
|
|
1335
|
+
PNG: "png",
|
|
1336
|
+
WEBP: "webp"
|
|
1337
|
+
};
|
|
1338
|
+
var ImageSource;
|
|
1339
|
+
((ImageSource2) => {
|
|
1340
|
+
ImageSource2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1341
|
+
if (value.bytes !== void 0)
|
|
1342
|
+
return visitor.bytes(value.bytes);
|
|
1343
|
+
if (value.s3Location !== void 0)
|
|
1344
|
+
return visitor.s3Location(value.s3Location);
|
|
1316
1345
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1317
1346
|
}, "visit");
|
|
1318
|
-
})(
|
|
1347
|
+
})(ImageSource || (ImageSource = {}));
|
|
1348
|
+
var BedrockSessionContentBlock;
|
|
1349
|
+
((BedrockSessionContentBlock2) => {
|
|
1350
|
+
BedrockSessionContentBlock2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1351
|
+
if (value.text !== void 0)
|
|
1352
|
+
return visitor.text(value.text);
|
|
1353
|
+
if (value.image !== void 0)
|
|
1354
|
+
return visitor.image(value.image);
|
|
1355
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1356
|
+
}, "visit");
|
|
1357
|
+
})(BedrockSessionContentBlock || (BedrockSessionContentBlock = {}));
|
|
1358
|
+
var InvocationStepPayload;
|
|
1359
|
+
((InvocationStepPayload2) => {
|
|
1360
|
+
InvocationStepPayload2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1361
|
+
if (value.contentBlocks !== void 0)
|
|
1362
|
+
return visitor.contentBlocks(value.contentBlocks);
|
|
1363
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1364
|
+
}, "visit");
|
|
1365
|
+
})(InvocationStepPayload || (InvocationStepPayload = {}));
|
|
1319
1366
|
var ActionGroupInvocationInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1320
1367
|
...obj,
|
|
1321
1368
|
...obj.actionGroupName && { actionGroupName: import_smithy_client.SENSITIVE_STRING },
|
|
@@ -1736,10 +1783,22 @@ var MetadataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1736
1783
|
var RawResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1737
1784
|
...obj
|
|
1738
1785
|
}), "RawResponseFilterSensitiveLog");
|
|
1786
|
+
var ReasoningTextBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1787
|
+
...obj
|
|
1788
|
+
}), "ReasoningTextBlockFilterSensitiveLog");
|
|
1789
|
+
var ReasoningContentBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1790
|
+
if (obj.reasoningText !== void 0)
|
|
1791
|
+
return { reasoningText: import_smithy_client.SENSITIVE_STRING };
|
|
1792
|
+
if (obj.redactedContent !== void 0)
|
|
1793
|
+
return { redactedContent: obj.redactedContent };
|
|
1794
|
+
if (obj.$unknown !== void 0)
|
|
1795
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1796
|
+
}, "ReasoningContentBlockFilterSensitiveLog");
|
|
1739
1797
|
var OrchestrationModelInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1740
1798
|
...obj,
|
|
1741
1799
|
...obj.rawResponse && { rawResponse: import_smithy_client.SENSITIVE_STRING },
|
|
1742
|
-
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING }
|
|
1800
|
+
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING },
|
|
1801
|
+
...obj.reasoningContent && { reasoningContent: import_smithy_client.SENSITIVE_STRING }
|
|
1743
1802
|
}), "OrchestrationModelInvocationOutputFilterSensitiveLog");
|
|
1744
1803
|
var FinalResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1745
1804
|
...obj,
|
|
@@ -1797,7 +1856,8 @@ var PostProcessingModelInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __na
|
|
|
1797
1856
|
...obj,
|
|
1798
1857
|
...obj.parsedResponse && { parsedResponse: import_smithy_client.SENSITIVE_STRING },
|
|
1799
1858
|
...obj.rawResponse && { rawResponse: import_smithy_client.SENSITIVE_STRING },
|
|
1800
|
-
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING }
|
|
1859
|
+
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING },
|
|
1860
|
+
...obj.reasoningContent && { reasoningContent: import_smithy_client.SENSITIVE_STRING }
|
|
1801
1861
|
}), "PostProcessingModelInvocationOutputFilterSensitiveLog");
|
|
1802
1862
|
var PostProcessingTraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1803
1863
|
if (obj.modelInvocationInput !== void 0)
|
|
@@ -1815,7 +1875,8 @@ var PreProcessingModelInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __nam
|
|
|
1815
1875
|
...obj,
|
|
1816
1876
|
...obj.parsedResponse && { parsedResponse: import_smithy_client.SENSITIVE_STRING },
|
|
1817
1877
|
...obj.rawResponse && { rawResponse: import_smithy_client.SENSITIVE_STRING },
|
|
1818
|
-
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING }
|
|
1878
|
+
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING },
|
|
1879
|
+
...obj.reasoningContent && { reasoningContent: import_smithy_client.SENSITIVE_STRING }
|
|
1819
1880
|
}), "PreProcessingModelInvocationOutputFilterSensitiveLog");
|
|
1820
1881
|
var PreProcessingTraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1821
1882
|
if (obj.modelInvocationInput !== void 0)
|
|
@@ -2153,6 +2214,67 @@ var RetrieveResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
2153
2214
|
...obj,
|
|
2154
2215
|
...obj.retrievalResults && { retrievalResults: import_smithy_client.SENSITIVE_STRING }
|
|
2155
2216
|
}), "RetrieveResponseFilterSensitiveLog");
|
|
2217
|
+
var BedrockSessionContentBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
2218
|
+
if (obj.text !== void 0)
|
|
2219
|
+
return { text: obj.text };
|
|
2220
|
+
if (obj.image !== void 0)
|
|
2221
|
+
return { image: obj.image };
|
|
2222
|
+
if (obj.$unknown !== void 0)
|
|
2223
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
2224
|
+
}, "BedrockSessionContentBlockFilterSensitiveLog");
|
|
2225
|
+
var InvocationStepPayloadFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
2226
|
+
if (obj.contentBlocks !== void 0)
|
|
2227
|
+
return { contentBlocks: import_smithy_client.SENSITIVE_STRING };
|
|
2228
|
+
if (obj.$unknown !== void 0)
|
|
2229
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
2230
|
+
}, "InvocationStepPayloadFilterSensitiveLog");
|
|
2231
|
+
var InvocationStepFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2232
|
+
...obj,
|
|
2233
|
+
...obj.payload && { payload: InvocationStepPayloadFilterSensitiveLog(obj.payload) }
|
|
2234
|
+
}), "InvocationStepFilterSensitiveLog");
|
|
2235
|
+
var GetInvocationStepResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2236
|
+
...obj,
|
|
2237
|
+
...obj.invocationStep && { invocationStep: InvocationStepFilterSensitiveLog(obj.invocationStep) }
|
|
2238
|
+
}), "GetInvocationStepResponseFilterSensitiveLog");
|
|
2239
|
+
var PutInvocationStepRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2240
|
+
...obj,
|
|
2241
|
+
...obj.payload && { payload: InvocationStepPayloadFilterSensitiveLog(obj.payload) }
|
|
2242
|
+
}), "PutInvocationStepRequestFilterSensitiveLog");
|
|
2243
|
+
|
|
2244
|
+
// src/models/models_1.ts
|
|
2245
|
+
|
|
2246
|
+
var RetrievalFilter;
|
|
2247
|
+
((RetrievalFilter2) => {
|
|
2248
|
+
RetrievalFilter2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
2249
|
+
if (value.equals !== void 0)
|
|
2250
|
+
return visitor.equals(value.equals);
|
|
2251
|
+
if (value.notEquals !== void 0)
|
|
2252
|
+
return visitor.notEquals(value.notEquals);
|
|
2253
|
+
if (value.greaterThan !== void 0)
|
|
2254
|
+
return visitor.greaterThan(value.greaterThan);
|
|
2255
|
+
if (value.greaterThanOrEquals !== void 0)
|
|
2256
|
+
return visitor.greaterThanOrEquals(value.greaterThanOrEquals);
|
|
2257
|
+
if (value.lessThan !== void 0)
|
|
2258
|
+
return visitor.lessThan(value.lessThan);
|
|
2259
|
+
if (value.lessThanOrEquals !== void 0)
|
|
2260
|
+
return visitor.lessThanOrEquals(value.lessThanOrEquals);
|
|
2261
|
+
if (value.in !== void 0)
|
|
2262
|
+
return visitor.in(value.in);
|
|
2263
|
+
if (value.notIn !== void 0)
|
|
2264
|
+
return visitor.notIn(value.notIn);
|
|
2265
|
+
if (value.startsWith !== void 0)
|
|
2266
|
+
return visitor.startsWith(value.startsWith);
|
|
2267
|
+
if (value.listContains !== void 0)
|
|
2268
|
+
return visitor.listContains(value.listContains);
|
|
2269
|
+
if (value.stringContains !== void 0)
|
|
2270
|
+
return visitor.stringContains(value.stringContains);
|
|
2271
|
+
if (value.andAll !== void 0)
|
|
2272
|
+
return visitor.andAll(value.andAll);
|
|
2273
|
+
if (value.orAll !== void 0)
|
|
2274
|
+
return visitor.orAll(value.orAll);
|
|
2275
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
2276
|
+
}, "visit");
|
|
2277
|
+
})(RetrievalFilter || (RetrievalFilter = {}));
|
|
2156
2278
|
var RetrievalFilterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
2157
2279
|
if (obj.equals !== void 0)
|
|
2158
2280
|
return { equals: obj.equals };
|
|
@@ -2297,6 +2419,40 @@ var InvokeAgentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
2297
2419
|
}), "InvokeAgentRequestFilterSensitiveLog");
|
|
2298
2420
|
|
|
2299
2421
|
// src/protocols/Aws_restJson1.ts
|
|
2422
|
+
var se_CreateInvocationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2423
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
2424
|
+
const headers = {
|
|
2425
|
+
"content-type": "application/json"
|
|
2426
|
+
};
|
|
2427
|
+
b.bp("/sessions/{sessionIdentifier}/invocations");
|
|
2428
|
+
b.p("sessionIdentifier", () => input.sessionIdentifier, "{sessionIdentifier}", false);
|
|
2429
|
+
let body;
|
|
2430
|
+
body = JSON.stringify(
|
|
2431
|
+
(0, import_smithy_client.take)(input, {
|
|
2432
|
+
description: [],
|
|
2433
|
+
invocationId: []
|
|
2434
|
+
})
|
|
2435
|
+
);
|
|
2436
|
+
b.m("PUT").h(headers).b(body);
|
|
2437
|
+
return b.build();
|
|
2438
|
+
}, "se_CreateInvocationCommand");
|
|
2439
|
+
var se_CreateSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2440
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
2441
|
+
const headers = {
|
|
2442
|
+
"content-type": "application/json"
|
|
2443
|
+
};
|
|
2444
|
+
b.bp("/sessions");
|
|
2445
|
+
let body;
|
|
2446
|
+
body = JSON.stringify(
|
|
2447
|
+
(0, import_smithy_client.take)(input, {
|
|
2448
|
+
encryptionKeyArn: [],
|
|
2449
|
+
sessionMetadata: (_) => (0, import_smithy_client._json)(_),
|
|
2450
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
2451
|
+
})
|
|
2452
|
+
);
|
|
2453
|
+
b.m("PUT").h(headers).b(body);
|
|
2454
|
+
return b.build();
|
|
2455
|
+
}, "se_CreateSessionCommand");
|
|
2300
2456
|
var se_DeleteAgentMemoryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2301
2457
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
2302
2458
|
const headers = {};
|
|
@@ -2311,6 +2467,24 @@ var se_DeleteAgentMemoryCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
2311
2467
|
b.m("DELETE").h(headers).q(query).b(body);
|
|
2312
2468
|
return b.build();
|
|
2313
2469
|
}, "se_DeleteAgentMemoryCommand");
|
|
2470
|
+
var se_DeleteSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2471
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
2472
|
+
const headers = {};
|
|
2473
|
+
b.bp("/sessions/{sessionIdentifier}");
|
|
2474
|
+
b.p("sessionIdentifier", () => input.sessionIdentifier, "{sessionIdentifier}", false);
|
|
2475
|
+
let body;
|
|
2476
|
+
b.m("DELETE").h(headers).b(body);
|
|
2477
|
+
return b.build();
|
|
2478
|
+
}, "se_DeleteSessionCommand");
|
|
2479
|
+
var se_EndSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2480
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
2481
|
+
const headers = {};
|
|
2482
|
+
b.bp("/sessions/{sessionIdentifier}");
|
|
2483
|
+
b.p("sessionIdentifier", () => input.sessionIdentifier, "{sessionIdentifier}", false);
|
|
2484
|
+
let body;
|
|
2485
|
+
b.m("PATCH").h(headers).b(body);
|
|
2486
|
+
return b.build();
|
|
2487
|
+
}, "se_EndSessionCommand");
|
|
2314
2488
|
var se_GenerateQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2315
2489
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
2316
2490
|
const headers = {
|
|
@@ -2343,6 +2517,32 @@ var se_GetAgentMemoryCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
2343
2517
|
b.m("GET").h(headers).q(query).b(body);
|
|
2344
2518
|
return b.build();
|
|
2345
2519
|
}, "se_GetAgentMemoryCommand");
|
|
2520
|
+
var se_GetInvocationStepCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2521
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
2522
|
+
const headers = {
|
|
2523
|
+
"content-type": "application/json"
|
|
2524
|
+
};
|
|
2525
|
+
b.bp("/sessions/{sessionIdentifier}/invocationSteps/{invocationStepId}");
|
|
2526
|
+
b.p("invocationStepId", () => input.invocationStepId, "{invocationStepId}", false);
|
|
2527
|
+
b.p("sessionIdentifier", () => input.sessionIdentifier, "{sessionIdentifier}", false);
|
|
2528
|
+
let body;
|
|
2529
|
+
body = JSON.stringify(
|
|
2530
|
+
(0, import_smithy_client.take)(input, {
|
|
2531
|
+
invocationIdentifier: []
|
|
2532
|
+
})
|
|
2533
|
+
);
|
|
2534
|
+
b.m("POST").h(headers).b(body);
|
|
2535
|
+
return b.build();
|
|
2536
|
+
}, "se_GetInvocationStepCommand");
|
|
2537
|
+
var se_GetSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2538
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
2539
|
+
const headers = {};
|
|
2540
|
+
b.bp("/sessions/{sessionIdentifier}");
|
|
2541
|
+
b.p("sessionIdentifier", () => input.sessionIdentifier, "{sessionIdentifier}", false);
|
|
2542
|
+
let body;
|
|
2543
|
+
b.m("GET").h(headers).b(body);
|
|
2544
|
+
return b.build();
|
|
2545
|
+
}, "se_GetSessionCommand");
|
|
2346
2546
|
var se_InvokeAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2347
2547
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
2348
2548
|
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
|
|
@@ -2417,6 +2617,60 @@ var se_InvokeInlineAgentCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
2417
2617
|
b.m("POST").h(headers).b(body);
|
|
2418
2618
|
return b.build();
|
|
2419
2619
|
}, "se_InvokeInlineAgentCommand");
|
|
2620
|
+
var se_ListInvocationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2621
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
2622
|
+
const headers = {};
|
|
2623
|
+
b.bp("/sessions/{sessionIdentifier}/invocations");
|
|
2624
|
+
b.p("sessionIdentifier", () => input.sessionIdentifier, "{sessionIdentifier}", false);
|
|
2625
|
+
const query = (0, import_smithy_client.map)({
|
|
2626
|
+
[_nT]: [, input[_nT]],
|
|
2627
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
2628
|
+
});
|
|
2629
|
+
let body;
|
|
2630
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
2631
|
+
return b.build();
|
|
2632
|
+
}, "se_ListInvocationsCommand");
|
|
2633
|
+
var se_ListInvocationStepsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2634
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
2635
|
+
const headers = {
|
|
2636
|
+
"content-type": "application/json"
|
|
2637
|
+
};
|
|
2638
|
+
b.bp("/sessions/{sessionIdentifier}/invocationSteps");
|
|
2639
|
+
b.p("sessionIdentifier", () => input.sessionIdentifier, "{sessionIdentifier}", false);
|
|
2640
|
+
const query = (0, import_smithy_client.map)({
|
|
2641
|
+
[_nT]: [, input[_nT]],
|
|
2642
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
2643
|
+
});
|
|
2644
|
+
let body;
|
|
2645
|
+
body = JSON.stringify(
|
|
2646
|
+
(0, import_smithy_client.take)(input, {
|
|
2647
|
+
invocationIdentifier: []
|
|
2648
|
+
})
|
|
2649
|
+
);
|
|
2650
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
2651
|
+
return b.build();
|
|
2652
|
+
}, "se_ListInvocationStepsCommand");
|
|
2653
|
+
var se_ListSessionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2654
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
2655
|
+
const headers = {};
|
|
2656
|
+
b.bp("/sessions");
|
|
2657
|
+
const query = (0, import_smithy_client.map)({
|
|
2658
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
2659
|
+
[_nT]: [, input[_nT]]
|
|
2660
|
+
});
|
|
2661
|
+
let body;
|
|
2662
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
2663
|
+
return b.build();
|
|
2664
|
+
}, "se_ListSessionsCommand");
|
|
2665
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2666
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
2667
|
+
const headers = {};
|
|
2668
|
+
b.bp("/tags/{resourceArn}");
|
|
2669
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
2670
|
+
let body;
|
|
2671
|
+
b.m("GET").h(headers).b(body);
|
|
2672
|
+
return b.build();
|
|
2673
|
+
}, "se_ListTagsForResourceCommand");
|
|
2420
2674
|
var se_OptimizePromptCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2421
2675
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
2422
2676
|
const headers = {
|
|
@@ -2433,6 +2687,25 @@ var se_OptimizePromptCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
2433
2687
|
b.m("POST").h(headers).b(body);
|
|
2434
2688
|
return b.build();
|
|
2435
2689
|
}, "se_OptimizePromptCommand");
|
|
2690
|
+
var se_PutInvocationStepCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2691
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
2692
|
+
const headers = {
|
|
2693
|
+
"content-type": "application/json"
|
|
2694
|
+
};
|
|
2695
|
+
b.bp("/sessions/{sessionIdentifier}/invocationSteps");
|
|
2696
|
+
b.p("sessionIdentifier", () => input.sessionIdentifier, "{sessionIdentifier}", false);
|
|
2697
|
+
let body;
|
|
2698
|
+
body = JSON.stringify(
|
|
2699
|
+
(0, import_smithy_client.take)(input, {
|
|
2700
|
+
invocationIdentifier: [],
|
|
2701
|
+
invocationStepId: [],
|
|
2702
|
+
invocationStepTime: (_) => (0, import_smithy_client.serializeDateTime)(_),
|
|
2703
|
+
payload: (_) => se_InvocationStepPayload(_, context)
|
|
2704
|
+
})
|
|
2705
|
+
);
|
|
2706
|
+
b.m("PUT").h(headers).b(body);
|
|
2707
|
+
return b.build();
|
|
2708
|
+
}, "se_PutInvocationStepCommand");
|
|
2436
2709
|
var se_RerankCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2437
2710
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
2438
2711
|
const headers = {
|
|
@@ -2506,6 +2779,83 @@ var se_RetrieveAndGenerateStreamCommand = /* @__PURE__ */ __name(async (input, c
|
|
|
2506
2779
|
b.m("POST").h(headers).b(body);
|
|
2507
2780
|
return b.build();
|
|
2508
2781
|
}, "se_RetrieveAndGenerateStreamCommand");
|
|
2782
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2783
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
2784
|
+
const headers = {
|
|
2785
|
+
"content-type": "application/json"
|
|
2786
|
+
};
|
|
2787
|
+
b.bp("/tags/{resourceArn}");
|
|
2788
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
2789
|
+
let body;
|
|
2790
|
+
body = JSON.stringify(
|
|
2791
|
+
(0, import_smithy_client.take)(input, {
|
|
2792
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
2793
|
+
})
|
|
2794
|
+
);
|
|
2795
|
+
b.m("POST").h(headers).b(body);
|
|
2796
|
+
return b.build();
|
|
2797
|
+
}, "se_TagResourceCommand");
|
|
2798
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2799
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
2800
|
+
const headers = {};
|
|
2801
|
+
b.bp("/tags/{resourceArn}");
|
|
2802
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
2803
|
+
const query = (0, import_smithy_client.map)({
|
|
2804
|
+
[_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
|
|
2805
|
+
});
|
|
2806
|
+
let body;
|
|
2807
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
2808
|
+
return b.build();
|
|
2809
|
+
}, "se_UntagResourceCommand");
|
|
2810
|
+
var se_UpdateSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2811
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
2812
|
+
const headers = {
|
|
2813
|
+
"content-type": "application/json"
|
|
2814
|
+
};
|
|
2815
|
+
b.bp("/sessions/{sessionIdentifier}");
|
|
2816
|
+
b.p("sessionIdentifier", () => input.sessionIdentifier, "{sessionIdentifier}", false);
|
|
2817
|
+
let body;
|
|
2818
|
+
body = JSON.stringify(
|
|
2819
|
+
(0, import_smithy_client.take)(input, {
|
|
2820
|
+
sessionMetadata: (_) => (0, import_smithy_client._json)(_)
|
|
2821
|
+
})
|
|
2822
|
+
);
|
|
2823
|
+
b.m("PUT").h(headers).b(body);
|
|
2824
|
+
return b.build();
|
|
2825
|
+
}, "se_UpdateSessionCommand");
|
|
2826
|
+
var de_CreateInvocationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2827
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2828
|
+
return de_CommandError(output, context);
|
|
2829
|
+
}
|
|
2830
|
+
const contents = (0, import_smithy_client.map)({
|
|
2831
|
+
$metadata: deserializeMetadata(output)
|
|
2832
|
+
});
|
|
2833
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2834
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2835
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2836
|
+
invocationId: import_smithy_client.expectString,
|
|
2837
|
+
sessionId: import_smithy_client.expectString
|
|
2838
|
+
});
|
|
2839
|
+
Object.assign(contents, doc);
|
|
2840
|
+
return contents;
|
|
2841
|
+
}, "de_CreateInvocationCommand");
|
|
2842
|
+
var de_CreateSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2843
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2844
|
+
return de_CommandError(output, context);
|
|
2845
|
+
}
|
|
2846
|
+
const contents = (0, import_smithy_client.map)({
|
|
2847
|
+
$metadata: deserializeMetadata(output)
|
|
2848
|
+
});
|
|
2849
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2850
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2851
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2852
|
+
sessionArn: import_smithy_client.expectString,
|
|
2853
|
+
sessionId: import_smithy_client.expectString,
|
|
2854
|
+
sessionStatus: import_smithy_client.expectString
|
|
2855
|
+
});
|
|
2856
|
+
Object.assign(contents, doc);
|
|
2857
|
+
return contents;
|
|
2858
|
+
}, "de_CreateSessionCommand");
|
|
2509
2859
|
var de_DeleteAgentMemoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2510
2860
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2511
2861
|
return de_CommandError(output, context);
|
|
@@ -2516,6 +2866,32 @@ var de_DeleteAgentMemoryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2516
2866
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2517
2867
|
return contents;
|
|
2518
2868
|
}, "de_DeleteAgentMemoryCommand");
|
|
2869
|
+
var de_DeleteSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2870
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2871
|
+
return de_CommandError(output, context);
|
|
2872
|
+
}
|
|
2873
|
+
const contents = (0, import_smithy_client.map)({
|
|
2874
|
+
$metadata: deserializeMetadata(output)
|
|
2875
|
+
});
|
|
2876
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2877
|
+
return contents;
|
|
2878
|
+
}, "de_DeleteSessionCommand");
|
|
2879
|
+
var de_EndSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2880
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2881
|
+
return de_CommandError(output, context);
|
|
2882
|
+
}
|
|
2883
|
+
const contents = (0, import_smithy_client.map)({
|
|
2884
|
+
$metadata: deserializeMetadata(output)
|
|
2885
|
+
});
|
|
2886
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2887
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2888
|
+
sessionArn: import_smithy_client.expectString,
|
|
2889
|
+
sessionId: import_smithy_client.expectString,
|
|
2890
|
+
sessionStatus: import_smithy_client.expectString
|
|
2891
|
+
});
|
|
2892
|
+
Object.assign(contents, doc);
|
|
2893
|
+
return contents;
|
|
2894
|
+
}, "de_EndSessionCommand");
|
|
2519
2895
|
var de_GenerateQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2520
2896
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2521
2897
|
return de_CommandError(output, context);
|
|
@@ -2545,20 +2921,54 @@ var de_GetAgentMemoryCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2545
2921
|
Object.assign(contents, doc);
|
|
2546
2922
|
return contents;
|
|
2547
2923
|
}, "de_GetAgentMemoryCommand");
|
|
2548
|
-
var
|
|
2924
|
+
var de_GetInvocationStepCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2549
2925
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2550
2926
|
return de_CommandError(output, context);
|
|
2551
2927
|
}
|
|
2552
2928
|
const contents = (0, import_smithy_client.map)({
|
|
2553
|
-
$metadata: deserializeMetadata(output)
|
|
2554
|
-
[_cT]: [, output.headers[_xabact]],
|
|
2555
|
-
[_sI]: [, output.headers[_xabasi]],
|
|
2556
|
-
[_mI]: [, output.headers[_xabami]]
|
|
2929
|
+
$metadata: deserializeMetadata(output)
|
|
2557
2930
|
});
|
|
2558
|
-
const data = output.body;
|
|
2559
|
-
|
|
2931
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2932
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2933
|
+
invocationStep: (_) => de_InvocationStep(_, context)
|
|
2934
|
+
});
|
|
2935
|
+
Object.assign(contents, doc);
|
|
2560
2936
|
return contents;
|
|
2561
|
-
}, "
|
|
2937
|
+
}, "de_GetInvocationStepCommand");
|
|
2938
|
+
var de_GetSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2939
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2940
|
+
return de_CommandError(output, context);
|
|
2941
|
+
}
|
|
2942
|
+
const contents = (0, import_smithy_client.map)({
|
|
2943
|
+
$metadata: deserializeMetadata(output)
|
|
2944
|
+
});
|
|
2945
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2946
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2947
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2948
|
+
encryptionKeyArn: import_smithy_client.expectString,
|
|
2949
|
+
lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2950
|
+
sessionArn: import_smithy_client.expectString,
|
|
2951
|
+
sessionId: import_smithy_client.expectString,
|
|
2952
|
+
sessionMetadata: import_smithy_client._json,
|
|
2953
|
+
sessionStatus: import_smithy_client.expectString
|
|
2954
|
+
});
|
|
2955
|
+
Object.assign(contents, doc);
|
|
2956
|
+
return contents;
|
|
2957
|
+
}, "de_GetSessionCommand");
|
|
2958
|
+
var de_InvokeAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2959
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2960
|
+
return de_CommandError(output, context);
|
|
2961
|
+
}
|
|
2962
|
+
const contents = (0, import_smithy_client.map)({
|
|
2963
|
+
$metadata: deserializeMetadata(output),
|
|
2964
|
+
[_cT]: [, output.headers[_xabact]],
|
|
2965
|
+
[_sI]: [, output.headers[_xabasi]],
|
|
2966
|
+
[_mI]: [, output.headers[_xabami]]
|
|
2967
|
+
});
|
|
2968
|
+
const data = output.body;
|
|
2969
|
+
contents.completion = de_ResponseStream(data, context);
|
|
2970
|
+
return contents;
|
|
2971
|
+
}, "de_InvokeAgentCommand");
|
|
2562
2972
|
var de_InvokeFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2563
2973
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2564
2974
|
return de_CommandError(output, context);
|
|
@@ -2584,6 +2994,65 @@ var de_InvokeInlineAgentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2584
2994
|
contents.completion = de_InlineAgentResponseStream(data, context);
|
|
2585
2995
|
return contents;
|
|
2586
2996
|
}, "de_InvokeInlineAgentCommand");
|
|
2997
|
+
var de_ListInvocationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2998
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2999
|
+
return de_CommandError(output, context);
|
|
3000
|
+
}
|
|
3001
|
+
const contents = (0, import_smithy_client.map)({
|
|
3002
|
+
$metadata: deserializeMetadata(output)
|
|
3003
|
+
});
|
|
3004
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3005
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
3006
|
+
invocationSummaries: (_) => de_InvocationSummaries(_, context),
|
|
3007
|
+
nextToken: import_smithy_client.expectString
|
|
3008
|
+
});
|
|
3009
|
+
Object.assign(contents, doc);
|
|
3010
|
+
return contents;
|
|
3011
|
+
}, "de_ListInvocationsCommand");
|
|
3012
|
+
var de_ListInvocationStepsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3013
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3014
|
+
return de_CommandError(output, context);
|
|
3015
|
+
}
|
|
3016
|
+
const contents = (0, import_smithy_client.map)({
|
|
3017
|
+
$metadata: deserializeMetadata(output)
|
|
3018
|
+
});
|
|
3019
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3020
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
3021
|
+
invocationStepSummaries: (_) => de_InvocationStepSummaries(_, context),
|
|
3022
|
+
nextToken: import_smithy_client.expectString
|
|
3023
|
+
});
|
|
3024
|
+
Object.assign(contents, doc);
|
|
3025
|
+
return contents;
|
|
3026
|
+
}, "de_ListInvocationStepsCommand");
|
|
3027
|
+
var de_ListSessionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3028
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3029
|
+
return de_CommandError(output, context);
|
|
3030
|
+
}
|
|
3031
|
+
const contents = (0, import_smithy_client.map)({
|
|
3032
|
+
$metadata: deserializeMetadata(output)
|
|
3033
|
+
});
|
|
3034
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3035
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
3036
|
+
nextToken: import_smithy_client.expectString,
|
|
3037
|
+
sessionSummaries: (_) => de_SessionSummaries(_, context)
|
|
3038
|
+
});
|
|
3039
|
+
Object.assign(contents, doc);
|
|
3040
|
+
return contents;
|
|
3041
|
+
}, "de_ListSessionsCommand");
|
|
3042
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3043
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3044
|
+
return de_CommandError(output, context);
|
|
3045
|
+
}
|
|
3046
|
+
const contents = (0, import_smithy_client.map)({
|
|
3047
|
+
$metadata: deserializeMetadata(output)
|
|
3048
|
+
});
|
|
3049
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3050
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
3051
|
+
tags: import_smithy_client._json
|
|
3052
|
+
});
|
|
3053
|
+
Object.assign(contents, doc);
|
|
3054
|
+
return contents;
|
|
3055
|
+
}, "de_ListTagsForResourceCommand");
|
|
2587
3056
|
var de_OptimizePromptCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2588
3057
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2589
3058
|
return de_CommandError(output, context);
|
|
@@ -2595,6 +3064,20 @@ var de_OptimizePromptCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2595
3064
|
contents.optimizedPrompt = de_OptimizedPromptStream(data, context);
|
|
2596
3065
|
return contents;
|
|
2597
3066
|
}, "de_OptimizePromptCommand");
|
|
3067
|
+
var de_PutInvocationStepCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3068
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3069
|
+
return de_CommandError(output, context);
|
|
3070
|
+
}
|
|
3071
|
+
const contents = (0, import_smithy_client.map)({
|
|
3072
|
+
$metadata: deserializeMetadata(output)
|
|
3073
|
+
});
|
|
3074
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3075
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
3076
|
+
invocationStepId: import_smithy_client.expectString
|
|
3077
|
+
});
|
|
3078
|
+
Object.assign(contents, doc);
|
|
3079
|
+
return contents;
|
|
3080
|
+
}, "de_PutInvocationStepCommand");
|
|
2598
3081
|
var de_RerankCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2599
3082
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2600
3083
|
return de_CommandError(output, context);
|
|
@@ -2655,6 +3138,44 @@ var de_RetrieveAndGenerateStreamCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2655
3138
|
contents.stream = de_RetrieveAndGenerateStreamResponseOutput(data, context);
|
|
2656
3139
|
return contents;
|
|
2657
3140
|
}, "de_RetrieveAndGenerateStreamCommand");
|
|
3141
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3142
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3143
|
+
return de_CommandError(output, context);
|
|
3144
|
+
}
|
|
3145
|
+
const contents = (0, import_smithy_client.map)({
|
|
3146
|
+
$metadata: deserializeMetadata(output)
|
|
3147
|
+
});
|
|
3148
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3149
|
+
return contents;
|
|
3150
|
+
}, "de_TagResourceCommand");
|
|
3151
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3152
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3153
|
+
return de_CommandError(output, context);
|
|
3154
|
+
}
|
|
3155
|
+
const contents = (0, import_smithy_client.map)({
|
|
3156
|
+
$metadata: deserializeMetadata(output)
|
|
3157
|
+
});
|
|
3158
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3159
|
+
return contents;
|
|
3160
|
+
}, "de_UntagResourceCommand");
|
|
3161
|
+
var de_UpdateSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3162
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3163
|
+
return de_CommandError(output, context);
|
|
3164
|
+
}
|
|
3165
|
+
const contents = (0, import_smithy_client.map)({
|
|
3166
|
+
$metadata: deserializeMetadata(output)
|
|
3167
|
+
});
|
|
3168
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3169
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
3170
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
3171
|
+
lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
3172
|
+
sessionArn: import_smithy_client.expectString,
|
|
3173
|
+
sessionId: import_smithy_client.expectString,
|
|
3174
|
+
sessionStatus: import_smithy_client.expectString
|
|
3175
|
+
});
|
|
3176
|
+
Object.assign(contents, doc);
|
|
3177
|
+
return contents;
|
|
3178
|
+
}, "de_UpdateSessionCommand");
|
|
2658
3179
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2659
3180
|
const parsedOutput = {
|
|
2660
3181
|
...output,
|
|
@@ -2665,15 +3186,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2665
3186
|
case "AccessDeniedException":
|
|
2666
3187
|
case "com.amazonaws.bedrockagentruntime#AccessDeniedException":
|
|
2667
3188
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2668
|
-
case "BadGatewayException":
|
|
2669
|
-
case "com.amazonaws.bedrockagentruntime#BadGatewayException":
|
|
2670
|
-
throw await de_BadGatewayExceptionRes(parsedOutput, context);
|
|
2671
3189
|
case "ConflictException":
|
|
2672
3190
|
case "com.amazonaws.bedrockagentruntime#ConflictException":
|
|
2673
3191
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2674
|
-
case "DependencyFailedException":
|
|
2675
|
-
case "com.amazonaws.bedrockagentruntime#DependencyFailedException":
|
|
2676
|
-
throw await de_DependencyFailedExceptionRes(parsedOutput, context);
|
|
2677
3192
|
case "InternalServerException":
|
|
2678
3193
|
case "com.amazonaws.bedrockagentruntime#InternalServerException":
|
|
2679
3194
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -2689,6 +3204,12 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2689
3204
|
case "ValidationException":
|
|
2690
3205
|
case "com.amazonaws.bedrockagentruntime#ValidationException":
|
|
2691
3206
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3207
|
+
case "BadGatewayException":
|
|
3208
|
+
case "com.amazonaws.bedrockagentruntime#BadGatewayException":
|
|
3209
|
+
throw await de_BadGatewayExceptionRes(parsedOutput, context);
|
|
3210
|
+
case "DependencyFailedException":
|
|
3211
|
+
case "com.amazonaws.bedrockagentruntime#DependencyFailedException":
|
|
3212
|
+
throw await de_DependencyFailedExceptionRes(parsedOutput, context);
|
|
2692
3213
|
case "ModelNotReadyException":
|
|
2693
3214
|
case "com.amazonaws.bedrockagentruntime#ModelNotReadyException":
|
|
2694
3215
|
throw await de_ModelNotReadyExceptionRes(parsedOutput, context);
|
|
@@ -3398,6 +3919,18 @@ var se_BedrockRerankingModelConfiguration = /* @__PURE__ */ __name((input, conte
|
|
|
3398
3919
|
modelArn: []
|
|
3399
3920
|
});
|
|
3400
3921
|
}, "se_BedrockRerankingModelConfiguration");
|
|
3922
|
+
var se_BedrockSessionContentBlock = /* @__PURE__ */ __name((input, context) => {
|
|
3923
|
+
return BedrockSessionContentBlock.visit(input, {
|
|
3924
|
+
image: (value) => ({ image: se_ImageBlock(value, context) }),
|
|
3925
|
+
text: (value) => ({ text: value }),
|
|
3926
|
+
_: (name, value) => ({ [name]: value })
|
|
3927
|
+
});
|
|
3928
|
+
}, "se_BedrockSessionContentBlock");
|
|
3929
|
+
var se_BedrockSessionContentBlocks = /* @__PURE__ */ __name((input, context) => {
|
|
3930
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
3931
|
+
return se_BedrockSessionContentBlock(entry, context);
|
|
3932
|
+
});
|
|
3933
|
+
}, "se_BedrockSessionContentBlocks");
|
|
3401
3934
|
var se_ByteContentDoc = /* @__PURE__ */ __name((input, context) => {
|
|
3402
3935
|
return (0, import_smithy_client.take)(input, {
|
|
3403
3936
|
contentType: [],
|
|
@@ -3483,6 +4016,19 @@ var se_GenerationConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
|
3483
4016
|
promptTemplate: import_smithy_client._json
|
|
3484
4017
|
});
|
|
3485
4018
|
}, "se_GenerationConfiguration");
|
|
4019
|
+
var se_ImageBlock = /* @__PURE__ */ __name((input, context) => {
|
|
4020
|
+
return (0, import_smithy_client.take)(input, {
|
|
4021
|
+
format: [],
|
|
4022
|
+
source: (_) => se_ImageSource(_, context)
|
|
4023
|
+
});
|
|
4024
|
+
}, "se_ImageBlock");
|
|
4025
|
+
var se_ImageSource = /* @__PURE__ */ __name((input, context) => {
|
|
4026
|
+
return ImageSource.visit(input, {
|
|
4027
|
+
bytes: (value) => ({ bytes: context.base64Encoder(value) }),
|
|
4028
|
+
s3Location: (value) => ({ s3Location: (0, import_smithy_client._json)(value) }),
|
|
4029
|
+
_: (name, value) => ({ [name]: value })
|
|
4030
|
+
});
|
|
4031
|
+
}, "se_ImageSource");
|
|
3486
4032
|
var se_InferenceConfig = /* @__PURE__ */ __name((input, context) => {
|
|
3487
4033
|
return (0, import_smithy_client.take)(input, {
|
|
3488
4034
|
textInferenceConfig: (_) => se_TextInferenceConfig(_, context)
|
|
@@ -3518,6 +4064,12 @@ var se_InputFiles = /* @__PURE__ */ __name((input, context) => {
|
|
|
3518
4064
|
return se_InputFile(entry, context);
|
|
3519
4065
|
});
|
|
3520
4066
|
}, "se_InputFiles");
|
|
4067
|
+
var se_InvocationStepPayload = /* @__PURE__ */ __name((input, context) => {
|
|
4068
|
+
return InvocationStepPayload.visit(input, {
|
|
4069
|
+
contentBlocks: (value) => ({ contentBlocks: se_BedrockSessionContentBlocks(value, context) }),
|
|
4070
|
+
_: (name, value) => ({ [name]: value })
|
|
4071
|
+
});
|
|
4072
|
+
}, "se_InvocationStepPayload");
|
|
3521
4073
|
var se_KnowledgeBase = /* @__PURE__ */ __name((input, context) => {
|
|
3522
4074
|
return (0, import_smithy_client.take)(input, {
|
|
3523
4075
|
description: [],
|
|
@@ -3702,6 +4254,23 @@ var de_Attribution = /* @__PURE__ */ __name((output, context) => {
|
|
|
3702
4254
|
citations: (_) => de_Citations(_, context)
|
|
3703
4255
|
});
|
|
3704
4256
|
}, "de_Attribution");
|
|
4257
|
+
var de_BedrockSessionContentBlock = /* @__PURE__ */ __name((output, context) => {
|
|
4258
|
+
if (output.image != null) {
|
|
4259
|
+
return {
|
|
4260
|
+
image: de_ImageBlock(output.image, context)
|
|
4261
|
+
};
|
|
4262
|
+
}
|
|
4263
|
+
if ((0, import_smithy_client.expectString)(output.text) !== void 0) {
|
|
4264
|
+
return { text: (0, import_smithy_client.expectString)(output.text) };
|
|
4265
|
+
}
|
|
4266
|
+
return { $unknown: Object.entries(output)[0] };
|
|
4267
|
+
}, "de_BedrockSessionContentBlock");
|
|
4268
|
+
var de_BedrockSessionContentBlocks = /* @__PURE__ */ __name((output, context) => {
|
|
4269
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
4270
|
+
return de_BedrockSessionContentBlock((0, import_core2.awsExpectUnion)(entry), context);
|
|
4271
|
+
});
|
|
4272
|
+
return retVal;
|
|
4273
|
+
}, "de_BedrockSessionContentBlocks");
|
|
3705
4274
|
var de_Citation = /* @__PURE__ */ __name((output, context) => {
|
|
3706
4275
|
return (0, import_smithy_client.take)(output, {
|
|
3707
4276
|
generatedResponsePart: import_smithy_client._json,
|
|
@@ -3840,6 +4409,25 @@ var de_FlowTraceNodeOutputFields = /* @__PURE__ */ __name((output, context) => {
|
|
|
3840
4409
|
});
|
|
3841
4410
|
return retVal;
|
|
3842
4411
|
}, "de_FlowTraceNodeOutputFields");
|
|
4412
|
+
var de_ImageBlock = /* @__PURE__ */ __name((output, context) => {
|
|
4413
|
+
return (0, import_smithy_client.take)(output, {
|
|
4414
|
+
format: import_smithy_client.expectString,
|
|
4415
|
+
source: (_) => de_ImageSource((0, import_core2.awsExpectUnion)(_), context)
|
|
4416
|
+
});
|
|
4417
|
+
}, "de_ImageBlock");
|
|
4418
|
+
var de_ImageSource = /* @__PURE__ */ __name((output, context) => {
|
|
4419
|
+
if (output.bytes != null) {
|
|
4420
|
+
return {
|
|
4421
|
+
bytes: context.base64Decoder(output.bytes)
|
|
4422
|
+
};
|
|
4423
|
+
}
|
|
4424
|
+
if (output.s3Location != null) {
|
|
4425
|
+
return {
|
|
4426
|
+
s3Location: (0, import_smithy_client._json)(output.s3Location)
|
|
4427
|
+
};
|
|
4428
|
+
}
|
|
4429
|
+
return { $unknown: Object.entries(output)[0] };
|
|
4430
|
+
}, "de_ImageSource");
|
|
3843
4431
|
var de_InferenceConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
3844
4432
|
return (0, import_smithy_client.take)(output, {
|
|
3845
4433
|
maximumLength: import_smithy_client.expectInt32,
|
|
@@ -3866,6 +4454,50 @@ var de_InlineAgentTracePart = /* @__PURE__ */ __name((output, context) => {
|
|
|
3866
4454
|
trace: (_) => de_Trace((0, import_core2.awsExpectUnion)(_), context)
|
|
3867
4455
|
});
|
|
3868
4456
|
}, "de_InlineAgentTracePart");
|
|
4457
|
+
var de_InvocationStep = /* @__PURE__ */ __name((output, context) => {
|
|
4458
|
+
return (0, import_smithy_client.take)(output, {
|
|
4459
|
+
invocationId: import_smithy_client.expectString,
|
|
4460
|
+
invocationStepId: import_smithy_client.expectString,
|
|
4461
|
+
invocationStepTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
4462
|
+
payload: (_) => de_InvocationStepPayload((0, import_core2.awsExpectUnion)(_), context),
|
|
4463
|
+
sessionId: import_smithy_client.expectString
|
|
4464
|
+
});
|
|
4465
|
+
}, "de_InvocationStep");
|
|
4466
|
+
var de_InvocationStepPayload = /* @__PURE__ */ __name((output, context) => {
|
|
4467
|
+
if (output.contentBlocks != null) {
|
|
4468
|
+
return {
|
|
4469
|
+
contentBlocks: de_BedrockSessionContentBlocks(output.contentBlocks, context)
|
|
4470
|
+
};
|
|
4471
|
+
}
|
|
4472
|
+
return { $unknown: Object.entries(output)[0] };
|
|
4473
|
+
}, "de_InvocationStepPayload");
|
|
4474
|
+
var de_InvocationStepSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
4475
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
4476
|
+
return de_InvocationStepSummary(entry, context);
|
|
4477
|
+
});
|
|
4478
|
+
return retVal;
|
|
4479
|
+
}, "de_InvocationStepSummaries");
|
|
4480
|
+
var de_InvocationStepSummary = /* @__PURE__ */ __name((output, context) => {
|
|
4481
|
+
return (0, import_smithy_client.take)(output, {
|
|
4482
|
+
invocationId: import_smithy_client.expectString,
|
|
4483
|
+
invocationStepId: import_smithy_client.expectString,
|
|
4484
|
+
invocationStepTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
4485
|
+
sessionId: import_smithy_client.expectString
|
|
4486
|
+
});
|
|
4487
|
+
}, "de_InvocationStepSummary");
|
|
4488
|
+
var de_InvocationSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
4489
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
4490
|
+
return de_InvocationSummary(entry, context);
|
|
4491
|
+
});
|
|
4492
|
+
return retVal;
|
|
4493
|
+
}, "de_InvocationSummaries");
|
|
4494
|
+
var de_InvocationSummary = /* @__PURE__ */ __name((output, context) => {
|
|
4495
|
+
return (0, import_smithy_client.take)(output, {
|
|
4496
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
4497
|
+
invocationId: import_smithy_client.expectString,
|
|
4498
|
+
sessionId: import_smithy_client.expectString
|
|
4499
|
+
});
|
|
4500
|
+
}, "de_InvocationSummary");
|
|
3869
4501
|
var de_KnowledgeBaseLookupOutput = /* @__PURE__ */ __name((output, context) => {
|
|
3870
4502
|
return (0, import_smithy_client.take)(output, {
|
|
3871
4503
|
retrievedReferences: (_) => de_RetrievedReferences(_, context)
|
|
@@ -3932,6 +4564,14 @@ var de_Observation = /* @__PURE__ */ __name((output, context) => {
|
|
|
3932
4564
|
type: import_smithy_client.expectString
|
|
3933
4565
|
});
|
|
3934
4566
|
}, "de_Observation");
|
|
4567
|
+
var de_OrchestrationModelInvocationOutput = /* @__PURE__ */ __name((output, context) => {
|
|
4568
|
+
return (0, import_smithy_client.take)(output, {
|
|
4569
|
+
metadata: import_smithy_client._json,
|
|
4570
|
+
rawResponse: import_smithy_client._json,
|
|
4571
|
+
reasoningContent: (_) => de_ReasoningContentBlock((0, import_core2.awsExpectUnion)(_), context),
|
|
4572
|
+
traceId: import_smithy_client.expectString
|
|
4573
|
+
});
|
|
4574
|
+
}, "de_OrchestrationModelInvocationOutput");
|
|
3935
4575
|
var de_OrchestrationTrace = /* @__PURE__ */ __name((output, context) => {
|
|
3936
4576
|
if (output.invocationInput != null) {
|
|
3937
4577
|
return {
|
|
@@ -3945,7 +4585,7 @@ var de_OrchestrationTrace = /* @__PURE__ */ __name((output, context) => {
|
|
|
3945
4585
|
}
|
|
3946
4586
|
if (output.modelInvocationOutput != null) {
|
|
3947
4587
|
return {
|
|
3948
|
-
modelInvocationOutput: (
|
|
4588
|
+
modelInvocationOutput: de_OrchestrationModelInvocationOutput(output.modelInvocationOutput, context)
|
|
3949
4589
|
};
|
|
3950
4590
|
}
|
|
3951
4591
|
if (output.observation != null) {
|
|
@@ -3979,6 +4619,15 @@ var de_PayloadPart = /* @__PURE__ */ __name((output, context) => {
|
|
|
3979
4619
|
bytes: context.base64Decoder
|
|
3980
4620
|
});
|
|
3981
4621
|
}, "de_PayloadPart");
|
|
4622
|
+
var de_PostProcessingModelInvocationOutput = /* @__PURE__ */ __name((output, context) => {
|
|
4623
|
+
return (0, import_smithy_client.take)(output, {
|
|
4624
|
+
metadata: import_smithy_client._json,
|
|
4625
|
+
parsedResponse: import_smithy_client._json,
|
|
4626
|
+
rawResponse: import_smithy_client._json,
|
|
4627
|
+
reasoningContent: (_) => de_ReasoningContentBlock((0, import_core2.awsExpectUnion)(_), context),
|
|
4628
|
+
traceId: import_smithy_client.expectString
|
|
4629
|
+
});
|
|
4630
|
+
}, "de_PostProcessingModelInvocationOutput");
|
|
3982
4631
|
var de_PostProcessingTrace = /* @__PURE__ */ __name((output, context) => {
|
|
3983
4632
|
if (output.modelInvocationInput != null) {
|
|
3984
4633
|
return {
|
|
@@ -3987,11 +4636,20 @@ var de_PostProcessingTrace = /* @__PURE__ */ __name((output, context) => {
|
|
|
3987
4636
|
}
|
|
3988
4637
|
if (output.modelInvocationOutput != null) {
|
|
3989
4638
|
return {
|
|
3990
|
-
modelInvocationOutput: (
|
|
4639
|
+
modelInvocationOutput: de_PostProcessingModelInvocationOutput(output.modelInvocationOutput, context)
|
|
3991
4640
|
};
|
|
3992
4641
|
}
|
|
3993
4642
|
return { $unknown: Object.entries(output)[0] };
|
|
3994
4643
|
}, "de_PostProcessingTrace");
|
|
4644
|
+
var de_PreProcessingModelInvocationOutput = /* @__PURE__ */ __name((output, context) => {
|
|
4645
|
+
return (0, import_smithy_client.take)(output, {
|
|
4646
|
+
metadata: import_smithy_client._json,
|
|
4647
|
+
parsedResponse: import_smithy_client._json,
|
|
4648
|
+
rawResponse: import_smithy_client._json,
|
|
4649
|
+
reasoningContent: (_) => de_ReasoningContentBlock((0, import_core2.awsExpectUnion)(_), context),
|
|
4650
|
+
traceId: import_smithy_client.expectString
|
|
4651
|
+
});
|
|
4652
|
+
}, "de_PreProcessingModelInvocationOutput");
|
|
3995
4653
|
var de_PreProcessingTrace = /* @__PURE__ */ __name((output, context) => {
|
|
3996
4654
|
if (output.modelInvocationInput != null) {
|
|
3997
4655
|
return {
|
|
@@ -4000,11 +4658,24 @@ var de_PreProcessingTrace = /* @__PURE__ */ __name((output, context) => {
|
|
|
4000
4658
|
}
|
|
4001
4659
|
if (output.modelInvocationOutput != null) {
|
|
4002
4660
|
return {
|
|
4003
|
-
modelInvocationOutput: (
|
|
4661
|
+
modelInvocationOutput: de_PreProcessingModelInvocationOutput(output.modelInvocationOutput, context)
|
|
4004
4662
|
};
|
|
4005
4663
|
}
|
|
4006
4664
|
return { $unknown: Object.entries(output)[0] };
|
|
4007
4665
|
}, "de_PreProcessingTrace");
|
|
4666
|
+
var de_ReasoningContentBlock = /* @__PURE__ */ __name((output, context) => {
|
|
4667
|
+
if (output.reasoningText != null) {
|
|
4668
|
+
return {
|
|
4669
|
+
reasoningText: (0, import_smithy_client._json)(output.reasoningText)
|
|
4670
|
+
};
|
|
4671
|
+
}
|
|
4672
|
+
if (output.redactedContent != null) {
|
|
4673
|
+
return {
|
|
4674
|
+
redactedContent: context.base64Decoder(output.redactedContent)
|
|
4675
|
+
};
|
|
4676
|
+
}
|
|
4677
|
+
return { $unknown: Object.entries(output)[0] };
|
|
4678
|
+
}, "de_ReasoningContentBlock");
|
|
4008
4679
|
var de_RerankDocument = /* @__PURE__ */ __name((output, context) => {
|
|
4009
4680
|
return (0, import_smithy_client.take)(output, {
|
|
4010
4681
|
jsonDocument: (_) => de_Document(_, context),
|
|
@@ -4073,6 +4744,21 @@ var de_RoutingClassifierTrace = /* @__PURE__ */ __name((output, context) => {
|
|
|
4073
4744
|
}
|
|
4074
4745
|
return { $unknown: Object.entries(output)[0] };
|
|
4075
4746
|
}, "de_RoutingClassifierTrace");
|
|
4747
|
+
var de_SessionSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
4748
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
4749
|
+
return de_SessionSummary(entry, context);
|
|
4750
|
+
});
|
|
4751
|
+
return retVal;
|
|
4752
|
+
}, "de_SessionSummaries");
|
|
4753
|
+
var de_SessionSummary = /* @__PURE__ */ __name((output, context) => {
|
|
4754
|
+
return (0, import_smithy_client.take)(output, {
|
|
4755
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
4756
|
+
lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
4757
|
+
sessionArn: import_smithy_client.expectString,
|
|
4758
|
+
sessionId: import_smithy_client.expectString,
|
|
4759
|
+
sessionStatus: import_smithy_client.expectString
|
|
4760
|
+
});
|
|
4761
|
+
}, "de_SessionSummary");
|
|
4076
4762
|
var de_Trace = /* @__PURE__ */ __name((output, context) => {
|
|
4077
4763
|
if (output.customOrchestrationTrace != null) {
|
|
4078
4764
|
return {
|
|
@@ -4135,10 +4821,12 @@ var _cT = "contentType";
|
|
|
4135
4821
|
var _eI = "executionId";
|
|
4136
4822
|
var _mI = "memoryId";
|
|
4137
4823
|
var _mIa = "maxItems";
|
|
4824
|
+
var _mR = "maxResults";
|
|
4138
4825
|
var _mT = "memoryType";
|
|
4139
4826
|
var _nT = "nextToken";
|
|
4140
4827
|
var _sA = "sourceArn";
|
|
4141
4828
|
var _sI = "sessionId";
|
|
4829
|
+
var _tK = "tagKeys";
|
|
4142
4830
|
var _xabact = "x-amzn-bedrock-agent-content-type";
|
|
4143
4831
|
var _xabami = "x-amz-bedrock-agent-memory-id";
|
|
4144
4832
|
var _xabasi = "x-amz-bedrock-agent-session-id";
|
|
@@ -4146,7 +4834,37 @@ var _xabfei = "x-amz-bedrock-flow-execution-id";
|
|
|
4146
4834
|
var _xabkbsi = "x-amzn-bedrock-knowledge-base-session-id";
|
|
4147
4835
|
var _xasa = "x-amz-source-arn";
|
|
4148
4836
|
|
|
4837
|
+
// src/commands/CreateInvocationCommand.ts
|
|
4838
|
+
var CreateInvocationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4839
|
+
return [
|
|
4840
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4841
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4842
|
+
];
|
|
4843
|
+
}).s("AmazonBedrockAgentRunTimeService", "CreateInvocation", {}).n("BedrockAgentRuntimeClient", "CreateInvocationCommand").f(void 0, void 0).ser(se_CreateInvocationCommand).de(de_CreateInvocationCommand).build() {
|
|
4844
|
+
static {
|
|
4845
|
+
__name(this, "CreateInvocationCommand");
|
|
4846
|
+
}
|
|
4847
|
+
};
|
|
4848
|
+
|
|
4849
|
+
// src/commands/CreateSessionCommand.ts
|
|
4850
|
+
|
|
4851
|
+
|
|
4852
|
+
|
|
4853
|
+
var CreateSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4854
|
+
return [
|
|
4855
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4856
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4857
|
+
];
|
|
4858
|
+
}).s("AmazonBedrockAgentRunTimeService", "CreateSession", {}).n("BedrockAgentRuntimeClient", "CreateSessionCommand").f(void 0, void 0).ser(se_CreateSessionCommand).de(de_CreateSessionCommand).build() {
|
|
4859
|
+
static {
|
|
4860
|
+
__name(this, "CreateSessionCommand");
|
|
4861
|
+
}
|
|
4862
|
+
};
|
|
4863
|
+
|
|
4149
4864
|
// src/commands/DeleteAgentMemoryCommand.ts
|
|
4865
|
+
|
|
4866
|
+
|
|
4867
|
+
|
|
4150
4868
|
var DeleteAgentMemoryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4151
4869
|
return [
|
|
4152
4870
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
@@ -4158,6 +4876,36 @@ var DeleteAgentMemoryCommand = class extends import_smithy_client.Command.classB
|
|
|
4158
4876
|
}
|
|
4159
4877
|
};
|
|
4160
4878
|
|
|
4879
|
+
// src/commands/DeleteSessionCommand.ts
|
|
4880
|
+
|
|
4881
|
+
|
|
4882
|
+
|
|
4883
|
+
var DeleteSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4884
|
+
return [
|
|
4885
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4886
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4887
|
+
];
|
|
4888
|
+
}).s("AmazonBedrockAgentRunTimeService", "DeleteSession", {}).n("BedrockAgentRuntimeClient", "DeleteSessionCommand").f(void 0, void 0).ser(se_DeleteSessionCommand).de(de_DeleteSessionCommand).build() {
|
|
4889
|
+
static {
|
|
4890
|
+
__name(this, "DeleteSessionCommand");
|
|
4891
|
+
}
|
|
4892
|
+
};
|
|
4893
|
+
|
|
4894
|
+
// src/commands/EndSessionCommand.ts
|
|
4895
|
+
|
|
4896
|
+
|
|
4897
|
+
|
|
4898
|
+
var EndSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4899
|
+
return [
|
|
4900
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4901
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4902
|
+
];
|
|
4903
|
+
}).s("AmazonBedrockAgentRunTimeService", "EndSession", {}).n("BedrockAgentRuntimeClient", "EndSessionCommand").f(void 0, void 0).ser(se_EndSessionCommand).de(de_EndSessionCommand).build() {
|
|
4904
|
+
static {
|
|
4905
|
+
__name(this, "EndSessionCommand");
|
|
4906
|
+
}
|
|
4907
|
+
};
|
|
4908
|
+
|
|
4161
4909
|
// src/commands/GenerateQueryCommand.ts
|
|
4162
4910
|
|
|
4163
4911
|
|
|
@@ -4188,6 +4936,36 @@ var GetAgentMemoryCommand = class extends import_smithy_client.Command.classBuil
|
|
|
4188
4936
|
}
|
|
4189
4937
|
};
|
|
4190
4938
|
|
|
4939
|
+
// src/commands/GetInvocationStepCommand.ts
|
|
4940
|
+
|
|
4941
|
+
|
|
4942
|
+
|
|
4943
|
+
var GetInvocationStepCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4944
|
+
return [
|
|
4945
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4946
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4947
|
+
];
|
|
4948
|
+
}).s("AmazonBedrockAgentRunTimeService", "GetInvocationStep", {}).n("BedrockAgentRuntimeClient", "GetInvocationStepCommand").f(void 0, GetInvocationStepResponseFilterSensitiveLog).ser(se_GetInvocationStepCommand).de(de_GetInvocationStepCommand).build() {
|
|
4949
|
+
static {
|
|
4950
|
+
__name(this, "GetInvocationStepCommand");
|
|
4951
|
+
}
|
|
4952
|
+
};
|
|
4953
|
+
|
|
4954
|
+
// src/commands/GetSessionCommand.ts
|
|
4955
|
+
|
|
4956
|
+
|
|
4957
|
+
|
|
4958
|
+
var GetSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4959
|
+
return [
|
|
4960
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4961
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4962
|
+
];
|
|
4963
|
+
}).s("AmazonBedrockAgentRunTimeService", "GetSession", {}).n("BedrockAgentRuntimeClient", "GetSessionCommand").f(void 0, void 0).ser(se_GetSessionCommand).de(de_GetSessionCommand).build() {
|
|
4964
|
+
static {
|
|
4965
|
+
__name(this, "GetSessionCommand");
|
|
4966
|
+
}
|
|
4967
|
+
};
|
|
4968
|
+
|
|
4191
4969
|
// src/commands/InvokeAgentCommand.ts
|
|
4192
4970
|
|
|
4193
4971
|
|
|
@@ -4254,6 +5032,66 @@ var InvokeInlineAgentCommand = class extends import_smithy_client.Command.classB
|
|
|
4254
5032
|
}
|
|
4255
5033
|
};
|
|
4256
5034
|
|
|
5035
|
+
// src/commands/ListInvocationsCommand.ts
|
|
5036
|
+
|
|
5037
|
+
|
|
5038
|
+
|
|
5039
|
+
var ListInvocationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
5040
|
+
return [
|
|
5041
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
5042
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
5043
|
+
];
|
|
5044
|
+
}).s("AmazonBedrockAgentRunTimeService", "ListInvocations", {}).n("BedrockAgentRuntimeClient", "ListInvocationsCommand").f(void 0, void 0).ser(se_ListInvocationsCommand).de(de_ListInvocationsCommand).build() {
|
|
5045
|
+
static {
|
|
5046
|
+
__name(this, "ListInvocationsCommand");
|
|
5047
|
+
}
|
|
5048
|
+
};
|
|
5049
|
+
|
|
5050
|
+
// src/commands/ListInvocationStepsCommand.ts
|
|
5051
|
+
|
|
5052
|
+
|
|
5053
|
+
|
|
5054
|
+
var ListInvocationStepsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
5055
|
+
return [
|
|
5056
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
5057
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
5058
|
+
];
|
|
5059
|
+
}).s("AmazonBedrockAgentRunTimeService", "ListInvocationSteps", {}).n("BedrockAgentRuntimeClient", "ListInvocationStepsCommand").f(void 0, void 0).ser(se_ListInvocationStepsCommand).de(de_ListInvocationStepsCommand).build() {
|
|
5060
|
+
static {
|
|
5061
|
+
__name(this, "ListInvocationStepsCommand");
|
|
5062
|
+
}
|
|
5063
|
+
};
|
|
5064
|
+
|
|
5065
|
+
// src/commands/ListSessionsCommand.ts
|
|
5066
|
+
|
|
5067
|
+
|
|
5068
|
+
|
|
5069
|
+
var ListSessionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
5070
|
+
return [
|
|
5071
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
5072
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
5073
|
+
];
|
|
5074
|
+
}).s("AmazonBedrockAgentRunTimeService", "ListSessions", {}).n("BedrockAgentRuntimeClient", "ListSessionsCommand").f(void 0, void 0).ser(se_ListSessionsCommand).de(de_ListSessionsCommand).build() {
|
|
5075
|
+
static {
|
|
5076
|
+
__name(this, "ListSessionsCommand");
|
|
5077
|
+
}
|
|
5078
|
+
};
|
|
5079
|
+
|
|
5080
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
5081
|
+
|
|
5082
|
+
|
|
5083
|
+
|
|
5084
|
+
var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
5085
|
+
return [
|
|
5086
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
5087
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
5088
|
+
];
|
|
5089
|
+
}).s("AmazonBedrockAgentRunTimeService", "ListTagsForResource", {}).n("BedrockAgentRuntimeClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
5090
|
+
static {
|
|
5091
|
+
__name(this, "ListTagsForResourceCommand");
|
|
5092
|
+
}
|
|
5093
|
+
};
|
|
5094
|
+
|
|
4257
5095
|
// src/commands/OptimizePromptCommand.ts
|
|
4258
5096
|
|
|
4259
5097
|
|
|
@@ -4276,6 +5114,21 @@ var OptimizePromptCommand = class extends import_smithy_client.Command.classBuil
|
|
|
4276
5114
|
}
|
|
4277
5115
|
};
|
|
4278
5116
|
|
|
5117
|
+
// src/commands/PutInvocationStepCommand.ts
|
|
5118
|
+
|
|
5119
|
+
|
|
5120
|
+
|
|
5121
|
+
var PutInvocationStepCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
5122
|
+
return [
|
|
5123
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
5124
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
5125
|
+
];
|
|
5126
|
+
}).s("AmazonBedrockAgentRunTimeService", "PutInvocationStep", {}).n("BedrockAgentRuntimeClient", "PutInvocationStepCommand").f(PutInvocationStepRequestFilterSensitiveLog, void 0).ser(se_PutInvocationStepCommand).de(de_PutInvocationStepCommand).build() {
|
|
5127
|
+
static {
|
|
5128
|
+
__name(this, "PutInvocationStepCommand");
|
|
5129
|
+
}
|
|
5130
|
+
};
|
|
5131
|
+
|
|
4279
5132
|
// src/commands/RerankCommand.ts
|
|
4280
5133
|
|
|
4281
5134
|
|
|
@@ -4343,19 +5196,78 @@ var RetrieveCommand = class extends import_smithy_client.Command.classBuilder().
|
|
|
4343
5196
|
}
|
|
4344
5197
|
};
|
|
4345
5198
|
|
|
5199
|
+
// src/commands/TagResourceCommand.ts
|
|
5200
|
+
|
|
5201
|
+
|
|
5202
|
+
|
|
5203
|
+
var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
5204
|
+
return [
|
|
5205
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
5206
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
5207
|
+
];
|
|
5208
|
+
}).s("AmazonBedrockAgentRunTimeService", "TagResource", {}).n("BedrockAgentRuntimeClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
5209
|
+
static {
|
|
5210
|
+
__name(this, "TagResourceCommand");
|
|
5211
|
+
}
|
|
5212
|
+
};
|
|
5213
|
+
|
|
5214
|
+
// src/commands/UntagResourceCommand.ts
|
|
5215
|
+
|
|
5216
|
+
|
|
5217
|
+
|
|
5218
|
+
var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
5219
|
+
return [
|
|
5220
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
5221
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
5222
|
+
];
|
|
5223
|
+
}).s("AmazonBedrockAgentRunTimeService", "UntagResource", {}).n("BedrockAgentRuntimeClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
5224
|
+
static {
|
|
5225
|
+
__name(this, "UntagResourceCommand");
|
|
5226
|
+
}
|
|
5227
|
+
};
|
|
5228
|
+
|
|
5229
|
+
// src/commands/UpdateSessionCommand.ts
|
|
5230
|
+
|
|
5231
|
+
|
|
5232
|
+
|
|
5233
|
+
var UpdateSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
5234
|
+
return [
|
|
5235
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
5236
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
5237
|
+
];
|
|
5238
|
+
}).s("AmazonBedrockAgentRunTimeService", "UpdateSession", {}).n("BedrockAgentRuntimeClient", "UpdateSessionCommand").f(void 0, void 0).ser(se_UpdateSessionCommand).de(de_UpdateSessionCommand).build() {
|
|
5239
|
+
static {
|
|
5240
|
+
__name(this, "UpdateSessionCommand");
|
|
5241
|
+
}
|
|
5242
|
+
};
|
|
5243
|
+
|
|
4346
5244
|
// src/BedrockAgentRuntime.ts
|
|
4347
5245
|
var commands = {
|
|
5246
|
+
CreateInvocationCommand,
|
|
5247
|
+
CreateSessionCommand,
|
|
4348
5248
|
DeleteAgentMemoryCommand,
|
|
5249
|
+
DeleteSessionCommand,
|
|
5250
|
+
EndSessionCommand,
|
|
4349
5251
|
GenerateQueryCommand,
|
|
4350
5252
|
GetAgentMemoryCommand,
|
|
5253
|
+
GetInvocationStepCommand,
|
|
5254
|
+
GetSessionCommand,
|
|
4351
5255
|
InvokeAgentCommand,
|
|
4352
5256
|
InvokeFlowCommand,
|
|
4353
5257
|
InvokeInlineAgentCommand,
|
|
5258
|
+
ListInvocationsCommand,
|
|
5259
|
+
ListInvocationStepsCommand,
|
|
5260
|
+
ListSessionsCommand,
|
|
5261
|
+
ListTagsForResourceCommand,
|
|
4354
5262
|
OptimizePromptCommand,
|
|
5263
|
+
PutInvocationStepCommand,
|
|
4355
5264
|
RerankCommand,
|
|
4356
5265
|
RetrieveCommand,
|
|
4357
5266
|
RetrieveAndGenerateCommand,
|
|
4358
|
-
RetrieveAndGenerateStreamCommand
|
|
5267
|
+
RetrieveAndGenerateStreamCommand,
|
|
5268
|
+
TagResourceCommand,
|
|
5269
|
+
UntagResourceCommand,
|
|
5270
|
+
UpdateSessionCommand
|
|
4359
5271
|
};
|
|
4360
5272
|
var BedrockAgentRuntime = class extends BedrockAgentRuntimeClient {
|
|
4361
5273
|
static {
|
|
@@ -4368,6 +5280,18 @@ var BedrockAgentRuntime = class extends BedrockAgentRuntimeClient {
|
|
|
4368
5280
|
|
|
4369
5281
|
var paginateGetAgentMemory = (0, import_core.createPaginator)(BedrockAgentRuntimeClient, GetAgentMemoryCommand, "nextToken", "nextToken", "maxItems");
|
|
4370
5282
|
|
|
5283
|
+
// src/pagination/ListInvocationStepsPaginator.ts
|
|
5284
|
+
|
|
5285
|
+
var paginateListInvocationSteps = (0, import_core.createPaginator)(BedrockAgentRuntimeClient, ListInvocationStepsCommand, "nextToken", "nextToken", "maxResults");
|
|
5286
|
+
|
|
5287
|
+
// src/pagination/ListInvocationsPaginator.ts
|
|
5288
|
+
|
|
5289
|
+
var paginateListInvocations = (0, import_core.createPaginator)(BedrockAgentRuntimeClient, ListInvocationsCommand, "nextToken", "nextToken", "maxResults");
|
|
5290
|
+
|
|
5291
|
+
// src/pagination/ListSessionsPaginator.ts
|
|
5292
|
+
|
|
5293
|
+
var paginateListSessions = (0, import_core.createPaginator)(BedrockAgentRuntimeClient, ListSessionsCommand, "nextToken", "nextToken", "maxResults");
|
|
5294
|
+
|
|
4371
5295
|
// src/pagination/RerankPaginator.ts
|
|
4372
5296
|
|
|
4373
5297
|
var paginateRerank = (0, import_core.createPaginator)(BedrockAgentRuntimeClient, RerankCommand, "nextToken", "nextToken", "");
|
|
@@ -4383,18 +5307,35 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
4383
5307
|
BedrockAgentRuntimeClient,
|
|
4384
5308
|
BedrockAgentRuntime,
|
|
4385
5309
|
$Command,
|
|
5310
|
+
CreateInvocationCommand,
|
|
5311
|
+
CreateSessionCommand,
|
|
4386
5312
|
DeleteAgentMemoryCommand,
|
|
5313
|
+
DeleteSessionCommand,
|
|
5314
|
+
EndSessionCommand,
|
|
4387
5315
|
GenerateQueryCommand,
|
|
4388
5316
|
GetAgentMemoryCommand,
|
|
5317
|
+
GetInvocationStepCommand,
|
|
5318
|
+
GetSessionCommand,
|
|
4389
5319
|
InvokeAgentCommand,
|
|
4390
5320
|
InvokeFlowCommand,
|
|
4391
5321
|
InvokeInlineAgentCommand,
|
|
5322
|
+
ListInvocationStepsCommand,
|
|
5323
|
+
ListInvocationsCommand,
|
|
5324
|
+
ListSessionsCommand,
|
|
5325
|
+
ListTagsForResourceCommand,
|
|
4392
5326
|
OptimizePromptCommand,
|
|
5327
|
+
PutInvocationStepCommand,
|
|
4393
5328
|
RerankCommand,
|
|
4394
5329
|
RetrieveAndGenerateCommand,
|
|
4395
5330
|
RetrieveAndGenerateStreamCommand,
|
|
4396
5331
|
RetrieveCommand,
|
|
5332
|
+
TagResourceCommand,
|
|
5333
|
+
UntagResourceCommand,
|
|
5334
|
+
UpdateSessionCommand,
|
|
4397
5335
|
paginateGetAgentMemory,
|
|
5336
|
+
paginateListInvocationSteps,
|
|
5337
|
+
paginateListInvocations,
|
|
5338
|
+
paginateListSessions,
|
|
4398
5339
|
paginateRerank,
|
|
4399
5340
|
paginateRetrieve,
|
|
4400
5341
|
AccessDeniedException,
|
|
@@ -4461,6 +5402,7 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
4461
5402
|
InvocationType,
|
|
4462
5403
|
CreationMode,
|
|
4463
5404
|
PromptType,
|
|
5405
|
+
ReasoningContentBlock,
|
|
4464
5406
|
Source,
|
|
4465
5407
|
Type,
|
|
4466
5408
|
OrchestrationTrace,
|
|
@@ -4485,7 +5427,11 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
4485
5427
|
RetrieveAndGenerateType,
|
|
4486
5428
|
GuadrailAction,
|
|
4487
5429
|
RetrieveAndGenerateStreamResponseOutput,
|
|
4488
|
-
|
|
5430
|
+
SessionStatus,
|
|
5431
|
+
ImageFormat,
|
|
5432
|
+
ImageSource,
|
|
5433
|
+
BedrockSessionContentBlock,
|
|
5434
|
+
InvocationStepPayload,
|
|
4489
5435
|
ActionGroupInvocationInputFilterSensitiveLog,
|
|
4490
5436
|
ActionGroupInvocationOutputFilterSensitiveLog,
|
|
4491
5437
|
APISchemaFilterSensitiveLog,
|
|
@@ -4568,6 +5514,8 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
4568
5514
|
UsageFilterSensitiveLog,
|
|
4569
5515
|
MetadataFilterSensitiveLog,
|
|
4570
5516
|
RawResponseFilterSensitiveLog,
|
|
5517
|
+
ReasoningTextBlockFilterSensitiveLog,
|
|
5518
|
+
ReasoningContentBlockFilterSensitiveLog,
|
|
4571
5519
|
OrchestrationModelInvocationOutputFilterSensitiveLog,
|
|
4572
5520
|
FinalResponseFilterSensitiveLog,
|
|
4573
5521
|
KnowledgeBaseLookupOutputFilterSensitiveLog,
|
|
@@ -4628,6 +5576,12 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
4628
5576
|
KnowledgeBaseQueryFilterSensitiveLog,
|
|
4629
5577
|
KnowledgeBaseRetrievalResultFilterSensitiveLog,
|
|
4630
5578
|
RetrieveResponseFilterSensitiveLog,
|
|
5579
|
+
BedrockSessionContentBlockFilterSensitiveLog,
|
|
5580
|
+
InvocationStepPayloadFilterSensitiveLog,
|
|
5581
|
+
InvocationStepFilterSensitiveLog,
|
|
5582
|
+
GetInvocationStepResponseFilterSensitiveLog,
|
|
5583
|
+
PutInvocationStepRequestFilterSensitiveLog,
|
|
5584
|
+
RetrievalFilter,
|
|
4631
5585
|
RetrievalFilterFilterSensitiveLog,
|
|
4632
5586
|
KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog,
|
|
4633
5587
|
KnowledgeBaseRetrievalConfigurationFilterSensitiveLog,
|