> **Experimental**
>
> `@aws-cdk/aws-bedrock-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# AgentStepType

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

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`bedrock/agents/prompt-override.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-bedrock-alpha/bedrock/agents/prompt-override.ts#L11)

## 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`](/v2/docs/@aws-cdk_aws-bedrock-alpha.PromptStepConfigBase).stepType
