From 5cf2e4b606b96c16711074cd50d5bc7fb8517423 Mon Sep 17 00:00:00 2001 From: awstools Date: Fri, 25 Oct 2024 18:16:09 +0000 Subject: [PATCH] feat(client-bedrock-agent): 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 --- clients/client-bedrock-agent/README.md | 2 +- .../src/commands/CreateFlowCommand.ts | 2 + .../src/commands/CreateFlowVersionCommand.ts | 1 + .../src/commands/CreatePromptCommand.ts | 2 + .../commands/CreatePromptVersionCommand.ts | 1 + .../src/commands/GetFlowCommand.ts | 1 + .../src/commands/GetFlowVersionCommand.ts | 1 + .../src/commands/GetPromptCommand.ts | 1 + .../src/commands/UpdateFlowCommand.ts | 2 + .../src/commands/UpdatePromptCommand.ts | 2 + .../src/models/models_0.ts | 72 ++++++++++++++++--- .../src/protocols/Aws_restJson1.ts | 19 +++++ .../sdk-codegen/aws-models/bedrock-agent.json | 37 ++++++---- 13 files changed, 119 insertions(+), 24 deletions(-) diff --git a/clients/client-bedrock-agent/README.md b/clients/client-bedrock-agent/README.md index 0fabdadb29b3a..fb8ccfa021e70 100644 --- a/clients/client-bedrock-agent/README.md +++ b/clients/client-bedrock-agent/README.md @@ -10,7 +10,7 @@ AWS SDK for JavaScript BedrockAgent Client for Node.js, Browser and React Native ## Installing -To install the this package, simply type add or install @aws-sdk/client-bedrock-agent +To install this package, simply type add or install @aws-sdk/client-bedrock-agent using your favorite package manager: - `npm install @aws-sdk/client-bedrock-agent` diff --git a/clients/client-bedrock-agent/src/commands/CreateFlowCommand.ts b/clients/client-bedrock-agent/src/commands/CreateFlowCommand.ts index 66a8dd6222f9e..13f03404db4b2 100644 --- a/clients/client-bedrock-agent/src/commands/CreateFlowCommand.ts +++ b/clients/client-bedrock-agent/src/commands/CreateFlowCommand.ts @@ -97,6 +97,7 @@ export interface CreateFlowCommandOutput extends CreateFlowResponse, __MetadataB * ], * }, * }, + * additionalModelRequestFields: "DOCUMENT_VALUE", * }, * }, * }, @@ -226,6 +227,7 @@ export interface CreateFlowCommandOutput extends CreateFlowResponse, __MetadataB * // ], * // }, * // }, + * // additionalModelRequestFields: "DOCUMENT_VALUE", * // }, * // }, * // }, diff --git a/clients/client-bedrock-agent/src/commands/CreateFlowVersionCommand.ts b/clients/client-bedrock-agent/src/commands/CreateFlowVersionCommand.ts index 4c3ac5d9accd7..6b388738e7145 100644 --- a/clients/client-bedrock-agent/src/commands/CreateFlowVersionCommand.ts +++ b/clients/client-bedrock-agent/src/commands/CreateFlowVersionCommand.ts @@ -108,6 +108,7 @@ export interface CreateFlowVersionCommandOutput extends CreateFlowVersionRespons * // ], * // }, * // }, + * // additionalModelRequestFields: "DOCUMENT_VALUE", * // }, * // }, * // }, diff --git a/clients/client-bedrock-agent/src/commands/CreatePromptCommand.ts b/clients/client-bedrock-agent/src/commands/CreatePromptCommand.ts index cf4443c9d2042..d51dc7ae9d1a0 100644 --- a/clients/client-bedrock-agent/src/commands/CreatePromptCommand.ts +++ b/clients/client-bedrock-agent/src/commands/CreatePromptCommand.ts @@ -76,6 +76,7 @@ export interface CreatePromptCommandOutput extends CreatePromptResponse, __Metad * value: "STRING_VALUE", // required * }, * ], + * additionalModelRequestFields: "DOCUMENT_VALUE", * }, * ], * clientToken: "STRING_VALUE", @@ -121,6 +122,7 @@ export interface CreatePromptCommandOutput extends CreatePromptResponse, __Metad * // value: "STRING_VALUE", // required * // }, * // ], + * // additionalModelRequestFields: "DOCUMENT_VALUE", * // }, * // ], * // id: "STRING_VALUE", // required diff --git a/clients/client-bedrock-agent/src/commands/CreatePromptVersionCommand.ts b/clients/client-bedrock-agent/src/commands/CreatePromptVersionCommand.ts index 73b6a04252fe5..58271e2e3370f 100644 --- a/clients/client-bedrock-agent/src/commands/CreatePromptVersionCommand.ts +++ b/clients/client-bedrock-agent/src/commands/CreatePromptVersionCommand.ts @@ -85,6 +85,7 @@ export interface CreatePromptVersionCommandOutput extends CreatePromptVersionRes * // value: "STRING_VALUE", // required * // }, * // ], + * // additionalModelRequestFields: "DOCUMENT_VALUE", * // }, * // ], * // id: "STRING_VALUE", // required diff --git a/clients/client-bedrock-agent/src/commands/GetFlowCommand.ts b/clients/client-bedrock-agent/src/commands/GetFlowCommand.ts index 293c20aebba15..871e4b725d482 100644 --- a/clients/client-bedrock-agent/src/commands/GetFlowCommand.ts +++ b/clients/client-bedrock-agent/src/commands/GetFlowCommand.ts @@ -103,6 +103,7 @@ export interface GetFlowCommandOutput extends GetFlowResponse, __MetadataBearer * // ], * // }, * // }, + * // additionalModelRequestFields: "DOCUMENT_VALUE", * // }, * // }, * // }, diff --git a/clients/client-bedrock-agent/src/commands/GetFlowVersionCommand.ts b/clients/client-bedrock-agent/src/commands/GetFlowVersionCommand.ts index 38bd428a4d65d..3312fd3b6ebe3 100644 --- a/clients/client-bedrock-agent/src/commands/GetFlowVersionCommand.ts +++ b/clients/client-bedrock-agent/src/commands/GetFlowVersionCommand.ts @@ -107,6 +107,7 @@ export interface GetFlowVersionCommandOutput extends GetFlowVersionResponse, __M * // ], * // }, * // }, + * // additionalModelRequestFields: "DOCUMENT_VALUE", * // }, * // }, * // }, diff --git a/clients/client-bedrock-agent/src/commands/GetPromptCommand.ts b/clients/client-bedrock-agent/src/commands/GetPromptCommand.ts index 38d4863513b72..f999183da7787 100644 --- a/clients/client-bedrock-agent/src/commands/GetPromptCommand.ts +++ b/clients/client-bedrock-agent/src/commands/GetPromptCommand.ts @@ -77,6 +77,7 @@ export interface GetPromptCommandOutput extends GetPromptResponse, __MetadataBea * // value: "STRING_VALUE", // required * // }, * // ], + * // additionalModelRequestFields: "DOCUMENT_VALUE", * // }, * // ], * // id: "STRING_VALUE", // required diff --git a/clients/client-bedrock-agent/src/commands/UpdateFlowCommand.ts b/clients/client-bedrock-agent/src/commands/UpdateFlowCommand.ts index e306413070bdd..5180295623a81 100644 --- a/clients/client-bedrock-agent/src/commands/UpdateFlowCommand.ts +++ b/clients/client-bedrock-agent/src/commands/UpdateFlowCommand.ts @@ -97,6 +97,7 @@ export interface UpdateFlowCommandOutput extends UpdateFlowResponse, __MetadataB * ], * }, * }, + * additionalModelRequestFields: "DOCUMENT_VALUE", * }, * }, * }, @@ -223,6 +224,7 @@ export interface UpdateFlowCommandOutput extends UpdateFlowResponse, __MetadataB * // ], * // }, * // }, + * // additionalModelRequestFields: "DOCUMENT_VALUE", * // }, * // }, * // }, diff --git a/clients/client-bedrock-agent/src/commands/UpdatePromptCommand.ts b/clients/client-bedrock-agent/src/commands/UpdatePromptCommand.ts index 38e6c050c8698..ce39fc136aaad 100644 --- a/clients/client-bedrock-agent/src/commands/UpdatePromptCommand.ts +++ b/clients/client-bedrock-agent/src/commands/UpdatePromptCommand.ts @@ -76,6 +76,7 @@ export interface UpdatePromptCommandOutput extends UpdatePromptResponse, __Metad * value: "STRING_VALUE", // required * }, * ], + * additionalModelRequestFields: "DOCUMENT_VALUE", * }, * ], * promptIdentifier: "STRING_VALUE", // required @@ -118,6 +119,7 @@ export interface UpdatePromptCommandOutput extends UpdatePromptResponse, __Metad * // value: "STRING_VALUE", // required * // }, * // ], + * // additionalModelRequestFields: "DOCUMENT_VALUE", * // }, * // ], * // id: "STRING_VALUE", // required diff --git a/clients/client-bedrock-agent/src/models/models_0.ts b/clients/client-bedrock-agent/src/models/models_0.ts index 5bebad6d2b1a1..66ca6fa780220 100644 --- a/clients/client-bedrock-agent/src/models/models_0.ts +++ b/clients/client-bedrock-agent/src/models/models_0.ts @@ -1,6 +1,8 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; +import { DocumentType as __DocumentType } from "@smithy/types"; + import { BedrockAgentServiceException as __BaseException } from "./BedrockAgentServiceException"; /** @@ -1648,7 +1650,25 @@ export interface CreateAgentRequest { instruction?: string; /** - *

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

