@aws-sdk/client-bedrock-agent 3.810.0 → 3.811.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 +1 -1
@@ -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 { UpdateFlowRequest, UpdateFlowResponse } from "../models/models_0";
4
+ import { UpdateFlowRequest, UpdateFlowResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -43,7 +43,7 @@ declare const UpdateFlowCommand_base: {
43
43
  * nodes: [ // FlowNodes
44
44
  * { // FlowNode
45
45
  * name: "STRING_VALUE", // required
46
- * type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode", // required
46
+ * type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode" || "Loop" || "LoopInput" || "LoopController", // required
47
47
  * configuration: { // FlowNodeConfiguration Union: only one key present
48
48
  * input: {},
49
49
  * output: {},
@@ -54,6 +54,68 @@ declare const UpdateFlowCommand_base: {
54
54
  * guardrailIdentifier: "STRING_VALUE",
55
55
  * guardrailVersion: "STRING_VALUE",
56
56
  * },
57
+ * numberOfResults: Number("int"),
58
+ * promptTemplate: { // KnowledgeBasePromptTemplate
59
+ * textPromptTemplate: "STRING_VALUE",
60
+ * },
61
+ * inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
62
+ * text: { // PromptModelInferenceConfiguration
63
+ * temperature: Number("float"),
64
+ * topP: Number("float"),
65
+ * maxTokens: Number("int"),
66
+ * stopSequences: [ // StopSequences
67
+ * "STRING_VALUE",
68
+ * ],
69
+ * },
70
+ * },
71
+ * rerankingConfiguration: { // VectorSearchRerankingConfiguration
72
+ * type: "BEDROCK_RERANKING_MODEL", // required
73
+ * bedrockRerankingConfiguration: { // VectorSearchBedrockRerankingConfiguration
74
+ * modelConfiguration: { // VectorSearchBedrockRerankingModelConfiguration
75
+ * modelArn: "STRING_VALUE", // required
76
+ * additionalModelRequestFields: { // AdditionalModelRequestFields
77
+ * "<keys>": "DOCUMENT_VALUE",
78
+ * },
79
+ * },
80
+ * numberOfRerankedResults: Number("int"),
81
+ * metadataConfiguration: { // MetadataConfigurationForReranking
82
+ * selectionMode: "SELECTIVE" || "ALL", // required
83
+ * selectiveModeConfiguration: { // RerankingMetadataSelectiveModeConfiguration Union: only one key present
84
+ * fieldsToInclude: [ // FieldsForReranking
85
+ * { // FieldForReranking
86
+ * fieldName: "STRING_VALUE", // required
87
+ * },
88
+ * ],
89
+ * fieldsToExclude: [
90
+ * {
91
+ * fieldName: "STRING_VALUE", // required
92
+ * },
93
+ * ],
94
+ * },
95
+ * },
96
+ * },
97
+ * },
98
+ * orchestrationConfiguration: { // KnowledgeBaseOrchestrationConfiguration
99
+ * promptTemplate: {
100
+ * textPromptTemplate: "STRING_VALUE",
101
+ * },
102
+ * inferenceConfig: {// Union: only one key present
103
+ * text: {
104
+ * temperature: Number("float"),
105
+ * topP: Number("float"),
106
+ * maxTokens: Number("int"),
107
+ * stopSequences: [
108
+ * "STRING_VALUE",
109
+ * ],
110
+ * },
111
+ * },
112
+ * additionalModelRequestFields: {
113
+ * "<keys>": "DOCUMENT_VALUE",
114
+ * },
115
+ * performanceConfig: { // PerformanceConfiguration
116
+ * latency: "standard" || "optimized",
117
+ * },
118
+ * },
57
119
  * },
58
120
  * condition: { // ConditionFlowNodeConfiguration
59
121
  * conditions: [ // FlowConditions // required
@@ -135,16 +197,7 @@ declare const UpdateFlowCommand_base: {
135
197
  * },
136
198
  * },
137
199
  * modelId: "STRING_VALUE", // required
138
- * inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
139
- * text: { // PromptModelInferenceConfiguration
140
- * temperature: Number("float"),
141
- * topP: Number("float"),
142
- * maxTokens: Number("int"),
143
- * stopSequences: [ // StopSequences
144
- * "STRING_VALUE",
145
- * ],
146
- * },
147
- * },
200
+ * inferenceConfiguration: "<PromptInferenceConfiguration>",
148
201
  * additionalModelRequestFields: "DOCUMENT_VALUE",
149
202
  * },
150
203
  * },
@@ -179,34 +232,248 @@ declare const UpdateFlowCommand_base: {
179
232
  * code: "STRING_VALUE", // required
180
233
  * language: "Python_3", // required
181
234
  * },
235
+ * loop: { // LoopFlowNodeConfiguration
236
+ * definition: {
237
+ * nodes: [
238
+ * {
239
+ * name: "STRING_VALUE", // required
240
+ * type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode" || "Loop" || "LoopInput" || "LoopController", // required
241
+ * configuration: {// Union: only one key present
242
+ * input: {},
243
+ * output: {},
244
+ * knowledgeBase: {
245
+ * knowledgeBaseId: "STRING_VALUE", // required
246
+ * modelId: "STRING_VALUE",
247
+ * guardrailConfiguration: {
248
+ * guardrailIdentifier: "STRING_VALUE",
249
+ * guardrailVersion: "STRING_VALUE",
250
+ * },
251
+ * numberOfResults: Number("int"),
252
+ * promptTemplate: "<KnowledgeBasePromptTemplate>",
253
+ * inferenceConfiguration: "<PromptInferenceConfiguration>",
254
+ * rerankingConfiguration: {
255
+ * type: "BEDROCK_RERANKING_MODEL", // required
256
+ * bedrockRerankingConfiguration: {
257
+ * modelConfiguration: {
258
+ * modelArn: "STRING_VALUE", // required
259
+ * additionalModelRequestFields: "<AdditionalModelRequestFields>",
260
+ * },
261
+ * numberOfRerankedResults: Number("int"),
262
+ * metadataConfiguration: {
263
+ * selectionMode: "SELECTIVE" || "ALL", // required
264
+ * selectiveModeConfiguration: {// Union: only one key present
265
+ * fieldsToInclude: [
266
+ * {
267
+ * fieldName: "STRING_VALUE", // required
268
+ * },
269
+ * ],
270
+ * fieldsToExclude: [
271
+ * {
272
+ * fieldName: "STRING_VALUE", // required
273
+ * },
274
+ * ],
275
+ * },
276
+ * },
277
+ * },
278
+ * },
279
+ * orchestrationConfiguration: {
280
+ * promptTemplate: "<KnowledgeBasePromptTemplate>",
281
+ * inferenceConfig: "<PromptInferenceConfiguration>",
282
+ * additionalModelRequestFields: "<AdditionalModelRequestFields>",
283
+ * performanceConfig: {
284
+ * latency: "standard" || "optimized",
285
+ * },
286
+ * },
287
+ * },
288
+ * condition: {
289
+ * conditions: [ // required
290
+ * {
291
+ * name: "STRING_VALUE", // required
292
+ * expression: "STRING_VALUE",
293
+ * },
294
+ * ],
295
+ * },
296
+ * lex: {
297
+ * botAliasArn: "STRING_VALUE", // required
298
+ * localeId: "STRING_VALUE", // required
299
+ * },
300
+ * prompt: {
301
+ * sourceConfiguration: {// Union: only one key present
302
+ * resource: {
303
+ * promptArn: "STRING_VALUE", // required
304
+ * },
305
+ * inline: {
306
+ * templateType: "TEXT" || "CHAT", // required
307
+ * templateConfiguration: {// Union: only one key present
308
+ * text: {
309
+ * text: "STRING_VALUE", // required
310
+ * cachePoint: "<CachePointBlock>",
311
+ * inputVariables: [
312
+ * {
313
+ * name: "STRING_VALUE",
314
+ * },
315
+ * ],
316
+ * },
317
+ * chat: {
318
+ * messages: [ // required
319
+ * {
320
+ * role: "user" || "assistant", // required
321
+ * content: [ // required
322
+ * {// Union: only one key present
323
+ * text: "STRING_VALUE",
324
+ * cachePoint: "<CachePointBlock>",
325
+ * },
326
+ * ],
327
+ * },
328
+ * ],
329
+ * system: [
330
+ * {// Union: only one key present
331
+ * text: "STRING_VALUE",
332
+ * cachePoint: "<CachePointBlock>",
333
+ * },
334
+ * ],
335
+ * inputVariables: [
336
+ * {
337
+ * name: "STRING_VALUE",
338
+ * },
339
+ * ],
340
+ * toolConfiguration: {
341
+ * tools: [ // required
342
+ * {// Union: only one key present
343
+ * toolSpec: {
344
+ * name: "STRING_VALUE", // required
345
+ * description: "STRING_VALUE",
346
+ * inputSchema: {// Union: only one key present
347
+ * json: "DOCUMENT_VALUE",
348
+ * },
349
+ * },
350
+ * cachePoint: "<CachePointBlock>",
351
+ * },
352
+ * ],
353
+ * toolChoice: {// Union: only one key present
354
+ * auto: {},
355
+ * any: {},
356
+ * tool: {
357
+ * name: "STRING_VALUE", // required
358
+ * },
359
+ * },
360
+ * },
361
+ * },
362
+ * },
363
+ * modelId: "STRING_VALUE", // required
364
+ * inferenceConfiguration: "<PromptInferenceConfiguration>",
365
+ * additionalModelRequestFields: "DOCUMENT_VALUE",
366
+ * },
367
+ * },
368
+ * guardrailConfiguration: {
369
+ * guardrailIdentifier: "STRING_VALUE",
370
+ * guardrailVersion: "STRING_VALUE",
371
+ * },
372
+ * },
373
+ * lambdaFunction: {
374
+ * lambdaArn: "STRING_VALUE", // required
375
+ * },
376
+ * storage: {
377
+ * serviceConfiguration: {// Union: only one key present
378
+ * s3: {
379
+ * bucketName: "STRING_VALUE", // required
380
+ * },
381
+ * },
382
+ * },
383
+ * agent: {
384
+ * agentAliasArn: "STRING_VALUE", // required
385
+ * },
386
+ * retrieval: {
387
+ * serviceConfiguration: {// Union: only one key present
388
+ * s3: {
389
+ * bucketName: "STRING_VALUE", // required
390
+ * },
391
+ * },
392
+ * },
393
+ * iterator: {},
394
+ * collector: {},
395
+ * inlineCode: {
396
+ * code: "STRING_VALUE", // required
397
+ * language: "Python_3", // required
398
+ * },
399
+ * loop: {
400
+ * definition: "<FlowDefinition>", // required
401
+ * },
402
+ * loopInput: {},
403
+ * loopController: { // LoopControllerFlowNodeConfiguration
404
+ * continueCondition: "<FlowCondition>", // required
405
+ * maxIterations: Number("int"),
406
+ * },
407
+ * },
408
+ * inputs: [ // FlowNodeInputs
409
+ * { // FlowNodeInput
410
+ * name: "STRING_VALUE", // required
411
+ * type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
412
+ * expression: "STRING_VALUE", // required
413
+ * category: "LoopCondition" || "ReturnValueToLoopStart" || "ExitLoop",
414
+ * },
415
+ * ],
416
+ * outputs: [ // FlowNodeOutputs
417
+ * { // FlowNodeOutput
418
+ * name: "STRING_VALUE", // required
419
+ * type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
420
+ * },
421
+ * ],
422
+ * },
423
+ * ],
424
+ * connections: [ // FlowConnections
425
+ * { // FlowConnection
426
+ * type: "Data" || "Conditional", // required
427
+ * name: "STRING_VALUE", // required
428
+ * source: "STRING_VALUE", // required
429
+ * target: "STRING_VALUE", // required
430
+ * configuration: { // FlowConnectionConfiguration Union: only one key present
431
+ * data: { // FlowDataConnectionConfiguration
432
+ * sourceOutput: "STRING_VALUE", // required
433
+ * targetInput: "STRING_VALUE", // required
434
+ * },
435
+ * conditional: { // FlowConditionalConnectionConfiguration
436
+ * condition: "STRING_VALUE", // required
437
+ * },
438
+ * },
439
+ * },
440
+ * ],
441
+ * },
442
+ * },
443
+ * loopInput: {},
444
+ * loopController: {
445
+ * continueCondition: "<FlowCondition>", // required
446
+ * maxIterations: Number("int"),
447
+ * },
182
448
  * },
