Skip to content

Commit c18ef25

Browse files
Update API model
1 parent 3020ae7 commit c18ef25

File tree

8 files changed

+679
-69
lines changed

8 files changed

+679
-69
lines changed

tools/code-generation/smithy/api-descriptions/bedrock-agent-runtime.json

Lines changed: 130 additions & 7 deletions
Large diffs are not rendered by default.

tools/code-generation/smithy/api-descriptions/bedrock-agent.json

Lines changed: 58 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,43 @@
8888
"traits": {
8989
"smithy.api#enumValue": "AMAZON.CodeInterpreter"
9090
}
91+
},
92+
"ANTHROPIC_COMPUTER": {
93+
"target": "smithy.api#Unit",
94+
"traits": {
95+
"smithy.api#enumValue": "ANTHROPIC.Computer"
96+
}
97+
},
98+
"ANTHROPIC_BASH": {
99+
"target": "smithy.api#Unit",
100+
"traits": {
101+
"smithy.api#enumValue": "ANTHROPIC.Bash"
102+
}
103+
},
104+
"ANTHROPIC_TEXTEDITOR": {
105+
"target": "smithy.api#Unit",
106+
"traits": {
107+
"smithy.api#enumValue": "ANTHROPIC.TextEditor"
108+
}
109+
}
110+
}
111+
},
112+
"com.amazonaws.bedrockagent#ActionGroupSignatureParams": {
113+
"type": "map",
114+
"key": {
115+
"target": "smithy.api#String",
116+
"traits": {
117+
"smithy.api#length": {
118+
"max": 100
119+
}
120+
}
121+
},
122+
"value": {
123+
"target": "smithy.api#String",
124+
"traits": {
125+
"smithy.api#length": {
126+
"max": 100
127+
}
91128
}
92129
}
93130
},
@@ -379,6 +416,12 @@
379416
"smithy.api#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>\n <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>"
380417
}
381418
},
419+
"parentActionGroupSignatureParams": {
420+
"target": "com.amazonaws.bedrockagent#ActionGroupSignatureParams",
421+
"traits": {
422+
"smithy.api#documentation": "<p>The configuration settings for a computer use action.</p>\n <important>\n <p>\n Computer use is a new Anthropic Claude model capability (in beta) available with Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/agent-computer-use.html\">Configure an Amazon Bedrock Agent to complete tasks with computer use tools</a>.\n </p>\n </important>"
423+
}
424+
},
382425
"actionGroupExecutor": {
383426
"target": "com.amazonaws.bedrockagent#ActionGroupExecutor",
384427
"traits": {
@@ -3090,7 +3133,13 @@
30903133
"parentActionGroupSignature": {
30913134
"target": "com.amazonaws.bedrockagent#ActionGroupSignature",
30923135
"traits": {
3093-
"smithy.api#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>\n <p>To allow your agent to generate, run, and troubleshoot code when trying to complete a task, set this field to <code>AMAZON.CodeInterpreter</code>. You must leave the <code>description</code>, <code>apiSchema</code>, and <code>actionGroupExecutor</code> fields blank for this action group.</p>\n <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>"
3136+
"smithy.api#documentation": "<p>Specify a built-in or computer use action for this action group. If you specify a value, you must leave the <code>description</code>, <code>apiSchema</code>, and <code>actionGroupExecutor</code> fields empty for this action group. </p>\n <ul>\n <li>\n <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>. </p>\n </li>\n <li>\n <p>To allow your agent to generate, run, and troubleshoot code when trying to complete a task, set this field to <code>AMAZON.CodeInterpreter</code>.</p>\n </li>\n <li>\n <p>To allow your agent to use an Anthropic computer use tool, specify one of the following values. </p>\n <important>\n <p>\n Computer use is a new Anthropic Claude model capability (in beta) available with Anthropic Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. \n When operating computer use functionality, we recommend taking additional security precautions,\n such as executing computer actions in virtual environments with restricted data access and limited internet connectivity. \n For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/agent-computer-use.html\">Configure an Amazon Bedrock Agent to complete tasks with computer use tools</a>.\n </p>\n </important>\n <ul>\n <li>\n <p>\n <code>ANTHROPIC.Computer</code> - Gives the agent permission to use the mouse and keyboard and\n take screenshots.</p>\n </li>\n <li>\n <p>\n <code>ANTHROPIC.TextEditor</code> - Gives the agent permission to view, create and edit files.</p>\n </li>\n <li>\n <p>\n <code>ANTHROPIC.Bash</code> - Gives the agent permission to run commands in a bash shell.</p>\n </li>\n </ul>\n </li>\n </ul>"
3137+
}
3138+
},
3139+
"parentActionGroupSignatureParams": {
3140+
"target": "com.amazonaws.bedrockagent#ActionGroupSignatureParams",
3141+
"traits": {
3142+
"smithy.api#documentation": "<p>The configuration settings for a computer use action.</p>\n <important>\n <p>\n Computer use is a new Anthropic Claude model capability (in beta) available with Anthropic Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/agent-computer-use.html\">Configure an Amazon Bedrock Agent to complete tasks with computer use tools</a>.\n </p>\n </important>"
30943143
}
30953144
},
30963145
"actionGroupExecutor": {
@@ -13277,7 +13326,7 @@
1327713326
"parserMode": {
1327813327
"target": "com.amazonaws.bedrockagent#CreationMode",
1327913328
"traits": {
13280-
"smithy.api#documentation": "<p>Specifies whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by the <code>promptType</code>. If you set the field as <code>OVERRIDEN</code>, the <code>overrideLambda</code> field in the <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html\">PromptOverrideConfiguration</a> must be specified with the ARN of a Lambda function.</p>"
13329+
"smithy.api#documentation": "<p>Specifies whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by the <code>promptType</code>. If you set the field as <code>OVERRIDDEN</code>, the <code>overrideLambda</code> field in the <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html\">PromptOverrideConfiguration</a> must be specified with the ARN of a Lambda function.</p>"
1328113330
}
1328213331
},
1328313332
"foundationModel": {
@@ -16436,7 +16485,13 @@
1643616485
"parentActionGroupSignature": {
1643716486
"target": "com.amazonaws.bedrockagent#ActionGroupSignature",
1643816487
"traits": {
16439-
"smithy.api#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>\n <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>"
16488+
"smithy.api#documentation": "<p>Update the built-in or computer use action for this action group. If you specify a value, you must leave the <code>description</code>, <code>apiSchema</code>, and <code>actionGroupExecutor</code> fields empty for this action group. </p>\n <ul>\n <li>\n <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>. </p>\n </li>\n <li>\n <p>To allow your agent to generate, run, and troubleshoot code when trying to complete a task, set this field to <code>AMAZON.CodeInterpreter</code>.</p>\n </li>\n <li>\n <p>To allow your agent to use an Anthropic computer use tool, specify one of the following values. </p>\n <important>\n <p>\n Computer use is a new Anthropic Claude model capability (in beta) available with Anthropic Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. \n When operating computer use functionality, we recommend taking additional security precautions,\n such as executing computer actions in virtual environments with restricted data access and limited internet connectivity. \n For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/agent-computer-use.html\">Configure an Amazon Bedrock Agent to complete tasks with computer use tools</a>.\n </p>\n </important>\n <ul>\n <li>\n <p>\n <code>ANTHROPIC.Computer</code> - Gives the agent permission to use the mouse and keyboard and\n take screenshots.</p>\n </li>\n <li>\n <p>\n <code>ANTHROPIC.TextEditor</code> - Gives the agent permission to view, create and edit files.</p>\n </li>\n <li>\n <p>\n <code>ANTHROPIC.Bash</code> - Gives the agent permission to run commands in a bash shell.</p>\n </li>\n </ul>\n </li>\n </ul>\n <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>"
16489+
}
16490+
},
16491+
"parentActionGroupSignatureParams": {
16492+
"target": "com.amazonaws.bedrockagent#ActionGroupSignatureParams",
16493+
"traits": {
16494+
"smithy.api#documentation": "<p>The configuration settings for a computer use action.</p>\n <important>\n <p>\n Computer use is a new Anthropic Claude model capability (in beta) available with Claude 3.7 and Claude 3.5 Sonnet v2 only. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/agent-computer-use.html\">Configure an Amazon Bedrock Agent to complete tasks with computer use tools</a>.\n </p>\n </important>"
1644016495
}
1644116496
},
1644216497
"actionGroupExecutor": {

0 commit comments

Comments
 (0)