interface AgentAliasProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Bedrock.Alpha.AgentAliasProps |
![]() | github.com/aws/aws-cdk-go/awsbedrockalpha/v2#AgentAliasProps |
![]() | software.amazon.awscdk.services.bedrock.alpha.AgentAliasProps |
![]() | aws_cdk.aws_bedrock_alpha.AgentAliasProps |
![]() | @aws-cdk/aws-bedrock-alpha ยป AgentAliasProps |
Properties for creating a CDK-Managed Agent Alias.
Example
// Create a specialized agent
const customerSupportAgent = new bedrock.Agent(this, 'CustomerSupportAgent', {
instruction: 'You specialize in answering customer support questions.',
foundationModel: bedrock.BedrockFoundationModel.AMAZON_NOVA_LITE_V1,
});
// Create an agent alias
const customerSupportAlias = new bedrock.AgentAlias(this, 'CustomerSupportAlias', {
agent: customerSupportAgent,
agentAliasName: 'production',
});
// Create a main agent that collaborates with the specialized agent
const mainAgent = new bedrock.Agent(this, 'MainAgent', {
instruction: 'You route specialized questions to other agents.',
foundationModel: bedrock.BedrockFoundationModel.AMAZON_NOVA_LITE_V1,
agentCollaboration: {
type: bedrock.AgentCollaboratorType.SUPERVISOR,
collaborators: [
new bedrock.AgentCollaborator({
agentAlias: customerSupportAlias,
collaborationInstruction: 'Route customer support questions to this agent.',
collaboratorName: 'CustomerSupport',
relayConversationHistory: true
}),
],
},
});
Properties
Name | Type | Description |
---|---|---|
agent | IAgent | The agent associated to this alias. |
agent | string | The name for the agent alias. |
agent | string | The version of the agent to associate with the agent alias. |
description? | string | Description for the agent alias. |
agent
Type:
IAgent
The agent associated to this alias.
agentAliasName?
Type:
string
(optional, default: "latest")
The name for the agent alias.
This will be used as the physical name of the agent alias.
agentVersion?
Type:
string
(optional, default: Creates a new version of the agent.)
The version of the agent to associate with the agent alias.
description?
Type:
string
(optional, default: undefined - No description is provided)
Description for the agent alias.