Show / Hide Table of Contents

Enum AgentCollaboratorType

(experimental) Enum for collaborator's relay conversation history types.

Namespace: Amazon.CDK.AWS.Bedrock.Alpha
Assembly: Amazon.CDK.AWS.Bedrock.Alpha.dll
Syntax (csharp)
public enum AgentCollaboratorType
Syntax (vb)
Public Enum AgentCollaboratorType
Remarks

Stability: Experimental

ExampleMetadata: fixture=default infused

Examples
// Create a specialized agent
             var customerSupportAgent = new Agent(this, "CustomerSupportAgent", new AgentProps {
                 Instruction = "You specialize in answering customer support questions.",
                 FoundationModel = BedrockFoundationModel.AMAZON_NOVA_LITE_V1
             });

             // Create an agent alias
             var customerSupportAlias = new AgentAlias(this, "CustomerSupportAlias", new AgentAliasProps {
                 Agent = customerSupportAgent,
                 AgentAliasName = "production"
             });

             // Create a main agent that collaborates with the specialized agent
             var mainAgent = new Agent(this, "MainAgent", new AgentProps {
                 Instruction = "You route specialized questions to other agents.",
                 FoundationModel = BedrockFoundationModel.AMAZON_NOVA_LITE_V1,
                 AgentCollaboration = new Dictionary<string, object> {
                     { "type", AgentCollaboratorType.SUPERVISOR },
                     { "collaborators", new [] {
                         new AgentCollaborator(new AgentCollaboratorProps {
                             AgentAlias = customerSupportAlias,
                             CollaborationInstruction = "Route customer support questions to this agent.",
                             CollaboratorName = "CustomerSupport",
                             RelayConversationHistory = true
                         }) } }
                 }
             });

Synopsis

Fields

DISABLED

(experimental) Disabling collaboration.

SUPERVISOR

(experimental) Supervisor agent.

SUPERVISOR_ROUTER

(experimental) Supervisor router.

Fields

Name Description
DISABLED

(experimental) Disabling collaboration.

SUPERVISOR

(experimental) Supervisor agent.

SUPERVISOR_ROUTER

(experimental) Supervisor router.

Back to top Generated by DocFX