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