@aws-sdk/client-bedrock-agent 3.808.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 +12 -12
@@ -39,7 +39,7 @@ declare const ValidateFlowDefinitionCommand_base: {
39
39
  * nodes: [ // FlowNodes
40
40
  * { // FlowNode
41
41
  * name: "STRING_VALUE", // required
42
- * type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode", // required
42
+ * type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode" || "Loop" || "LoopInput" || "LoopController", // required
43
43
  * configuration: { // FlowNodeConfiguration Union: only one key present
44
44
  * input: {},
45
45
  * output: {},
@@ -50,6 +50,68 @@ declare const ValidateFlowDefinitionCommand_base: {
50
50
  * guardrailIdentifier: "STRING_VALUE",
51
51
  * guardrailVersion: "STRING_VALUE",
52
52
  * },
53
+ * numberOfResults: Number("int"),
54
+ * promptTemplate: { // KnowledgeBasePromptTemplate
55
+ * textPromptTemplate: "STRING_VALUE",
56
+ * },
57
+ * inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
58
+ * text: { // PromptModelInferenceConfiguration
59
+ * temperature: Number("float"),
60
+ * topP: Number("float"),
61
+ * maxTokens: Number("int"),
62
+ * stopSequences: [ // StopSequences
63
+ * "STRING_VALUE",
64
+ * ],
65
+ * },
66
+ * },
67
+ * rerankingConfiguration: { // VectorSearchRerankingConfiguration
68
+ * type: "BEDROCK_RERANKING_MODEL", // required
69
+ * bedrockRerankingConfiguration: { // VectorSearchBedrockRerankingConfiguration
70
+ * modelConfiguration: { // VectorSearchBedrockRerankingModelConfiguration
71
+ * modelArn: "STRING_VALUE", // required
72
+ * additionalModelRequestFields: { // AdditionalModelRequestFields
73
+ * "<keys>": "DOCUMENT_VALUE",
74
+ * },
75
+ * },
76
+ * numberOfRerankedResults: Number("int"),
77
+ * metadataConfiguration: { // MetadataConfigurationForReranking
78
+ * selectionMode: "SELECTIVE" || "ALL", // required
79
+ * selectiveModeConfiguration: { // RerankingMetadataSelectiveModeConfiguration Union: only one key present
80
+ * fieldsToInclude: [ // FieldsForReranking
81
+ * { // FieldForReranking
82
+ * fieldName: "STRING_VALUE", // required
83
+ * },
84
+ * ],
85
+ * fieldsToExclude: [
86
+ * {
87
+ * fieldName: "STRING_VALUE", // required
88
+ * },
89
+ * ],
90
+ * },
91
+ * },
92
+ * },
93
+ * },
94
+ * orchestrationConfiguration: { // KnowledgeBaseOrchestrationConfiguration
95
+ * promptTemplate: {
96
+ * textPromptTemplate: "STRING_VALUE",
97
+ * },
98
+ * inferenceConfig: {// Union: only one key present
99
+ * text: {
100
+ * temperature: Number("float"),
101
+ * topP: Number("float"),
102
+ * maxTokens: Number("int"),
103
+ * stopSequences: [
104
+ * "STRING_VALUE",
105
+ * ],
106
+ * },
107
+ * },
108
+ * additionalModelRequestFields: {
109
+ * "<keys>": "DOCUMENT_VALUE",
110
+ * },
111
+ * performanceConfig: { // PerformanceConfiguration
112
+ * latency: "standard" || "optimized",
113
+ * },
114
+ * },
53
115
  * },
54
116
  * condition: { // ConditionFlowNodeConfiguration
55
117
  * conditions: [ // FlowConditions // required
@@ -131,16 +193,7 @@ declare const ValidateFlowDefinitionCommand_base: {
131
193
  * },
132
194
  * },
133
195
  * modelId: "STRING_VALUE", // required
134
- * inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
135
- * text: { // PromptModelInferenceConfiguration
136
- * temperature: Number("float"),
137
- * topP: Number("float"),
138
- * maxTokens: Number("int"),
139
- * stopSequences: [ // StopSequences
140
- * "STRING_VALUE",
141
- * ],
142
- * },
143
- * },
196
+ * inferenceConfiguration: "<PromptInferenceConfiguration>",
144
197
  * additionalModelRequestFields: "DOCUMENT_VALUE",
145
198
  * },
146
199
  * },
@@ -175,34 +228,248 @@ declare const ValidateFlowDefinitionCommand_base: {
175
228
  * code: "STRING_VALUE", // required
176
229
  * language: "Python_3", // required
177
230
  * },
