interface PromptRouterProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Bedrock.Alpha.PromptRouterProps |
![]() | github.com/aws/aws-cdk-go/awsbedrockalpha/v2#PromptRouterProps |
![]() | software.amazon.awscdk.services.bedrock.alpha.PromptRouterProps |
![]() | aws_cdk.aws_bedrock_alpha.PromptRouterProps |
![]() | @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.