Experimental
@aws-cdk/aws-bedrock-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
PromptRouterProps Struct
Properties for configuring a Prompt Router.
Example
ts
// 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
promptRouterIdstringprompt_router_idstrpromptRouterIdStringPromptRouterIdstringPromptRouterId*stringrequired#Prompt Router ID that identifies the routing configuration.
routingModelsBedrockFoundationModel[]routing_modelstyping.List[BedrockFoundationModel]routingModelsList<BedrockFoundationModel>RoutingModelsBedrockFoundationModel[]RoutingModels*[]BedrockFoundationModelrequired#The foundation models this router will route to.
The router will intelligently select between these models based on the request.