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
| Member | Description |
|---|---|
PRE_PROCESSING | Pre-processing step that prepares the user input for orchestration. |
ORCHESTRATION | Main orchestration step that determines the agent's actions. |
POST_PROCESSING | Post-processing step that refines the agent's response. |
ROUTING_CLASSIFIER | Step that classifies and routes requests to appropriate collaborators. |
MEMORY_SUMMARIZATION | Step that summarizes conversation history for memory retention. |
KNOWLEDGE_BASE_RESPONSE_GENERATION | Step that generates responses using knowledge base content. |
Referenced by
PromptStepConfigBase.stepTypestep_typestepTypeStepTypeStepType