+ *

The identifier for the model that you want to be used for orchestration by the agent you create.

+ *

The modelId to provide depends on the type of model or throughput that you use:

+ * * @public */ foundationModel?: string; @@ -1915,7 +1935,25 @@ export interface UpdateAgentRequest { instruction?: string; /** - *

Specifies a new foundation model to be used for orchestration by the agent.

+ *

The identifier for the model that you want to be used for orchestration by the agent you create.

+ *

The modelId to provide depends on the type of model or throughput that you use:

+ * * @public */ foundationModel: string | undefined; @@ -4136,6 +4174,12 @@ export interface PromptFlowNodeInlineConfiguration { * @public */ inferenceConfiguration?: PromptInferenceConfiguration; + + /** + *

Contains model-specific inference configurations that aren't in the inferenceConfiguration field. To see model-specific inference parameters, see Inference request parameters and response fields for foundation models.

+ * @public + */ + additionalModelRequestFields?: __DocumentType; } /** @@ -7527,6 +7571,12 @@ export interface PromptVariant { * @public */ metadata?: PromptMetadataEntry[]; + + /** + *

Contains model-specific inference configurations that aren't in the inferenceConfiguration field. To see model-specific inference parameters, see Inference request parameters and response fields for foundation models.

+ * @public + */ + additionalModelRequestFields?: __DocumentType; } /** @@ -8576,7 +8626,7 @@ export const FlowConditionFilterSensitiveLog = (obj: FlowCondition): any => ({ */ export const ConditionFlowNodeConfigurationFilterSensitiveLog = (obj: ConditionFlowNodeConfiguration): any => ({ ...obj, - ...(obj.conditions && { conditions: SENSITIVE_STRING }), + ...(obj.conditions && { conditions: obj.conditions.map((item) => FlowConditionFilterSensitiveLog(item)) }), }); /** @@ -8668,7 +8718,7 @@ export const FlowNodeFilterSensitiveLog = (obj: FlowNode): any => ({ */ export const FlowDefinitionFilterSensitiveLog = (obj: FlowDefinition): any => ({ ...obj, - ...(obj.nodes && { nodes: SENSITIVE_STRING }), + ...(obj.nodes && { nodes: obj.nodes.map((item) => FlowNodeFilterSensitiveLog(item)) }), ...(obj.connections && { connections: obj.connections.map((item) => item) }), }); @@ -8677,7 +8727,7 @@ export const FlowDefinitionFilterSensitiveLog = (obj: FlowDefinition): any => ({ */ export const CreateFlowRequestFilterSensitiveLog = (obj: CreateFlowRequest): any => ({ ...obj, - ...(obj.definition && { definition: FlowDefinitionFilterSensitiveLog(obj.definition) }), + ...(obj.definition && { definition: SENSITIVE_STRING }), }); /** @@ -8685,7 +8735,7 @@ export const CreateFlowRequestFilterSensitiveLog = (obj: CreateFlowRequest): any */ export const CreateFlowResponseFilterSensitiveLog = (obj: CreateFlowResponse): any => ({ ...obj, - ...(obj.definition && { definition: FlowDefinitionFilterSensitiveLog(obj.definition) }), + ...(obj.definition && { definition: SENSITIVE_STRING }), }); /** @@ -8693,7 +8743,7 @@ export const CreateFlowResponseFilterSensitiveLog = (obj: CreateFlowResponse): a */ export const CreateFlowVersionResponseFilterSensitiveLog = (obj: CreateFlowVersionResponse): any => ({ ...obj, - ...(obj.definition && { definition: FlowDefinitionFilterSensitiveLog(obj.definition) }), + ...(obj.definition && { definition: SENSITIVE_STRING }), }); /** @@ -8701,7 +8751,7 @@ export const CreateFlowVersionResponseFilterSensitiveLog = (obj: CreateFlowVersi */ export const GetFlowVersionResponseFilterSensitiveLog = (obj: GetFlowVersionResponse): any => ({ ...obj, - ...(obj.definition && { definition: FlowDefinitionFilterSensitiveLog(obj.definition) }), + ...(obj.definition && { definition: SENSITIVE_STRING }), }); /** @@ -8709,7 +8759,7 @@ export const GetFlowVersionResponseFilterSensitiveLog = (obj: GetFlowVersionResp */ export const GetFlowResponseFilterSensitiveLog = (obj: GetFlowResponse): any => ({ ...obj, - ...(obj.definition && { definition: FlowDefinitionFilterSensitiveLog(obj.definition) }), + ...(obj.definition && { definition: SENSITIVE_STRING }), }); /** @@ -8717,7 +8767,7 @@ export const GetFlowResponseFilterSensitiveLog = (obj: GetFlowResponse): any => */ export const UpdateFlowRequestFilterSensitiveLog = (obj: UpdateFlowRequest): any => ({ ...obj, - ...(obj.definition && { definition: FlowDefinitionFilterSensitiveLog(obj.definition) }), + ...(obj.definition && { definition: SENSITIVE_STRING }), }); /** @@ -8725,7 +8775,7 @@ export const UpdateFlowRequestFilterSensitiveLog = (obj: UpdateFlowRequest): any */ export const UpdateFlowResponseFilterSensitiveLog = (obj: UpdateFlowResponse): any => ({ ...obj, - ...(obj.definition && { definition: FlowDefinitionFilterSensitiveLog(obj.definition) }), + ...(obj.definition && { definition: SENSITIVE_STRING }), }); /** diff --git a/clients/client-bedrock-agent/src/protocols/Aws_restJson1.ts b/clients/client-bedrock-agent/src/protocols/Aws_restJson1.ts index 7e4915f1d4b2a..ccb05e3aac813 100644 --- a/clients/client-bedrock-agent/src/protocols/Aws_restJson1.ts +++ b/clients/client-bedrock-agent/src/protocols/Aws_restJson1.ts @@ -25,6 +25,7 @@ import { withBaseException, } from "@smithy/smithy-client"; import { + DocumentType as __DocumentType, Endpoint as __Endpoint, ResponseMetadata as __ResponseMetadata, SerdeContext as __SerdeContext, @@ -3481,6 +3482,7 @@ const se_PromptFlowNodeInlineConfiguration = ( context: __SerdeContext ): any => { return take(input, { + additionalModelRequestFields: (_) => se_Document(_, context), inferenceConfiguration: (_) => se_PromptInferenceConfiguration(_, context), modelId: [], templateConfiguration: _json, @@ -3554,6 +3556,7 @@ const se_PromptOverrideConfiguration = (input: PromptOverrideConfiguration, cont */ const se_PromptVariant = (input: PromptVariant, context: __SerdeContext): any => { return take(input, { + additionalModelRequestFields: (_) => se_Document(_, context), inferenceConfiguration: (_) => se_PromptInferenceConfiguration(_, context), metadata: _json, modelId: [], @@ -3654,6 +3657,13 @@ const se_PromptVariantList = (input: PromptVariant[], context: __SerdeContext): // se_WebSourceConfiguration omitted. +/** + * serializeAws_restJson1Document + */ +const se_Document = (input: __DocumentType, context: __SerdeContext): any => { + return input; +}; + // de_ActionGroupExecutor omitted. /** @@ -4423,6 +4433,7 @@ const de_PromptFlowNodeInlineConfiguration = ( context: __SerdeContext ): PromptFlowNodeInlineConfiguration => { return take(output, { + additionalModelRequestFields: (_: any) => de_Document(_, context), inferenceConfiguration: (_: any) => de_PromptInferenceConfiguration(__expectUnion(_), context), modelId: __expectString, templateConfiguration: (_: any) => _json(__expectUnion(_)), @@ -4531,6 +4542,7 @@ const de_PromptSummary = (output: any, context: __SerdeContext): PromptSummary = */ const de_PromptVariant = (output: any, context: __SerdeContext): PromptVariant => { return take(output, { + additionalModelRequestFields: (_: any) => de_Document(_, context), inferenceConfiguration: (_: any) => de_PromptInferenceConfiguration(__expectUnion(_), context), metadata: _json, modelId: __expectString, @@ -4638,6 +4650,13 @@ const de_PromptVariantList = (output: any, context: __SerdeContext): PromptVaria // de_WebSourceConfiguration omitted. +/** + * deserializeAws_restJson1Document + */ +const de_Document = (output: any, context: __SerdeContext): __DocumentType => { + return output; +}; + const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ httpStatusCode: output.statusCode, requestId: diff --git a/codegen/sdk-codegen/aws-models/bedrock-agent.json b/codegen/sdk-codegen/aws-models/bedrock-agent.json index 7e3c284bfc03c..7094b747d0b09 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 Amazon Resource Name (ARN) of the foundation model to be used for orchestration by the agent you create.

" + "smithy.api#documentation": "

The identifier for the model that you want to be used for orchestration by the agent you create.

\n

The modelId to provide depends on the type of model or throughput that you use:

\n " } }, "description": { @@ -5301,8 +5301,7 @@ } }, "traits": { - "smithy.api#documentation": "

Defines a condition in the condition node.

", - "smithy.api#sensitive": {} + "smithy.api#documentation": "

Defines a condition in the condition node.

" } }, "com.amazonaws.bedrockagent#FlowConditionExpression": { @@ -5345,8 +5344,7 @@ "smithy.api#length": { "min": 1, "max": 5 - }, - "smithy.api#sensitive": {} + } } }, "com.amazonaws.bedrockagent#FlowConnection": { @@ -5484,7 +5482,8 @@ } }, "traits": { - "smithy.api#documentation": "

The definition of the nodes and connections between nodes in the flow.

" + "smithy.api#documentation": "

The definition of the nodes and connections between nodes in the flow.

", + "smithy.api#sensitive": {} } }, "com.amazonaws.bedrockagent#FlowDescription": { @@ -5864,8 +5863,7 @@ "traits": { "smithy.api#length": { "max": 20 - }, - "smithy.api#sensitive": {} + } } }, "com.amazonaws.bedrockagent#FlowResource": { @@ -8069,11 +8067,12 @@ "com.amazonaws.bedrockagent#KnowledgeBaseModelIdentifier": { "type": "string", "traits": { + "smithy.api#documentation": "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.", "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-:.]+)$" + "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}: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-:.]+)$" } }, "com.amazonaws.bedrockagent#KnowledgeBaseResource": { @@ -9567,11 +9566,12 @@ "com.amazonaws.bedrockagent#ModelIdentifier": { "type": "string", "traits": { + "smithy.api#documentation": "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.", "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-]{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][_-]?)+)$" + "smithy.api#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})?$" } }, "com.amazonaws.bedrockagent#MongoDbAtlasCollectionName": { @@ -10339,6 +10339,12 @@ "traits": { "smithy.api#documentation": "

Contains inference configurations for the prompt.

" } + }, + "additionalModelRequestFields": { + "target": "smithy.api#Document", + "traits": { + "smithy.api#documentation": "

Contains model-specific inference configurations that aren't in the inferenceConfiguration field. To see model-specific inference parameters, see Inference request parameters and response fields for foundation models.

" + } } }, "traits": { @@ -10498,11 +10504,12 @@ "com.amazonaws.bedrockagent#PromptModelIdentifier": { "type": "string", "traits": { + "smithy.api#documentation": "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.", "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-:.]+)$" + "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}: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-:.]+)$" } }, "com.amazonaws.bedrockagent#PromptModelInferenceConfiguration": { @@ -10777,6 +10784,12 @@ "traits": { "smithy.api#documentation": "

An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant. For more information, see Create a prompt using Prompt management.

" } + }, + "additionalModelRequestFields": { + "target": "smithy.api#Document", + "traits": { + "smithy.api#documentation": "

Contains model-specific inference configurations that aren't in the inferenceConfiguration field. To see model-specific inference parameters, see Inference request parameters and response fields for foundation models.

" + } } }, "traits": { @@ -12616,7 +12629,7 @@ "target": "com.amazonaws.bedrockagent#ModelIdentifier", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

Specifies a new foundation model to be used for orchestration by the agent.

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

The identifier for the model that you want to be used for orchestration by the agent you create.

\n

The modelId to provide depends on the type of model or throughput that you use:

\n ", "smithy.api#required": {} } },