Skip to content

Commit 492edfa

Browse files
author
AWS
committed
Agents for Amazon Bedrock Update: Add support of new model types for Bedrock Agents, Adding inference profile support for Flows and Prompt Management, Adding new field to configure additional inference configurations for Flows and Prompt Management
1 parent 6ff6555 commit 492edfa

File tree

2 files changed

+33
-12
lines changed

2 files changed

+33
-12
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": "Add support of new model types for Bedrock Agents, Adding inference profile support for Flows and Prompt Management, Adding new field to configure additional inference configurations for Flows and Prompt Management"
6+
}

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

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2333,7 +2333,7 @@
23332333
},
23342334
"foundationModel":{
23352335
"shape":"ModelIdentifier",
2336-
"documentation":"<p>The Amazon Resource Name (ARN) of the foundation model to be used for orchestration by the agent you create.</p>"
2336+
"documentation":"<p>The identifier for the model that you want to be used for orchestration by the agent you create.</p> <p>The <code>modelId</code> to provide depends on the type of model or throughput that you use:</p> <ul> <li> <p>If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns\">Amazon Bedrock base model IDs (on-demand throughput)</a> in the Amazon Bedrock User Guide.</p> </li> <li> <p>If you use an inference profile, specify the inference profile ID or its ARN. For a list of inference profile IDs, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html\">Supported Regions and models for cross-region inference</a> in the Amazon Bedrock User Guide.</p> </li> <li> <p>If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html\">Run inference using a Provisioned Throughput</a> in the Amazon Bedrock User Guide.</p> </li> <li> <p>If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html\">Use a custom model in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p> </li> <li> <p>If you use an <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html\">imported model</a>, specify the ARN of the imported model. You can get the model ARN from a successful call to <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html\">CreateModelImportJob</a> or from the Imported models page in the Amazon Bedrock console.</p> </li> </ul>"
23372337
},
23382338
"guardrailConfiguration":{
23392339
"shape":"GuardrailConfiguration",
@@ -3514,6 +3514,12 @@
35143514
"members":{
35153515
}
35163516
},
3517+
"Document":{
3518+
"type":"structure",
3519+
"members":{
3520+
},
3521+
"document":true
3522+
},
35173523
"DraftVersion":{
35183524
"type":"string",
35193525
"max":5,
@@ -3699,8 +3705,7 @@
36993705
"documentation":"<p>A name for the condition that you can reference.</p>"
37003706
}
37013707
},
3702-
"documentation":"<p>Defines a condition in the condition node.</p>",
3703-
"sensitive":true
3708+
"documentation":"<p>Defines a condition in the condition node.</p>"
37043709
},
37053710
"FlowConditionExpression":{
37063711
"type":"string",
@@ -3727,8 +3732,7 @@
37273732
"type":"list",
37283733
"member":{"shape":"FlowCondition"},
37293734
"max":5,
3730-
"min":1,
3731-
"sensitive":true
3735+
"min":1
37323736
},
37333737
"FlowConnection":{
37343738
"type":"structure",
@@ -3824,7 +3828,8 @@
38243828
"documentation":"<p>An array of node definitions in the flow.</p>"
38253829
}
38263830
},
3827-
"documentation":"<p>The definition of the nodes and connections between nodes in the flow.</p>"
3831+
"documentation":"<p>The definition of the nodes and connections between nodes in the flow.</p>",
3832+
"sensitive":true
38283833
},
38293834
"FlowDescription":{
38303835
"type":"string",
@@ -4036,8 +4041,7 @@
40364041
"type":"list",
40374042
"member":{"shape":"FlowNode"},
40384043
"max":20,
4039-
"min":0,
4040-
"sensitive":true
4044+
"min":0
40414045
},
40424046
"FlowStatus":{
40434047
"type":"string",
@@ -5226,9 +5230,10 @@
52265230
},
52275231
"KnowledgeBaseModelIdentifier":{
52285232
"type":"string",
5233+
"documentation":"<p>ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a jumpstart model or imported model, or a provisioned throughput ARN for custom models.</p>",
52295234
"max":2048,
52305235
"min":1,
5231-
"pattern":"^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:provisioned-model/[a-z0-9]{12})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|(arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{1,20}):(|[0-9]{12}):(model-gateway|inference-profile)/[a-zA-Z0-9-:.]+)|([a-zA-Z0-9-:.]+)$"
5236+
"pattern":"^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:imported-model/[a-z0-9]{12})|([0-9]{12}:provisioned-model/[a-z0-9]{12})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|(arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{1,20}):(|[0-9]{12}):(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+)|([a-zA-Z0-9-:.]+)$"
52325237
},
52335238
"KnowledgeBaseRoleArn":{
52345239
"type":"string",
@@ -5847,9 +5852,10 @@
58475852
},
58485853
"ModelIdentifier":{
58495854
"type":"string",
5855+
"documentation":"<p>ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a jumpstart model or imported model, or a provisioned throughput ARN for custom models.</p>",
58505856
"max":2048,
58515857
"min":1,
5852-
"pattern":"^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}(([:][a-z0-9-]{1,63}){0,2})?/[a-z0-9]{12})|(:foundation-model/([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2})))|(([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2}))|(([0-9a-zA-Z][_-]?)+)$"
5858+
"pattern":"^(arn:aws(-[^:]{1,12})?:(bedrock|sagemaker):[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-zA-Z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$"
58535859
},
58545860
"MongoDbAtlasCollectionName":{
58555861
"type":"string",
@@ -6323,6 +6329,10 @@
63236329
"templateType"
63246330
],
63256331
"members":{
6332+
"additionalModelRequestFields":{
6333+
"shape":"Document",
6334+
"documentation":"<p>Contains model-specific inference configurations that aren't in the <code>inferenceConfiguration</code> field. To see model-specific inference parameters, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html\">Inference request parameters and response fields for foundation models</a>.</p>"
6335+
},
63266336
"inferenceConfiguration":{
63276337
"shape":"PromptInferenceConfiguration",
63286338
"documentation":"<p>Contains inference configurations for the prompt.</p>"
@@ -6450,9 +6460,10 @@
64506460
},
64516461
"PromptModelIdentifier":{
64526462
"type":"string",
6463+
"documentation":"<p>ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a jumpstart model or imported model, or a provisioned throughput ARN for custom models.</p>",
64536464
"max":2048,
64546465
"min":1,
6455-
"pattern":"^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:provisioned-model/[a-z0-9]{12})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|(arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{1,20}):(|[0-9]{12}):(model-gateway|inference-profile)/[a-zA-Z0-9-:.]+)|([a-zA-Z0-9-:.]+)$"
6466+
"pattern":"^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:imported-model/[a-z0-9]{12})|([0-9]{12}:provisioned-model/[a-z0-9]{12})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|(arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{1,20}):(|[0-9]{12}):(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+)|([a-zA-Z0-9-:.]+)$"
64566467
},
64576468
"PromptModelInferenceConfiguration":{
64586469
"type":"structure",
@@ -6583,6 +6594,10 @@
65836594
"templateType"
65846595
],
65856596
"members":{
6597+
"additionalModelRequestFields":{
6598+
"shape":"Document",
6599+
"documentation":"<p>Contains model-specific inference configurations that aren't in the <code>inferenceConfiguration</code> field. To see model-specific inference parameters, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html\">Inference request parameters and response fields for foundation models</a>.</p>"
6600+
},
65866601
"inferenceConfiguration":{
65876602
"shape":"PromptInferenceConfiguration",
65886603
"documentation":"<p>Contains inference configurations for the prompt variant.</p>"
@@ -7676,7 +7691,7 @@
76767691
},
76777692
"foundationModel":{
76787693
"shape":"ModelIdentifier",
7679-
"documentation":"<p>Specifies a new foundation model to be used for orchestration by the agent.</p>"
7694+
"documentation":"<p>The identifier for the model that you want to be used for orchestration by the agent you create.</p> <p>The <code>modelId</code> to provide depends on the type of model or throughput that you use:</p> <ul> <li> <p>If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns\">Amazon Bedrock base model IDs (on-demand throughput)</a> in the Amazon Bedrock User Guide.</p> </li> <li> <p>If you use an inference profile, specify the inference profile ID or its ARN. For a list of inference profile IDs, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html\">Supported Regions and models for cross-region inference</a> in the Amazon Bedrock User Guide.</p> </li> <li> <p>If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html\">Run inference using a Provisioned Throughput</a> in the Amazon Bedrock User Guide.</p> </li> <li> <p>If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html\">Use a custom model in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p> </li> <li> <p>If you use an <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html\">imported model</a>, specify the ARN of the imported model. You can get the model ARN from a successful call to <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html\">CreateModelImportJob</a> or from the Imported models page in the Amazon Bedrock console.</p> </li> </ul>"
76807695
},
76817696
"guardrailConfiguration":{
76827697
"shape":"GuardrailConfiguration",

0 commit comments

Comments
 (0)