@aws-sdk/client-bedrock-agent-runtime 3.755.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.
Files changed (92) hide show
  1. package/README.md +119 -7
  2. package/dist-cjs/index.js +941 -56
  3. package/dist-es/BedrockAgentRuntime.js +28 -0
  4. package/dist-es/commands/CreateInvocationCommand.js +22 -0
  5. package/dist-es/commands/CreateSessionCommand.js +22 -0
  6. package/dist-es/commands/DeleteSessionCommand.js +22 -0
  7. package/dist-es/commands/EndSessionCommand.js +22 -0
  8. package/dist-es/commands/GetInvocationStepCommand.js +23 -0
  9. package/dist-es/commands/GetSessionCommand.js +22 -0
  10. package/dist-es/commands/InvokeAgentCommand.js +2 -1
  11. package/dist-es/commands/InvokeInlineAgentCommand.js +2 -1
  12. package/dist-es/commands/ListInvocationStepsCommand.js +22 -0
  13. package/dist-es/commands/ListInvocationsCommand.js +22 -0
  14. package/dist-es/commands/ListSessionsCommand.js +22 -0
  15. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  16. package/dist-es/commands/PutInvocationStepCommand.js +23 -0
  17. package/dist-es/commands/RetrieveAndGenerateCommand.js +2 -1
  18. package/dist-es/commands/RetrieveAndGenerateStreamCommand.js +2 -1
  19. package/dist-es/commands/RetrieveCommand.js +2 -1
  20. package/dist-es/commands/TagResourceCommand.js +22 -0
  21. package/dist-es/commands/UntagResourceCommand.js +22 -0
  22. package/dist-es/commands/UpdateSessionCommand.js +22 -0
  23. package/dist-es/commands/index.js +14 -0
  24. package/dist-es/models/index.js +1 -0
  25. package/dist-es/models/models_0.js +54 -151
  26. package/dist-es/models/models_1.js +164 -0
  27. package/dist-es/pagination/ListInvocationStepsPaginator.js +4 -0
  28. package/dist-es/pagination/ListInvocationsPaginator.js +4 -0
  29. package/dist-es/pagination/ListSessionsPaginator.js +4 -0
  30. package/dist-es/pagination/index.js +3 -0
  31. package/dist-es/protocols/Aws_restJson1.js +532 -8
  32. package/dist-types/BedrockAgentRuntime.d.ts +100 -0
  33. package/dist-types/BedrockAgentRuntimeClient.d.ts +16 -2
  34. package/dist-types/commands/CreateInvocationCommand.d.ts +115 -0
  35. package/dist-types/commands/CreateSessionCommand.d.ts +133 -0
  36. package/dist-types/commands/DeleteSessionCommand.d.ts +89 -0
  37. package/dist-types/commands/EndSessionCommand.d.ts +93 -0
  38. package/dist-types/commands/GetInvocationStepCommand.d.ts +109 -0
  39. package/dist-types/commands/GetSessionCommand.d.ts +94 -0
  40. package/dist-types/commands/InvokeAgentCommand.d.ts +2 -1
  41. package/dist-types/commands/InvokeInlineAgentCommand.d.ts +2 -1
  42. package/dist-types/commands/ListInvocationStepsCommand.d.ts +97 -0
  43. package/dist-types/commands/ListInvocationsCommand.d.ts +95 -0
  44. package/dist-types/commands/ListSessionsCommand.d.ts +93 -0
  45. package/dist-types/commands/ListTagsForResourceCommand.d.ts +88 -0
  46. package/dist-types/commands/PutInvocationStepCommand.d.ts +134 -0
  47. package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +2 -1
  48. package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -1
  49. package/dist-types/commands/RetrieveCommand.d.ts +2 -1
  50. package/dist-types/commands/TagResourceCommand.d.ts +90 -0
  51. package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
  52. package/dist-types/commands/UpdateSessionCommand.d.ts +96 -0
  53. package/dist-types/commands/index.d.ts +14 -0
  54. package/dist-types/models/index.d.ts +1 -0
  55. package/dist-types/models/models_0.d.ts +494 -634
  56. package/dist-types/models/models_1.d.ts +919 -0
  57. package/dist-types/pagination/ListInvocationStepsPaginator.d.ts +7 -0
  58. package/dist-types/pagination/ListInvocationsPaginator.d.ts +7 -0
  59. package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
  60. package/dist-types/pagination/index.d.ts +3 -0
  61. package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
  62. package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +240 -0
  63. package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +86 -2
  64. package/dist-types/ts3.4/commands/CreateInvocationCommand.d.ts +50 -0
  65. package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +50 -0
  66. package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +50 -0
  67. package/dist-types/ts3.4/commands/EndSessionCommand.d.ts +47 -0
  68. package/dist-types/ts3.4/commands/GetInvocationStepCommand.d.ts +51 -0
  69. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +47 -0
  70. package/dist-types/ts3.4/commands/InvokeAgentCommand.d.ts +2 -1
  71. package/dist-types/ts3.4/commands/InvokeInlineAgentCommand.d.ts +2 -4
  72. package/dist-types/ts3.4/commands/ListInvocationStepsCommand.d.ts +51 -0
  73. package/dist-types/ts3.4/commands/ListInvocationsCommand.d.ts +50 -0
  74. package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
  75. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  76. package/dist-types/ts3.4/commands/PutInvocationStepCommand.d.ts +51 -0
  77. package/dist-types/ts3.4/commands/RetrieveAndGenerateCommand.d.ts +2 -4
  78. package/dist-types/ts3.4/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -4
  79. package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +2 -1
  80. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  81. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  82. package/dist-types/ts3.4/commands/UpdateSessionCommand.d.ts +50 -0
  83. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  84. package/dist-types/ts3.4/models/index.d.ts +1 -0
  85. package/dist-types/ts3.4/models/models_0.d.ts +222 -365
  86. package/dist-types/ts3.4/models/models_1.d.ts +416 -0
  87. package/dist-types/ts3.4/pagination/ListInvocationStepsPaginator.d.ts +11 -0
  88. package/dist-types/ts3.4/pagination/ListInvocationsPaginator.d.ts +11 -0
  89. package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
  90. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  91. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
  92. 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,6 +224,8 @@ __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,