231
+ * loop: { // LoopFlowNodeConfiguration
232
+ * definition: {
233
+ * nodes: [
234
+ * {
235
+ * name: "STRING_VALUE", // required
236
+ * type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode" || "Loop" || "LoopInput" || "LoopController", // required
237
+ * configuration: {// Union: only one key present
238
+ * input: {},
239
+ * output: {},
240
+ * knowledgeBase: {
241
+ * knowledgeBaseId: "STRING_VALUE", // required
242
+ * modelId: "STRING_VALUE",
243
+ * guardrailConfiguration: {
244
+ * guardrailIdentifier: "STRING_VALUE",
245
+ * guardrailVersion: "STRING_VALUE",
246
+ * },
247
+ * numberOfResults: Number("int"),
248
+ * promptTemplate: "<KnowledgeBasePromptTemplate>",
249
+ * inferenceConfiguration: "<PromptInferenceConfiguration>",
250
+ * rerankingConfiguration: {
251
+ * type: "BEDROCK_RERANKING_MODEL", // required
252
+ * bedrockRerankingConfiguration: {
253
+ * modelConfiguration: {
254
+ * modelArn: "STRING_VALUE", // required
255
+ * additionalModelRequestFields: "<AdditionalModelRequestFields>",
256
+ * },
257
+ * numberOfRerankedResults: Number("int"),
258
+ * metadataConfiguration: {
259
+ * selectionMode: "SELECTIVE" || "ALL", // required
260
+ * selectiveModeConfiguration: {// Union: only one key present
261
+ * fieldsToInclude: [
262
+ * {
263
+ * fieldName: "STRING_VALUE", // required
264
+ * },
265
+ * ],
266
+ * fieldsToExclude: [
267
+ * {
268
+ * fieldName: "STRING_VALUE", // required
269
+ * },
270
+ * ],
271
+ * },
272
+ * },
273
+ * },
274
+ * },
275
+ * orchestrationConfiguration: {
276
+ * promptTemplate: "<KnowledgeBasePromptTemplate>",
277
+ * inferenceConfig: "<PromptInferenceConfiguration>",
278
+ * additionalModelRequestFields: "<AdditionalModelRequestFields>",
279
+ * performanceConfig: {
280
+ * latency: "standard" || "optimized",
281
+ * },
282
+ * },
283
+ * },
284
+ * condition: {
285
+ * conditions: [ // required
286
+ * {
287
+ * name: "STRING_VALUE", // required
288
+ * expression: "STRING_VALUE",
289
+ * },
290
+ * ],
291
+ * },
292
+ * lex: {
293
+ * botAliasArn: "STRING_VALUE", // required
294
+ * localeId: "STRING_VALUE", // required
295
+ * },
296
+ * prompt: {
297
+ * sourceConfiguration: {// Union: only one key present
298
+ * resource: {
299
+ * promptArn: "STRING_VALUE", // required
300
+ * },
301
+ * inline: {
302
+ * templateType: "TEXT" || "CHAT", // required
303
+ * templateConfiguration: {// Union: only one key present
304
+ * text: {
305
+ * text: "STRING_VALUE", // required
306
+ * cachePoint: "<CachePointBlock>",
307
+ * inputVariables: [
308
+ * {
309
+ * name: "STRING_VALUE",
310
+ * },
311
+ * ],
312
+ * },
313
+ * chat: {
314
+ * messages: [ // required
315
+ * {
316
+ * role: "user" || "assistant", // required
317
+ * content: [ // required
318
+ * {// Union: only one key present
319
+ * text: "STRING_VALUE",
320
+ * cachePoint: "<CachePointBlock>",
321
+ * },
322
+ * ],
323
+ * },
324
+ * ],
325
+ * system: [
326
+ * {// Union: only one key present
327
+ * text: "STRING_VALUE",
328
+ * cachePoint: "<CachePointBlock>",
329
+ * },
330
+ * ],
331
+ * inputVariables: [
332
+ * {
333
+ * name: "STRING_VALUE",
334
+ * },
335
+ * ],
336
+ * toolConfiguration: {
337
+ * tools: [ // required
338
+ * {// Union: only one key present
339
+ * toolSpec: {
340
+ * name: "STRING_VALUE", // required
341
+ * description: "STRING_VALUE",
342
+ * inputSchema: {// Union: only one key present
343
+ * json: "DOCUMENT_VALUE",
344
+ * },
345
+ * },
346
+ * cachePoint: "<CachePointBlock>",
347
+ * },
348
+ * ],
349
+ * toolChoice: {// Union: only one key present
350
+ * auto: {},
351
+ * any: {},
352
+ * tool: {
353
+ * name: "STRING_VALUE", // required
354
+ * },
355
+ * },
356
+ * },
357
+ * },
358
+ * },
359
+ * modelId: "STRING_VALUE", // required
360
+ * inferenceConfiguration: "<PromptInferenceConfiguration>",
361
+ * additionalModelRequestFields: "DOCUMENT_VALUE",
362
+ * },
363
+ * },
364
+ * guardrailConfiguration: {
365
+ * guardrailIdentifier: "STRING_VALUE",
366
+ * guardrailVersion: "STRING_VALUE",
367
+ * },
368
+ * },
369
+ * lambdaFunction: {
370
+ * lambdaArn: "STRING_VALUE", // required
371
+ * },
372
+ * storage: {
373
+ * serviceConfiguration: {// Union: only one key present
374
+ * s3: {
375
+ * bucketName: "STRING_VALUE", // required
376
+ * },
377
+ * },
378
+ * },
379
+ * agent: {
380
+ * agentAliasArn: "STRING_VALUE", // required
381
+ * },
382
+ * retrieval: {
383
+ * serviceConfiguration: {// Union: only one key present
384
+ * s3: {
385
+ * bucketName: "STRING_VALUE", // required
386
+ * },
387
+ * },
388
+ * },
389
+ * iterator: {},
390
+ * collector: {},
391
+ * inlineCode: {
392
+ * code: "STRING_VALUE", // required
393
+ * language: "Python_3", // required
394
+ * },
395
+ * loop: {
396
+ * definition: "<FlowDefinition>", // required
397
+ * },
398
+ * loopInput: {},
399
+ * loopController: { // LoopControllerFlowNodeConfiguration
400
+ * continueCondition: "<FlowCondition>", // required
401
+ * maxIterations: Number("int"),
402
+ * },
403
+ * },
404
+ * inputs: [ // FlowNodeInputs
405
+ * { // FlowNodeInput
406
+ * name: "STRING_VALUE", // required
407
+ * type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
408
+ * expression: "STRING_VALUE", // required
409
+ * category: "LoopCondition" || "ReturnValueToLoopStart" || "ExitLoop",
410
+ * },
411
+ * ],
412
+ * outputs: [ // FlowNodeOutputs
413
+ * { // FlowNodeOutput
414
+ * name: "STRING_VALUE", // required
415
+ * type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
416
+ * },
417
+ * ],
418
+ * },
419
+ * ],
420
+ * connections: [ // FlowConnections
421
+ * { // FlowConnection
422
+ * type: "Data" || "Conditional", // required
423
+ * name: "STRING_VALUE", // required
424
+ * source: "STRING_VALUE", // required
425
+ * target: "STRING_VALUE", // required
426
+ * configuration: { // FlowConnectionConfiguration Union: only one key present
427
+ * data: { // FlowDataConnectionConfiguration
428
+ * sourceOutput: "STRING_VALUE", // required
429
+ * targetInput: "STRING_VALUE", // required
430
+ * },
431
+ * conditional: { // FlowConditionalConnectionConfiguration
432
+ * condition: "STRING_VALUE", // required
433
+ * },
434
+ * },
435
+ * },
436
+ * ],
437
+ * },
438
+ * },
439
+ * loopInput: {},
440
+ * loopController: {
441
+ * continueCondition: "<FlowCondition>", // required
442
+ * maxIterations: Number("int"),
443
+ * },
178
444
  * },
