interface PromptRouterProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Alpha.PromptRouterProps |
Go | github.com/aws/aws-cdk-go/awsbedrockalpha/v2#PromptRouterProps |
Java | software.amazon.awscdk.services.bedrock.alpha.PromptRouterProps |
Python | aws_cdk.aws_bedrock_alpha.PromptRouterProps |
TypeScript (source) | @aws-cdk/aws-bedrock-alpha » PromptRouterProps |
Properties for configuring a Prompt Router.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_alpha from '@aws-cdk/aws-bedrock-alpha';
declare const bedrockFoundationModel: bedrock_alpha.BedrockFoundationModel;
const promptRouterProps: bedrock_alpha.PromptRouterProps = {
promptRouterId: 'promptRouterId',
routingModels: [bedrockFoundationModel],
};
Properties
| Name | Type | Description |
|---|---|---|
| prompt | string | Prompt Router ID that identifies the routing configuration. |
| routing | Bedrock[] | The foundation models this router will route to. |
promptRouterId
Type:
string
Prompt Router ID that identifies the routing configuration.
routingModels
Type:
Bedrock[]
The foundation models this router will route to.
The router will intelligently select between these models based on the request.

.NET
Go
Java
Python
TypeScript (