aws-sdk 2.1656.0 → 2.1658.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 (37) hide show
  1. package/README.md +1 -1
  2. package/apis/batch-2016-08-10.min.json +62 -52
  3. package/apis/bedrock-2023-04-20.min.json +140 -86
  4. package/apis/bedrock-agent-2023-06-05.min.json +1991 -171
  5. package/apis/bedrock-agent-2023-06-05.paginators.json +24 -0
  6. package/apis/bedrock-agent-runtime-2023-07-26.min.json +642 -216
  7. package/apis/bedrock-agent-runtime-2023-07-26.paginators.json +6 -0
  8. package/apis/bedrock-runtime-2023-09-30.min.json +329 -192
  9. package/apis/datazone-2018-05-10.min.json +8 -2
  10. package/apis/ec2-2016-11-15.min.json +79 -67
  11. package/apis/fsx-2018-03-01.min.json +7 -1
  12. package/apis/glue-2017-03-31.min.json +407 -368
  13. package/apis/groundstation-2019-05-23.min.json +7 -1
  14. package/apis/license-manager-linux-subscriptions-2018-05-10.min.json +236 -16
  15. package/apis/license-manager-linux-subscriptions-2018-05-10.paginators.json +6 -0
  16. package/apis/mediaconnect-2018-11-14.min.json +106 -94
  17. package/apis/opensearch-2021-01-01.min.json +141 -98
  18. package/apis/sagemaker-2017-07-24.min.json +1129 -801
  19. package/apis/sagemaker-2017-07-24.paginators.json +6 -0
  20. package/clients/batch.d.ts +12 -0
  21. package/clients/bedrock.d.ts +63 -14
  22. package/clients/bedrockagent.d.ts +2172 -171
  23. package/clients/bedrockagentruntime.d.ts +396 -11
  24. package/clients/bedrockruntime.d.ts +149 -6
  25. package/clients/ec2.d.ts +28 -3
  26. package/clients/fsx.d.ts +22 -18
  27. package/clients/glue.d.ts +48 -1
  28. package/clients/licensemanagerlinuxsubscriptions.d.ts +249 -10
  29. package/clients/mediaconnect.d.ts +13 -0
  30. package/clients/opensearch.d.ts +53 -0
  31. package/clients/sagemaker.d.ts +389 -0
  32. package/dist/aws-sdk-core-react-native.js +1 -1
  33. package/dist/aws-sdk-react-native.js +19 -19
  34. package/dist/aws-sdk.js +82 -70
  35. package/dist/aws-sdk.min.js +76 -76
  36. package/lib/core.js +1 -1
  37. package/package.json +1 -1