179
- * inputs: [ // FlowNodeInputs
180
- * { // FlowNodeInput
445
+ * inputs: [
446
+ * {
181
447
  * name: "STRING_VALUE", // required
182
448
  * type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
183
449
  * expression: "STRING_VALUE", // required
450
+ * category: "LoopCondition" || "ReturnValueToLoopStart" || "ExitLoop",
184
451
  * },
185
452
  * ],
186
- * outputs: [ // FlowNodeOutputs
187
- * { // FlowNodeOutput
453
+ * outputs: [
454
+ * {
188
455
  * name: "STRING_VALUE", // required
189
456
  * type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
190
457
  * },
191
458
  * ],
192
459
  * },
193
460
  * ],
194
- * connections: [ // FlowConnections
195
- * { // FlowConnection
461
+ * connections: [
462
+ * {
196
463
  * type: "Data" || "Conditional", // required
197
464
  * name: "STRING_VALUE", // required
198
465
  * source: "STRING_VALUE", // required
199
466
  * target: "STRING_VALUE", // required
200
- * configuration: { // FlowConnectionConfiguration Union: only one key present
201
- * data: { // FlowDataConnectionConfiguration
467
+ * configuration: {// Union: only one key present
468
+ * data: {
202
469
  * sourceOutput: "STRING_VALUE", // required
203
470
  * targetInput: "STRING_VALUE", // required
204
471
  * },
205
- * conditional: { // FlowConditionalConnectionConfiguration
472
+ * conditional: {
206
473
  * condition: "STRING_VALUE", // required
207
474
  * },
208
475
  * },
@@ -309,8 +576,30 @@ declare const ValidateFlowDefinitionCommand_base: {
309
576
  * // node: "STRING_VALUE", // required
310
577
  * // output: "STRING_VALUE", // required
311
578
  * // },
579
+ * // missingLoopInputNode: { // MissingLoopInputNodeFlowValidationDetails
580
+ * // loopNode: "STRING_VALUE", // required
581
+ * // },
582
+ * // missingLoopControllerNode: { // MissingLoopControllerNodeFlowValidationDetails
583
+ * // loopNode: "STRING_VALUE", // required
584
+ * // },
585
+ * // multipleLoopInputNodes: { // MultipleLoopInputNodesFlowValidationDetails
586
+ * // loopNode: "STRING_VALUE", // required
587
+ * // },
588
+ * // multipleLoopControllerNodes: { // MultipleLoopControllerNodesFlowValidationDetails
589
+ * // loopNode: "STRING_VALUE", // required
590
+ * // },
591
+ * // loopIncompatibleNodeType: { // LoopIncompatibleNodeTypeFlowValidationDetails
592
+ * // node: "STRING_VALUE", // required
593
+ * // incompatibleNodeType: "Input" || "Condition" || "Iterator" || "Collector", // required
594
+ * // incompatibleNodeName: "STRING_VALUE", // required
595
+ * // },
596
+ * // invalidLoopBoundary: { // InvalidLoopBoundaryFlowValidationDetails
597
+ * // connection: "STRING_VALUE", // required
598
+ * // source: "STRING_VALUE", // required
599
+ * // target: "STRING_VALUE", // required
600
+ * // },
312
601
  * // },
313
- * // type: "CyclicConnection" || "DuplicateConnections" || "DuplicateConditionExpression" || "UnreachableNode" || "UnknownConnectionSource" || "UnknownConnectionSourceOutput" || "UnknownConnectionTarget" || "UnknownConnectionTargetInput" || "UnknownConnectionCondition" || "MalformedConditionExpression" || "MalformedNodeInputExpression" || "MismatchedNodeInputType" || "MismatchedNodeOutputType" || "IncompatibleConnectionDataType" || "MissingConnectionConfiguration" || "MissingDefaultCondition" || "MissingEndingNodes" || "MissingNodeConfiguration" || "MissingNodeInput" || "MissingNodeOutput" || "MissingStartingNodes" || "MultipleNodeInputConnections" || "UnfulfilledNodeInput" || "UnsatisfiedConnectionConditions" || "Unspecified" || "UnknownNodeInput" || "UnknownNodeOutput",
602
+ * // type: "CyclicConnection" || "DuplicateConnections" || "DuplicateConditionExpression" || "UnreachableNode" || "UnknownConnectionSource" || "UnknownConnectionSourceOutput" || "UnknownConnectionTarget" || "UnknownConnectionTargetInput" || "UnknownConnectionCondition" || "MalformedConditionExpression" || "MalformedNodeInputExpression" || "MismatchedNodeInputType" || "MismatchedNodeOutputType" || "IncompatibleConnectionDataType" || "MissingConnectionConfiguration" || "MissingDefaultCondition" || "MissingEndingNodes" || "MissingNodeConfiguration" || "MissingNodeInput" || "MissingNodeOutput" || "MissingStartingNodes" || "MultipleNodeInputConnections" || "UnfulfilledNodeInput" || "UnsatisfiedConnectionConditions" || "Unspecified" || "UnknownNodeInput" || "UnknownNodeOutput" || "MissingLoopInputNode" || "MissingLoopControllerNode" || "MultipleLoopInputNodes" || "MultipleLoopControllerNodes" || "LoopIncompatibleNodeType" || "InvalidLoopBoundary",
314
603
  * // },
315
604
  * // ],
316
605
  * // };