Skip to content

Commit 3db793d

Browse files
author
awstools
committed
feat(client-bedrock-agent): Amazon Bedrock Prompt Flows and Prompt Management now supports using inference profiles to increase throughput and improve resilience.
1 parent f69b00e commit 3db793d

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed

clients/client-bedrock-agent/src/models/models_0.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ export interface PromptOverrideConfiguration {
11601160
promptConfigurations: PromptConfiguration[] | undefined;
11611161

11621162
/**
1163-
* <p>The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence. If you specify this field, at least one of the <code>promptConfigurations</code> must contain a <code>parserMode</code> value that is set to <code>OVERRIDDEN</code>. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/lambda-parser.html">Parser Lambda function in Agents for Amazon Bedrock</a>.</p>
1163+
* <p>The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence. If you specify this field, at least one of the <code>promptConfigurations</code> must contain a <code>parserMode</code> value that is set to <code>OVERRIDDEN</code>. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/lambda-parser.html">Parser Lambda function in Amazon Bedrock Agents</a>.</p>
11641164
* @public
11651165
*/
11661166
overrideLambda?: string;
@@ -1648,7 +1648,7 @@ export interface CreateAgentRequest {
16481648
instruction?: string;
16491649

16501650
/**
1651-
* <p>The foundation model to be used for orchestration by the agent you create.</p>
1651+
* <p>The Amazon Resource Name (ARN) of the foundation model to be used for orchestration by the agent you create.</p>
16521652
* @public
16531653
*/
16541654
foundationModel?: string;
@@ -3913,7 +3913,7 @@ export interface KnowledgeBaseFlowNodeConfiguration {
39133913
knowledgeBaseId: string | undefined;
39143914

39153915
/**
3916-
* <p>The unique identifier of the model to use to generate a response from the query results. Omit this field if you want to return the retrieved results as an array.</p>
3916+
* <p>The unique identifier of the model or <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html">inference profile</a> to use to generate a response from the query results. Omit this field if you want to return the retrieved results as an array.</p>
39173917
* @public
39183918
*/
39193919
modelId?: string;
@@ -4132,7 +4132,7 @@ export interface PromptFlowNodeInlineConfiguration {
41324132
templateConfiguration: PromptTemplateConfiguration | undefined;
41334133

41344134
/**
4135-
* <p>The unique identifier of the model to run inference with.</p>
4135+
* <p>The unique identifier of the model or <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html">inference profile</a> to run inference with.</p>
41364136
* @public
41374137
*/
41384138
modelId: string | undefined;
@@ -7479,7 +7479,7 @@ export interface PromptVariant {
74797479
templateConfiguration?: PromptTemplateConfiguration;
74807480

74817481
/**
7482-
* <p>The unique identifier of the model with which to run inference on the prompt.</p>
7482+
* <p>The unique identifier of the model or <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html">inference profile</a> with which to run inference on the prompt.</p>
74837483
* @public
74847484
*/
74857485
modelId?: string;

codegen/sdk-codegen/aws-models/bedrock-agent.json

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2605,7 +2605,7 @@
26052605
"foundationModel": {
26062606
"target": "com.amazonaws.bedrockagent#ModelIdentifier",
26072607
"traits": {
2608-
"smithy.api#documentation": "<p>The foundation model to be used for orchestration by the agent you create.</p>"
2608+
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the foundation model to be used for orchestration by the agent you create.</p>"
26092609
}
26102610
},
26112611
"description": {
@@ -8032,9 +8032,9 @@
80328032
}
80338033
},
80348034
"modelId": {
8035-
"target": "com.amazonaws.bedrockagent#ModelIdentifier",
8035+
"target": "com.amazonaws.bedrockagent#KnowledgeBaseModelIdentifier",
80368036
"traits": {
8037-
"smithy.api#documentation": "<p>The unique identifier of the model to use to generate a response from the query results. Omit this field if you want to return the retrieved results as an array.</p>"
8037+
"smithy.api#documentation": "<p>The unique identifier of the model or <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html\">inference profile</a> to use to generate a response from the query results. Omit this field if you want to return the retrieved results as an array.</p>"
80388038
}
80398039
}
80408040
},
@@ -8051,6 +8051,16 @@
80518051
"smithy.api#pattern": "^[0-9a-zA-Z]+$"
80528052
}
80538053
},
8054+
"com.amazonaws.bedrockagent#KnowledgeBaseModelIdentifier": {
8055+
"type": "string",
8056+
"traits": {
8057+
"smithy.api#length": {
8058+
"min": 1,
8059+
"max": 2048
8060+
},
8061+
"smithy.api#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-:.]+)$"
8062+
}
8063+
},
80548064
"com.amazonaws.bedrockagent#KnowledgeBaseResource": {
80558065
"type": "resource",
80568066
"operations": [
@@ -10305,7 +10315,7 @@
1030510315
"modelId": {
1030610316
"target": "com.amazonaws.bedrockagent#PromptModelIdentifier",
1030710317
"traits": {
10308-
"smithy.api#documentation": "<p>The unique identifier of the model to run inference with.</p>",
10318+
"smithy.api#documentation": "<p>The unique identifier of the model or <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html\">inference profile</a> to run inference with.</p>",
1030910319
"smithy.api#required": {}
1031010320
}
1031110321
},
@@ -10477,7 +10487,7 @@
1047710487
"min": 1,
1047810488
"max": 2048
1047910489
},
10480-
"smithy.api#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][_-]?)+)$"
10490+
"smithy.api#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-:.]+)$"
1048110491
}
1048210492
},
1048310493
"com.amazonaws.bedrockagent#PromptModelInferenceConfiguration": {
@@ -10537,7 +10547,7 @@
1053710547
"overrideLambda": {
1053810548
"target": "com.amazonaws.bedrockagent#LambdaArn",
1053910549
"traits": {
10540-
"smithy.api#documentation": "<p>The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence. If you specify this field, at least one of the <code>promptConfigurations</code> must contain a <code>parserMode</code> value that is set to <code>OVERRIDDEN</code>. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/lambda-parser.html\">Parser Lambda function in Agents for Amazon Bedrock</a>.</p>"
10550+
"smithy.api#documentation": "<p>The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence. If you specify this field, at least one of the <code>promptConfigurations</code> must contain a <code>parserMode</code> value that is set to <code>OVERRIDDEN</code>. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/lambda-parser.html\">Parser Lambda function in Amazon Bedrock Agents</a>.</p>"
1054110551
}
1054210552
}
1054310553
},
@@ -10743,7 +10753,7 @@
1074310753
"modelId": {
1074410754
"target": "com.amazonaws.bedrockagent#PromptModelIdentifier",
1074510755
"traits": {
10746-
"smithy.api#documentation": "<p>The unique identifier of the model with which to run inference on the prompt.</p>"
10756+
"smithy.api#documentation": "<p>The unique identifier of the model or <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html\">inference profile</a> with which to run inference on the prompt.</p>"
1074710757
}
1074810758
},
1074910759
"inferenceConfiguration": {

0 commit comments

Comments
 (0)