Skip to content

Commit 66f7059

Browse files
author
AWS
committed
Agents for Amazon Bedrock Update: Releasing the support for simplified configuration and return of control
1 parent 303516a commit 66f7059

File tree

2 files changed

+105
-1
lines changed

2 files changed

+105
-1
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",
4+
"contributor": "",
5+
"description": "Releasing the support for simplified configuration and return of control"
6+
}

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

Lines changed: 99 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,10 @@
813813
"ActionGroupExecutor":{
814814
"type":"structure",
815815
"members":{
816+
"customControl":{
817+
"shape":"CustomControlMethod",
818+
"documentation":"<p>To return the action group invocation results directly in the <code>InvokeAgent</code> response, specify <code>RETURN_CONTROL</code>.</p>"
819+
},
816820
"lambda":{
817821
"shape":"LambdaArn",
818822
"documentation":"<p>The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.</p>"
@@ -1011,6 +1015,10 @@
10111015
"shape":"Description",
10121016
"documentation":"<p>The description of the action group.</p>"
10131017
},
1018+
"functionSchema":{
1019+
"shape":"FunctionSchema",
1020+
"documentation":"<p>Defines functions that each define parameters that the agent needs to invoke from the user. Each function represents an action in an action group.</p>"
1021+
},
10141022
"parentActionSignature":{
10151023
"shape":"ActionGroupSignature",
10161024
"documentation":"<p>If this field is set as <code>AMAZON.UserInput</code>, the agent can request the user for additional information when trying to complete a task. The <code>description</code>, <code>apiSchema</code>, and <code>actionGroupExecutor</code> fields must be blank for this action group.</p> <p>During orchestration, if the agent determines that it needs to invoke an API in an action group, but doesn't have enough information to complete the API request, it will invoke this action group instead and return an <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Observation.html\">Observation</a> reprompting the user for more information.</p>"
@@ -1610,6 +1618,10 @@
16101618
"shape":"Description",
16111619
"documentation":"<p>A description of the action group.</p>"
16121620
},
1621+
"functionSchema":{
1622+
"shape":"FunctionSchema",
1623+
"documentation":"<p>Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.</p>"
1624+
},
16131625
"parentActionGroupSignature":{
16141626
"shape":"ActionGroupSignature",
16151627
"documentation":"<p>To allow your agent to request the user for additional information when trying to complete a task, set this field to <code>AMAZON.UserInput</code>. You must leave the <code>description</code>, <code>apiSchema</code>, and <code>actionGroupExecutor</code> fields blank for this action group.</p> <p>During orchestration, if your agent determines that it needs to invoke an API in an action group, but doesn't have enough information to complete the API request, it will invoke this action group instead and return an <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Observation.html\">Observation</a> reprompting the user for more information.</p>"
@@ -1837,6 +1849,10 @@
18371849
"OVERRIDDEN"
18381850
]
18391851
},
1852+
"CustomControlMethod":{
1853+
"type":"string",
1854+
"enum":["RETURN_CONTROL"]
1855+
},
18401856
"DataSource":{
18411857
"type":"structure",
18421858
"required":[
@@ -2291,6 +2307,45 @@
22912307
"max":99,
22922308
"min":1
22932309
},
2310+
"Function":{
2311+
"type":"structure",
2312+
"required":["name"],
2313+
"members":{
2314+
"description":{
2315+
"shape":"FunctionDescription",
2316+
"documentation":"<p>A description of the function and its purpose.</p>"
2317+
},
2318+
"name":{
2319+
"shape":"Name",
2320+
"documentation":"<p>A name for the function.</p>"
2321+
},
2322+
"parameters":{
2323+
"shape":"ParameterMap",
2324+
"documentation":"<p>The parameters that the agent elicits from the user to fulfill the function.</p>"
2325+
}
2326+
},
2327+
"documentation":"<p>Defines parameters that the agent needs to invoke from the user to complete the function. Corresponds to an action in an action group.</p> <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_RequestSyntax\">CreateAgentActionGroup request</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_ResponseSyntax\">CreateAgentActionGroup response</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_RequestSyntax\">UpdateAgentActionGroup request</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_ResponseSyntax\">UpdateAgentActionGroup response</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentActionGroup.html#API_agent_GetAgentActionGroup_ResponseSyntax\">GetAgentActionGroup response</a> </p> </li> </ul>"
2328+
},
2329+
"FunctionDescription":{
2330+
"type":"string",
2331+
"max":1200,
2332+
"min":1
2333+
},
2334+
"FunctionSchema":{
2335+
"type":"structure",
2336+
"members":{
2337+
"functions":{
2338+
"shape":"Functions",
2339+
"documentation":"<p>A list of functions that each define an action in the action group.</p>"
2340+
}
2341+
},
2342+
"documentation":"<p>Defines functions that each define parameters that the agent needs to invoke from the user. Each function represents an action in an action group.</p> <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_RequestSyntax\">CreateAgentActionGroup request</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_ResponseSyntax\">CreateAgentActionGroup response</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_RequestSyntax\">UpdateAgentActionGroup request</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_ResponseSyntax\">UpdateAgentActionGroup response</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentActionGroup.html#API_agent_GetAgentActionGroup_ResponseSyntax\">GetAgentActionGroup response</a> </p> </li> </ul>",
2343+
"union":true
2344+
},
2345+
"Functions":{
2346+
"type":"list",
2347+
"member":{"shape":"Function"}
2348+
},
22942349
"GetAgentActionGroupRequest":{
22952350
"type":"structure",
22962351
"required":[
@@ -2620,7 +2675,7 @@
26202675
"documentation":"<p>The time at which the ingestion job was last updated.</p>"
26212676
}
26222677
},
2623-
"documentation":"<p>Contains details about an ingestion job, which converts a data source to embeddings for a vector store in knowledge base.</p> <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_StartIngestionJob.html#API_agent_StartIngestionJob_ResponseSyntax\">StartIngestionJob response</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetIngestionJob.html#API_agent_GetIngestionJob_ResponseSyntax\">GetIngestionJob response</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ListIngestionJob.html#API_agent_ListIngestionJob_ResponseSyntax\">ListIngestionJob response</a> </p> </li> </ul>"
2678+
"documentation":"<p>Contains details about an ingestion job, which converts a data source to embeddings for a vector store in knowledge base.</p> <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_StartIngestionJob.html#API_agent_StartIngestionJob_ResponseSyntax\">StartIngestionJob response</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetIngestionJob.html#API_agent_GetIngestionJob_ResponseSyntax\">GetIngestionJob response</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ListIngestionJobs.html#API_agent_ListIngestionJobs_ResponseSyntax\">ListIngestionJob response</a> </p> </li> </ul>"
26242679
},
26252680
"IngestionJobFilter":{
26262681
"type":"structure",
@@ -3379,6 +3434,35 @@
33793434
"min":0,
33803435
"pattern":"^.*$"
33813436
},
3437+
"ParameterDescription":{
3438+
"type":"string",
3439+
"max":500,
3440+
"min":1
3441+
},
3442+
"ParameterDetail":{
3443+
"type":"structure",
3444+
"required":["type"],
3445+
"members":{
3446+
"description":{
3447+
"shape":"ParameterDescription",
3448+
"documentation":"<p>A description of the parameter. Helps the foundation model determine how to elicit the parameters from the user.</p>"
3449+
},
3450+
"required":{
3451+
"shape":"Boolean",
3452+
"documentation":"<p>Whether the parameter is required for the agent to complete the function for action group invocation.</p>"
3453+
},
3454+
"type":{
3455+
"shape":"Type",
3456+
"documentation":"<p>The data type of the parameter.</p>"
3457+
}
3458+
},
3459+
"documentation":"<p>Contains details about a parameter in a function for an action group.</p> <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_RequestSyntax\">CreateAgentActionGroup request</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_ResponseSyntax\">CreateAgentActionGroup response</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_RequestSyntax\">UpdateAgentActionGroup request</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_ResponseSyntax\">UpdateAgentActionGroup response</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentActionGroup.html#API_agent_GetAgentActionGroup_ResponseSyntax\">GetAgentActionGroup response</a> </p> </li> </ul>"
3460+
},
3461+
"ParameterMap":{
3462+
"type":"map",
3463+
"key":{"shape":"Name"},
3464+
"value":{"shape":"ParameterDetail"}
3465+
},
33823466
"Payload":{
33833467
"type":"string",
33843468
"sensitive":true
@@ -3965,6 +4049,16 @@
39654049
"max":1,
39664050
"min":0
39674051
},
4052+
"Type":{
4053+
"type":"string",
4054+
"enum":[
4055+
"string",
4056+
"number",
4057+
"integer",
4058+
"boolean",
4059+
"array"
4060+
]
4061+
},
39684062
"UntagResourceRequest":{
39694063
"type":"structure",
39704064
"required":[
@@ -4038,6 +4132,10 @@
40384132
"shape":"Description",
40394133
"documentation":"<p>Specifies a new name for the action group.</p>"
40404134
},
4135+
"functionSchema":{
4136+
"shape":"FunctionSchema",
4137+
"documentation":"<p>Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.</p>"
4138+
},
40414139
"parentActionGroupSignature":{
40424140
"shape":"ActionGroupSignature",
40434141
"documentation":"<p>To allow your agent to request the user for additional information when trying to complete a task, set this field to <code>AMAZON.UserInput</code>. You must leave the <code>description</code>, <code>apiSchema</code>, and <code>actionGroupExecutor</code> fields blank for this action group.</p> <p>During orchestration, if your agent determines that it needs to invoke an API in an action group, but doesn't have enough information to complete the API request, it will invoke this action group instead and return an <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Observation.html\">Observation</a> reprompting the user for more information.</p>"

0 commit comments

Comments
 (0)