@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
@@ -8,6 +8,11 @@ export declare class AccessDeniedException extends __BaseException {
8
8
  opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
9
9
  );
10
10
  }
11
+ export declare const ExecutionType: {
12
+ readonly LAMBDA: "LAMBDA";
13
+ readonly RETURN_CONTROL: "RETURN_CONTROL";
14
+ };
15
+ export type ExecutionType = (typeof ExecutionType)[keyof typeof ExecutionType];
11
16
  export interface Parameter {
12
17
  name?: string;
13
18
  type?: string;
@@ -23,6 +28,8 @@ export interface ActionGroupInvocationInput {
23
28
  parameters?: Parameter[];
24
29
  requestBody?: RequestBody;
25
30
  function?: string;
31
+ executionType?: ExecutionType;
32
+ invocationId?: string;
26
33
  }
27
34
  export interface ActionGroupInvocationOutput {
28
35
  text?: string;
@@ -55,6 +62,341 @@ export declare class InternalServerException extends __BaseException {
55
62
  opts: __ExceptionOptionType<InternalServerException, __BaseException>
56
63
  );
57
64
  }
65
+ export type FlowInputContent =
66
+ | FlowInputContent.DocumentMember
67
+ | FlowInputContent.$UnknownMember;
68
+ export declare namespace FlowInputContent {
69
+ interface DocumentMember {
70
+ document: __DocumentType;
71
+ $unknown?: never;
72
+ }
73
+ interface $UnknownMember {
74
+ document?: never;
75
+ $unknown: [string, any];
76
+ }
77
+ interface Visitor<T> {
78
+ document: (value: __DocumentType) => T;
79
+ _: (name: string, value: any) => T;
80
+ }
81
+ const visit: <T>(value: FlowInputContent, visitor: Visitor<T>) => T;
82
+ }
83
+ export interface FlowInput {
84
+ nodeName: string | undefined;
85
+ nodeOutputName: string | undefined;
86
+ content: FlowInputContent | undefined;
87
+ }
88
+ export interface InvokeFlowRequest {
89
+ flowIdentifier: string | undefined;
90
+ flowAliasIdentifier: string | undefined;
91
+ inputs: FlowInput[] | undefined;
92
+ }
93
+ export declare const FlowCompletionReason: {
94
+ readonly SUCCESS: "SUCCESS";
95
+ };
96
+ export type FlowCompletionReason =
97
+ (typeof FlowCompletionReason)[keyof typeof FlowCompletionReason];
98
+ export interface FlowCompletionEvent {
99
+ completionReason: FlowCompletionReason | undefined;
100
+ }
101
+ export type FlowOutputContent =
102
+ | FlowOutputContent.DocumentMember
103
+ | FlowOutputContent.$UnknownMember;
104
+ export declare namespace FlowOutputContent {
105
+ interface DocumentMember {
106
+ document: __DocumentType;
107
+ $unknown?: never;
108
+ }
109
+ interface $UnknownMember {
110
+ document?: never;
111
+ $unknown: [string, any];
112
+ }
113
+ interface Visitor<T> {
114
+ document: (value: __DocumentType) => T;
115
+ _: (name: string, value: any) => T;
116
+ }
117
+ const visit: <T>(value: FlowOutputContent, visitor: Visitor<T>) => T;
118
+ }
119
+ export declare const NodeType: {
120
+ readonly CONDITION_NODE: "ConditionNode";
121
+ readonly FLOW_INPUT_NODE: "FlowInputNode";
122
+ readonly FLOW_OUTPUT_NODE: "FlowOutputNode";
123
+ readonly KNOWLEDGE_BASE_NODE: "KnowledgeBaseNode";
124
+ readonly LAMBDA_FUNCTION_NODE: "LambdaFunctionNode";
125
+ readonly LEX_NODE: "LexNode";
126
+ readonly PROMPT_NODE: "PromptNode";
127
+ };
128
+ export type NodeType = (typeof NodeType)[keyof typeof NodeType];
129
+ export interface FlowOutputEvent {
130
+ nodeName: string | undefined;
131
+ nodeType: NodeType | undefined;
132
+ content: FlowOutputContent | undefined;
133
+ }
134
+ export declare class ResourceNotFoundException extends __BaseException {
135
+ readonly name: "ResourceNotFoundException";
136
+ readonly $fault: "client";
137
+ constructor(
138
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
139
+ );
140
+ }
141
+ export declare class ServiceQuotaExceededException extends __BaseException {
142
+ readonly name: "ServiceQuotaExceededException";
143
+ readonly $fault: "client";
144
+ constructor(
145
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
146
+ );
147
+ }
148
+ export declare class ThrottlingException extends __BaseException {
149
+ readonly name: "ThrottlingException";
150
+ readonly $fault: "client";
151
+ constructor(
152
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
153
+ );
154
+ }
155
+ export declare class ValidationException extends __BaseException {
156
+ readonly name: "ValidationException";
157
+ readonly $fault: "client";
158
+ constructor(
159
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
160
+ );
161
+ }
162
+ export type FlowResponseStream =
163
+ | FlowResponseStream.AccessDeniedExceptionMember
164
+ | FlowResponseStream.BadGatewayExceptionMember
165
+ | FlowResponseStream.ConflictExceptionMember
166
+ | FlowResponseStream.DependencyFailedExceptionMember
167
+ | FlowResponseStream.FlowCompletionEventMember
168
+ | FlowResponseStream.FlowOutputEventMember
169
+ | FlowResponseStream.InternalServerExceptionMember
170
+ | FlowResponseStream.ResourceNotFoundExceptionMember
171
+ | FlowResponseStream.ServiceQuotaExceededExceptionMember
172
+ | FlowResponseStream.ThrottlingExceptionMember
173
+ | FlowResponseStream.ValidationExceptionMember
174
+ | FlowResponseStream.$UnknownMember;
175
+ export declare namespace FlowResponseStream {
176
+ interface FlowOutputEventMember {
177
+ flowOutputEvent: FlowOutputEvent;
178
+ flowCompletionEvent?: never;
179
+ internalServerException?: never;
180
+ validationException?: never;
181
+ resourceNotFoundException?: never;
182
+ serviceQuotaExceededException?: never;
183
+ throttlingException?: never;
184
+ accessDeniedException?: never;
185
+ conflictException?: never;
186
+ dependencyFailedException?: never;
187
+ badGatewayException?: never;
188
+ $unknown?: never;
189
+ }
190
+ interface FlowCompletionEventMember {
191
+ flowOutputEvent?: never;
192
+ flowCompletionEvent: FlowCompletionEvent;
193
+ internalServerException?: never;
194
+ validationException?: never;
195
+ resourceNotFoundException?: never;
196
+ serviceQuotaExceededException?: never;
197
+ throttlingException?: never;
198
+ accessDeniedException?: never;
199
+ conflictException?: never;
200
+ dependencyFailedException?: never;
201
+ badGatewayException?: never;
202
+ $unknown?: never;
203
+ }
204
+ interface InternalServerExceptionMember {
205
+ flowOutputEvent?: never;
206
+ flowCompletionEvent?: never;
207
+ internalServerException: InternalServerException;
208
+ validationException?: never;
209
+ resourceNotFoundException?: never;
210
+ serviceQuotaExceededException?: never;
211
+ throttlingException?: never;
212
+ accessDeniedException?: never;
213
+ conflictException?: never;
214
+ dependencyFailedException?: never;
215
+ badGatewayException?: never;
216
+ $unknown?: never;
217
+ }
218
+ interface ValidationExceptionMember {
219
+ flowOutputEvent?: never;
220
+ flowCompletionEvent?: never;
221
+ internalServerException?: never;
222
+ validationException: ValidationException;
223
+ resourceNotFoundException?: never;
224
+ serviceQuotaExceededException?: never;
225
+ throttlingException?: never;
226
+ accessDeniedException?: never;
227
+ conflictException?: never;
228
+ dependencyFailedException?: never;
229
+ badGatewayException?: never;
230
+ $unknown?: never;
231
+ }
232
+ interface ResourceNotFoundExceptionMember {
233
+ flowOutputEvent?: never;
234
+ flowCompletionEvent?: never;
235
+ internalServerException?: never;
236
+ validationException?: never;
237
+ resourceNotFoundException: ResourceNotFoundException;
238
+ serviceQuotaExceededException?: never;
239
+ throttlingException?: never;
240
+ accessDeniedException?: never;
241
+ conflictException?: never;
242
+ dependencyFailedException?: never;
243
+ badGatewayException?: never;
244
+ $unknown?: never;
245
+ }
246
+ interface ServiceQuotaExceededExceptionMember {
247
+ flowOutputEvent?: never;
248
+ flowCompletionEvent?: never;
249
+ internalServerException?: never;
250
+ validationException?: never;
251
+ resourceNotFoundException?: never;
252
+ serviceQuotaExceededException: ServiceQuotaExceededException;
253
+ throttlingException?: never;
254
+ accessDeniedException?: never;
255
+ conflictException?: never;
256
+ dependencyFailedException?: never;
257
+ badGatewayException?: never;
258
+ $unknown?: never;
259
+ }
260
+ interface ThrottlingExceptionMember {
261
+ flowOutputEvent?: never;
262
+ flowCompletionEvent?: never;
263
+ internalServerException?: never;
264
+ validationException?: never;
265
+ resourceNotFoundException?: never;
266
+ serviceQuotaExceededException?: never;
267
+ throttlingException: ThrottlingException;
268
+ accessDeniedException?: never;
269
+ conflictException?: never;
270
+ dependencyFailedException?: never;
271
+ badGatewayException?: never;
272
+ $unknown?: never;
273
+ }
274
+ interface AccessDeniedExceptionMember {
275
+ flowOutputEvent?: never;
276
+ flowCompletionEvent?: never;
277
+ internalServerException?: never;
278
+ validationException?: never;
279
+ resourceNotFoundException?: never;
280
+ serviceQuotaExceededException?: never;
281
+ throttlingException?: never;
282
+ accessDeniedException: AccessDeniedException;
283
+ conflictException?: never;
284
+ dependencyFailedException?: never;
285
+ badGatewayException?: never;
286
+ $unknown?: never;
287
+ }
288
+ interface ConflictExceptionMember {
289
+ flowOutputEvent?: never;
290
+ flowCompletionEvent?: never;
291
+ internalServerException?: never;
292
+ validationException?: never;
293
+ resourceNotFoundException?: never;
294
+ serviceQuotaExceededException?: never;
295
+ throttlingException?: never;
296
+ accessDeniedException?: never;
297
+ conflictException: ConflictException;
298
+ dependencyFailedException?: never;
299
+ badGatewayException?: never;
300
+ $unknown?: never;
301
+ }
302
+ interface DependencyFailedExceptionMember {
303
+ flowOutputEvent?: never;
304
+ flowCompletionEvent?: never;
305
+ internalServerException?: never;
306
+ validationException?: never;
307
+ resourceNotFoundException?: never;
308
+ serviceQuotaExceededException?: never;
309
+ throttlingException?: never;
310
+ accessDeniedException?: never;
311
+ conflictException?: never;
312
+ dependencyFailedException: DependencyFailedException;
313
+ badGatewayException?: never;
314
+ $unknown?: never;
315
+ }
316
+ interface BadGatewayExceptionMember {
317
+ flowOutputEvent?: never;
318
+ flowCompletionEvent?: never;
319
+ internalServerException?: never;
320
+ validationException?: never;
321
+ resourceNotFoundException?: never;
322
+ serviceQuotaExceededException?: never;
323
+ throttlingException?: never;
324
+ accessDeniedException?: never;
325
+ conflictException?: never;
326
+ dependencyFailedException?: never;
327
+ badGatewayException: BadGatewayException;
328
+ $unknown?: never;
329
+ }
330
+ interface $UnknownMember {
331
+ flowOutputEvent?: never;
332
+ flowCompletionEvent?: never;
333
+ internalServerException?: never;
334
+ validationException?: never;
335
+ resourceNotFoundException?: never;
336
+ serviceQuotaExceededException?: never;
337
+ throttlingException?: never;
338
+ accessDeniedException?: never;
339
+ conflictException?: never;
340
+ dependencyFailedException?: never;
341
+ badGatewayException?: never;
342
+ $unknown: [string, any];
343
+ }
344
+ interface Visitor<T> {
345
+ flowOutputEvent: (value: FlowOutputEvent) => T;
346
+ flowCompletionEvent: (value: FlowCompletionEvent) => T;
347
+ internalServerException: (value: InternalServerException) => T;
348
+ validationException: (value: ValidationException) => T;
349
+ resourceNotFoundException: (value: ResourceNotFoundException) => T;
350
+ serviceQuotaExceededException: (value: ServiceQuotaExceededException) => T;
351
+ throttlingException: (value: ThrottlingException) => T;
352
+ accessDeniedException: (value: AccessDeniedException) => T;
353
+ conflictException: (value: ConflictException) => T;
354
+ dependencyFailedException: (value: DependencyFailedException) => T;
355
+ badGatewayException: (value: BadGatewayException) => T;
356
+ _: (name: string, value: any) => T;
357
+ }
358
+ const visit: <T>(value: FlowResponseStream, visitor: Visitor<T>) => T;
359
+ }
360
+ export interface InvokeFlowResponse {
361
+ responseStream: AsyncIterable<FlowResponseStream> | undefined;
362
+ }
363
+ export interface ByteContentFile {
364
+ mediaType: string | undefined;
365
+ data: Uint8Array | undefined;
366
+ }
367
+ export interface S3ObjectFile {
368
+ uri: string | undefined;
369
+ }
370
+ export declare const FileSourceType: {
371
+ readonly BYTE_CONTENT: "BYTE_CONTENT";
372
+ readonly S3: "S3";
373
+ };
374
+ export type FileSourceType =
375
+ (typeof FileSourceType)[keyof typeof FileSourceType];
376
+ export interface FileSource {
377
+ sourceType: FileSourceType | undefined;
378
+ s3Location?: S3ObjectFile;
379
+ byteContent?: ByteContentFile;
380
+ }
381
+ export declare const FileUseCase: {
382
+ readonly CHAT: "CHAT";
383
+ readonly CODE_INTERPRETER: "CODE_INTERPRETER";
384
+ };
385
+ export type FileUseCase = (typeof FileUseCase)[keyof typeof FileUseCase];
386
+ export interface InputFile {
387
+ name: string | undefined;
388
+ source: FileSource | undefined;
389
+ useCase: FileUseCase | undefined;
390
+ }
391
+ export interface FilterAttribute {
392
+ key: string | undefined;
393
+ value: __DocumentType | undefined;
394
+ }
395
+ export declare const SearchType: {
396
+ readonly HYBRID: "HYBRID";
397
+ readonly SEMANTIC: "SEMANTIC";
398
+ };
399
+ export type SearchType = (typeof SearchType)[keyof typeof SearchType];
58
400
  export interface ContentBody {
59
401
  body?: string;
60
402
  }
@@ -104,21 +446,6 @@ export declare namespace InvocationResultMember {
104
446
  }
105
447
  const visit: <T>(value: InvocationResultMember, visitor: Visitor<T>) => T;
106
448
  }
