@aws-sdk/client-bedrock-agent 3.810.0 → 3.812.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/dist-cjs/index.js +995 -703
  2. package/dist-es/commands/CreateFlowCommand.js +1 -1
  3. package/dist-es/commands/CreateFlowVersionCommand.js +1 -1
  4. package/dist-es/commands/GetFlowCommand.js +1 -1
  5. package/dist-es/commands/GetFlowVersionCommand.js +1 -1
  6. package/dist-es/commands/UpdateFlowCommand.js +1 -1
  7. package/dist-es/models/models_0.js +119 -115
  8. package/dist-es/models/models_1.js +136 -5
  9. package/dist-es/protocols/Aws_restJson1.js +140 -3
  10. package/dist-types/commands/CreateFlowAliasCommand.d.ts +8 -0
  11. package/dist-types/commands/CreateFlowCommand.d.ts +575 -41
  12. package/dist-types/commands/CreateFlowVersionCommand.d.ts +289 -21
  13. package/dist-types/commands/GetFlowAliasCommand.d.ts +4 -0
  14. package/dist-types/commands/GetFlowCommand.d.ts +312 -22
  15. package/dist-types/commands/GetFlowVersionCommand.d.ts +289 -21
  16. package/dist-types/commands/GetIngestionJobCommand.d.ts +2 -1
  17. package/dist-types/commands/ListFlowAliasesCommand.d.ts +4 -0
  18. package/dist-types/commands/ListIngestionJobsCommand.d.ts +1 -1
  19. package/dist-types/commands/StartIngestionJobCommand.d.ts +1 -1
  20. package/dist-types/commands/StopIngestionJobCommand.d.ts +1 -2
  21. package/dist-types/commands/UpdateFlowAliasCommand.d.ts +8 -0
  22. package/dist-types/commands/UpdateFlowCommand.d.ts +575 -41
  23. package/dist-types/commands/ValidateFlowDefinitionCommand.d.ts +310 -21
  24. package/dist-types/models/models_0.d.ts +1133 -1313
  25. package/dist-types/models/models_1.d.ts +1263 -20
  26. package/dist-types/ts3.4/commands/CreateFlowCommand.d.ts +1 -1
  27. package/dist-types/ts3.4/commands/CreateFlowVersionCommand.d.ts +2 -4
  28. package/dist-types/ts3.4/commands/GetFlowCommand.d.ts +2 -1
  29. package/dist-types/ts3.4/commands/GetFlowVersionCommand.d.ts +2 -4
  30. package/dist-types/ts3.4/commands/GetIngestionJobCommand.d.ts +2 -4
  31. package/dist-types/ts3.4/commands/ListIngestionJobsCommand.d.ts +1 -1
  32. package/dist-types/ts3.4/commands/StartIngestionJobCommand.d.ts +1 -1
  33. package/dist-types/ts3.4/commands/StopIngestionJobCommand.d.ts +4 -2
  34. package/dist-types/ts3.4/commands/UpdateFlowCommand.d.ts +1 -1
  35. package/dist-types/ts3.4/models/models_0.d.ts +603 -471
  36. package/dist-types/ts3.4/models/models_1.d.ts +597 -8
  37. package/package.json +5 -5
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
4
- import { GetFlowVersionRequest, GetFlowVersionResponse } from "../models/models_0";
4
+ import { GetFlowVersionRequest } from "../models/models_0";
5
+ import { GetFlowVersionResponse } from "../models/models_1";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -54,7 +55,7 @@ declare const GetFlowVersionCommand_base: {
54
55
  * // nodes: [ // FlowNodes
55
56
  * // { // FlowNode
56
57
  * // name: "STRING_VALUE", // required
57
- * // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode", // required
58
+ * // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode" || "Loop" || "LoopInput" || "LoopController", // required
58
59
  * // configuration: { // FlowNodeConfiguration Union: only one key present
59
60
  * // input: {},
60
61
  * // output: {},
@@ -65,6 +66,68 @@ declare const GetFlowVersionCommand_base: {
65
66
  * // guardrailIdentifier: "STRING_VALUE",
66
67
  * // guardrailVersion: "STRING_VALUE",
67
68
  * // },
69
+ * // numberOfResults: Number("int"),
70
+ * // promptTemplate: { // KnowledgeBasePromptTemplate
71
+ * // textPromptTemplate: "STRING_VALUE",
72
+ * // },
73
+ * // inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
74
+ * // text: { // PromptModelInferenceConfiguration
75
+ * // temperature: Number("float"),
76
+ * // topP: Number("float"),
77
+ * // maxTokens: Number("int"),
78
+ * // stopSequences: [ // StopSequences
79
+ * // "STRING_VALUE",
80
+ * // ],
81
+ * // },
82
+ * // },
83
+ * // rerankingConfiguration: { // VectorSearchRerankingConfiguration
84
+ * // type: "BEDROCK_RERANKING_MODEL", // required
85
+ * // bedrockRerankingConfiguration: { // VectorSearchBedrockRerankingConfiguration
86
+ * // modelConfiguration: { // VectorSearchBedrockRerankingModelConfiguration
87
+ * // modelArn: "STRING_VALUE", // required
88
+ * // additionalModelRequestFields: { // AdditionalModelRequestFields
89
+ * // "<keys>": "DOCUMENT_VALUE",
90
+ * // },
91
+ * // },
92
+ * // numberOfRerankedResults: Number("int"),
93
+ * // metadataConfiguration: { // MetadataConfigurationForReranking
94
+ * // selectionMode: "SELECTIVE" || "ALL", // required
95
+ * // selectiveModeConfiguration: { // RerankingMetadataSelectiveModeConfiguration Union: only one key present
96
+ * // fieldsToInclude: [ // FieldsForReranking
97
+ * // { // FieldForReranking
98
+ * // fieldName: "STRING_VALUE", // required
99
+ * // },
100
+ * // ],
101
+ * // fieldsToExclude: [
102
+ * // {
103
+ * // fieldName: "STRING_VALUE", // required
104
+ * // },
105
+ * // ],
106
+ * // },
107
+ * // },
108
+ * // },
109
+ * // },
110
+ * // orchestrationConfiguration: { // KnowledgeBaseOrchestrationConfiguration
111
+ * // promptTemplate: {
112
+ * // textPromptTemplate: "STRING_VALUE",
113
+ * // },
114
+ * // inferenceConfig: {// Union: only one key present
115
+ * // text: {
116
+ * // temperature: Number("float"),
117
+ * // topP: Number("float"),
118
+ * // maxTokens: Number("int"),
119
+ * // stopSequences: [
120
+ * // "STRING_VALUE",
121
+ * // ],
122
+ * // },
123
+ * // },
124
+ * // additionalModelRequestFields: {
125
+ * // "<keys>": "DOCUMENT_VALUE",
126
+ * // },
127
+ * // performanceConfig: { // PerformanceConfiguration
128
+ * // latency: "standard" || "optimized",
129
+ * // },
130
+ * // },
68
131
  * // },
69
132
  * // condition: { // ConditionFlowNodeConfiguration
70
133
  * // conditions: [ // FlowConditions // required
@@ -146,16 +209,7 @@ declare const GetFlowVersionCommand_base: {
146
209
  * // },
147
210
  * // },
148
211
  * // modelId: "STRING_VALUE", // required
149
- * // inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
150
- * // text: { // PromptModelInferenceConfiguration
151
- * // temperature: Number("float"),
152
- * // topP: Number("float"),
153
- * // maxTokens: Number("int"),
154
- * // stopSequences: [ // StopSequences
155
- * // "STRING_VALUE",
156
- * // ],
157
- * // },
158
- * // },
212
+ * // inferenceConfiguration: "<PromptInferenceConfiguration>",
159
213
  * // additionalModelRequestFields: "DOCUMENT_VALUE",
160
214
  * // },
161
215
  * // },
@@ -190,34 +244,248 @@ declare const GetFlowVersionCommand_base: {
190
244
  * // code: "STRING_VALUE", // required
191
245
  * // language: "Python_3", // required
192
246
  * // },
247
+ * // loop: { // LoopFlowNodeConfiguration
248
+ * // definition: {
249
+ * // nodes: [
250
+ * // {
251
+ * // name: "STRING_VALUE", // required
252
+ * // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode" || "Loop" || "LoopInput" || "LoopController", // required
253
+ * // configuration: {// Union: only one key present
254
+ * // input: {},
255
+ * // output: {},
256
+ * // knowledgeBase: {
257
+ * // knowledgeBaseId: "STRING_VALUE", // required
258
+ * // modelId: "STRING_VALUE",
259
+ * // guardrailConfiguration: {
260
+ * // guardrailIdentifier: "STRING_VALUE",
261
+ * // guardrailVersion: "STRING_VALUE",
262
+ * // },
263
+ * // numberOfResults: Number("int"),
264
+ * // promptTemplate: "<KnowledgeBasePromptTemplate>",
265
+ * // inferenceConfiguration: "<PromptInferenceConfiguration>",
266
+ * // rerankingConfiguration: {
267
+ * // type: "BEDROCK_RERANKING_MODEL", // required
268
+ * // bedrockRerankingConfiguration: {
269
+ * // modelConfiguration: {
270
+ * // modelArn: "STRING_VALUE", // required
271
+ * // additionalModelRequestFields: "<AdditionalModelRequestFields>",
272
+ * // },
273
+ * // numberOfRerankedResults: Number("int"),
274
+ * // metadataConfiguration: {
275
+ * // selectionMode: "SELECTIVE" || "ALL", // required
276
+ * // selectiveModeConfiguration: {// Union: only one key present
277
+ * // fieldsToInclude: [
278
+ * // {
279
+ * // fieldName: "STRING_VALUE", // required
280
+ * // },
281
+ * // ],
282
+ * // fieldsToExclude: [
283
+ * // {
284
+ * // fieldName: "STRING_VALUE", // required
285
+ * // },
286
+ * // ],
287
+ * // },
288
+ * // },
289
+ * // },
290
+ * // },
291
+ * // orchestrationConfiguration: {
292
+ * // promptTemplate: "<KnowledgeBasePromptTemplate>",
293
+ * // inferenceConfig: "<PromptInferenceConfiguration>",
294
+ * // additionalModelRequestFields: "<AdditionalModelRequestFields>",
295
+ * // performanceConfig: {
296
+ * // latency: "standard" || "optimized",
297
+ * // },
298
+ * // },
299
+ * // },
300
+ * // condition: {
301
+ * // conditions: [ // required
302
+ * // {
303
+ * // name: "STRING_VALUE", // required
304
+ * // expression: "STRING_VALUE",
305
+ * // },
306
+ * // ],
307
+ * // },
308
+ * // lex: {
309
+ * // botAliasArn: "STRING_VALUE", // required
310
+ * // localeId: "STRING_VALUE", // required
311
+ * // },
312
+ * // prompt: {
313
+ * // sourceConfiguration: {// Union: only one key present
314
+ * // resource: {
315
+ * // promptArn: "STRING_VALUE", // required
316
+ * // },
317
+ * // inline: {
318
+ * // templateType: "TEXT" || "CHAT", // required
319
+ * // templateConfiguration: {// Union: only one key present
320
+ * // text: {
321
+ * // text: "STRING_VALUE", // required
322
+ * // cachePoint: "<CachePointBlock>",
323
+ * // inputVariables: [
324
+ * // {
325
+ * // name: "STRING_VALUE",
326
+ * // },
327
+ * // ],
328
+ * // },
329
+ * // chat: {
330
+ * // messages: [ // required
331
+ * // {
332
+ * // role: "user" || "assistant", // required
333
+ * // content: [ // required
334
+ * // {// Union: only one key present
335
+ * // text: "STRING_VALUE",
336
+ * // cachePoint: "<CachePointBlock>",
337
+ * // },
338
+ * // ],
339
+ * // },
340
+ * // ],
341
+ * // system: [
342
+ * // {// Union: only one key present
343
+ * // text: "STRING_VALUE",
344
+ * // cachePoint: "<CachePointBlock>",
345
+ * // },
346
+ * // ],
347
+ * // inputVariables: [
348
+ * // {
349
+ * // name: "STRING_VALUE",
350
+ * // },
351
+ * // ],
352
+ * // toolConfiguration: {
353
+ * // tools: [ // required
354
+ * // {// Union: only one key present
355
+ * // toolSpec: {
356
+ * // name: "STRING_VALUE", // required
357
+ * // description: "STRING_VALUE",
358
+ * // inputSchema: {// Union: only one key present
359
+ * // json: "DOCUMENT_VALUE",
360
+ * // },
361
+ * // },
362
+ * // cachePoint: "<CachePointBlock>",
363
+ * // },
364
+ * // ],
365
+ * // toolChoice: {// Union: only one key present
366
+ * // auto: {},
367
+ * // any: {},
368
+ * // tool: {
369
+ * // name: "STRING_VALUE", // required
370
+ * // },
371
+ * // },
372
+ * // },
373
+ * // },
374
+ * // },
375
+ * // modelId: "STRING_VALUE", // required
376
+ * // inferenceConfiguration: "<PromptInferenceConfiguration>",
377
+ * // additionalModelRequestFields: "DOCUMENT_VALUE",
378
+ * // },
379
+ * // },
380
+ * // guardrailConfiguration: {
381
+ * // guardrailIdentifier: "STRING_VALUE",
382
+ * // guardrailVersion: "STRING_VALUE",
383
+ * // },
384
+ * // },
385
+ * // lambdaFunction: {
386
+ * // lambdaArn: "STRING_VALUE", // required
387
+ * // },
388
+ * // storage: {
389
+ * // serviceConfiguration: {// Union: only one key present
390
+ * // s3: {
391
+ * // bucketName: "STRING_VALUE", // required
392
+ * // },
393
+ * // },
394
+ * // },
395
+ * // agent: {
396
+ * // agentAliasArn: "STRING_VALUE", // required
397
+ * // },
398
+ * // retrieval: {
399
+ * // serviceConfiguration: {// Union: only one key present
400
+ * // s3: {
401
+ * // bucketName: "STRING_VALUE", // required
402
+ * // },
403
+ * // },
404
+ * // },
405
+ * // iterator: {},
406
+ * // collector: {},
407
+ * // inlineCode: {
408
+ * // code: "STRING_VALUE", // required
409
+ * // language: "Python_3", // required
410
+ * // },
411
+ * // loop: {
412
+ * // definition: "<FlowDefinition>", // required
413
+ * // },
414
+ * // loopInput: {},
415
+ * // loopController: { // LoopControllerFlowNodeConfiguration
416
+ * // continueCondition: "<FlowCondition>", // required
417
+ * // maxIterations: Number("int"),
418
+ * // },
419
+ * // },
420
+ * // inputs: [ // FlowNodeInputs
421
+ * // { // FlowNodeInput
422
+ * // name: "STRING_VALUE", // required
423
+ * // type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
424
+ * // expression: "STRING_VALUE", // required
425
+ * // category: "LoopCondition" || "ReturnValueToLoopStart" || "ExitLoop",
426
+ * // },
427
+ * // ],
428
+ * // outputs: [ // FlowNodeOutputs
429
+ * // { // FlowNodeOutput
430
+ * // name: "STRING_VALUE", // required
431
+ * // type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
432
+ * // },
433
+ * // ],
434
+ * // },
435
+ * // ],
436
+ * // connections: [ // FlowConnections
437
+ * // { // FlowConnection
438
+ * // type: "Data" || "Conditional", // required
439
+ * // name: "STRING_VALUE", // required
440
+ * // source: "STRING_VALUE", // required
441
+ * // target: "STRING_VALUE", // required
442
+ * // configuration: { // FlowConnectionConfiguration Union: only one key present
443
+ * // data: { // FlowDataConnectionConfiguration
444
+ * // sourceOutput: "STRING_VALUE", // required
445
+ * // targetInput: "STRING_VALUE", // required
446
+ * // },
447
+ * // conditional: { // FlowConditionalConnectionConfiguration
448
+ * // condition: "STRING_VALUE", // required
449
+ * // },
450
+ * // },
451
+ * // },
452
+ * // ],
453
+ * // },
454
+ * // },
455
+ * // loopInput: {},
456
+ * // loopController: {
457
+ * // continueCondition: "<FlowCondition>", // required
458
+ * // maxIterations: Number("int"),
459
+ * // },
193
460
  * // },
194
- * // inputs: [ // FlowNodeInputs
195
- * // { // FlowNodeInput
461
+ * // inputs: [
462
+ * // {
196
463
  * // name: "STRING_VALUE", // required
197
464
  * // type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
198
465
  * // expression: "STRING_VALUE", // required
466
+ * // category: "LoopCondition" || "ReturnValueToLoopStart" || "ExitLoop",
199
467
  * // },
200
468
  * // ],
201
- * // outputs: [ // FlowNodeOutputs
202
- * // { // FlowNodeOutput
469
+ * // outputs: [
470
+ * // {
203
471
  * // name: "STRING_VALUE", // required
204
472
  * // type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
205
473
  * // },
206
474
  * // ],
207
475
  * // },
208
476
  * // ],
209
- * // connections: [ // FlowConnections
210
- * // { // FlowConnection
477
+ * // connections: [
478
+ * // {
211
479
  * // type: "Data" || "Conditional", // required
212
480
  * // name: "STRING_VALUE", // required
213
481
  * // source: "STRING_VALUE", // required
214
482
  * // target: "STRING_VALUE", // required
215
- * // configuration: { // FlowConnectionConfiguration Union: only one key present
216
- * // data: { // FlowDataConnectionConfiguration
483
+ * // configuration: {// Union: only one key present
484
+ * // data: {
217
485
  * // sourceOutput: "STRING_VALUE", // required
218
486
  * // targetInput: "STRING_VALUE", // required
219
487
  * // },
220
- * // conditional: { // FlowConditionalConnectionConfiguration
488
+ * // conditional: {
221
489
  * // condition: "STRING_VALUE", // required
222
490
  * // },
223
491
  * // },
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
4
- import { GetIngestionJobRequest, GetIngestionJobResponse } from "../models/models_0";
4
+ import { GetIngestionJobRequest } from "../models/models_0";
5
+ import { GetIngestionJobResponse } from "../models/models_1";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -51,6 +51,10 @@ declare const ListFlowAliasesCommand_base: {
51
51
  * // flowVersion: "STRING_VALUE",
52
52
  * // },
53
53
  * // ],
54
+ * // concurrencyConfiguration: { // FlowAliasConcurrencyConfiguration
55
+ * // type: "Automatic" || "Manual", // required
56
+ * // maxConcurrency: Number("int"),
57
+ * // },
54
58
  * // flowId: "STRING_VALUE", // required
55
59
  * // id: "STRING_VALUE", // required
56
60
  * // arn: "STRING_VALUE", // required
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
4
- import { ListIngestionJobsRequest, ListIngestionJobsResponse } from "../models/models_0";
4
+ import { ListIngestionJobsRequest, ListIngestionJobsResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
4
- import { StartIngestionJobRequest, StartIngestionJobResponse } from "../models/models_0";
4
+ import { StartIngestionJobRequest, StartIngestionJobResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,8 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
4
- import { StopIngestionJobRequest } from "../models/models_0";
5
- import { StopIngestionJobResponse } from "../models/models_1";
4
+ import { StopIngestionJobRequest, StopIngestionJobResponse } from "../models/models_1";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -42,6 +42,10 @@ declare const UpdateFlowAliasCommand_base: {
42
42
  * flowVersion: "STRING_VALUE",
43
43
  * },
44
44
  * ],
45
+ * concurrencyConfiguration: { // FlowAliasConcurrencyConfiguration
46
+ * type: "Automatic" || "Manual", // required
47
+ * maxConcurrency: Number("int"),
48
+ * },
45
49
  * flowIdentifier: "STRING_VALUE", // required
46
50
  * aliasIdentifier: "STRING_VALUE", // required
47
51
  * };
@@ -55,6 +59,10 @@ declare const UpdateFlowAliasCommand_base: {
55
59
  * // flowVersion: "STRING_VALUE",
56
60
  * // },
57
61
  * // ],
62
+ * // concurrencyConfiguration: { // FlowAliasConcurrencyConfiguration
63
+ * // type: "Automatic" || "Manual", // required
64
+ * // maxConcurrency: Number("int"),
65
+ * // },
58
66
  * // flowId: "STRING_VALUE", // required
59
67
  * // id: "STRING_VALUE", // required
60
68
  * // arn: "STRING_VALUE", // required