diff --git a/clients/client-bedrock-agent/src/models/models_0.ts b/clients/client-bedrock-agent/src/models/models_0.ts index 63a61abf93b5..8a30e815068b 100644 --- a/clients/client-bedrock-agent/src/models/models_0.ts +++ b/clients/client-bedrock-agent/src/models/models_0.ts @@ -1160,7 +1160,7 @@ export interface PromptOverrideConfiguration { promptConfigurations: PromptConfiguration[] | undefined; /** - *

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 promptConfigurations must contain a parserMode value that is set to OVERRIDDEN. For more information, see Parser Lambda function in Agents for Amazon Bedrock.

+ *

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 promptConfigurations must contain a parserMode value that is set to OVERRIDDEN. For more information, see Parser Lambda function in Amazon Bedrock Agents.

* @public */ overrideLambda?: string; @@ -1648,7 +1648,7 @@ export interface CreateAgentRequest { instruction?: string; /** - *

The foundation model to be used for orchestration by the agent you create.

+ *

The Amazon Resource Name (ARN) of the foundation model to be used for orchestration by the agent you create.

* @public */ foundationModel?: string; @@ -3913,7 +3913,7 @@ export interface KnowledgeBaseFlowNodeConfiguration { knowledgeBaseId: string | undefined; /** - *

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.

+ *

The unique identifier of the model or inference profile to use to generate a response from the query results. Omit this field if you want to return the retrieved results as an array.

* @public */ modelId?: string; @@ -4132,7 +4132,7 @@ export interface PromptFlowNodeInlineConfiguration { templateConfiguration: PromptTemplateConfiguration | undefined; /** - *

The unique identifier of the model to run inference with.

+ *

The unique identifier of the model or inference profile to run inference with.

* @public */ modelId: string | undefined; @@ -7479,7 +7479,7 @@ export interface PromptVariant { templateConfiguration?: PromptTemplateConfiguration; /** - *

The unique identifier of the model with which to run inference on the prompt.

+ *

The unique identifier of the model or inference profile with which to run inference on the prompt.

* @public */ modelId?: string; diff --git a/codegen/sdk-codegen/aws-models/bedrock-agent.json b/codegen/sdk-codegen/aws-models/bedrock-agent.json index 750ca3b0df72..d75510e877df 100644 --- a/codegen/sdk-codegen/aws-models/bedrock-agent.json +++ b/codegen/sdk-codegen/aws-models/bedrock-agent.json @@ -2605,7 +2605,7 @@ "foundationModel": { "target": "com.amazonaws.bedrockagent#ModelIdentifier", "traits": { - "smithy.api#documentation": "

The foundation model to be used for orchestration by the agent you create.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the foundation model to be used for orchestration by the agent you create.

" } }, "description": { @@ -8032,9 +8032,9 @@ } }, "modelId": { - "target": "com.amazonaws.bedrockagent#ModelIdentifier", + "target": "com.amazonaws.bedrockagent#KnowledgeBaseModelIdentifier", "traits": { - "smithy.api#documentation": "

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.

" + "smithy.api#documentation": "

The unique identifier of the model or inference profile to use to generate a response from the query results. Omit this field if you want to return the retrieved results as an array.

" } } }, @@ -8051,6 +8051,16 @@ "smithy.api#pattern": "^[0-9a-zA-Z]+$" } }, + "com.amazonaws.bedrockagent#KnowledgeBaseModelIdentifier": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "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-:.]+)$" + } + }, "com.amazonaws.bedrockagent#KnowledgeBaseResource": { "type": "resource", "operations": [ @@ -10305,7 +10315,7 @@ "modelId": { "target": "com.amazonaws.bedrockagent#PromptModelIdentifier", "traits": { - "smithy.api#documentation": "

The unique identifier of the model to run inference with.

", + "smithy.api#documentation": "

The unique identifier of the model or inference profile to run inference with.

", "smithy.api#required": {} } }, @@ -10477,7 +10487,7 @@ "min": 1, "max": 2048 }, - "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][_-]?)+)$" + "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-:.]+)$" } }, "com.amazonaws.bedrockagent#PromptModelInferenceConfiguration": { @@ -10537,7 +10547,7 @@ "overrideLambda": { "target": "com.amazonaws.bedrockagent#LambdaArn", "traits": { - "smithy.api#documentation": "

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 promptConfigurations must contain a parserMode value that is set to OVERRIDDEN. For more information, see Parser Lambda function in Agents for Amazon Bedrock.

" + "smithy.api#documentation": "

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 promptConfigurations must contain a parserMode value that is set to OVERRIDDEN. For more information, see Parser Lambda function in Amazon Bedrock Agents.

" } } }, @@ -10743,7 +10753,7 @@ "modelId": { "target": "com.amazonaws.bedrockagent#PromptModelIdentifier", "traits": { - "smithy.api#documentation": "

The unique identifier of the model with which to run inference on the prompt.

" + "smithy.api#documentation": "

The unique identifier of the model or inference profile with which to run inference on the prompt.

" } }, "inferenceConfiguration": {