183
- * inputs: [ // FlowNodeInputs
184
- * { // FlowNodeInput
449
+ * inputs: [
450
+ * {
185
451
  * name: "STRING_VALUE", // required
186
452
  * type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
187
453
  * expression: "STRING_VALUE", // required
454
+ * category: "LoopCondition" || "ReturnValueToLoopStart" || "ExitLoop",
188
455
  * },
189
456
  * ],
190
- * outputs: [ // FlowNodeOutputs
191
- * { // FlowNodeOutput
457
+ * outputs: [
458
+ * {
192
459
  * name: "STRING_VALUE", // required
193
460
  * type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
194
461
  * },
195
462
  * ],
196
463
  * },
197
464
  * ],
198
- * connections: [ // FlowConnections
199
- * { // FlowConnection
465
+ * connections: [
466
+ * {
200
467
  * type: "Data" || "Conditional", // required
201
468
  * name: "STRING_VALUE", // required
202
469
  * source: "STRING_VALUE", // required
203
470
  * target: "STRING_VALUE", // required
204
- * configuration: { // FlowConnectionConfiguration Union: only one key present
205
- * data: { // FlowDataConnectionConfiguration
471
+ * configuration: {// Union: only one key present
472
+ * data: {
206
473
  * sourceOutput: "STRING_VALUE", // required
207
474
  * targetInput: "STRING_VALUE", // required
208
475
  * },
209
- * conditional: { // FlowConditionalConnectionConfiguration
476
+ * conditional: {
210
477
  * condition: "STRING_VALUE", // required
211
478
  * },
212
479
  * },
@@ -232,7 +499,7 @@ declare const UpdateFlowCommand_base: {
232
499
  * // nodes: [ // FlowNodes
233
500
  * // { // FlowNode
234
501
  * // name: "STRING_VALUE", // required
235
- * // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode", // required
502
+ * // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode" || "Loop" || "LoopInput" || "LoopController", // required
236
503
  * // configuration: { // FlowNodeConfiguration Union: only one key present
237
504
  * // input: {},
238
505
  * // output: {},
@@ -243,6 +510,68 @@ declare const UpdateFlowCommand_base: {
243
510
  * // guardrailIdentifier: "STRING_VALUE",
244
511
  * // guardrailVersion: "STRING_VALUE",
245
512
  * // },
513
+ * // numberOfResults: Number("int"),
514
+ * // promptTemplate: { // KnowledgeBasePromptTemplate
515
+ * // textPromptTemplate: "STRING_VALUE",
516
+ * // },
517
+ * // inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
518
+ * // text: { // PromptModelInferenceConfiguration
519
+ * // temperature: Number("float"),
520
+ * // topP: Number("float"),
521
+ * // maxTokens: Number("int"),
522
+ * // stopSequences: [ // StopSequences
523
+ * // "STRING_VALUE",
524
+ * // ],
525
+ * // },
526
+ * // },
527
+ * // rerankingConfiguration: { // VectorSearchRerankingConfiguration
528
+ * // type: "BEDROCK_RERANKING_MODEL", // required
529
+ * // bedrockRerankingConfiguration: { // VectorSearchBedrockRerankingConfiguration
530
+ * // modelConfiguration: { // VectorSearchBedrockRerankingModelConfiguration
531
+ * // modelArn: "STRING_VALUE", // required
532
+ * // additionalModelRequestFields: { // AdditionalModelRequestFields
533
+ * // "<keys>": "DOCUMENT_VALUE",
534
+ * // },
535
+ * // },
536
+ * // numberOfRerankedResults: Number("int"),
537
+ * // metadataConfiguration: { // MetadataConfigurationForReranking
538
+ * // selectionMode: "SELECTIVE" || "ALL", // required
539
+ * // selectiveModeConfiguration: { // RerankingMetadataSelectiveModeConfiguration Union: only one key present
540
+ * // fieldsToInclude: [ // FieldsForReranking
541
+ * // { // FieldForReranking
542
+ * // fieldName: "STRING_VALUE", // required
543
+ * // },
544
+ * // ],
545
+ * // fieldsToExclude: [
546
+ * // {
547
+ * // fieldName: "STRING_VALUE", // required
548
+ * // },
549
+ * // ],
550
+ * // },
551
+ * // },
552
+ * // },
553
+ * // },
554
+ * // orchestrationConfiguration: { // KnowledgeBaseOrchestrationConfiguration
555
+ * // promptTemplate: {
556
+ * // textPromptTemplate: "STRING_VALUE",
557
+ * // },
558
+ * // inferenceConfig: {// Union: only one key present
559
+ * // text: {
560
+ * // temperature: Number("float"),
561
+ * // topP: Number("float"),
562
+ * // maxTokens: Number("int"),
563
+ * // stopSequences: [
564
+ * // "STRING_VALUE",
565
+ * // ],
566
+ * // },
567
+ * // },
568
+ * // additionalModelRequestFields: {
569
+ * // "<keys>": "DOCUMENT_VALUE",
570
+ * // },
571
+ * // performanceConfig: { // PerformanceConfiguration
572
+ * // latency: "standard" || "optimized",
573
+ * // },
574
+ * // },
246
575
  * // },
247
576
  * // condition: { // ConditionFlowNodeConfiguration
248
577
  * // conditions: [ // FlowConditions // required
@@ -324,16 +653,7 @@ declare const UpdateFlowCommand_base: {
324
653
  * // },
325
654
  * // },
326
655
  * // modelId: "STRING_VALUE", // required
327
- * // inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
328
- * // text: { // PromptModelInferenceConfiguration
329
- * // temperature: Number("float"),
330
- * // topP: Number("float"),
331
- * // maxTokens: Number("int"),
332
- * // stopSequences: [ // StopSequences
333
- * // "STRING_VALUE",
334
- * // ],
335
- * // },
336
- * // },
656
+ * // inferenceConfiguration: "<PromptInferenceConfiguration>",
337
657
  * // additionalModelRequestFields: "DOCUMENT_VALUE",
338
658
  * // },
339
659
  * // },
@@ -368,34 +688,248 @@ declare const UpdateFlowCommand_base: {
368
688
  * // code: "STRING_VALUE", // required
369
689
  * // language: "Python_3", // required
370
690
  * // },
691
+ * // loop: { // LoopFlowNodeConfiguration
692
+ * // definition: {
693
+ * // nodes: [
694
+ * // {
695
+ * // name: "STRING_VALUE", // required
696
+ * // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode" || "Loop" || "LoopInput" || "LoopController", // required
697
+ * // configuration: {// Union: only one key present
698
+ * // input: {},
699
+ * // output: {},
700
+ * // knowledgeBase: {
701
+ * // knowledgeBaseId: "STRING_VALUE", // required
702
+ * // modelId: "STRING_VALUE",
703
+ * // guardrailConfiguration: {
704
+ * // guardrailIdentifier: "STRING_VALUE",
705
+ * // guardrailVersion: "STRING_VALUE",
706
+ * // },
707
+ * // numberOfResults: Number("int"),
708
+ * // promptTemplate: "<KnowledgeBasePromptTemplate>",
709
+ * // inferenceConfiguration: "<PromptInferenceConfiguration>",
710
+ * // rerankingConfiguration: {
711
+ * // type: "BEDROCK_RERANKING_MODEL", // required
712
+ * // bedrockRerankingConfiguration: {
713
+ * // modelConfiguration: {
714
+ * // modelArn: "STRING_VALUE", // required
715
+ * // additionalModelRequestFields: "<AdditionalModelRequestFields>",
716
+ * // },
717
+ * // numberOfRerankedResults: Number("int"),
718
+ * // metadataConfiguration: {
719
+ * // selectionMode: "SELECTIVE" || "ALL", // required
720
+ * // selectiveModeConfiguration: {// Union: only one key present
721
+ * // fieldsToInclude: [
722
+ * // {
723
+ * // fieldName: "STRING_VALUE", // required
724
+ * // },
725
+ * // ],
726
+ * // fieldsToExclude: [
727
+ * // {
728
+ * // fieldName: "STRING_VALUE", // required
729
+ * // },
730
+ * // ],
731
+ * // },
732
+ * // },
733
+ * // },
734
+ * // },
735
+ * // orchestrationConfiguration: {
736
+ * // promptTemplate: "<KnowledgeBasePromptTemplate>",
737
+ * // inferenceConfig: "<PromptInferenceConfiguration>",
738
+ * // additionalModelRequestFields: "<AdditionalModelRequestFields>",
739
+ * // performanceConfig: {
740
+ * // latency: "standard" || "optimized",
741
+ * // },
742
+ * // },
743
+ * // },
744
+ * // condition: {
745
+ * // conditions: [ // required
746
+ * // {
747
+ * // name: "STRING_VALUE", // required
748
+ * // expression: "STRING_VALUE",
749
+ * // },
750
+ * // ],
751
+ * // },
752
+ * // lex: {
753
+ * // botAliasArn: "STRING_VALUE", // required
754
+ * // localeId: "STRING_VALUE", // required
755
+ * // },
756
+ * // prompt: {
757
+ * // sourceConfiguration: {// Union: only one key present
758
+ * // resource: {
759
+ * // promptArn: "STRING_VALUE", // required
760
+ * // },
761
+ * // inline: {
762
+ * // templateType: "TEXT" || "CHAT", // required
763
+ * // templateConfiguration: {// Union: only one key present
764
+ * // text: {
765
+ * // text: "STRING_VALUE", // required
766
+ * // cachePoint: "<CachePointBlock>",
767
+ * // inputVariables: [
768
+ * // {
769
+ * // name: "STRING_VALUE",
770
+ * // },
771
+ * // ],
772
+ * // },
773
+ * // chat: {
774
+ * // messages: [ // required
775
+ * // {
776
+ * // role: "user" || "assistant", // required
777
+ * // content: [ // required
778
+ * // {// Union: only one key present
779
+ * // text: "STRING_VALUE",
780
+ * // cachePoint: "<CachePointBlock>",
781
+ * // },
782
+ * // ],
783
+ * // },
784
+ * // ],
785
+ * // system: [
786
+ * // {// Union: only one key present
787
+ * // text: "STRING_VALUE",
788
+ * // cachePoint: "<CachePointBlock>",
789
+ * // },
790
+ * // ],
791
+ * // inputVariables: [
792
+ * // {
793
+ * // name: "STRING_VALUE",
794
+ * // },
795
+ * // ],
796
+ * // toolConfiguration: {
797
+ * // tools: [ // required
798
+ * // {// Union: only one key present
799
+ * // toolSpec: {
800
+ * // name: "STRING_VALUE", // required
801
+ * // description: "STRING_VALUE",
802
+ * // inputSchema: {// Union: only one key present
803
+ * // json: "DOCUMENT_VALUE",
804
+ * // },
805
+ * // },
806
+ * // cachePoint: "<CachePointBlock>",
807
+ * // },
808
+ * // ],
809
+ * // toolChoice: {// Union: only one key present
810
+ * // auto: {},
811
+ * // any: {},
812
+ * // tool: {
813
+ * // name: "STRING_VALUE", // required
814
+ * // },
815
+ * // },
816
+ * // },
817
+ * // },
818
+ * // },
819
+ * // modelId: "STRING_VALUE", // required
820
+ * // inferenceConfiguration: "<PromptInferenceConfiguration>",
821
+ * // additionalModelRequestFields: "DOCUMENT_VALUE",
822
+ * // },
823
+ * // },
824
+ * // guardrailConfiguration: {
825
+ * // guardrailIdentifier: "STRING_VALUE",
826
+ * // guardrailVersion: "STRING_VALUE",
827
+ * // },
828
+ * // },
829
+ * // lambdaFunction: {
830
+ * // lambdaArn: "STRING_VALUE", // required
831
+ * // },
832
+ * // storage: {
833
+ * // serviceConfiguration: {// Union: only one key present
834
+ * // s3: {
835
+ * // bucketName: "STRING_VALUE", // required
836
+ * // },
837
+ * // },
838
+ * // },
839
+ * // agent: {
840
+ * // agentAliasArn: "STRING_VALUE", // required
841
+ * // },
842
+ * // retrieval: {
843
+ * // serviceConfiguration: {// Union: only one key present
844
+ * // s3: {
845
+ * // bucketName: "STRING_VALUE", // required
846
+ * // },
847
+ * // },
848
+ * // },
849
+ * // iterator: {},
850
+ * // collector: {},
851
+ * // inlineCode: {
852
+ * // code: "STRING_VALUE", // required
853
+ * // language: "Python_3", // required
854
+ * // },
855
+ * // loop: {
856
+ * // definition: "<FlowDefinition>", // required
857
+ * // },
858
+ * // loopInput: {},
859
+ * // loopController: { // LoopControllerFlowNodeConfiguration
860
+ * // continueCondition: "<FlowCondition>", // required
861
+ * // maxIterations: Number("int"),
862
+ * // },
863
+ * // },
864
+ * // inputs: [ // FlowNodeInputs
865
+ * // { // FlowNodeInput
866
+ * // name: "STRING_VALUE", // required
867
+ * // type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
868
+ * // expression: "STRING_VALUE", // required
869
+ * // category: "LoopCondition" || "ReturnValueToLoopStart" || "ExitLoop",
870
+ * // },
871
+ * // ],
872
+ * // outputs: [ // FlowNodeOutputs
873
+ * // { // FlowNodeOutput
874
+ * // name: "STRING_VALUE", // required
875
+ * // type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
876
+ * // },
877
+ * // ],
878
+ * // },
879
+ * // ],
880
+ * // connections: [ // FlowConnections
881
+ * // { // FlowConnection
882
+ * // type: "Data" || "Conditional", // required
883
+ * // name: "STRING_VALUE", // required
884
+ * // source: "STRING_VALUE", // required
885
+ * // target: "STRING_VALUE", // required
886
+ * // configuration: { // FlowConnectionConfiguration Union: only one key present
887
+ * // data: { // FlowDataConnectionConfiguration
888
+ * // sourceOutput: "STRING_VALUE", // required
889
+ * // targetInput: "STRING_VALUE", // required
890
+ * // },
891
+ * // conditional: { // FlowConditionalConnectionConfiguration
892
+ * // condition: "STRING_VALUE", // required
893
+ * // },
894
+ * // },
895
+ * // },
896
+ * // ],
897
+ * // },
898
+ * // },
899
+ * // loopInput: {},
900
+ * // loopController: {
901
+ * // continueCondition: "<FlowCondition>", // required
902
+ * // maxIterations: Number("int"),
903
+ * // },
371
904
  * // },
372
- * // inputs: [ // FlowNodeInputs
373
- * // { // FlowNodeInput
905
+ * // inputs: [
906
+ * // {
374
907
  * // name: "STRING_VALUE", // required
375
908
  * // type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
376
909
  * // expression: "STRING_VALUE", // required
910
+ * // category: "LoopCondition" || "ReturnValueToLoopStart" || "ExitLoop",
377
911
  * // },
378
912
  * // ],
379
- * // outputs: [ // FlowNodeOutputs
380
- * // { // FlowNodeOutput
913
+ * // outputs: [
914
+ * // {
381
915
  * // name: "STRING_VALUE", // required
382
916
  * // type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
383
917
  * // },
384
918
  * // ],
385
919
  * // },
386
920
  * // ],
387
- * // connections: [ // FlowConnections
388
- * // { // FlowConnection
921
+ * // connections: [
922
+ * // {
389
923
  * // type: "Data" || "Conditional", // required
390
924
  * // name: "STRING_VALUE", // required
391
925
  * // source: "STRING_VALUE", // required
392
926
  * // target: "STRING_VALUE", // required
393
- * // configuration: { // FlowConnectionConfiguration Union: only one key present
394
- * // data: { // FlowDataConnectionConfiguration
927
+ * // configuration: {// Union: only one key present
928
+ * // data: {
395
929
  * // sourceOutput: "STRING_VALUE", // required
396
930
  * // targetInput: "STRING_VALUE", // required
397
931
  * // },
398
- * // conditional: { // FlowConditionalConnectionConfiguration
932
+ * // conditional: {
399
933
  * // condition: "STRING_VALUE", // required
400
934
  * // },
401
935
  * // },