@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.
- package/dist-cjs/index.js +995 -703
- package/dist-es/commands/CreateFlowCommand.js +1 -1
- package/dist-es/commands/CreateFlowVersionCommand.js +1 -1
- package/dist-es/commands/GetFlowCommand.js +1 -1
- package/dist-es/commands/GetFlowVersionCommand.js +1 -1
- package/dist-es/commands/UpdateFlowCommand.js +1 -1
- package/dist-es/models/models_0.js +119 -115
- package/dist-es/models/models_1.js +136 -5
- package/dist-es/protocols/Aws_restJson1.js +140 -3
- package/dist-types/commands/CreateFlowAliasCommand.d.ts +8 -0
- package/dist-types/commands/CreateFlowCommand.d.ts +575 -41
- package/dist-types/commands/CreateFlowVersionCommand.d.ts +289 -21
- package/dist-types/commands/GetFlowAliasCommand.d.ts +4 -0
- package/dist-types/commands/GetFlowCommand.d.ts +312 -22
- package/dist-types/commands/GetFlowVersionCommand.d.ts +289 -21
- package/dist-types/commands/GetIngestionJobCommand.d.ts +2 -1
- package/dist-types/commands/ListFlowAliasesCommand.d.ts +4 -0
- package/dist-types/commands/ListIngestionJobsCommand.d.ts +1 -1
- package/dist-types/commands/StartIngestionJobCommand.d.ts +1 -1
- package/dist-types/commands/StopIngestionJobCommand.d.ts +1 -2
- package/dist-types/commands/UpdateFlowAliasCommand.d.ts +8 -0
- package/dist-types/commands/UpdateFlowCommand.d.ts +575 -41
- package/dist-types/commands/ValidateFlowDefinitionCommand.d.ts +310 -21
- package/dist-types/models/models_0.d.ts +1133 -1313
- package/dist-types/models/models_1.d.ts +1263 -20
- package/dist-types/ts3.4/commands/CreateFlowCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateFlowVersionCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/GetFlowCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetFlowVersionCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/GetIngestionJobCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListIngestionJobsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartIngestionJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StopIngestionJobCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/UpdateFlowCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +603 -471
- package/dist-types/ts3.4/models/models_1.d.ts +597 -8
- package/package.json +12 -12
|
@@ -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 { CreateFlowRequest, CreateFlowResponse } from "../models/
|
|
4
|
+
import { CreateFlowRequest, CreateFlowResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -43,7 +43,7 @@ declare const CreateFlowCommand_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 CreateFlowCommand_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 CreateFlowCommand_base: {
|
|
|
135
197
|
* },
|
|
136
198
|
* },
|
|
137
199
|
* modelId: "STRING_VALUE", // required
|
|
138
|
-
* inferenceConfiguration:
|
|
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 CreateFlowCommand_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: [
|
|
184
|
-
* {
|
|
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: [
|
|
191
|
-
* {
|
|
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: [
|
|
199
|
-
* {
|
|
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: {
|
|
205
|
-
* data: {
|
|
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: {
|
|
476
|
+
* conditional: {
|
|
210
477
|
* condition: "STRING_VALUE", // required
|
|
211
478
|
* },
|
|
212
479
|
* },
|
|
@@ -235,7 +502,7 @@ declare const CreateFlowCommand_base: {
|
|
|
235
502
|
* // nodes: [ // FlowNodes
|
|
236
503
|
* // { // FlowNode
|
|
237
504
|
* // name: "STRING_VALUE", // required
|
|
238
|
-
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode", // required
|
|
505
|
+
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode" || "Loop" || "LoopInput" || "LoopController", // required
|
|
239
506
|
* // configuration: { // FlowNodeConfiguration Union: only one key present
|
|
240
507
|
* // input: {},
|
|
241
508
|
* // output: {},
|
|
@@ -246,6 +513,68 @@ declare const CreateFlowCommand_base: {
|
|
|
246
513
|
* // guardrailIdentifier: "STRING_VALUE",
|
|
247
514
|
* // guardrailVersion: "STRING_VALUE",
|
|
248
515
|
* // },
|
|
516
|
+
* // numberOfResults: Number("int"),
|
|
517
|
+
* // promptTemplate: { // KnowledgeBasePromptTemplate
|
|
518
|
+
* // textPromptTemplate: "STRING_VALUE",
|
|
519
|
+
* // },
|
|
520
|
+
* // inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
|
|
521
|
+
* // text: { // PromptModelInferenceConfiguration
|
|
522
|
+
* // temperature: Number("float"),
|
|
523
|
+
* // topP: Number("float"),
|
|
524
|
+
* // maxTokens: Number("int"),
|
|
525
|
+
* // stopSequences: [ // StopSequences
|
|
526
|
+
* // "STRING_VALUE",
|
|
527
|
+
* // ],
|
|
528
|
+
* // },
|
|
529
|
+
* // },
|
|
530
|
+
* // rerankingConfiguration: { // VectorSearchRerankingConfiguration
|
|
531
|
+
* // type: "BEDROCK_RERANKING_MODEL", // required
|
|
532
|
+
* // bedrockRerankingConfiguration: { // VectorSearchBedrockRerankingConfiguration
|
|
533
|
+
* // modelConfiguration: { // VectorSearchBedrockRerankingModelConfiguration
|
|
534
|
+
* // modelArn: "STRING_VALUE", // required
|
|
535
|
+
* // additionalModelRequestFields: { // AdditionalModelRequestFields
|
|
536
|
+
* // "<keys>": "DOCUMENT_VALUE",
|
|
537
|
+
* // },
|
|
538
|
+
* // },
|
|
539
|
+
* // numberOfRerankedResults: Number("int"),
|
|
540
|
+
* // metadataConfiguration: { // MetadataConfigurationForReranking
|
|
541
|
+
* // selectionMode: "SELECTIVE" || "ALL", // required
|
|
542
|
+
* // selectiveModeConfiguration: { // RerankingMetadataSelectiveModeConfiguration Union: only one key present
|
|
543
|
+
* // fieldsToInclude: [ // FieldsForReranking
|
|
544
|
+
* // { // FieldForReranking
|
|
545
|
+
* // fieldName: "STRING_VALUE", // required
|
|
546
|
+
* // },
|
|
547
|
+
* // ],
|
|
548
|
+
* // fieldsToExclude: [
|
|
549
|
+
* // {
|
|
550
|
+
* // fieldName: "STRING_VALUE", // required
|
|
551
|
+
* // },
|
|
552
|
+
* // ],
|
|
553
|
+
* // },
|
|
554
|
+
* // },
|
|
555
|
+
* // },
|
|
556
|
+
* // },
|
|
557
|
+
* // orchestrationConfiguration: { // KnowledgeBaseOrchestrationConfiguration
|
|
558
|
+
* // promptTemplate: {
|
|
559
|
+
* // textPromptTemplate: "STRING_VALUE",
|
|
560
|
+
* // },
|
|
561
|
+
* // inferenceConfig: {// Union: only one key present
|
|
562
|
+
* // text: {
|
|
563
|
+
* // temperature: Number("float"),
|
|
564
|
+
* // topP: Number("float"),
|
|
565
|
+
* // maxTokens: Number("int"),
|
|
566
|
+
* // stopSequences: [
|
|
567
|
+
* // "STRING_VALUE",
|
|
568
|
+
* // ],
|
|
569
|
+
* // },
|
|
570
|
+
* // },
|
|
571
|
+
* // additionalModelRequestFields: {
|
|
572
|
+
* // "<keys>": "DOCUMENT_VALUE",
|
|
573
|
+
* // },
|
|
574
|
+
* // performanceConfig: { // PerformanceConfiguration
|
|
575
|
+
* // latency: "standard" || "optimized",
|
|
576
|
+
* // },
|
|
577
|
+
* // },
|
|
249
578
|
* // },
|
|
250
579
|
* // condition: { // ConditionFlowNodeConfiguration
|
|
251
580
|
* // conditions: [ // FlowConditions // required
|
|
@@ -327,16 +656,7 @@ declare const CreateFlowCommand_base: {
|
|
|
327
656
|
* // },
|
|
328
657
|
* // },
|
|
329
658
|
* // modelId: "STRING_VALUE", // required
|
|
330
|
-
* // inferenceConfiguration:
|
|
331
|
-
* // text: { // PromptModelInferenceConfiguration
|
|
332
|
-
* // temperature: Number("float"),
|
|
333
|
-
* // topP: Number("float"),
|
|
334
|
-
* // maxTokens: Number("int"),
|
|
335
|
-
* // stopSequences: [ // StopSequences
|
|
336
|
-
* // "STRING_VALUE",
|
|
337
|
-
* // ],
|
|
338
|
-
* // },
|
|
339
|
-
* // },
|
|
659
|
+
* // inferenceConfiguration: "<PromptInferenceConfiguration>",
|
|
340
660
|
* // additionalModelRequestFields: "DOCUMENT_VALUE",
|
|
341
661
|
* // },
|
|
342
662
|
* // },
|
|
@@ -371,34 +691,248 @@ declare const CreateFlowCommand_base: {
|
|
|
371
691
|
* // code: "STRING_VALUE", // required
|
|
372
692
|
* // language: "Python_3", // required
|
|
373
693
|
* // },
|
|
694
|
+
* // loop: { // LoopFlowNodeConfiguration
|
|
695
|
+
* // definition: {
|
|
696
|
+
* // nodes: [
|
|
697
|
+
* // {
|
|
698
|
+
* // name: "STRING_VALUE", // required
|
|
699
|
+
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode" || "Loop" || "LoopInput" || "LoopController", // required
|
|
700
|
+
* // configuration: {// Union: only one key present
|
|
701
|
+
* // input: {},
|
|
702
|
+
* // output: {},
|
|
703
|
+
* // knowledgeBase: {
|
|
704
|
+
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
705
|
+
* // modelId: "STRING_VALUE",
|
|
706
|
+
* // guardrailConfiguration: {
|
|
707
|
+
* // guardrailIdentifier: "STRING_VALUE",
|
|
708
|
+
* // guardrailVersion: "STRING_VALUE",
|
|
709
|
+
* // },
|
|
710
|
+
* // numberOfResults: Number("int"),
|
|
711
|
+
* // promptTemplate: "<KnowledgeBasePromptTemplate>",
|
|
712
|
+
* // inferenceConfiguration: "<PromptInferenceConfiguration>",
|
|
713
|
+
* // rerankingConfiguration: {
|
|
714
|
+
* // type: "BEDROCK_RERANKING_MODEL", // required
|
|
715
|
+
* // bedrockRerankingConfiguration: {
|
|
716
|
+
* // modelConfiguration: {
|
|
717
|
+
* // modelArn: "STRING_VALUE", // required
|
|
718
|
+
* // additionalModelRequestFields: "<AdditionalModelRequestFields>",
|
|
719
|
+
* // },
|
|
720
|
+
* // numberOfRerankedResults: Number("int"),
|
|
721
|
+
* // metadataConfiguration: {
|
|
722
|
+
* // selectionMode: "SELECTIVE" || "ALL", // required
|
|
723
|
+
* // selectiveModeConfiguration: {// Union: only one key present
|
|
724
|
+
* // fieldsToInclude: [
|
|
725
|
+
* // {
|
|
726
|
+
* // fieldName: "STRING_VALUE", // required
|
|
727
|
+
* // },
|
|
728
|
+
* // ],
|
|
729
|
+
* // fieldsToExclude: [
|
|
730
|
+
* // {
|
|
731
|
+
* // fieldName: "STRING_VALUE", // required
|
|
732
|
+
* // },
|
|
733
|
+
* // ],
|
|
734
|
+
* // },
|
|
735
|
+
* // },
|
|
736
|
+
* // },
|
|
737
|
+
* // },
|
|
738
|
+
* // orchestrationConfiguration: {
|
|
739
|
+
* // promptTemplate: "<KnowledgeBasePromptTemplate>",
|
|
740
|
+
* // inferenceConfig: "<PromptInferenceConfiguration>",
|
|
741
|
+
* // additionalModelRequestFields: "<AdditionalModelRequestFields>",
|
|
742
|
+
* // performanceConfig: {
|
|
743
|
+
* // latency: "standard" || "optimized",
|
|
744
|
+
* // },
|
|
745
|
+
* // },
|
|
746
|
+
* // },
|
|
747
|
+
* // condition: {
|
|
748
|
+
* // conditions: [ // required
|
|
749
|
+
* // {
|
|
750
|
+
* // name: "STRING_VALUE", // required
|
|
751
|
+
* // expression: "STRING_VALUE",
|
|
752
|
+
* // },
|
|
753
|
+
* // ],
|
|
754
|
+
* // },
|
|
755
|
+
* // lex: {
|
|
756
|
+
* // botAliasArn: "STRING_VALUE", // required
|
|
757
|
+
* // localeId: "STRING_VALUE", // required
|
|
758
|
+
* // },
|
|
759
|
+
* // prompt: {
|
|
760
|
+
* // sourceConfiguration: {// Union: only one key present
|
|
761
|
+
* // resource: {
|
|
762
|
+
* // promptArn: "STRING_VALUE", // required
|
|
763
|
+
* // },
|
|
764
|
+
* // inline: {
|
|
765
|
+
* // templateType: "TEXT" || "CHAT", // required
|
|
766
|
+
* // templateConfiguration: {// Union: only one key present
|
|
767
|
+
* // text: {
|
|
768
|
+
* // text: "STRING_VALUE", // required
|
|
769
|
+
* // cachePoint: "<CachePointBlock>",
|
|
770
|
+
* // inputVariables: [
|
|
771
|
+
* // {
|
|
772
|
+
* // name: "STRING_VALUE",
|
|
773
|
+
* // },
|
|
774
|
+
* // ],
|
|
775
|
+
* // },
|
|
776
|
+
* // chat: {
|
|
777
|
+
* // messages: [ // required
|
|
778
|
+
* // {
|
|
779
|
+
* // role: "user" || "assistant", // required
|
|
780
|
+
* // content: [ // required
|
|
781
|
+
* // {// Union: only one key present
|
|
782
|
+
* // text: "STRING_VALUE",
|
|
783
|
+
* // cachePoint: "<CachePointBlock>",
|
|
784
|
+
* // },
|
|
785
|
+
* // ],
|
|
786
|
+
* // },
|
|
787
|
+
* // ],
|
|
788
|
+
* // system: [
|
|
789
|
+
* // {// Union: only one key present
|
|
790
|
+
* // text: "STRING_VALUE",
|
|
791
|
+
* // cachePoint: "<CachePointBlock>",
|
|
792
|
+
* // },
|
|
793
|
+
* // ],
|
|
794
|
+
* // inputVariables: [
|
|
795
|
+
* // {
|
|
796
|
+
* // name: "STRING_VALUE",
|
|
797
|
+
* // },
|
|
798
|
+
* // ],
|
|
799
|
+
* // toolConfiguration: {
|
|
800
|
+
* // tools: [ // required
|
|
801
|
+
* // {// Union: only one key present
|
|
802
|
+
* // toolSpec: {
|
|
803
|
+
* // name: "STRING_VALUE", // required
|
|
804
|
+
* // description: "STRING_VALUE",
|
|
805
|
+
* // inputSchema: {// Union: only one key present
|
|
806
|
+
* // json: "DOCUMENT_VALUE",
|
|
807
|
+
* // },
|
|
808
|
+
* // },
|
|
809
|
+
* // cachePoint: "<CachePointBlock>",
|
|
810
|
+
* // },
|
|
811
|
+
* // ],
|
|
812
|
+
* // toolChoice: {// Union: only one key present
|
|
813
|
+
* // auto: {},
|
|
814
|
+
* // any: {},
|
|
815
|
+
* // tool: {
|
|
816
|
+
* // name: "STRING_VALUE", // required
|
|
817
|
+
* // },
|
|
818
|
+
* // },
|
|
819
|
+
* // },
|
|
820
|
+
* // },
|
|
821
|
+
* // },
|
|
822
|
+
* // modelId: "STRING_VALUE", // required
|
|
823
|
+
* // inferenceConfiguration: "<PromptInferenceConfiguration>",
|
|
824
|
+
* // additionalModelRequestFields: "DOCUMENT_VALUE",
|
|
825
|
+
* // },
|
|
826
|
+
* // },
|
|
827
|
+
* // guardrailConfiguration: {
|
|
828
|
+
* // guardrailIdentifier: "STRING_VALUE",
|
|
829
|
+
* // guardrailVersion: "STRING_VALUE",
|
|
830
|
+
* // },
|
|
831
|
+
* // },
|
|
832
|
+
* // lambdaFunction: {
|
|
833
|
+
* // lambdaArn: "STRING_VALUE", // required
|
|
834
|
+
* // },
|
|
835
|
+
* // storage: {
|
|
836
|
+
* // serviceConfiguration: {// Union: only one key present
|
|
837
|
+
* // s3: {
|
|
838
|
+
* // bucketName: "STRING_VALUE", // required
|
|
839
|
+
* // },
|
|
840
|
+
* // },
|
|
841
|
+
* // },
|
|
842
|
+
* // agent: {
|
|
843
|
+
* // agentAliasArn: "STRING_VALUE", // required
|
|
844
|
+
* // },
|
|
845
|
+
* // retrieval: {
|
|
846
|
+
* // serviceConfiguration: {// Union: only one key present
|
|
847
|
+
* // s3: {
|
|
848
|
+
* // bucketName: "STRING_VALUE", // required
|
|
849
|
+
* // },
|
|
850
|
+
* // },
|
|
851
|
+
* // },
|
|
852
|
+
* // iterator: {},
|
|
853
|
+
* // collector: {},
|
|
854
|
+
* // inlineCode: {
|
|
855
|
+
* // code: "STRING_VALUE", // required
|
|
856
|
+
* // language: "Python_3", // required
|
|
857
|
+
* // },
|
|
858
|
+
* // loop: {
|
|
859
|
+
* // definition: "<FlowDefinition>", // required
|
|
860
|
+
* // },
|
|
861
|
+
* // loopInput: {},
|
|
862
|
+
* // loopController: { // LoopControllerFlowNodeConfiguration
|
|
863
|
+
* // continueCondition: "<FlowCondition>", // required
|
|
864
|
+
* // maxIterations: Number("int"),
|
|
865
|
+
* // },
|
|
866
|
+
* // },
|
|
867
|
+
* // inputs: [ // FlowNodeInputs
|
|
868
|
+
* // { // FlowNodeInput
|
|
869
|
+
* // name: "STRING_VALUE", // required
|
|
870
|
+
* // type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
|
|
871
|
+
* // expression: "STRING_VALUE", // required
|
|
872
|
+
* // category: "LoopCondition" || "ReturnValueToLoopStart" || "ExitLoop",
|
|
873
|
+
* // },
|
|
874
|
+
* // ],
|
|
875
|
+
* // outputs: [ // FlowNodeOutputs
|
|
876
|
+
* // { // FlowNodeOutput
|
|
877
|
+
* // name: "STRING_VALUE", // required
|
|
878
|
+
* // type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
|
|
879
|
+
* // },
|
|
880
|
+
* // ],
|
|
881
|
+
* // },
|
|
882
|
+
* // ],
|
|
883
|
+
* // connections: [ // FlowConnections
|
|
884
|
+
* // { // FlowConnection
|
|
885
|
+
* // type: "Data" || "Conditional", // required
|
|
886
|
+
* // name: "STRING_VALUE", // required
|
|
887
|
+
* // source: "STRING_VALUE", // required
|
|
888
|
+
* // target: "STRING_VALUE", // required
|
|
889
|
+
* // configuration: { // FlowConnectionConfiguration Union: only one key present
|
|
890
|
+
* // data: { // FlowDataConnectionConfiguration
|
|
891
|
+
* // sourceOutput: "STRING_VALUE", // required
|
|
892
|
+
* // targetInput: "STRING_VALUE", // required
|
|
893
|
+
* // },
|
|
894
|
+
* // conditional: { // FlowConditionalConnectionConfiguration
|
|
895
|
+
* // condition: "STRING_VALUE", // required
|
|
896
|
+
* // },
|
|
897
|
+
* // },
|
|
898
|
+
* // },
|
|
899
|
+
* // ],
|
|
900
|
+
* // },
|
|
901
|
+
* // },
|
|
902
|
+
* // loopInput: {},
|
|
903
|
+
* // loopController: {
|
|
904
|
+
* // continueCondition: "<FlowCondition>", // required
|
|
905
|
+
* // maxIterations: Number("int"),
|
|
906
|
+
* // },
|
|
374
907
|
* // },
|
|
375
|
-
* // inputs: [
|
|
376
|
-
* // {
|
|
908
|
+
* // inputs: [
|
|
909
|
+
* // {
|
|
377
910
|
* // name: "STRING_VALUE", // required
|
|
378
911
|
* // type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
|
|
379
912
|
* // expression: "STRING_VALUE", // required
|
|
913
|
+
* // category: "LoopCondition" || "ReturnValueToLoopStart" || "ExitLoop",
|
|
380
914
|
* // },
|
|
381
915
|
* // ],
|
|
382
|
-
* // outputs: [
|
|
383
|
-
* // {
|
|
916
|
+
* // outputs: [
|
|
917
|
+
* // {
|
|
384
918
|
* // name: "STRING_VALUE", // required
|
|
385
919
|
* // type: "String" || "Number" || "Boolean" || "Object" || "Array", // required
|
|
386
920
|
* // },
|
|
387
921
|
* // ],
|
|
388
922
|
* // },
|
|
389
923
|
* // ],
|
|
390
|
-
* // connections: [
|
|
391
|
-
* // {
|
|
924
|
+
* // connections: [
|
|
925
|
+
* // {
|
|
392
926
|
* // type: "Data" || "Conditional", // required
|
|
393
927
|
* // name: "STRING_VALUE", // required
|
|
394
928
|
* // source: "STRING_VALUE", // required
|
|
395
929
|
* // target: "STRING_VALUE", // required
|
|
396
|
-
* // configuration: {
|
|
397
|
-
* // data: {
|
|
930
|
+
* // configuration: {// Union: only one key present
|
|
931
|
+
* // data: {
|
|
398
932
|
* // sourceOutput: "STRING_VALUE", // required
|
|
399
933
|
* // targetInput: "STRING_VALUE", // required
|
|
400
934
|
* // },
|
|
401
|
-
* // conditional: {
|
|
935
|
+
* // conditional: {
|
|
402
936
|
* // condition: "STRING_VALUE", // required
|
|
403
937
|
* // },
|
|
404
938
|
* // },
|