107
- export interface SessionState {
108
- sessionAttributes?: Record<string, string>;
109
- promptSessionAttributes?: Record<string, string>;
110
- returnControlInvocationResults?: InvocationResultMember[];
111
- invocationId?: string;
112
- }
113
- export interface InvokeAgentRequest {
114
- sessionState?: SessionState;
115
- agentId: string | undefined;
116
- agentAliasId: string | undefined;
117
- sessionId: string | undefined;
118
- endSession?: boolean;
119
- enableTrace?: boolean;
120
- inputText?: string;
121
- }
122
449
  export interface Span {
123
450
  start?: number;
124
451
  end?: number;
@@ -133,17 +460,37 @@ export interface GeneratedResponsePart {
133
460
  export interface RetrievalResultContent {
134
461
  text: string | undefined;
135
462
  }
463
+ export interface RetrievalResultConfluenceLocation {
464
+ url?: string;
465
+ }
136
466
  export interface RetrievalResultS3Location {
137
467
  uri?: string;
138
468
  }
469
+ export interface RetrievalResultSalesforceLocation {
470
+ url?: string;
471
+ }
472
+ export interface RetrievalResultSharePointLocation {
473
+ url?: string;
474
+ }
139
475
  export declare const RetrievalResultLocationType: {
476
+ readonly CONFLUENCE: "CONFLUENCE";
140
477
  readonly S3: "S3";
478
+ readonly SALESFORCE: "SALESFORCE";
479
+ readonly SHAREPOINT: "SHAREPOINT";
480
+ readonly WEB: "WEB";
141
481
  };
142
482
  export type RetrievalResultLocationType =
143
483
  (typeof RetrievalResultLocationType)[keyof typeof RetrievalResultLocationType];
484
+ export interface RetrievalResultWebLocation {
485
+ url?: string;
486
+ }
144
487
  export interface RetrievalResultLocation {
145
488
  type: RetrievalResultLocationType | undefined;
146
489
  s3Location?: RetrievalResultS3Location;
490
+ webLocation?: RetrievalResultWebLocation;
491
+ confluenceLocation?: RetrievalResultConfluenceLocation;
492
+ salesforceLocation?: RetrievalResultSalesforceLocation;
493
+ sharePointLocation?: RetrievalResultSharePointLocation;
147
494
  }
148
495
  export interface RetrievedReference {
149
496
  content?: RetrievalResultContent;
@@ -161,12 +508,13 @@ export interface PayloadPart {
161
508
  bytes?: Uint8Array;
162
509
  attribution?: Attribution;
163
510
  }
164
- export declare class ResourceNotFoundException extends __BaseException {
165
- readonly name: "ResourceNotFoundException";
166
- readonly $fault: "client";
167
- constructor(
168
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
169
- );
511
+ export interface OutputFile {
512
+ name?: string;
513
+ type?: string;
514
+ bytes?: Uint8Array;
515
+ }
516
+ export interface FilePart {
517
+ files?: OutputFile[];
170
518
  }
171
519
  export interface ApiParameter {
172
520
  name?: string;
@@ -227,20 +575,6 @@ export interface ReturnControlPayload {
227
575
  invocationInputs?: InvocationInputMember[];
228
576
  invocationId?: string;
229
577
  }
230
- export declare class ServiceQuotaExceededException extends __BaseException {
231
- readonly name: "ServiceQuotaExceededException";
232
- readonly $fault: "client";
233
- constructor(
234
- opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
235
- );
236
- }
237
- export declare class ThrottlingException extends __BaseException {
238
- readonly name: "ThrottlingException";
239
- readonly $fault: "client";
240
- constructor(
241
- opts: __ExceptionOptionType<ThrottlingException, __BaseException>
242
- );
243
- }
244
578
  export interface FailureTrace {
245
579
  traceId?: string;
246
580
  failureReason?: string;
@@ -391,8 +725,13 @@ export interface GuardrailTrace {
391
725
  inputAssessments?: GuardrailAssessment[];
392
726
  outputAssessments?: GuardrailAssessment[];
393
727
  }
728
+ export interface CodeInterpreterInvocationInput {
729
+ code?: string;
730
+ files?: string[];
731
+ }
394
732
  export declare const InvocationType: {
395
733
  readonly ACTION_GROUP: "ACTION_GROUP";
734
+ readonly ACTION_GROUP_CODE_INTERPRETER: "ACTION_GROUP_CODE_INTERPRETER";
396
735
  readonly FINISH: "FINISH";
397
736
  readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
398
737
  };
@@ -407,6 +746,7 @@ export interface InvocationInput {
407
746
  invocationType?: InvocationType;
408
747
  actionGroupInvocationInput?: ActionGroupInvocationInput;
409
748
  knowledgeBaseLookupInput?: KnowledgeBaseLookupInput;
749
+ codeInterpreterInvocationInput?: CodeInterpreterInvocationInput;
410
750
  }
411
751
  export interface InferenceConfiguration {
412
752
  temperature?: number;
@@ -436,6 +776,12 @@ export interface ModelInvocationInput {
436
776
  promptCreationMode?: CreationMode;
437
777
  parserMode?: CreationMode;
438
778
  }
779
+ export interface CodeInterpreterInvocationOutput {
780
+ executionOutput?: string;
781
+ executionError?: string;
782
+ files?: string[];
783
+ executionTimeout?: boolean;
784
+ }
439
785
  export interface FinalResponse {
440
786
  text?: string;
441
787
  }
@@ -467,6 +813,7 @@ export interface Observation {
467
813
  knowledgeBaseLookupOutput?: KnowledgeBaseLookupOutput;
468
814
  finalResponse?: FinalResponse;
469
815
  repromptResponse?: RepromptResponse;
816
+ codeInterpreterInvocationOutput?: CodeInterpreterInvocationOutput;
470
817
  }
471
818
  export interface Rationale {
472
819
  traceId?: string;
@@ -665,19 +1012,13 @@ export interface TracePart {
665
1012
  agentVersion?: string;
666
1013
  trace?: Trace;
667
1014
  }
668
- export declare class ValidationException extends __BaseException {
669
- readonly name: "ValidationException";
670
- readonly $fault: "client";
671
- constructor(
672
- opts: __ExceptionOptionType<ValidationException, __BaseException>
673
- );
674
- }
675
1015
  export type ResponseStream =
676
1016
  | ResponseStream.AccessDeniedExceptionMember
677
1017
  | ResponseStream.BadGatewayExceptionMember
678
1018
  | ResponseStream.ChunkMember
679
1019
  | ResponseStream.ConflictExceptionMember
680
1020
  | ResponseStream.DependencyFailedExceptionMember
1021
+ | ResponseStream.FilesMember
681
1022
  | ResponseStream.InternalServerExceptionMember
682
1023
  | ResponseStream.ResourceNotFoundExceptionMember
683
1024
  | ResponseStream.ReturnControlMember
@@ -700,6 +1041,7 @@ export declare namespace ResponseStream {
700
1041
  conflictException?: never;
701
1042
  dependencyFailedException?: never;
702
1043
  badGatewayException?: never;
1044
+ files?: never;
703
1045
  $unknown?: never;
704
1046
  }
705
1047
  interface TraceMember {
@@ -715,6 +1057,7 @@ export declare namespace ResponseStream {
715
1057
  conflictException?: never;
716
1058
  dependencyFailedException?: never;
717
1059
  badGatewayException?: never;
1060
+ files?: never;
718
1061
  $unknown?: never;
719
1062
  }
720
1063
  interface ReturnControlMember {
@@ -730,6 +1073,7 @@ export declare namespace ResponseStream {
730
1073
  conflictException?: never;
731
1074
  dependencyFailedException?: never;
732
1075
  badGatewayException?: never;
1076
+ files?: never;
733
1077
  $unknown?: never;
734
1078
  }
735
1079
  interface InternalServerExceptionMember {
@@ -745,6 +1089,7 @@ export declare namespace ResponseStream {
745
1089
  conflictException?: never;
746
1090
  dependencyFailedException?: never;
747
1091
  badGatewayException?: never;
1092
+ files?: never;
748
1093
  $unknown?: never;
749
1094
  }
750
1095
  interface ValidationExceptionMember {
@@ -760,6 +1105,7 @@ export declare namespace ResponseStream {
760
1105
  conflictException?: never;
761
1106
  dependencyFailedException?: never;
762
1107
  badGatewayException?: never;
1108
+ files?: never;
763
1109
  $unknown?: never;
764
1110
  }
765
1111
  interface ResourceNotFoundExceptionMember {
@@ -775,6 +1121,7 @@ export declare namespace ResponseStream {
775
1121
  conflictException?: never;
776
1122
  dependencyFailedException?: never;
777
1123
  badGatewayException?: never;
1124
+ files?: never;
778
1125
  $unknown?: never;
779
1126
  }
780
1127
  interface ServiceQuotaExceededExceptionMember {
@@ -790,6 +1137,7 @@ export declare namespace ResponseStream {
790
1137
  conflictException?: never;
791
1138
  dependencyFailedException?: never;
792
1139
  badGatewayException?: never;
1140
+ files?: never;
793
1141
  $unknown?: never;
794
1142
  }
795
1143
  interface ThrottlingExceptionMember {
@@ -805,6 +1153,7 @@ export declare namespace ResponseStream {
805
1153
  conflictException?: never;
806
1154
  dependencyFailedException?: never;
807
1155
  badGatewayException?: never;
1156
+ files?: never;
808
1157
  $unknown?: never;
809
1158
  }
810
1159
  interface AccessDeniedExceptionMember {
@@ -820,6 +1169,7 @@ export declare namespace ResponseStream {
820
1169
  conflictException?: never;
821
1170
  dependencyFailedException?: never;
822
1171
  badGatewayException?: never;
1172
+ files?: never;
823
1173
  $unknown?: never;
824
1174
  }
825
1175
  interface ConflictExceptionMember {
@@ -835,6 +1185,7 @@ export declare namespace ResponseStream {
835
1185
  conflictException: ConflictException;
836
1186
  dependencyFailedException?: never;
837
1187
  badGatewayException?: never;
1188
+ files?: never;
838
1189
  $unknown?: never;
839
1190
  }
840
1191
  interface DependencyFailedExceptionMember {
@@ -850,6 +1201,7 @@ export declare namespace ResponseStream {
850
1201
  conflictException?: never;
851
1202
  dependencyFailedException: DependencyFailedException;
852
1203
  badGatewayException?: never;
1204
+ files?: never;
853
1205
  $unknown?: never;
854
1206
  }
855
1207
  interface BadGatewayExceptionMember {
@@ -865,6 +1217,23 @@ export declare namespace ResponseStream {
865
1217
  conflictException?: never;
866
1218
  dependencyFailedException?: never;
867
1219
  badGatewayException: BadGatewayException;
1220
+ files?: never;
1221
+ $unknown?: never;
1222
+ }
1223
+ interface FilesMember {
1224
+ chunk?: never;
1225
+ trace?: never;
1226
+ returnControl?: never;
1227
+ internalServerException?: never;
1228
+ validationException?: never;
1229
+ resourceNotFoundException?: never;
1230
+ serviceQuotaExceededException?: never;
1231
+ throttlingException?: never;
1232
+ accessDeniedException?: never;
1233
+ conflictException?: never;
1234
+ dependencyFailedException?: never;
1235
+ badGatewayException?: never;
1236
+ files: FilePart;
868
1237
  $unknown?: never;
869
1238
  }
870
1239
  interface $UnknownMember {
@@ -880,6 +1249,7 @@ export declare namespace ResponseStream {
880
1249
  conflictException?: never;
881
1250
  dependencyFailedException?: never;
882
1251
  badGatewayException?: never;
1252
+ files?: never;
883
1253
  $unknown: [string, any];
884
1254
  }
885
1255
  interface Visitor<T> {
@@ -895,6 +1265,7 @@ export declare namespace ResponseStream {
895
1265
  conflictException: (value: ConflictException) => T;
896
1266
  dependencyFailedException: (value: DependencyFailedException) => T;
897
1267
  badGatewayException: (value: BadGatewayException) => T;
1268
+ files: (value: FilePart) => T;
898
1269
  _: (name: string, value: any) => T;
899
1270
  }
900
1271
  const visit: <T>(value: ResponseStream, visitor: Visitor<T>) => T;
@@ -903,6 +1274,52 @@ export interface InvokeAgentResponse {
903
1274
  completion: AsyncIterable<ResponseStream> | undefined;
904
1275
  contentType: string | undefined;
905
1276
  sessionId: string | undefined;
1277
+ memoryId?: string;
1278
+ }
1279
+ export interface DeleteAgentMemoryRequest {
1280
+ agentId: string | undefined;
1281
+ agentAliasId: string | undefined;
1282
+ memoryId?: string;
1283
+ }
1284
+ export interface DeleteAgentMemoryResponse {}
1285
+ export declare const MemoryType: {
1286
+ readonly SESSION_SUMMARY: "SESSION_SUMMARY";
1287
+ };
1288
+ export type MemoryType = (typeof MemoryType)[keyof typeof MemoryType];
1289
+ export interface GetAgentMemoryRequest {
1290
+ nextToken?: string;
1291
+ maxItems?: number;
1292
+ agentId: string | undefined;
1293
+ agentAliasId: string | undefined;
1294
+ memoryType: MemoryType | undefined;
1295
+ memoryId: string | undefined;
1296
+ }
1297
+ export interface MemorySessionSummary {
1298
+ memoryId?: string;
1299
+ sessionId?: string;
1300
+ sessionStartTime?: Date;
1301
+ sessionExpiryTime?: Date;
1302
+ summaryText?: string;
1303
+ }
1304
+ export type Memory = Memory.SessionSummaryMember | Memory.$UnknownMember;
1305
+ export declare namespace Memory {
1306
+ interface SessionSummaryMember {
1307
+ sessionSummary: MemorySessionSummary;
1308
+ $unknown?: never;
1309
+ }
1310
+ interface $UnknownMember {
1311
+ sessionSummary?: never;
1312
+ $unknown: [string, any];
1313
+ }
1314
+ interface Visitor<T> {
1315
+ sessionSummary: (value: MemorySessionSummary) => T;
1316
+ _: (name: string, value: any) => T;
1317
+ }
1318
+ const visit: <T>(value: Memory, visitor: Visitor<T>) => T;
1319
+ }
1320
+ export interface GetAgentMemoryResponse {
1321
+ nextToken?: string;
1322
+ memoryContents?: Memory[];
906
1323
  }
907
1324
  export interface RetrieveAndGenerateInput {
908
1325
  text: string | undefined;
@@ -959,15 +1376,19 @@ export interface GenerationConfiguration {
959
1376
  inferenceConfig?: InferenceConfig;
960
1377
  additionalModelRequestFields?: Record<string, __DocumentType>;
961
1378
  }
962
- export interface FilterAttribute {
963
- key: string | undefined;
964
- value: __DocumentType | undefined;
965
- }
966
- export declare const SearchType: {
967
- readonly HYBRID: "HYBRID";
968
- readonly SEMANTIC: "SEMANTIC";
1379
+ export declare const QueryTransformationType: {
1380
+ readonly QUERY_DECOMPOSITION: "QUERY_DECOMPOSITION";
969
1381
  };
970
- export type SearchType = (typeof SearchType)[keyof typeof SearchType];
1382
+ export type QueryTransformationType =
1383
+ (typeof QueryTransformationType)[keyof typeof QueryTransformationType];
1384
+ export interface QueryTransformationConfiguration {
1385
+ type: QueryTransformationType | undefined;
1386
+ }
1387
+ export interface OrchestrationConfiguration {
1388
+ queryTransformationConfiguration:
1389
+ | QueryTransformationConfiguration
1390
+ | undefined;
1391
+ }
971
1392
  export declare const RetrieveAndGenerateType: {
972
1393
  readonly EXTERNAL_SOURCES: "EXTERNAL_SOURCES";
973
1394
  readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
@@ -1271,11 +1692,16 @@ export interface KnowledgeBaseVectorSearchConfiguration {
1271
1692
  export interface KnowledgeBaseRetrievalConfiguration {
1272
1693
  vectorSearchConfiguration: KnowledgeBaseVectorSearchConfiguration | undefined;
1273
1694
  }
1695
+ export interface KnowledgeBaseConfiguration {
1696
+ knowledgeBaseId: string | undefined;
1697
+ retrievalConfiguration: KnowledgeBaseRetrievalConfiguration | undefined;
1698
+ }
1274
1699
  export interface KnowledgeBaseRetrieveAndGenerateConfiguration {
1275
1700
  knowledgeBaseId: string | undefined;
1276
1701
  modelArn: string | undefined;
1277
1702
  retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration;
1278
1703
  generationConfiguration?: GenerationConfiguration;
1704
+ orchestrationConfiguration?: OrchestrationConfiguration;
1279
1705
  }
1280
1706
  export interface RetrieveRequest {
1281
1707
  knowledgeBaseId: string | undefined;
@@ -1294,20 +1720,58 @@ export interface RetrieveAndGenerateRequest {
1294
1720
  retrieveAndGenerateConfiguration?: RetrieveAndGenerateConfiguration;
1295
1721
  sessionConfiguration?: RetrieveAndGenerateSessionConfiguration;
1296
1722
  }
1723
+ export interface SessionState {
1724
+ sessionAttributes?: Record<string, string>;
1725
+ promptSessionAttributes?: Record<string, string>;
1726
+ returnControlInvocationResults?: InvocationResultMember[];
1727
+ invocationId?: string;
1728
+ files?: InputFile[];
1729
+ knowledgeBaseConfigurations?: KnowledgeBaseConfiguration[];
1730
+ }
1731
+ export interface InvokeAgentRequest {
1732
+ sessionState?: SessionState;
1733
+ agentId: string | undefined;
1734
+ agentAliasId: string | undefined;
1735
+ sessionId: string | undefined;
1736
+ endSession?: boolean;
1737
+ enableTrace?: boolean;
1738
+ inputText?: string;
1739
+ memoryId?: string;
1740
+ }
1297
1741
  export declare const ActionGroupInvocationInputFilterSensitiveLog: (
1298
1742
  obj: ActionGroupInvocationInput
1299
1743
  ) => any;
1300
1744
  export declare const ActionGroupInvocationOutputFilterSensitiveLog: (
1301
1745
  obj: ActionGroupInvocationOutput
1302
1746
  ) => any;
1747
+ export declare const FlowInputContentFilterSensitiveLog: (
1748
+ obj: FlowInputContent
1749
+ ) => any;
1750
+ export declare const FlowInputFilterSensitiveLog: (obj: FlowInput) => any;
1751
+ export declare const InvokeFlowRequestFilterSensitiveLog: (
1752
+ obj: InvokeFlowRequest
1753
+ ) => any;
1754
+ export declare const FlowCompletionEventFilterSensitiveLog: (
1755
+ obj: FlowCompletionEvent
1756
+ ) => any;
1757
+ export declare const FlowOutputEventFilterSensitiveLog: (
1758
+ obj: FlowOutputEvent
1759
+ ) => any;
1760
+ export declare const FlowResponseStreamFilterSensitiveLog: (
1761
+ obj: FlowResponseStream
1762
+ ) => any;
1763
+ export declare const InvokeFlowResponseFilterSensitiveLog: (
1764
+ obj: InvokeFlowResponse
1765
+ ) => any;
1766
+ export declare const ByteContentFileFilterSensitiveLog: (
1767
+ obj: ByteContentFile
1768
+ ) => any;
1769
+ export declare const FileSourceFilterSensitiveLog: (obj: FileSource) => any;
1770
+ export declare const InputFileFilterSensitiveLog: (obj: InputFile) => any;
1303
1771
  export declare const ApiResultFilterSensitiveLog: (obj: ApiResult) => any;
1304
1772
  export declare const InvocationResultMemberFilterSensitiveLog: (
1305
1773
  obj: InvocationResultMember
1306
1774
  ) => any;
1307
- export declare const SessionStateFilterSensitiveLog: (obj: SessionState) => any;
1308
- export declare const InvokeAgentRequestFilterSensitiveLog: (
1309
- obj: InvokeAgentRequest
1310
- ) => any;
1311
1775
  export declare const TextResponsePartFilterSensitiveLog: (
1312
1776
  obj: TextResponsePart
1313
1777
  ) => any;
@@ -1326,6 +1790,8 @@ export declare const RetrievedReferenceFilterSensitiveLog: (
1326
1790
  export declare const CitationFilterSensitiveLog: (obj: Citation) => any;
1327
1791
  export declare const AttributionFilterSensitiveLog: (obj: Attribution) => any;
1328
1792
  export declare const PayloadPartFilterSensitiveLog: (obj: PayloadPart) => any;
1793
+ export declare const OutputFileFilterSensitiveLog: (obj: OutputFile) => any;
1794
+ export declare const FilePartFilterSensitiveLog: (obj: FilePart) => any;
1329
1795
  export declare const ApiInvocationInputFilterSensitiveLog: (
1330
1796
  obj: ApiInvocationInput
1331
1797
  ) => any;
@@ -1466,6 +1932,9 @@ export declare const KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog: (
1466
1932
  export declare const KnowledgeBaseRetrievalConfigurationFilterSensitiveLog: (
1467
1933
  obj: KnowledgeBaseRetrievalConfiguration
1468
1934
  ) => any;
1935
+ export declare const KnowledgeBaseConfigurationFilterSensitiveLog: (
1936
+ obj: KnowledgeBaseConfiguration
1937
+ ) => any;
1469
1938
  export declare const KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog: (
1470
1939
  obj: KnowledgeBaseRetrieveAndGenerateConfiguration
1471
1940
  ) => any;
@@ -1478,3 +1947,7 @@ export declare const RetrieveAndGenerateConfigurationFilterSensitiveLog: (
1478
1947
  export declare const RetrieveAndGenerateRequestFilterSensitiveLog: (
1479
1948
  obj: RetrieveAndGenerateRequest
1480
1949
  ) => any;
1950
+ export declare const SessionStateFilterSensitiveLog: (obj: SessionState) => any;
1951
+ export declare const InvokeAgentRequestFilterSensitiveLog: (
1952
+ obj: InvokeAgentRequest
1953
+ ) => any;