Skip to content

Commit 8ec068a

Browse files
author
AWS
committed
Agents for Amazon Bedrock Runtime Update: Adds multi-turn input support for an Agent node in an Amazon Bedrock Flow
1 parent ebc27b9 commit 8ec068a

File tree

2 files changed

+71
-3
lines changed

2 files changed

+71
-3
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Agents for Amazon Bedrock Runtime",
4+
"contributor": "",
5+
"description": "Adds multi-turn input support for an Agent node in an Amazon Bedrock Flow"
6+
}

services/bedrockagentruntime/src/main/resources/codegen-resources/service-2.json

Lines changed: 65 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,16 @@
13141314
},
13151315
"FlowCompletionReason":{
13161316
"type":"string",
1317-
"enum":["SUCCESS"]
1317+
"enum":[
1318+
"SUCCESS",
1319+
"INPUT_REQUIRED"
1320+
]
1321+
},
1322+
"FlowExecutionId":{
1323+
"type":"string",
1324+
"max":100,
1325+
"min":2,
1326+
"pattern":"^[0-9a-zA-Z._:-]+$"
13181327
},
13191328
"FlowIdentifier":{
13201329
"type":"string",
@@ -1326,14 +1335,17 @@
13261335
"type":"structure",
13271336
"required":[
13281337
"content",
1329-
"nodeName",
1330-
"nodeOutputName"
1338+
"nodeName"
13311339
],
13321340
"members":{
13331341
"content":{
13341342
"shape":"FlowInputContent",
13351343
"documentation":"<p>Contains information about an input into the prompt flow.</p>"
13361344
},
1345+
"nodeInputName":{
1346+
"shape":"NodeInputName",
1347+
"documentation":"<p>The name of the input from the flow input node.</p>"
1348+
},
13371349
"nodeName":{
13381350
"shape":"NodeName",
13391351
"documentation":"<p>The name of the flow input node that begins the prompt flow.</p>"
@@ -1363,6 +1375,42 @@
13631375
"max":1,
13641376
"min":1
13651377
},
1378+
"FlowMultiTurnInputContent":{
1379+
"type":"structure",
1380+
"members":{
1381+
"document":{
1382+
"shape":"Document",
1383+
"documentation":"<p>The requested additional input to send back to the multi-turn flow node.</p>"
1384+
}
1385+
},
1386+
"documentation":"<p>The content structure containing input information for multi-turn flow interactions.</p>",
1387+
"union":true
1388+
},
1389+
"FlowMultiTurnInputRequestEvent":{
1390+
"type":"structure",
1391+
"required":[
1392+
"content",
1393+
"nodeName",
1394+
"nodeType"
1395+
],
1396+
"members":{
1397+
"content":{
1398+
"shape":"FlowMultiTurnInputContent",
1399+
"documentation":"<p>The content payload containing the input request details for the multi-turn interaction.</p>"
1400+
},
1401+
"nodeName":{
1402+
"shape":"NodeName",
1403+
"documentation":"<p>The name of the node in the flow that is requesting the input.</p>"
1404+
},
1405+
"nodeType":{
1406+
"shape":"NodeType",
1407+
"documentation":"<p>The type of the node in the flow that is requesting the input.</p>"
1408+
}
1409+
},
1410+
"documentation":"<p>Response object from the flow multi-turn node requesting additional information.</p>",
1411+
"event":true,
1412+
"sensitive":true
1413+
},
13661414
"FlowOutputContent":{
13671415
"type":"structure",
13681416
"members":{
@@ -1422,6 +1470,10 @@
14221470
"shape":"FlowCompletionEvent",
14231471
"documentation":"<p>Contains information about why the flow completed.</p>"
14241472
},
1473+
"flowMultiTurnInputRequestEvent":{
1474+
"shape":"FlowMultiTurnInputRequestEvent",
1475+
"documentation":"<p>The event stream containing the multi-turn input request information from the flow.</p>"
1476+
},
14251477
"flowOutputEvent":{
14261478
"shape":"FlowOutputEvent",
14271479
"documentation":"<p>Contains information about an output from flow invocation.</p>"
@@ -2805,6 +2857,10 @@
28052857
"shape":"Boolean",
28062858
"documentation":"<p>Specifies whether to return the trace for the flow or not. Traces track inputs and outputs for nodes in the flow. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html\">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>"
28072859
},
2860+
"executionId":{
2861+
"shape":"FlowExecutionId",
2862+
"documentation":"<p>The unique identifier for the current flow execution. If you don't provide a value, Amazon Bedrock creates the identifier for you. </p>"
2863+
},
28082864
"flowAliasIdentifier":{
28092865
"shape":"FlowAliasIdentifier",
28102866
"documentation":"<p>The unique identifier of the flow alias.</p>",
@@ -2831,6 +2887,12 @@
28312887
"type":"structure",
28322888
"required":["responseStream"],
28332889
"members":{
2890+
"executionId":{
2891+
"shape":"FlowExecutionId",
2892+
"documentation":"<p>The unique identifier for the current flow execution.</p>",
2893+
"location":"header",
2894+
"locationName":"x-amz-bedrock-flow-execution-id"
2895+
},
28342896
"responseStream":{
28352897
"shape":"FlowResponseStream",
28362898
"documentation":"<p>The output of the flow, returned as a stream. If there's an error, the error is returned.</p>"

0 commit comments

Comments
 (0)