Skip to content
v2.275.0

Experimental

@aws-cdk/aws-bedrock-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

AgentStepType Enum ​

The step in the agent sequence that this prompt configuration applies to.

Example ​

ts
const agent = new bedrock.Agent(this, 'Agent', {
  foundationModel: bedrock.BedrockFoundationModel.AMAZON_NOVA_LITE_V1,
  instruction: 'You are a helpful assistant.',
  promptOverrideConfiguration: bedrock.PromptOverrideConfiguration.fromSteps([
    {
      stepType: bedrock.AgentStepType.ROUTING_CLASSIFIER,
      stepEnabled: true,
      customPromptTemplate: 'Your routing template here',
      foundationModel: bedrock.BedrockFoundationModel.ANTHROPIC_CLAUDE_V2
    } as bedrock.PromptRoutingClassifierConfigCustomParser
  ])
});

Members ​

MemberDescription
PRE_PROCESSINGPre-processing step that prepares the user input for orchestration.
ORCHESTRATIONMain orchestration step that determines the agent's actions.
POST_PROCESSINGPost-processing step that refines the agent's response.
ROUTING_CLASSIFIERStep that classifies and routes requests to appropriate collaborators.
MEMORY_SUMMARIZATIONStep that summarizes conversation history for memory retention.
KNOWLEDGE_BASE_RESPONSE_GENERATIONStep that generates responses using knowledge base content.

Referenced by ​