@aws-sdk/client-bedrock-agent-runtime 3.609.0 → 3.614.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 (35) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/index.js +672 -71
  3. package/dist-es/BedrockAgentRuntime.js +6 -0
  4. package/dist-es/commands/DeleteAgentMemoryCommand.js +24 -0
  5. package/dist-es/commands/GetAgentMemoryCommand.js +24 -0
  6. package/dist-es/commands/InvokeFlowCommand.js +29 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/models_0.js +221 -49
  9. package/dist-es/pagination/GetAgentMemoryPaginator.js +4 -0
  10. package/dist-es/pagination/index.js +1 -0
  11. package/dist-es/protocols/Aws_restJson1.js +311 -3
  12. package/dist-types/BedrockAgentRuntime.d.ts +21 -0
  13. package/dist-types/BedrockAgentRuntimeClient.d.ts +5 -2
  14. package/dist-types/commands/DeleteAgentMemoryCommand.d.ts +87 -0
  15. package/dist-types/commands/GetAgentMemoryCommand.d.ts +103 -0
  16. package/dist-types/commands/InvokeAgentCommand.d.ts +134 -4
  17. package/dist-types/commands/InvokeFlowCommand.d.ts +137 -0
  18. package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +18 -1
  19. package/dist-types/commands/RetrieveCommand.d.ts +13 -1
  20. package/dist-types/commands/index.d.ts +3 -0
  21. package/dist-types/models/models_0.d.ts +1339 -299
  22. package/dist-types/pagination/GetAgentMemoryPaginator.d.ts +7 -0
  23. package/dist-types/pagination/index.d.ts +1 -0
  24. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  25. package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +51 -0
  26. package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +18 -0
  27. package/dist-types/ts3.4/commands/DeleteAgentMemoryCommand.d.ts +40 -0
  28. package/dist-types/ts3.4/commands/GetAgentMemoryCommand.d.ts +39 -0
  29. package/dist-types/ts3.4/commands/InvokeFlowCommand.d.ts +36 -0
  30. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  31. package/dist-types/ts3.4/models/models_0.d.ts +527 -54
  32. package/dist-types/ts3.4/pagination/GetAgentMemoryPaginator.d.ts +11 -0
  33. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  34. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  35. package/package.json +20 -20
@@ -1,10 +1,16 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { BedrockAgentRuntimeClient } from "./BedrockAgentRuntimeClient";
3
+ import { DeleteAgentMemoryCommand, } from "./commands/DeleteAgentMemoryCommand";
4
+ import { GetAgentMemoryCommand, } from "./commands/GetAgentMemoryCommand";
3
5
  import { InvokeAgentCommand } from "./commands/InvokeAgentCommand";
6
+ import { InvokeFlowCommand } from "./commands/InvokeFlowCommand";
4
7
  import { RetrieveAndGenerateCommand, } from "./commands/RetrieveAndGenerateCommand";
5
8
  import { RetrieveCommand } from "./commands/RetrieveCommand";
