@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / bedrock / PromptOverrideConfiguration
readonlyoptionalparser:IFunction
The custom Lambda parser function to use. The Lambda parser processes and interprets the raw foundation model output. It receives an input event with:
The Lambda must return a response that the agent uses for next actions.
https://docs.aws.amazon.com/bedrock/latest/userguide/lambda-parser.html
readonlyoptionalsteps:PromptStepConfigurationCustomParser[]
The prompt configurations to override the prompt templates in the agent sequence.
- No prompt configuration will be overridden.
_render():
PromptOverrideConfigurationProperty
Internal
Format as CfnAgent.PromptOverrideConfigurationProperty
This is an internal core function and should not be called directly.
PromptOverrideConfigurationProperty
staticfromSteps(steps?):PromptOverrideConfiguration
PromptOverrideConfiguration
staticwithCustomParser(props):PromptOverrideConfiguration
Creates a PromptOverrideConfiguration with a custom Lambda parser function.
Configuration including:
parser: Lambda function to use as custom parsersteps: prompt step configurations. At least one of the steps must make use of the custom parser.PromptOverrideConfiguration