Interface AgentAliasProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AgentAliasProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:41:04.442Z")
@Stability(Experimental)
public interface AgentAliasProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties for creating a CDK-Managed Agent Alias.
Example:
// Create a specialized agent
Agent customerSupportAgent = Agent.Builder.create(this, "CustomerSupportAgent")
.instruction("You specialize in answering customer support questions.")
.foundationModel(BedrockFoundationModel.AMAZON_NOVA_LITE_V1)
.build();
// Create an agent alias
AgentAlias customerSupportAlias = AgentAlias.Builder.create(this, "CustomerSupportAlias")
.agent(customerSupportAgent)
.agentAliasName("production")
.build();
// Create a main agent that collaborates with the specialized agent
Agent mainAgent = Agent.Builder.create(this, "MainAgent")
.instruction("You route specialized questions to other agents.")
.foundationModel(BedrockFoundationModel.AMAZON_NOVA_LITE_V1)
.agentCollaboration(Map.of(
"type", AgentCollaboratorType.SUPERVISOR,
"collaborators", List.of(
AgentCollaborator.Builder.create()
.agentAlias(customerSupportAlias)
.collaborationInstruction("Route customer support questions to this agent.")
.collaboratorName("CustomerSupport")
.relayConversationHistory(true)
.build())))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAgentAliasPropsstatic final classAn implementation forAgentAliasProps -
Method Summary
Modifier and TypeMethodDescriptionstatic AgentAliasProps.Builderbuilder()getAgent()(experimental) The agent associated to this alias.default String(experimental) The name for the agent alias.default String(experimental) The version of the agent to associate with the agent alias.default String(experimental) Description for the agent alias.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAgent
(experimental) The agent associated to this alias. -
getAgentAliasName
(experimental) The name for the agent alias.This will be used as the physical name of the agent alias.
Default: - "latest"
-
getAgentVersion
(experimental) The version of the agent to associate with the agent alias.Default: - Creates a new version of the agent.
-
getDescription
(experimental) Description for the agent alias.Default: undefined - No description is provided
-
builder
- Returns:
- a
AgentAliasProps.BuilderofAgentAliasProps
-