6
9
  const commands = {
10
+ DeleteAgentMemoryCommand,
11
+ GetAgentMemoryCommand,
7
12
  InvokeAgentCommand,
13
+ InvokeFlowCommand,
8
14
  RetrieveCommand,
9
15
  RetrieveAndGenerateCommand,
10
16
  };
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteAgentMemoryCommand, se_DeleteAgentMemoryCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteAgentMemoryCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonBedrockAgentRunTimeService", "DeleteAgentMemory", {})
19
+ .n("BedrockAgentRuntimeClient", "DeleteAgentMemoryCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteAgentMemoryCommand)
22
+ .de(de_DeleteAgentMemoryCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetAgentMemoryCommand, se_GetAgentMemoryCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetAgentMemoryCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonBedrockAgentRunTimeService", "GetAgentMemory", {})
19
+ .n("BedrockAgentRuntimeClient", "GetAgentMemoryCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetAgentMemoryCommand)
22
+ .de(de_GetAgentMemoryCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,29 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { InvokeFlowRequestFilterSensitiveLog, InvokeFlowResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_InvokeFlowCommand, se_InvokeFlowCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class InvokeFlowCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AmazonBedrockAgentRunTimeService", "InvokeFlow", {
20
+ eventStream: {
21
+ output: true,
22
+ },
23
+ })
24
+ .n("BedrockAgentRuntimeClient", "InvokeFlowCommand")
25
+ .f(InvokeFlowRequestFilterSensitiveLog, InvokeFlowResponseFilterSensitiveLog)
26
+ .ser(se_InvokeFlowCommand)
27
+ .de(de_InvokeFlowCommand)
28
+ .build() {
29
+ }
@@ -1,3 +1,6 @@
1
+ export * from "./DeleteAgentMemoryCommand";
2
+ export * from "./GetAgentMemoryCommand";
1
3
  export * from "./InvokeAgentCommand";
4
+ export * from "./InvokeFlowCommand";
2
5
  export * from "./RetrieveAndGenerateCommand";
3
6
  export * from "./RetrieveCommand";
@@ -12,6 +12,10 @@ export class AccessDeniedException extends __BaseException {
12
12
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
13
  }
14
14
  }
15
+ export const ExecutionType = {
16
+ LAMBDA: "LAMBDA",
17
+ RETURN_CONTROL: "RETURN_CONTROL",
18
+ };
15
19
  export class BadGatewayException extends __BaseException {
16
20
  constructor(opts) {
17
21
  super({
@@ -62,22 +66,33 @@ export class InternalServerException extends __BaseException {
62
66
  Object.setPrototypeOf(this, InternalServerException.prototype);
63
67
  }
64
68
  }
65
- export const ResponseState = {
66
- FAILURE: "FAILURE",
67
- REPROMPT: "REPROMPT",
69
+ export var FlowInputContent;
70
+ (function (FlowInputContent) {
71
+ FlowInputContent.visit = (value, visitor) => {
72
+ if (value.document !== undefined)
73
+ return visitor.document(value.document);
74
+ return visitor._(value.$unknown[0], value.$unknown[1]);
75
+ };
76
+ })(FlowInputContent || (FlowInputContent = {}));
77
+ export const FlowCompletionReason = {
78
+ SUCCESS: "SUCCESS",
68
79
  };
69
- export var InvocationResultMember;
70
- (function (InvocationResultMember) {
71
- InvocationResultMember.visit = (value, visitor) => {
72
- if (value.apiResult !== undefined)
73
- return visitor.apiResult(value.apiResult);
74
- if (value.functionResult !== undefined)
75
- return visitor.functionResult(value.functionResult);
80
+ export var FlowOutputContent;
81
+ (function (FlowOutputContent) {
82
+ FlowOutputContent.visit = (value, visitor) => {
83
+ if (value.document !== undefined)
84
+ return visitor.document(value.document);
76
85
  return visitor._(value.$unknown[0], value.$unknown[1]);
77
86
  };
78
- })(InvocationResultMember || (InvocationResultMember = {}));
79
- export const RetrievalResultLocationType = {
80
- S3: "S3",
87
+ })(FlowOutputContent || (FlowOutputContent = {}));
88
+ export const NodeType = {
89
+ CONDITION_NODE: "ConditionNode",
90
+ FLOW_INPUT_NODE: "FlowInputNode",
91
+ FLOW_OUTPUT_NODE: "FlowOutputNode",
92
+ KNOWLEDGE_BASE_NODE: "KnowledgeBaseNode",
93
+ LAMBDA_FUNCTION_NODE: "LambdaFunctionNode",
94
+ LEX_NODE: "LexNode",
95
+ PROMPT_NODE: "PromptNode",
81
96
  };
82
97
  export class ResourceNotFoundException extends __BaseException {
83
98
  constructor(opts) {
@@ -91,16 +106,6 @@ export class ResourceNotFoundException extends __BaseException {
91
106
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
92
107
  }
93
108
  }
94
- export var InvocationInputMember;
95
- (function (InvocationInputMember) {
96
- InvocationInputMember.visit = (value, visitor) => {
97
- if (value.apiInvocationInput !== undefined)
98
- return visitor.apiInvocationInput(value.apiInvocationInput);
99
- if (value.functionInvocationInput !== undefined)
100
- return visitor.functionInvocationInput(value.functionInvocationInput);
101
- return visitor._(value.$unknown[0], value.$unknown[1]);
102
- };
103
- })(InvocationInputMember || (InvocationInputMember = {}));
104
109
  export class ServiceQuotaExceededException extends __BaseException {
105
110
  constructor(opts) {
106
111
  super({
@@ -125,6 +130,89 @@ export class ThrottlingException extends __BaseException {
125
130
  Object.setPrototypeOf(this, ThrottlingException.prototype);
126
131
  }
127
132
  }
133
+ export class ValidationException extends __BaseException {
134
+ constructor(opts) {
135
+ super({
136
+ name: "ValidationException",
137
+ $fault: "client",
138
+ ...opts,
139
+ });
140
+ this.name = "ValidationException";
141
+ this.$fault = "client";
142
+ Object.setPrototypeOf(this, ValidationException.prototype);
143
+ }
144
+ }
145
+ export var FlowResponseStream;
146
+ (function (FlowResponseStream) {
147
+ FlowResponseStream.visit = (value, visitor) => {
148
+ if (value.flowOutputEvent !== undefined)
149
+ return visitor.flowOutputEvent(value.flowOutputEvent);
150
+ if (value.flowCompletionEvent !== undefined)
151
+ return visitor.flowCompletionEvent(value.flowCompletionEvent);
152
+ if (value.internalServerException !== undefined)
153
+ return visitor.internalServerException(value.internalServerException);
154
+ if (value.validationException !== undefined)
155
+ return visitor.validationException(value.validationException);
156
+ if (value.resourceNotFoundException !== undefined)
157
+ return visitor.resourceNotFoundException(value.resourceNotFoundException);
158
+ if (value.serviceQuotaExceededException !== undefined)
159
+ return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
160
+ if (value.throttlingException !== undefined)
161
+ return visitor.throttlingException(value.throttlingException);
162
+ if (value.accessDeniedException !== undefined)
163
+ return visitor.accessDeniedException(value.accessDeniedException);
164
+ if (value.conflictException !== undefined)
165
+ return visitor.conflictException(value.conflictException);
166
+ if (value.dependencyFailedException !== undefined)
167
+ return visitor.dependencyFailedException(value.dependencyFailedException);
168
+ if (value.badGatewayException !== undefined)
169
+ return visitor.badGatewayException(value.badGatewayException);
170
+ return visitor._(value.$unknown[0], value.$unknown[1]);
171
+ };
172
+ })(FlowResponseStream || (FlowResponseStream = {}));
173
+ export const FileSourceType = {
174
+ BYTE_CONTENT: "BYTE_CONTENT",
175
+ S3: "S3",
176
+ };
177
+ export const FileUseCase = {
178
+ CHAT: "CHAT",
179
+ CODE_INTERPRETER: "CODE_INTERPRETER",
180
+ };
181
+ export const SearchType = {
182
+ HYBRID: "HYBRID",
183
+ SEMANTIC: "SEMANTIC",
184
+ };
185
+ export const ResponseState = {
186
+ FAILURE: "FAILURE",
187
+ REPROMPT: "REPROMPT",
188
+ };
189
+ export var InvocationResultMember;
190
+ (function (InvocationResultMember) {
191
+ InvocationResultMember.visit = (value, visitor) => {
192
+ if (value.apiResult !== undefined)
193
+ return visitor.apiResult(value.apiResult);
194
+ if (value.functionResult !== undefined)
195
+ return visitor.functionResult(value.functionResult);
196
+ return visitor._(value.$unknown[0], value.$unknown[1]);
197
+ };
198
+ })(InvocationResultMember || (InvocationResultMember = {}));
199
+ export const RetrievalResultLocationType = {
200
+ CONFLUENCE: "CONFLUENCE",
201
+ S3: "S3",
202
+ SALESFORCE: "SALESFORCE",
203
+ SHAREPOINT: "SHAREPOINT",
204
+ WEB: "WEB",
205
+ };
206
+ export var InvocationInputMember;
207
+ (function (InvocationInputMember) {
208
+ InvocationInputMember.visit = (value, visitor) => {
209
+ if (value.apiInvocationInput !== undefined)
210
+ return visitor.apiInvocationInput(value.apiInvocationInput);
211
+ if (value.functionInvocationInput !== undefined)
212
+ return visitor.functionInvocationInput(value.functionInvocationInput);
213
+ return visitor._(value.$unknown[0], value.$unknown[1]);
214
+ };
215
+ })(InvocationInputMember || (InvocationInputMember = {}));
128
216
  export const GuardrailAction = {
129
217
  INTERVENED: "INTERVENED",
130
218
  NONE: "NONE",
@@ -197,6 +285,7 @@ export const GuardrailManagedWordType = {
197
285
  };
198
286
  export const InvocationType = {
199
287
  ACTION_GROUP: "ACTION_GROUP",
288
+ ACTION_GROUP_CODE_INTERPRETER: "ACTION_GROUP_CODE_INTERPRETER",
200
289
  FINISH: "FINISH",
201
290
  KNOWLEDGE_BASE: "KNOWLEDGE_BASE",
202
291
  };
@@ -272,18 +361,6 @@ export var Trace;
272
361
  return visitor._(value.$unknown[0], value.$unknown[1]);
273
362
  };
274
363
  })(Trace || (Trace = {}));
275
- export class ValidationException extends __BaseException {
276
- constructor(opts) {
277
- super({
278
- name: "ValidationException",
279
- $fault: "client",
280
- ...opts,
281
- });
282
- this.name = "ValidationException";
283
- this.$fault = "client";
284
- Object.setPrototypeOf(this, ValidationException.prototype);
285
- }
286
- }
287
364
  export var ResponseStream;
288
365
  (function (ResponseStream) {
289
366
  ResponseStream.visit = (value, visitor) => {
@@ -311,16 +388,28 @@ export var ResponseStream;
311
388
  return visitor.dependencyFailedException(value.dependencyFailedException);
312
389
  if (value.badGatewayException !== undefined)
313
390
  return visitor.badGatewayException(value.badGatewayException);
391
+ if (value.files !== undefined)
392
+ return visitor.files(value.files);
314
393
  return visitor._(value.$unknown[0], value.$unknown[1]);
315
394
  };
316
395
  })(ResponseStream || (ResponseStream = {}));
396
+ export const MemoryType = {
397
+ SESSION_SUMMARY: "SESSION_SUMMARY",
398
+ };
399
+ export var Memory;
400
+ (function (Memory) {
401
+ Memory.visit = (value, visitor) => {
402
+ if (value.sessionSummary !== undefined)
403
+ return visitor.sessionSummary(value.sessionSummary);
404
+ return visitor._(value.$unknown[0], value.$unknown[1]);
405
+ };
406
+ })(Memory || (Memory = {}));
317
407
  export const ExternalSourceType = {
318
408
  BYTE_CONTENT: "BYTE_CONTENT",
319
409
  S3: "S3",
320
410
  };
321
- export const SearchType = {
322
- HYBRID: "HYBRID",
323
- SEMANTIC: "SEMANTIC",
411
+ export const QueryTransformationType = {
412
+ QUERY_DECOMPOSITION: "QUERY_DECOMPOSITION",
324
413
  };
325
414
  export const RetrieveAndGenerateType = {
326
415
  EXTERNAL_SOURCES: "EXTERNAL_SOURCES",
@@ -373,6 +462,69 @@ export const ActionGroupInvocationOutputFilterSensitiveLog = (obj) => ({
373
462
  ...obj,
374
463
  ...(obj.text && { text: SENSITIVE_STRING }),
375
464
  });
465
+ export const FlowInputContentFilterSensitiveLog = (obj) => {
466
+ if (obj.document !== undefined)
467
+ return { document: obj.document };
468
+ if (obj.$unknown !== undefined)
469
+ return { [obj.$unknown[0]]: "UNKNOWN" };
470
+ };
471
+ export const FlowInputFilterSensitiveLog = (obj) => ({
472
+ ...obj,
473
+ ...(obj.content && { content: SENSITIVE_STRING }),
474
+ });
475
+ export const InvokeFlowRequestFilterSensitiveLog = (obj) => ({
476
+ ...obj,
477
+ ...(obj.inputs && { inputs: obj.inputs.map((item) => FlowInputFilterSensitiveLog(item)) }),
478
+ });
479
+ export const FlowCompletionEventFilterSensitiveLog = (obj) => ({
480
+ ...obj,
481
+ });
482
+ export const FlowOutputEventFilterSensitiveLog = (obj) => ({
483
+ ...obj,
484
+ ...(obj.content && { content: obj.content }),
485
+ });
486
+ export const FlowResponseStreamFilterSensitiveLog = (obj) => {
487
+ if (obj.flowOutputEvent !== undefined)
488
+ return { flowOutputEvent: SENSITIVE_STRING };
489
+ if (obj.flowCompletionEvent !== undefined)
490
+ return { flowCompletionEvent: SENSITIVE_STRING };
491
+ if (obj.internalServerException !== undefined)
492
+ return { internalServerException: obj.internalServerException };
493
+ if (obj.validationException !== undefined)
494
+ return { validationException: obj.validationException };
495
+ if (obj.resourceNotFoundException !== undefined)
496
+ return { resourceNotFoundException: obj.resourceNotFoundException };
497
+ if (obj.serviceQuotaExceededException !== undefined)
498
+ return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
499
+ if (obj.throttlingException !== undefined)
500
+ return { throttlingException: obj.throttlingException };
501
+ if (obj.accessDeniedException !== undefined)
502
+ return { accessDeniedException: obj.accessDeniedException };
503
+ if (obj.conflictException !== undefined)
504
+ return { conflictException: obj.conflictException };
505
+ if (obj.dependencyFailedException !== undefined)
506
+ return { dependencyFailedException: obj.dependencyFailedException };
507
+ if (obj.badGatewayException !== undefined)
508
+ return { badGatewayException: obj.badGatewayException };
509
+ if (obj.$unknown !== undefined)
510
+ return { [obj.$unknown[0]]: "UNKNOWN" };
511
+ };
512
+ export const InvokeFlowResponseFilterSensitiveLog = (obj) => ({
513
+ ...obj,
514
+ ...(obj.responseStream && { responseStream: "STREAMING_CONTENT" }),
515
+ });
516
+ export const ByteContentFileFilterSensitiveLog = (obj) => ({
517
+ ...obj,
518
+ ...(obj.data && { data: SENSITIVE_STRING }),
519
+ });
520
+ export const FileSourceFilterSensitiveLog = (obj) => ({
521
+ ...obj,
522
+ ...(obj.byteContent && { byteContent: ByteContentFileFilterSensitiveLog(obj.byteContent) }),
523
+ });
524
+ export const InputFileFilterSensitiveLog = (obj) => ({
525
+ ...obj,
526
+ ...(obj.source && { source: FileSourceFilterSensitiveLog(obj.source) }),
527
+ });
376
528
  export const ApiResultFilterSensitiveLog = (obj) => ({
377
529
  ...obj,
378
530
  ...(obj.apiPath && { apiPath: SENSITIVE_STRING }),
@@ -385,17 +537,6 @@ export const InvocationResultMemberFilterSensitiveLog = (obj) => {
385
537
  if (obj.$unknown !== undefined)
386
538
  return { [obj.$unknown[0]]: "UNKNOWN" };
387
539
  };
388
- export const SessionStateFilterSensitiveLog = (obj) => ({
389
- ...obj,
390
- ...(obj.returnControlInvocationResults && {
391
- returnControlInvocationResults: obj.returnControlInvocationResults.map((item) => InvocationResultMemberFilterSensitiveLog(item)),
392
- }),
393
- });
394
- export const InvokeAgentRequestFilterSensitiveLog = (obj) => ({
395
- ...obj,
396
- ...(obj.sessionState && { sessionState: SessionStateFilterSensitiveLog(obj.sessionState) }),
397
- ...(obj.inputText && { inputText: SENSITIVE_STRING }),
398
- });
399
540
  export const TextResponsePartFilterSensitiveLog = (obj) => ({
400
541
  ...obj,
401
542
  });
@@ -433,6 +574,14 @@ export const PayloadPartFilterSensitiveLog = (obj) => ({
433
574
  ...(obj.bytes && { bytes: SENSITIVE_STRING }),
434
575
  ...(obj.attribution && { attribution: AttributionFilterSensitiveLog(obj.attribution) }),
435
576
  });
577
+ export const OutputFileFilterSensitiveLog = (obj) => ({
578
+ ...obj,
579
+ ...(obj.bytes && { bytes: SENSITIVE_STRING }),
580
+ });
581
+ export const FilePartFilterSensitiveLog = (obj) => ({
582
+ ...obj,
583
+ ...(obj.files && { files: SENSITIVE_STRING }),
584
+ });
436
585
  export const ApiInvocationInputFilterSensitiveLog = (obj) => ({
437
586
  ...obj,
438
587
  ...(obj.apiPath && { apiPath: SENSITIVE_STRING }),
@@ -637,6 +786,8 @@ export const ResponseStreamFilterSensitiveLog = (obj) => {
637
786
  return { dependencyFailedException: obj.dependencyFailedException };
638
787
  if (obj.badGatewayException !== undefined)
639
788
  return { badGatewayException: obj.badGatewayException };
789
+ if (obj.files !== undefined)
790
+ return { files: FilePartFilterSensitiveLog(obj.files) };
640
791
  if (obj.$unknown !== undefined)
641
792
  return { [obj.$unknown[0]]: "UNKNOWN" };
642
793
  };
@@ -736,6 +887,12 @@ export const KnowledgeBaseRetrievalConfigurationFilterSensitiveLog = (obj) => ({
736
887
  vectorSearchConfiguration: KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog(obj.vectorSearchConfiguration),
737
888
  }),
738
889
  });
890
+ export const KnowledgeBaseConfigurationFilterSensitiveLog = (obj) => ({
891
+ ...obj,
892
+ ...(obj.retrievalConfiguration && {
893
+ retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration),
894
+ }),
895
+ });
739
896
  export const KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog = (obj) => ({
740
897
  ...obj,
741
898
  ...(obj.retrievalConfiguration && {
@@ -768,3 +925,18 @@ export const RetrieveAndGenerateRequestFilterSensitiveLog = (obj) => ({
768
925
  retrieveAndGenerateConfiguration: RetrieveAndGenerateConfigurationFilterSensitiveLog(obj.retrieveAndGenerateConfiguration),
769
926
  }),
770
927
  });
928
+ export const SessionStateFilterSensitiveLog = (obj) => ({
929
+ ...obj,
930
+ ...(obj.returnControlInvocationResults && {
931
+ returnControlInvocationResults: obj.returnControlInvocationResults.map((item) => InvocationResultMemberFilterSensitiveLog(item)),
932
+ }),
933
+ ...(obj.files && { files: obj.files.map((item) => InputFileFilterSensitiveLog(item)) }),
934
+ ...(obj.knowledgeBaseConfigurations && {
935
+ knowledgeBaseConfigurations: obj.knowledgeBaseConfigurations.map((item) => KnowledgeBaseConfigurationFilterSensitiveLog(item)),
936
+ }),
937
+ });
938
+ export const InvokeAgentRequestFilterSensitiveLog = (obj) => ({
939
+ ...obj,
940
+ ...(obj.sessionState && { sessionState: SessionStateFilterSensitiveLog(obj.sessionState) }),
941
+ ...(obj.inputText && { inputText: SENSITIVE_STRING }),
942
+ });
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BedrockAgentRuntimeClient } from "../BedrockAgentRuntimeClient";
3
+ import { GetAgentMemoryCommand, } from "../commands/GetAgentMemoryCommand";
4
+ export const paginateGetAgentMemory = createPaginator(BedrockAgentRuntimeClient, GetAgentMemoryCommand, "nextToken", "nextToken", "maxItems");
@@ -1,2 +1,3 @@
1
+ export * from "./GetAgentMemoryPaginator";
1
2
  export * from "./Interfaces";
2
3
  export * from "./RetrievePaginator";