@@ -268,7 +288,9 @@ __export(src_exports, {
268
288
  SearchType: () => SearchType,
269
289
  ServiceQuotaExceededException: () => ServiceQuotaExceededException,
270
290
  SessionStateFilterSensitiveLog: () => SessionStateFilterSensitiveLog,
291
+ SessionStatus: () => SessionStatus,
271
292
  Source: () => Source,
293
+ TagResourceCommand: () => TagResourceCommand,
272
294
  TextPromptFilterSensitiveLog: () => TextPromptFilterSensitiveLog,
273
295
  TextResponsePartFilterSensitiveLog: () => TextResponsePartFilterSensitiveLog,
274
296
  TextToSqlConfigurationType: () => TextToSqlConfigurationType,
@@ -277,6 +299,8 @@ __export(src_exports, {
277
299
  TraceFilterSensitiveLog: () => TraceFilterSensitiveLog,
278
300
  TracePartFilterSensitiveLog: () => TracePartFilterSensitiveLog,
279
301
  Type: () => Type,
302
+ UntagResourceCommand: () => UntagResourceCommand,
303
+ UpdateSessionCommand: () => UpdateSessionCommand,
280
304
  UsageFilterSensitiveLog: () => UsageFilterSensitiveLog,
281
305
  ValidationException: () => ValidationException,
282
306
  VectorSearchBedrockRerankingConfigurationFilterSensitiveLog: () => VectorSearchBedrockRerankingConfigurationFilterSensitiveLog,
@@ -284,6 +308,9 @@ __export(src_exports, {
284
308
  VectorSearchRerankingConfigurationType: () => VectorSearchRerankingConfigurationType,
285
309
  __Client: () => import_smithy_client.Client,
286
310
  paginateGetAgentMemory: () => paginateGetAgentMemory,
311
+ paginateListInvocationSteps: () => paginateListInvocationSteps,
312
+ paginateListInvocations: () => paginateListInvocations,
313
+ paginateListSessions: () => paginateListSessions,
287
314
  paginateRerank: () => paginateRerank,
288
315
  paginateRetrieve: () => paginateRetrieve
289
316
  });
@@ -436,7 +463,7 @@ var BedrockAgentRuntimeClient = class extends import_smithy_client.Client {
436
463
  // src/BedrockAgentRuntime.ts
437
464
 
438
465
 
439
- // src/commands/DeleteAgentMemoryCommand.ts
466
+ // src/commands/CreateInvocationCommand.ts
440
467
 
441
468
  var import_middleware_serde = require("@smithy/middleware-serde");
442
469
 
@@ -545,8 +572,8 @@ var ResponseState = {
545
572
  REPROMPT: "REPROMPT"
546
573
  };
547
574
  var InvocationResultMember;
548
- ((InvocationResultMember3) => {
549
- InvocationResultMember3.visit = /* @__PURE__ */ __name((value, visitor) => {
575
+ ((InvocationResultMember4) => {
576
+ InvocationResultMember4.visit = /* @__PURE__ */ __name((value, visitor) => {
550
577
  if (value.apiResult !== void 0)
551
578
  return visitor.apiResult(value.apiResult);
552
579
  if (value.functionResult !== void 0)
@@ -1297,38 +1324,45 @@ var RetrieveAndGenerateStreamResponseOutput;
1297
1324
  return visitor._(value.$unknown[0], value.$unknown[1]);
1298
1325
  }, "visit");
1299
1326
  })(RetrieveAndGenerateStreamResponseOutput || (RetrieveAndGenerateStreamResponseOutput = {}));
1300
- var RetrievalFilter;
1301
- ((RetrievalFilter2) => {
1302
- RetrievalFilter2.visit = /* @__PURE__ */ __name((value, visitor) => {
1303
- if (value.equals !== void 0)
1304
- return visitor.equals(value.equals);
1305
- if (value.notEquals !== void 0)
1306
- return visitor.notEquals(value.notEquals);
1307
- if (value.greaterThan !== void 0)
1308
- return visitor.greaterThan(value.greaterThan);
1309
- if (value.greaterThanOrEquals !== void 0)
1310
- return visitor.greaterThanOrEquals(value.greaterThanOrEquals);
1311
- if (value.lessThan !== void 0)
1312
- return visitor.lessThan(value.lessThan);
1313
- if (value.lessThanOrEquals !== void 0)
1314
- return visitor.lessThanOrEquals(value.lessThanOrEquals);
1315
- if (value.in !== void 0)
1316
- return visitor.in(value.in);
1317
- if (value.notIn !== void 0)
1318
- return visitor.notIn(value.notIn);
1319
- if (value.startsWith !== void 0)
1320
- return visitor.startsWith(value.startsWith);
1321
- if (value.listContains !== void 0)
1322
- return visitor.listContains(value.listContains);
1323
- if (value.stringContains !== void 0)
1324
- return visitor.stringContains(value.stringContains);
1325
- if (value.andAll !== void 0)
1326
- return visitor.andAll(value.andAll);
1327
- if (value.orAll !== void 0)
1328
- 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);
1329
1345
  return visitor._(value.$unknown[0], value.$unknown[1]);
1330
1346
  }, "visit");
1331
- })(RetrievalFilter || (RetrievalFilter = {}));
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 = {}));
1332
1366
  var ActionGroupInvocationInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1333
1367
  ...obj,
1334
1368
  ...obj.actionGroupName && { actionGroupName: import_smithy_client.SENSITIVE_STRING },
@@ -2180,6 +2214,67 @@ var RetrieveResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
2180
2214
  ...obj,
2181
2215
  ...obj.retrievalResults && { retrievalResults: import_smithy_client.SENSITIVE_STRING }
2182
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 = {}));
2183
2278
  var RetrievalFilterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
2184
2279
  if (obj.equals !== void 0)
2185
2280
  return { equals: obj.equals };
@@ -2324,6 +2419,40 @@ var InvokeAgentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
2324
2419
  }), "InvokeAgentRequestFilterSensitiveLog");
2325
2420
 
2326
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");
2327
2456
  var se_DeleteAgentMemoryCommand = /* @__PURE__ */ __name(async (input, context) => {
2328
2457
  const b = (0, import_core.requestBuilder)(input, context);
2329
2458
  const headers = {};
@@ -2338,6 +2467,24 @@ var se_DeleteAgentMemoryCommand = /* @__PURE__ */ __name(async (input, context)
2338
2467
  b.m("DELETE").h(headers).q(query).b(body);
2339
2468
  return b.build();
2340
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");
2341
2488
  var se_GenerateQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
2342
2489
  const b = (0, import_core.requestBuilder)(input, context);
2343
2490
  const headers = {
@@ -2370,6 +2517,32 @@ var se_GetAgentMemoryCommand = /* @__PURE__ */ __name(async (input, context) =>
2370
2517
  b.m("GET").h(headers).q(query).b(body);
2371
2518
  return b.build();
2372
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");
2373
2546
  var se_InvokeAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
2374
2547
  const b = (0, import_core.requestBuilder)(input, context);
2375
2548
  const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
@@ -2444,6 +2617,60 @@ var se_InvokeInlineAgentCommand = /* @__PURE__ */ __name(async (input, context)
2444
2617
  b.m("POST").h(headers).b(body);
2445
2618
  return b.build();
2446
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");
2447
2674
  var se_OptimizePromptCommand = /* @__PURE__ */ __name(async (input, context) => {
2448
2675
  const b = (0, import_core.requestBuilder)(input, context);
2449
2676
  const headers = {
@@ -2460,6 +2687,25 @@ var se_OptimizePromptCommand = /* @__PURE__ */ __name(async (input, context) =>
2460
2687
  b.m("POST").h(headers).b(body);
2461
2688
  return b.build();
2462
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");
2463
2709
  var se_RerankCommand = /* @__PURE__ */ __name(async (input, context) => {
2464
2710
  const b = (0, import_core.requestBuilder)(input, context);
2465
2711
  const headers = {
@@ -2533,6 +2779,83 @@ var se_RetrieveAndGenerateStreamCommand = /* @__PURE__ */ __name(async (input, c
2533
2779
  b.m("POST").h(headers).b(body);
2534
2780
  return b.build();
2535
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");
2536
2859
  var de_DeleteAgentMemoryCommand = /* @__PURE__ */ __name(async (output, context) => {
2537
2860
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2538
2861
  return de_CommandError(output, context);
@@ -2543,6 +2866,32 @@ var de_DeleteAgentMemoryCommand = /* @__PURE__ */ __name(async (output, context)
2543
2866
  await (0, import_smithy_client.collectBody)(output.body, context);
2544
2867
  return contents;
2545
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");
2546
2895
  var de_GenerateQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
2547
2896
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2548
2897
  return de_CommandError(output, context);
@@ -2572,32 +2921,66 @@ var de_GetAgentMemoryCommand = /* @__PURE__ */ __name(async (output, context) =>
2572
2921
  Object.assign(contents, doc);
2573
2922
  return contents;
2574
2923
  }, "de_GetAgentMemoryCommand");
2575
- var de_InvokeAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
2924
+ var de_GetInvocationStepCommand = /* @__PURE__ */ __name(async (output, context) => {
2576
2925
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2577
2926
  return de_CommandError(output, context);
2578
2927
  }
2579
2928
  const contents = (0, import_smithy_client.map)({
2580
- $metadata: deserializeMetadata(output),
2581
- [_cT]: [, output.headers[_xabact]],
2582
- [_sI]: [, output.headers[_xabasi]],
2583
- [_mI]: [, output.headers[_xabami]]
2929
+ $metadata: deserializeMetadata(output)
2584
2930
  });
2585
- const data = output.body;
2586
- contents.completion = de_ResponseStream(data, context);
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);
2587
2936
  return contents;
2588
- }, "de_InvokeAgentCommand");
2589
- var de_InvokeFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
2937
+ }, "de_GetInvocationStepCommand");
2938
+ var de_GetSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
2590
2939
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2591
2940
  return de_CommandError(output, context);
2592
2941
  }
2593
2942
  const contents = (0, import_smithy_client.map)({
2594
- $metadata: deserializeMetadata(output),
2595
- [_eI]: [, output.headers[_xabfei]]
2943
+ $metadata: deserializeMetadata(output)
2596
2944
  });
2597
- const data = output.body;
2598
- contents.responseStream = de_FlowResponseStream(data, context);
2599
- return contents;
2600
- }, "de_InvokeFlowCommand");
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");
2972
+ var de_InvokeFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
2973
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2974
+ return de_CommandError(output, context);
2975
+ }
2976
+ const contents = (0, import_smithy_client.map)({
2977
+ $metadata: deserializeMetadata(output),
2978
+ [_eI]: [, output.headers[_xabfei]]
2979
+ });
2980
+ const data = output.body;
2981
+ contents.responseStream = de_FlowResponseStream(data, context);
2982
+ return contents;
2983
+ }, "de_InvokeFlowCommand");
2601
2984
  var de_InvokeInlineAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
2602
2985
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2603
2986
  return de_CommandError(output, context);
@@ -2611,6 +2994,65 @@ var de_InvokeInlineAgentCommand = /* @__PURE__ */ __name(async (output, context)
2611
2994
  contents.completion = de_InlineAgentResponseStream(data, context);
2612
2995
  return contents;
2613
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");
2614
3056
  var de_OptimizePromptCommand = /* @__PURE__ */ __name(async (output, context) => {
2615
3057
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2616
3058
  return de_CommandError(output, context);
@@ -2622,6 +3064,20 @@ var de_OptimizePromptCommand = /* @__PURE__ */ __name(async (output, context) =>
2622
3064
  contents.optimizedPrompt = de_OptimizedPromptStream(data, context);
2623
3065
  return contents;
2624
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");
2625
3081
  var de_RerankCommand = /* @__PURE__ */ __name(async (output, context) => {
2626
3082
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2627
3083
  return de_CommandError(output, context);
@@ -2682,6 +3138,44 @@ var de_RetrieveAndGenerateStreamCommand = /* @__PURE__ */ __name(async (output,
2682
3138
  contents.stream = de_RetrieveAndGenerateStreamResponseOutput(data, context);
2683
3139
  return contents;
2684
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");
2685
3179
  var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2686
3180
  const parsedOutput = {
2687
3181
  ...output,
@@ -2692,15 +3186,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2692
3186
  case "AccessDeniedException":
2693
3187
  case "com.amazonaws.bedrockagentruntime#AccessDeniedException":
2694
3188
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2695
- case "BadGatewayException":
2696
- case "com.amazonaws.bedrockagentruntime#BadGatewayException":
2697
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
2698
3189
  case "ConflictException":
2699
3190
  case "com.amazonaws.bedrockagentruntime#ConflictException":
2700
3191
  throw await de_ConflictExceptionRes(parsedOutput, context);
2701
- case "DependencyFailedException":
2702
- case "com.amazonaws.bedrockagentruntime#DependencyFailedException":
2703
- throw await de_DependencyFailedExceptionRes(parsedOutput, context);
2704
3192
  case "InternalServerException":
2705
3193
  case "com.amazonaws.bedrockagentruntime#InternalServerException":
2706
3194
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -2716,6 +3204,12 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2716
3204
  case "ValidationException":
2717
3205
  case "com.amazonaws.bedrockagentruntime#ValidationException":
2718
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);
2719
3213
  case "ModelNotReadyException":
2720
3214
  case "com.amazonaws.bedrockagentruntime#ModelNotReadyException":
2721
3215
  throw await de_ModelNotReadyExceptionRes(parsedOutput, context);
@@ -3425,6 +3919,18 @@ var se_BedrockRerankingModelConfiguration = /* @__PURE__ */ __name((input, conte
3425
3919
  modelArn: []
3426
3920
  });
3427
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");
3428
3934
  var se_ByteContentDoc = /* @__PURE__ */ __name((input, context) => {
3429
3935
  return (0, import_smithy_client.take)(input, {
3430
3936
  contentType: [],
@@ -3510,6 +4016,19 @@ var se_GenerationConfiguration = /* @__PURE__ */ __name((input, context) => {
3510
4016
  promptTemplate: import_smithy_client._json
3511
4017
  });
3512
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");
3513
4032
  var se_InferenceConfig = /* @__PURE__ */ __name((input, context) => {
3514
4033
  return (0, import_smithy_client.take)(input, {
3515
4034
  textInferenceConfig: (_) => se_TextInferenceConfig(_, context)
@@ -3545,6 +4064,12 @@ var se_InputFiles = /* @__PURE__ */ __name((input, context) => {
3545
4064
  return se_InputFile(entry, context);
3546
4065
  });
3547
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");
3548
4073
  var se_KnowledgeBase = /* @__PURE__ */ __name((input, context) => {
3549
4074
  return (0, import_smithy_client.take)(input, {
3550
4075
  description: [],
@@ -3729,6 +4254,23 @@ var de_Attribution = /* @__PURE__ */ __name((output, context) => {
3729
4254
  citations: (_) => de_Citations(_, context)
3730
4255
  });
3731
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");
3732
4274
  var de_Citation = /* @__PURE__ */ __name((output, context) => {
3733
4275
  return (0, import_smithy_client.take)(output, {
3734
4276
  generatedResponsePart: import_smithy_client._json,
@@ -3867,6 +4409,25 @@ var de_FlowTraceNodeOutputFields = /* @__PURE__ */ __name((output, context) => {
3867
4409
  });
3868
4410
  return retVal;
3869
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");
3870
4431
  var de_InferenceConfiguration = /* @__PURE__ */ __name((output, context) => {
3871
4432
  return (0, import_smithy_client.take)(output, {
3872
4433
  maximumLength: import_smithy_client.expectInt32,
@@ -3893,6 +4454,50 @@ var de_InlineAgentTracePart = /* @__PURE__ */ __name((output, context) => {
3893
4454
  trace: (_) => de_Trace((0, import_core2.awsExpectUnion)(_), context)
3894
4455
  });
3895
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");
3896
4501
  var de_KnowledgeBaseLookupOutput = /* @__PURE__ */ __name((output, context) => {
3897
4502
  return (0, import_smithy_client.take)(output, {
3898
4503
  retrievedReferences: (_) => de_RetrievedReferences(_, context)
@@ -4139,6 +4744,21 @@ var de_RoutingClassifierTrace = /* @__PURE__ */ __name((output, context) => {
4139
4744
  }
4140
4745
  return { $unknown: Object.entries(output)[0] };
4141
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");
4142
4762
  var de_Trace = /* @__PURE__ */ __name((output, context) => {
4143
4763
  if (output.customOrchestrationTrace != null) {
4144
4764
  return {
@@ -4201,10 +4821,12 @@ var _cT = "contentType";
4201
4821
  var _eI = "executionId";
4202
4822
  var _mI = "memoryId";
4203
4823
  var _mIa = "maxItems";
4824
+ var _mR = "maxResults";
4204
4825
  var _mT = "memoryType";
4205
4826
  var _nT = "nextToken";
4206
4827
  var _sA = "sourceArn";
4207
4828
  var _sI = "sessionId";
4829
+ var _tK = "tagKeys";
4208
4830
  var _xabact = "x-amzn-bedrock-agent-content-type";
4209
4831
  var _xabami = "x-amz-bedrock-agent-memory-id";
4210
4832
  var _xabasi = "x-amz-bedrock-agent-session-id";
@@ -4212,7 +4834,37 @@ var _xabfei = "x-amz-bedrock-flow-execution-id";
4212
4834
  var _xabkbsi = "x-amzn-bedrock-knowledge-base-session-id";
4213
4835
  var _xasa = "x-amz-source-arn";
4214
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
+
4215
4864
  // src/commands/DeleteAgentMemoryCommand.ts
4865
+
4866
+
4867
+
4216
4868
  var DeleteAgentMemoryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4217
4869
  return [
4218
4870
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -4224,6 +4876,36 @@ var DeleteAgentMemoryCommand = class extends import_smithy_client.Command.classB
4224
4876
  }
4225
4877
  };
4226
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
+
4227
4909
  // src/commands/GenerateQueryCommand.ts
4228
4910
 
4229
4911
 
@@ -4254,6 +4936,36 @@ var GetAgentMemoryCommand = class extends import_smithy_client.Command.classBuil
4254
4936
  }
4255
4937
  };
4256
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
+
4257
4969
  // src/commands/InvokeAgentCommand.ts
4258
4970
 
4259
4971
 
@@ -4320,6 +5032,66 @@ var InvokeInlineAgentCommand = class extends import_smithy_client.Command.classB
4320
5032
  }
4321
5033
  };
4322
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
+
4323
5095
  // src/commands/OptimizePromptCommand.ts
4324
5096
 
4325
5097
 
@@ -4342,6 +5114,21 @@ var OptimizePromptCommand = class extends import_smithy_client.Command.classBuil
4342
5114
  }
4343
5115
  };
4344
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
+
4345
5132
  // src/commands/RerankCommand.ts
4346
5133
 
4347
5134
 
@@ -4409,19 +5196,78 @@ var RetrieveCommand = class extends import_smithy_client.Command.classBuilder().
4409
5196
  }
4410
5197
  };
4411
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
+
4412
5244
  // src/BedrockAgentRuntime.ts
4413
5245
  var commands = {
5246
+ CreateInvocationCommand,
5247
+ CreateSessionCommand,
4414
5248
  DeleteAgentMemoryCommand,
5249
+ DeleteSessionCommand,
5250
+ EndSessionCommand,
4415
5251
  GenerateQueryCommand,
4416
5252
  GetAgentMemoryCommand,
5253
+ GetInvocationStepCommand,
5254
+ GetSessionCommand,
4417
5255
  InvokeAgentCommand,
4418
5256
  InvokeFlowCommand,
4419
5257
  InvokeInlineAgentCommand,
5258
+ ListInvocationsCommand,
5259
+ ListInvocationStepsCommand,
5260
+ ListSessionsCommand,
5261
+ ListTagsForResourceCommand,
4420
5262
  OptimizePromptCommand,
5263
+ PutInvocationStepCommand,
4421
5264
  RerankCommand,
4422
5265
  RetrieveCommand,
4423
5266
  RetrieveAndGenerateCommand,
4424
- RetrieveAndGenerateStreamCommand
5267
+ RetrieveAndGenerateStreamCommand,
5268
+ TagResourceCommand,
5269
+ UntagResourceCommand,
5270
+ UpdateSessionCommand
4425
5271
  };
4426
5272
  var BedrockAgentRuntime = class extends BedrockAgentRuntimeClient {
4427
5273
  static {
@@ -4434,6 +5280,18 @@ var BedrockAgentRuntime = class extends BedrockAgentRuntimeClient {
4434
5280
 
4435
5281
  var paginateGetAgentMemory = (0, import_core.createPaginator)(BedrockAgentRuntimeClient, GetAgentMemoryCommand, "nextToken", "nextToken", "maxItems");
4436
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
+
4437
5295
  // src/pagination/RerankPaginator.ts
4438
5296
 
4439
5297
  var paginateRerank = (0, import_core.createPaginator)(BedrockAgentRuntimeClient, RerankCommand, "nextToken", "nextToken", "");
@@ -4449,18 +5307,35 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
4449
5307
  BedrockAgentRuntimeClient,
4450
5308
  BedrockAgentRuntime,
4451
5309
  $Command,
5310
+ CreateInvocationCommand,
5311
+ CreateSessionCommand,
4452
5312
  DeleteAgentMemoryCommand,
5313
+ DeleteSessionCommand,
5314
+ EndSessionCommand,
4453
5315
  GenerateQueryCommand,
4454
5316
  GetAgentMemoryCommand,
5317
+ GetInvocationStepCommand,
5318
+ GetSessionCommand,
4455
5319
  InvokeAgentCommand,
4456
5320
  InvokeFlowCommand,
4457
5321
  InvokeInlineAgentCommand,
5322
+ ListInvocationStepsCommand,
5323
+ ListInvocationsCommand,
5324
+ ListSessionsCommand,
5325
+ ListTagsForResourceCommand,
4458
5326
  OptimizePromptCommand,
5327
+ PutInvocationStepCommand,
4459
5328
  RerankCommand,
4460
5329
  RetrieveAndGenerateCommand,
4461
5330
  RetrieveAndGenerateStreamCommand,
4462
5331
  RetrieveCommand,
5332
+ TagResourceCommand,
5333
+ UntagResourceCommand,
5334
+ UpdateSessionCommand,
4463
5335
  paginateGetAgentMemory,
5336
+ paginateListInvocationSteps,
5337
+ paginateListInvocations,
5338
+ paginateListSessions,
4464
5339
  paginateRerank,
4465
5340
  paginateRetrieve,
4466
5341
  AccessDeniedException,
@@ -4552,7 +5427,11 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
4552
5427
  RetrieveAndGenerateType,
4553
5428
  GuadrailAction,
4554
5429
  RetrieveAndGenerateStreamResponseOutput,
4555
- RetrievalFilter,
5430
+ SessionStatus,
5431
+ ImageFormat,
5432
+ ImageSource,
5433
+ BedrockSessionContentBlock,
5434
+ InvocationStepPayload,
4556
5435
  ActionGroupInvocationInputFilterSensitiveLog,
4557
5436
  ActionGroupInvocationOutputFilterSensitiveLog,
4558
5437
  APISchemaFilterSensitiveLog,
@@ -4697,6 +5576,12 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
4697
5576
  KnowledgeBaseQueryFilterSensitiveLog,
4698
5577
  KnowledgeBaseRetrievalResultFilterSensitiveLog,
4699
5578
  RetrieveResponseFilterSensitiveLog,
5579
+ BedrockSessionContentBlockFilterSensitiveLog,
5580
+ InvocationStepPayloadFilterSensitiveLog,
5581
+ InvocationStepFilterSensitiveLog,
5582
+ GetInvocationStepResponseFilterSensitiveLog,
5583
+ PutInvocationStepRequestFilterSensitiveLog,
5584
+ RetrievalFilter,
4700
5585
  RetrievalFilterFilterSensitiveLog,
4701
5586
  KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog,
4702
5587
  KnowledgeBaseRetrievalConfigurationFilterSensitiveLog,