AgentCollaboratorType
- class aws_cdk.aws_bedrock_alpha.AgentCollaboratorType(*values)
Bases:
Enum(experimental) Enum for collaborator’s relay conversation history types.
- Stability:
experimental
- ExampleMetadata:
fixture=default infused
Example:
# Create a specialized agent customer_support_agent = bedrock.Agent(self, "CustomerSupportAgent", instruction="You specialize in answering customer support questions.", foundation_model=bedrock.BedrockFoundationModel.AMAZON_NOVA_LITE_V1 ) # Create an agent alias customer_support_alias = bedrock.AgentAlias(self, "CustomerSupportAlias", agent=customer_support_agent, agent_alias_name="production" ) # Create a main agent that collaborates with the specialized agent main_agent = bedrock.Agent(self, "MainAgent", instruction="You route specialized questions to other agents.", foundation_model=bedrock.BedrockFoundationModel.AMAZON_NOVA_LITE_V1, agent_collaboration={ "type": bedrock.AgentCollaboratorType.SUPERVISOR, "collaborators": [ bedrock.AgentCollaborator( agent_alias=customer_support_alias, collaboration_instruction="Route customer support questions to this agent.", collaborator_name="CustomerSupport", relay_conversation_history=True ) ] } )
Attributes
- DISABLED
(experimental) Disabling collaboration.
- Stability:
experimental
- SUPERVISOR
(experimental) Supervisor agent.
- Stability:
experimental
- SUPERVISOR_ROUTER
(experimental) Supervisor router.
- Stability:
experimental