diff --git a/clients/client-bedrock-agent-runtime/src/commands/RetrieveAndGenerateCommand.ts b/clients/client-bedrock-agent-runtime/src/commands/RetrieveAndGenerateCommand.ts index 393852c0dc49..ad4eaeaf4c87 100644 --- a/clients/client-bedrock-agent-runtime/src/commands/RetrieveAndGenerateCommand.ts +++ b/clients/client-bedrock-agent-runtime/src/commands/RetrieveAndGenerateCommand.ts @@ -37,7 +37,7 @@ export interface RetrieveAndGenerateCommandInput extends RetrieveAndGenerateRequ export interface RetrieveAndGenerateCommandOutput extends RetrieveAndGenerateResponse, __MetadataBearer {} /** - *

Queries a knowledge base and generates responses based on the retrieved results. The response only cites sources that are relevant to the query.

+ *

Queries a knowledge base and generates responses based on the retrieved results and using the specified foundation model or inference profile. The response only cites sources that are relevant to the query.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock-agent-runtime/src/models/models_0.ts b/clients/client-bedrock-agent-runtime/src/models/models_0.ts index 18bd44e1b8a3..831bae4cab24 100644 --- a/clients/client-bedrock-agent-runtime/src/models/models_0.ts +++ b/clients/client-bedrock-agent-runtime/src/models/models_0.ts @@ -4840,13 +4840,13 @@ export interface KnowledgeBaseConfiguration { */ export interface KnowledgeBaseRetrieveAndGenerateConfiguration { /** - *

The unique identifier of the knowledge base that is queried and the foundation model used for generation.

+ *

The unique identifier of the knowledge base that is queried.

* @public */ knowledgeBaseId: string | undefined; /** - *

The ARN of the foundation model used to generate a response.

+ *

The ARN of the foundation model or inference profile used to generate a response.

* @public */ modelArn: string | undefined; diff --git a/codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json b/codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json index 8c846a98a6aa..a23009ba11bc 100644 --- a/codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json +++ b/codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json @@ -1061,10 +1061,10 @@ "type": "string", "traits": { "smithy.api#length": { - "min": 20, - "max": 1011 + "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}))$" + "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}))))|(arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{1,20}):(|[0-9]{12}):inference-profile/[a-zA-Z0-9-:.]+)|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)$" } }, "com.amazonaws.bedrockagentruntime#ByteContentBlob": { @@ -3627,14 +3627,14 @@ "knowledgeBaseId": { "target": "com.amazonaws.bedrockagentruntime#KnowledgeBaseId", "traits": { - "smithy.api#documentation": "

The unique identifier of the knowledge base that is queried and the foundation model used for generation.

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

The unique identifier of the knowledge base that is queried.

", "smithy.api#required": {} } }, "modelArn": { "target": "com.amazonaws.bedrockagentruntime#BedrockModelArn", "traits": { - "smithy.api#documentation": "

The ARN of the foundation model used to generate a response.

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

The ARN of the foundation model or inference profile used to generate a response.

", "smithy.api#required": {} } }, @@ -5024,7 +5024,7 @@ } ], "traits": { - "smithy.api#documentation": "

Queries a knowledge base and generates responses based on the retrieved results. The response only cites sources that are relevant to the query.

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

Queries a knowledge base and generates responses based on the retrieved results and using the specified foundation model or inference profile. The response only cites sources that are relevant to the query.

", "smithy.api#http": { "code": 200, "method": "POST",