@@ -13,13 +13,37 @@ declare class BedrockAgentRuntime extends Service {
13
13
  constructor(options?: BedrockAgentRuntime.Types.ClientConfiguration)
14
14
  config: Config & BedrockAgentRuntime.Types.ClientConfiguration;
15
15
  /**
16
- * The CLI doesn't support InvokeAgent. Sends a prompt for the agent to process and respond to. Note the following fields for the request: To continue the same conversation with an agent, use the same sessionId value in the request. To activate trace enablement, turn enableTrace to true. Trace enablement helps you follow the agent's reasoning process that led it to the information it processed, the actions it took, and the final result it yielded. For more information, see Trace enablement. End a conversation by setting endSession to true. In the sessionState object, you can include attributes for the session or prompt or, if you configured an action group to return control, results from invocation of the action group. The response is returned in the bytes field of the chunk object. The attribution object contains citations for parts of the response. If you set enableTrace to true in the request, you can trace the agent's steps and reasoning process that led it to the response. If the action predicted was configured to return control, the response returns parameters for the action, elicited from the user, in the returnControl field. Errors are also surfaced in the response.
16
+ * Deletes memory from the specified memory identifier.
17
+ */
18
+ deleteAgentMemory(params: BedrockAgentRuntime.Types.DeleteAgentMemoryRequest, callback?: (err: AWSError, data: BedrockAgentRuntime.Types.DeleteAgentMemoryResponse) => void): Request<BedrockAgentRuntime.Types.DeleteAgentMemoryResponse, AWSError>;
19
+ /**
20
+ * Deletes memory from the specified memory identifier.
21
+ */
22
+ deleteAgentMemory(callback?: (err: AWSError, data: BedrockAgentRuntime.Types.DeleteAgentMemoryResponse) => void): Request<BedrockAgentRuntime.Types.DeleteAgentMemoryResponse, AWSError>;
23
+ /**
24
+ * Gets the sessions stored in the memory of the agent.
25
+ */
26
+ getAgentMemory(params: BedrockAgentRuntime.Types.GetAgentMemoryRequest, callback?: (err: AWSError, data: BedrockAgentRuntime.Types.GetAgentMemoryResponse) => void): Request<BedrockAgentRuntime.Types.GetAgentMemoryResponse, AWSError>;
27
+ /**
28
+ * Gets the sessions stored in the memory of the agent.
29
+ */
30
+ getAgentMemory(callback?: (err: AWSError, data: BedrockAgentRuntime.Types.GetAgentMemoryResponse) => void): Request<BedrockAgentRuntime.Types.GetAgentMemoryResponse, AWSError>;
31
+ /**
32
+ * The CLI doesn't support streaming operations in Amazon Bedrock, including InvokeAgent. Sends a prompt for the agent to process and respond to. Note the following fields for the request: To continue the same conversation with an agent, use the same sessionId value in the request. To activate trace enablement, turn enableTrace to true. Trace enablement helps you follow the agent's reasoning process that led it to the information it processed, the actions it took, and the final result it yielded. For more information, see Trace enablement. End a conversation by setting endSession to true. In the sessionState object, you can include attributes for the session or prompt or, if you configured an action group to return control, results from invocation of the action group. The response is returned in the bytes field of the chunk object. The attribution object contains citations for parts of the response. If you set enableTrace to true in the request, you can trace the agent's steps and reasoning process that led it to the response. If the action predicted was configured to return control, the response returns parameters for the action, elicited from the user, in the returnControl field. Errors are also surfaced in the response.
17
33
  */
18
34
  invokeAgent(params: BedrockAgentRuntime.Types.InvokeAgentRequest, callback?: (err: AWSError, data: BedrockAgentRuntime.Types.InvokeAgentResponse) => void): Request<BedrockAgentRuntime.Types.InvokeAgentResponse, AWSError>;
19
35
  /**
20
- * The CLI doesn't support InvokeAgent. Sends a prompt for the agent to process and respond to. Note the following fields for the request: To continue the same conversation with an agent, use the same sessionId value in the request. To activate trace enablement, turn enableTrace to true. Trace enablement helps you follow the agent's reasoning process that led it to the information it processed, the actions it took, and the final result it yielded. For more information, see Trace enablement. End a conversation by setting endSession to true. In the sessionState object, you can include attributes for the session or prompt or, if you configured an action group to return control, results from invocation of the action group. The response is returned in the bytes field of the chunk object. The attribution object contains citations for parts of the response. If you set enableTrace to true in the request, you can trace the agent's steps and reasoning process that led it to the response. If the action predicted was configured to return control, the response returns parameters for the action, elicited from the user, in the returnControl field. Errors are also surfaced in the response.
36
+ * The CLI doesn't support streaming operations in Amazon Bedrock, including InvokeAgent. Sends a prompt for the agent to process and respond to. Note the following fields for the request: To continue the same conversation with an agent, use the same sessionId value in the request. To activate trace enablement, turn enableTrace to true. Trace enablement helps you follow the agent's reasoning process that led it to the information it processed, the actions it took, and the final result it yielded. For more information, see Trace enablement. End a conversation by setting endSession to true. In the sessionState object, you can include attributes for the session or prompt or, if you configured an action group to return control, results from invocation of the action group. The response is returned in the bytes field of the chunk object. The attribution object contains citations for parts of the response. If you set enableTrace to true in the request, you can trace the agent's steps and reasoning process that led it to the response. If the action predicted was configured to return control, the response returns parameters for the action, elicited from the user, in the returnControl field. Errors are also surfaced in the response.
21
37
  */
22
38
  invokeAgent(callback?: (err: AWSError, data: BedrockAgentRuntime.Types.InvokeAgentResponse) => void): Request<BedrockAgentRuntime.Types.InvokeAgentResponse, AWSError>;
39
+ /**
40
+ * Invokes an alias of a flow to run the inputs that you specify and return the output of each node as a stream. If there's an error, the error is returned. For more information, see Test a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
41
+ */
42
+ invokeFlow(params: BedrockAgentRuntime.Types.InvokeFlowRequest, callback?: (err: AWSError, data: BedrockAgentRuntime.Types.InvokeFlowResponse) => void): Request<BedrockAgentRuntime.Types.InvokeFlowResponse, AWSError>;
43
+ /**
44
+ * Invokes an alias of a flow to run the inputs that you specify and return the output of each node as a stream. If there's an error, the error is returned. For more information, see Test a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
45
+ */
46
+ invokeFlow(callback?: (err: AWSError, data: BedrockAgentRuntime.Types.InvokeFlowResponse) => void): Request<BedrockAgentRuntime.Types.InvokeFlowResponse, AWSError>;
23
47
  /**
24
48
  * Queries a knowledge base and retrieves information from it.
25
49
  */
@@ -50,10 +74,18 @@ declare namespace BedrockAgentRuntime {
50
74
  * The path to the API to call, based off the action group.
51
75
  */
52
76
  apiPath?: ApiPath;
77
+ /**
78
+ * How fulfillment of the action is handled. For more information, see Handling fulfillment of the action.
79
+ */
80
+ executionType?: ExecutionType;
53
81
  /**
54
82
  * The function in the action group to call.
55
83
  */
56
84
  function?: Function;
85
+ /**
86
+ * The unique identifier of the invocation. Only returned if the executionType is RETURN_CONTROL.
87
+ */
88
+ invocationId?: String;
57
89
  /**
58
90
  * The parameters in the Lambda input event.
59
91
  */
@@ -183,6 +215,16 @@ declare namespace BedrockAgentRuntime {
183
215
  */
184
216
  identifier: Identifier;
185
217
  }
218
+ export interface ByteContentFile {
219
+ /**
220
+ * The byte value of the file to attach, encoded as Base-64 string. The maximum size of all files that is attached is 10MB. You can attach a maximum of 5 files.
221
+ */
222
+ data: ByteContentBlob;
223
+ /**
224
+ * The MIME type of data contained in the file used for chat.
225
+ */
226
+ mediaType: MimeType;
227
+ }
186
228
  export interface Citation {
187
229
  /**
188
230
  * Contains the generated response and metadata
@@ -194,6 +236,34 @@ declare namespace BedrockAgentRuntime {
194
236
  retrievedReferences?: RetrievedReferences;
195
237
  }
196
238
  export type Citations = Citation[];
239
+ export interface CodeInterpreterInvocationInput {
240
+ /**
241
+ * The code for the code interpreter to use.
242
+ */
243
+ code?: String;
244
+ /**
245
+ * Files that are uploaded for code interpreter to use.
246
+ */
247
+ files?: Files;
248
+ }
249
+ export interface CodeInterpreterInvocationOutput {
250
+ /**
251
+ * Contains the error returned from code execution.
252
+ */
253
+ executionError?: String;
254
+ /**
255
+ * Contains the successful output returned from code execution
256
+ */
257
+ executionOutput?: String;
258
+ /**
259
+ * Indicates if the execution of the code timed out.
260
+ */
261
+ executionTimeout?: Boolean;
262
+ /**
263
+ * Contains output files, if generated by code execution.
264
+ */
265
+ files?: Files;
266
+ }
197
267
  export interface ConflictException {
198
268
  message?: NonBlankString;
199
269
  }
@@ -206,6 +276,23 @@ declare namespace BedrockAgentRuntime {
206
276
  export type ContentMap = {[key: string]: Parameters};
207
277
  export type ContentType = string;
208
278
  export type CreationMode = "DEFAULT"|"OVERRIDDEN"|string;
279
+ export type DateTimestamp = Date;
280
+ export interface DeleteAgentMemoryRequest {
281
+ /**
282
+ * The unique identifier of an alias of an agent.
283
+ */
284
+ agentAliasId: AgentAliasId;
285
+ /**
286
+ * The unique identifier of the agent to which the alias belongs.
287
+ */
288
+ agentId: AgentId;
289
+ /**
290
+ * The unique identifier of the memory.
291
+ */
292
+ memoryId?: MemoryId;
293
+ }
294
+ export interface DeleteAgentMemoryResponse {
295
+ }
209
296
  export interface DependencyFailedException {
210
297
  message?: NonBlankString;
211
298
  /**
@@ -213,7 +300,10 @@ declare namespace BedrockAgentRuntime {
213
300
  */
214
301
  resourceName?: NonBlankString;
215
302
  }
303
+ export interface Document {
304
+ }
216
305
  export type Double = number;
306
+ export type ExecutionType = "LAMBDA"|"RETURN_CONTROL"|string;
217
307
  export interface ExternalSource {
218
308
  /**
219
309
  * The identifier, contentType, and data of the external source wrapper object.
@@ -273,6 +363,30 @@ declare namespace BedrockAgentRuntime {
273
363
  */
274
364
  traceId?: TraceId;
275
365
  }
366
+ export type FileBody = Buffer|Uint8Array|Blob|string;
367
+ export interface FilePart {
368
+ /**
369
+ * Files containing intermediate response for the user.
370
+ */
371
+ files?: OutputFiles;
372
+ }
373
+ export interface FileSource {
374
+ /**
375
+ * The data and the text of the attached files.
376
+ */
377
+ byteContent?: ByteContentFile;
378
+ /**
379
+ * The s3 location of the files to attach.
380
+ */
381
+ s3Location?: S3ObjectFile;
382
+ /**
383
+ * The source type of the files to attach.
384
+ */
385
+ sourceType: FileSourceType;
386
+ }
387
+ export type FileSourceType = "S3"|"BYTE_CONTENT"|string;
388
+ export type FileUseCase = "CODE_INTERPRETER"|"CHAT"|string;
389
+ export type Files = String[];
276
390
  export interface FilterAttribute {
277
391
  /**
278
392
  * The name that the metadata attribute must match.
@@ -293,6 +407,57 @@ declare namespace BedrockAgentRuntime {
293
407
  text?: FinalResponseString;
294
408
  }
295
409
  export type FinalResponseString = string;
410
+ export type FlowAliasIdentifier = string;
411
+ export interface FlowCompletionEvent {
412
+ /**
413
+ * The reason that the flow completed.
414
+ */
415
+ completionReason: FlowCompletionReason;
416
+ }
417
+ export type FlowCompletionReason = "SUCCESS"|string;
418
+ export type FlowIdentifier = string;
419
+ export interface FlowInput {
420
+ /**
421
+ * Contains information about an input into the flow.
422
+ */
423
+ content: FlowInputContent;
424
+ /**
425
+ * A name for the input of the flow input node.
426
+ */
427
+ nodeName: NodeName;
428
+ /**
429
+ * A name for the output of the flow input node.
430
+ */
431
+ nodeOutputName: NodeOutputName;
432
+ }
433
+ export interface FlowInputContent {
434
+ /**
435
+ * The input for the flow input node.
436
+ */
437
+ document?: Document;
438
+ }
439
+ export type FlowInputs = FlowInput[];
440
+ export interface FlowOutputContent {
441
+ /**
442
+ * A name for the output of the flow.
443
+ */
444
+ document?: Document;
445
+ }
446
+ export interface FlowOutputEvent {
447
+ /**
448
+ * The output of the node.
449
+ */
450
+ content: FlowOutputContent;
451
+ /**
452
+ * The name of the node to which input was provided.
453
+ */
454
+ nodeName: NodeName;
455
+ /**
456
+ * The type of node to which input was provided.
457
+ */
458
+ nodeType: NodeType;
459
+ }
460
+ export type FlowResponseStream = EventStream<{accessDeniedException?:AccessDeniedException,badGatewayException?:BadGatewayException,conflictException?:ConflictException,dependencyFailedException?:DependencyFailedException,flowCompletionEvent?:FlowCompletionEvent,flowOutputEvent?:FlowOutputEvent,internalServerException?:InternalServerException,resourceNotFoundException?:ResourceNotFoundException,serviceQuotaExceededException?:ServiceQuotaExceededException,throttlingException?:ThrottlingException,validationException?:ValidationException}>;
296
461
  export type Function = string;
297
462
  export interface FunctionInvocationInput {
298
463
  /**
@@ -365,6 +530,42 @@ declare namespace BedrockAgentRuntime {
365
530
  */
366
531
  promptTemplate?: PromptTemplate;
367
532
  }
533
+ export interface GetAgentMemoryRequest {
534
+ /**
535
+ * The unique identifier of an alias of an agent.
536
+ */
537
+ agentAliasId: AgentAliasId;
538
+ /**
539
+ * The unique identifier of the agent to which the alias belongs.
540
+ */
541
+ agentId: AgentId;
542
+ /**
543
+ * The maximum number of items to return in the response. If the total number of results is greater than this value, use the token returned in the response in the nextToken field when making another request to return the next batch of results.
544
+ */
545
+ maxItems?: MaxResults;
546
+ /**
547
+ * The unique identifier of the memory.
548
+ */
549
+ memoryId: MemoryId;
550
+ /**
551
+ * The type of memory.
552
+ */
553
+ memoryType: MemoryType;
554
+ /**
555
+ * If the total number of results is greater than the maxItems value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.
556
+ */
557
+ nextToken?: NextToken;
558
+ }
559
+ export interface GetAgentMemoryResponse {
560
+ /**
561
+ * Contains details of the sessions stored in the memory
562
+ */
563
+ memoryContents?: Memories;
564
+ /**
565
+ * If the total number of results is greater than the maxItems value provided in the request, use this token when making another request in the nextToken field to return the next batch of results.
566
+ */
567
+ nextToken?: NextToken;
568
+ }
368
569
  export type GuadrailAction = "INTERVENED"|"NONE"|string;
369
570
  export type GuardrailAction = "INTERVENED"|"NONE"|string;
370
571
  export interface GuardrailAssessment {
@@ -576,6 +777,21 @@ declare namespace BedrockAgentRuntime {
576
777
  */
577
778
  topP?: TopP;
578
779
  }
780
+ export interface InputFile {
781
+ /**
782
+ * The name of the source file.
783
+ */
784
+ name: String;
785
+ /**
786
+ * Specifies where the files are located.
787
+ */
788
+ source: FileSource;
789
+ /**
790
+ * Specifies how the source files will be used by the code interpreter.
791
+ */
792
+ useCase: FileUseCase;
793
+ }
794
+ export type InputFiles = InputFile[];
579
795
  export type InputText = string;
580
796
  export type Integer = number;
581
797
  export interface InternalServerException {
@@ -586,6 +802,10 @@ declare namespace BedrockAgentRuntime {
586
802
  * Contains information about the action group to be invoked.
587
803
  */
588
804
  actionGroupInvocationInput?: ActionGroupInvocationInput;
805
+ /**
806
+ * Contains information about the code interpreter to be invoked.
807
+ */
808
+ codeInterpreterInvocationInput?: CodeInterpreterInvocationInput;
589
809
  /**
590
810
  * Specifies whether the agent is invoking an action group or a knowledge base.
591
811
  */
@@ -620,7 +840,7 @@ declare namespace BedrockAgentRuntime {
620
840
  */
621
841
  functionResult?: FunctionResult;
622
842
  }
623
- export type InvocationType = "ACTION_GROUP"|"KNOWLEDGE_BASE"|"FINISH"|string;
843
+ export type InvocationType = "ACTION_GROUP"|"KNOWLEDGE_BASE"|"FINISH"|"ACTION_GROUP_CODE_INTERPRETER"|string;
624
844
  export interface InvokeAgentRequest {
625
845
  /**
626
846
  * The alias of the agent to use.
@@ -642,6 +862,10 @@ declare namespace BedrockAgentRuntime {
642
862
  * The prompt text to send the agent. If you include returnControlInvocationResults in the sessionState field, the inputText field will be ignored.
643
863
  */
644
864
  inputText?: InputText;
865
+ /**
866
+ * The unique identifier of the agent memory.
867
+ */
868
+ memoryId?: MemoryId;
645
869
  /**
646
870
  * The unique identifier of the session. Use the same value across requests to continue the same conversation.
647
871
  */
@@ -660,12 +884,47 @@ declare namespace BedrockAgentRuntime {
660
884
  * The MIME type of the input data in the request. The default value is application/json.
661
885
  */
662
886
  contentType: MimeType;
887
+ /**
888
+ * The unique identifier of the agent memory.
889
+ */
890
+ memoryId?: MemoryId;
663
891
  /**
664
892
  * The unique identifier of the session with the agent.
665
893
  */
666
894
  sessionId: SessionId;
667
895
  }
896
+ export interface InvokeFlowRequest {
897
+ /**
898
+ * The unique identifier of the flow alias.
899
+ */
900
+ flowAliasIdentifier: FlowAliasIdentifier;
901
+ /**
902
+ * The unique identifier of the flow.
903
+ */
904
+ flowIdentifier: FlowIdentifier;
905
+ /**
906
+ * A list of objects, each containing information about an input into the flow.
907
+ */
908
+ inputs: FlowInputs;
909
+ }
910
+ export interface InvokeFlowResponse {
911
+ /**
912
+ * The output of the flow, returned as a stream. If there's an error, the error is returned.
913
+ */
914
+ responseStream: FlowResponseStream;
915
+ }
668
916
  export type KmsKeyArn = string;
917
+ export interface KnowledgeBaseConfiguration {
918
+ /**
919
+ * The unique identifier for a knowledge base attached to the agent.
920
+ */
921
+ knowledgeBaseId: KnowledgeBaseId;
922
+ /**
923
+ * The configurations to apply to the knowledge base during query. For more information, see Query configurations.
924
+ */
925
+ retrievalConfiguration: KnowledgeBaseRetrievalConfiguration;
926
+ }
927
+ export type KnowledgeBaseConfigurations = KnowledgeBaseConfiguration[];
669
928
  export type KnowledgeBaseId = string;
670
929
  export interface KnowledgeBaseLookupInput {
671
930
  /**
@@ -718,7 +977,7 @@ declare namespace BedrockAgentRuntime {
718
977
  export type KnowledgeBaseRetrievalResults = KnowledgeBaseRetrievalResult[];
719
978
  export interface KnowledgeBaseRetrieveAndGenerateConfiguration {
720
979
  /**
721
- * Contains configurations for response generation based on the knowwledge base query results.
980
+ * Contains configurations for response generation based on the knowledge base query results.
722
981
  */
723
982
  generationConfiguration?: GenerationConfiguration;
724
983
  /**
@@ -729,6 +988,10 @@ declare namespace BedrockAgentRuntime {
729
988
  * The ARN of the foundation model used to generate a response.
730
989
  */
731
990
  modelArn: BedrockModelArn;
991
+ /**
992
+ * Settings for how the model processes the prompt prior to retrieval and generation.
993
+ */
994
+ orchestrationConfiguration?: OrchestrationConfiguration;
732
995
  /**
733
996
  * Contains configurations for how to retrieve and return the knowledge base query.
734
997
  */
@@ -750,8 +1013,40 @@ declare namespace BedrockAgentRuntime {
750
1013
  }
751
1014
  export type KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger = number;
752
1015
  export type LambdaArn = string;
1016
+ export type MaxResults = number;
753
1017
  export type MaxTokens = number;
754
1018
  export type MaximumLength = number;
1019
+ export type Memories = Memory[];
1020
+ export interface Memory {
1021
+ /**
1022
+ * Contains summary of a session.
1023
+ */
1024
+ sessionSummary?: MemorySessionSummary;
1025
+ }
1026
+ export type MemoryId = string;
1027
+ export interface MemorySessionSummary {
1028
+ /**
1029
+ * The unique identifier of the memory where the session summary is stored.
1030
+ */
1031
+ memoryId?: MemoryId;
1032
+ /**
1033
+ * The time when the memory duration for the session is set to end.
1034
+ */
1035
+ sessionExpiryTime?: DateTimestamp;
1036
+ /**
1037
+ * The identifier for this session.
1038
+ */
1039
+ sessionId?: SessionId;
1040
+ /**
1041
+ * The start time for this session.
1042
+ */
1043
+ sessionStartTime?: DateTimestamp;
1044
+ /**
1045
+ * The summarized text for this session.
1046
+ */
1047
+ summaryText?: SummaryText;
1048
+ }
1049
+ export type MemoryType = "SESSION_SUMMARY"|string;
755
1050
  export type MimeType = string;
756
1051
  export interface ModelInvocationInput {
757
1052
  /**
@@ -784,12 +1079,19 @@ declare namespace BedrockAgentRuntime {
784
1079
  type?: PromptType;
785
1080
  }
786
1081
  export type NextToken = string;
1082
+ export type NodeName = string;
1083
+ export type NodeOutputName = string;
1084
+ export type NodeType = "FlowInputNode"|"FlowOutputNode"|"LambdaFunctionNode"|"KnowledgeBaseNode"|"PromptNode"|"ConditionNode"|"LexNode"|string;
787
1085
  export type NonBlankString = string;
788
1086
  export interface Observation {
789
1087
  /**
790
1088
  * Contains the JSON-formatted string returned by the API invoked by the action group.
791
1089
  */
792
1090
  actionGroupInvocationOutput?: ActionGroupInvocationOutput;
1091
+ /**
1092
+ * Contains the JSON-formatted string returned by the API invoked by the code interpreter.
1093
+ */
1094
+ codeInterpreterInvocationOutput?: CodeInterpreterInvocationOutput;
793
1095
  /**
794
1096
  * Contains details about the response to the user.
795
1097
  */
@@ -811,6 +1113,12 @@ declare namespace BedrockAgentRuntime {
811
1113
  */
812
1114
  type?: Type;
813
1115
  }
1116
+ export interface OrchestrationConfiguration {
1117
+ /**
1118
+ * To split up the prompt and retrieve multiple sources, set the transformation type to QUERY_DECOMPOSITION.
1119
+ */
1120
+ queryTransformationConfiguration: QueryTransformationConfiguration;
1121
+ }
814
1122
  export interface OrchestrationTrace {
815
1123
  /**
816
1124
  * Contains information pertaining to the action group or knowledge base that is being invoked.
@@ -829,6 +1137,21 @@ declare namespace BedrockAgentRuntime {
829
1137
  */
830
1138
  rationale?: Rationale;
831
1139
  }
1140
+ export interface OutputFile {
1141
+ /**
1142
+ * The byte count of files that contains response from code interpreter.
1143
+ */
1144
+ bytes?: FileBody;
1145
+ /**
1146
+ * The name of the file containing response from code interpreter.
1147
+ */
1148
+ name?: String;
1149
+ /**
1150
+ * The type of file that contains response from the code interpreter.
1151
+ */
1152
+ type?: MimeType;
1153
+ }
1154
+ export type OutputFiles = OutputFile[];
832
1155
  export type OutputString = string;
833
1156
  export interface Parameter {
834
1157
  /**
@@ -928,6 +1251,13 @@ declare namespace BedrockAgentRuntime {
928
1251
  */
929
1252
  properties?: ParameterList;
930
1253
  }
1254
+ export interface QueryTransformationConfiguration {
1255
+ /**
1256
+ * The type of transformation to apply to the prompt.
1257
+ */
1258
+ type: QueryTransformationType;
1259
+ }
1260
+ export type QueryTransformationType = "QUERY_DECOMPOSITION"|string;
931
1261
  export type RAGStopSequences = RAGStopSequencesMemberString[];
932
1262
  export type RAGStopSequencesMemberString = string;
933
1263
  export interface Rationale {
@@ -962,7 +1292,7 @@ declare namespace BedrockAgentRuntime {
962
1292
  }
963
1293
  export type ResponseBody = {[key: string]: ContentBody};
964
1294
  export type ResponseState = "FAILURE"|"REPROMPT"|string;
965
- export type ResponseStream = EventStream<{accessDeniedException?:AccessDeniedException,badGatewayException?:BadGatewayException,chunk?:PayloadPart,conflictException?:ConflictException,dependencyFailedException?:DependencyFailedException,internalServerException?:InternalServerException,resourceNotFoundException?:ResourceNotFoundException,returnControl?:ReturnControlPayload,serviceQuotaExceededException?:ServiceQuotaExceededException,throttlingException?:ThrottlingException,trace?:TracePart,validationException?:ValidationException}>;
1295
+ export type ResponseStream = EventStream<{accessDeniedException?:AccessDeniedException,badGatewayException?:BadGatewayException,chunk?:PayloadPart,conflictException?:ConflictException,dependencyFailedException?:DependencyFailedException,files?:FilePart,internalServerException?:InternalServerException,resourceNotFoundException?:ResourceNotFoundException,returnControl?:ReturnControlPayload,serviceQuotaExceededException?:ServiceQuotaExceededException,throttlingException?:ThrottlingException,trace?:TracePart,validationException?:ValidationException}>;
966
1296
  export interface RetrievalFilter {
967
1297
  /**
968
1298
  * Knowledge base data sources are returned if their metadata attributes fulfill all the filter conditions inside this list.
@@ -1018,6 +1348,12 @@ declare namespace BedrockAgentRuntime {
1018
1348
  stringContains?: FilterAttribute;
1019
1349
  }
1020
1350
  export type RetrievalFilterList = RetrievalFilter[];
1351
+ export interface RetrievalResultConfluenceLocation {
1352
+ /**
1353
+ * The Confluence host URL for the data source location.
1354
+ */
1355
+ url?: String;
1356
+ }
1021
1357
  export interface RetrievalResultContent {
1022
1358
  /**
1023
1359
  * The cited text from the data source.
@@ -1026,25 +1362,59 @@ declare namespace BedrockAgentRuntime {
1026
1362
  }
1027
1363
  export interface RetrievalResultLocation {
1028
1364
  /**
1029
- * Contains the S3 location of the data source.
1365
+ * The Confluence data source location.
1366
+ */
1367
+ confluenceLocation?: RetrievalResultConfluenceLocation;
1368
+ /**
1369
+ * The S3 data source location.
1030
1370
  */
1031
1371
  s3Location?: RetrievalResultS3Location;
1032
1372
  /**
1033
- * The type of the location of the data source.
1373
+ * The Salesforce data source location.
1374
+ */
1375
+ salesforceLocation?: RetrievalResultSalesforceLocation;
1376
+ /**
1377
+ * The SharePoint data source location.
1378
+ */
1379
+ sharePointLocation?: RetrievalResultSharePointLocation;
1380
+ /**
1381
+ * The type of data source location.
1034
1382
  */
1035
1383
  type: RetrievalResultLocationType;
1384
+ /**
1385
+ * The web URL/URLs data source location.
1386
+ */
1387
+ webLocation?: RetrievalResultWebLocation;
1036
1388
  }
1037
- export type RetrievalResultLocationType = "S3"|string;
1389
+ export type RetrievalResultLocationType = "S3"|"WEB"|"CONFLUENCE"|"SALESFORCE"|"SHAREPOINT"|string;
1038
1390
  export type RetrievalResultMetadata = {[key: string]: RetrievalResultMetadataValue};
1039
1391
  export type RetrievalResultMetadataKey = string;
1040
1392
  export interface RetrievalResultMetadataValue {
1041
1393
  }
1042
1394
  export interface RetrievalResultS3Location {
1043
1395
  /**
1044
- * The S3 URI of the data source.
1396
+ * The S3 URI for the data source location.
1045
1397
  */
1046
1398
  uri?: String;
1047
1399
  }
1400
+ export interface RetrievalResultSalesforceLocation {
1401
+ /**
1402
+ * The Salesforce host URL for the data source location.
1403
+ */
1404
+ url?: String;
1405
+ }
1406
+ export interface RetrievalResultSharePointLocation {
1407
+ /**
1408
+ * The SharePoint site URL for the data source location.
1409
+ */
1410
+ url?: String;
1411
+ }
1412
+ export interface RetrievalResultWebLocation {
1413
+ /**
1414
+ * The web URL/URLs for the data source location.
1415
+ */
1416
+ url?: String;
1417
+ }
1048
1418
  export interface RetrieveAndGenerateConfiguration {
1049
1419
  /**
1050
1420
  * The configuration used with the external source wrapper object in the retrieveAndGenerate function.
@@ -1086,7 +1456,7 @@ declare namespace BedrockAgentRuntime {
1086
1456
  */
1087
1457
  sessionConfiguration?: RetrieveAndGenerateSessionConfiguration;
1088
1458
  /**
1089
- * The unique identifier of the session. Reuse the same value to continue the same session with the knowledge base.
1459
+ * The unique identifier of the session. When you first make a RetrieveAndGenerate request, Amazon Bedrock automatically generates this value. You must reuse this value for all subsequent requests in the same conversational session. This value allows Amazon Bedrock to maintain context and knowledge from previous interactions. You can't explicitly set the sessionId yourself.
1090
1460
  */
1091
1461
  sessionId?: SessionId;
1092
1462
  }
@@ -1104,7 +1474,7 @@ declare namespace BedrockAgentRuntime {
1104
1474
  */
1105
1475
  output: RetrieveAndGenerateOutput;
1106
1476
  /**
1107
- * The unique identifier of the session. Reuse the same value to continue the same session with the knowledge base.
1477
+ * The unique identifier of the session. When you first make a RetrieveAndGenerate request, Amazon Bedrock automatically generates this value. You must reuse this value for all subsequent requests in the same conversational session. This value allows Amazon Bedrock to maintain context and knowledge from previous interactions. You can't explicitly set the sessionId yourself.
1108
1478
  */
1109
1479
  sessionId: SessionId;
1110
1480
  }
@@ -1175,6 +1545,12 @@ declare namespace BedrockAgentRuntime {
1175
1545
  */
1176
1546
  uri: S3Uri;
1177
1547
  }
1548
+ export interface S3ObjectFile {
1549
+ /**
1550
+ * The uri of the s3 object.
1551
+ */
1552
+ uri: S3Uri;
1553
+ }
1178
1554
  export type S3Uri = string;
1179
1555
  export type SearchType = "HYBRID"|"SEMANTIC"|string;
1180
1556
  export interface ServiceQuotaExceededException {
@@ -1183,10 +1559,18 @@ declare namespace BedrockAgentRuntime {
1183
1559
  export type SessionAttributesMap = {[key: string]: String};
1184
1560
  export type SessionId = string;
1185
1561
  export interface SessionState {
1562
+ /**
1563
+ * Contains information about the files used by code interpreter.
1564
+ */
1565
+ files?: InputFiles;
1186
1566
  /**
1187
1567
  * The identifier of the invocation of an action. This value must match the invocationId returned in the InvokeAgent response for the action whose results are provided in the returnControlInvocationResults field. For more information, see Return control to the agent developer and Control session context.
1188
1568
  */
1189
1569
  invocationId?: String;
1570
+ /**
1571
+ * An array of configurations, each of which applies to a knowledge base attached to the agent.
1572
+ */
1573
+ knowledgeBaseConfigurations?: KnowledgeBaseConfigurations;
1190
1574
  /**
1191
1575
  * Contains attributes that persist across a prompt and the values of those attributes. These attributes replace the $prompt_session_attributes$ placeholder variable in the orchestration prompt template. For more information, see Prompt template placeholder variables.
1192
1576
  */
@@ -1215,6 +1599,7 @@ declare namespace BedrockAgentRuntime {
1215
1599
  export type SpanStartInteger = number;
1216
1600
  export type StopSequences = String[];
1217
1601
  export type String = string;
1602
+ export type SummaryText = string;
1218
1603
  export type Temperature = number;
1219
1604
  export interface TextInferenceConfig {
1220
1605
  /**