Interface: PromptStepConfigurationCustomParser
March 19, 2026 · View on GitHub
@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / bedrock / PromptStepConfigurationCustomParser
Interface: PromptStepConfigurationCustomParser
Contains configurations to override a prompt template in one part of an agent sequence.
Extends
Properties
customPromptTemplate?
readonlyoptionalcustomPromptTemplate?:string
The custom prompt template to be used.
Default
- The default prompt template will be used.
See
https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html
Inherited from
PromptStepConfiguration.customPromptTemplate
foundationModel?
readonlyoptionalfoundationModel?:IInvokable
The foundation model to use for this specific prompt step. This allows using different models for different steps in the agent sequence.
Default
- The agent's default foundation model will be used.
Inherited from
PromptStepConfiguration.foundationModel
inferenceConfig?
readonlyoptionalinferenceConfig?:InferenceConfiguration
The inference configuration parameters to use.
Inherited from
PromptStepConfiguration.inferenceConfig
stepEnabled?
readonlyoptionalstepEnabled?:boolean
Whether to enable or skip this step in the agent sequence.
Default
- The default state for each step type is as follows.
PRE_PROCESSING – ENABLED
ORCHESTRATION – ENABLED
KNOWLEDGE_BASE_RESPONSE_GENERATION – ENABLED
POST_PROCESSING – DISABLED
Inherited from
PromptStepConfiguration.stepEnabled
stepType
readonlystepType:AgentStepType
The step in the agent sequence where to set a specific prompt configuration.
Inherited from
PromptStepConfiguration.stepType
useCustomParser?
readonlyoptionaluseCustomParser?:boolean
Whether to use the custom Lambda parser defined for the sequence.
Default
- false