Skip to content
v2.275.0

KnowledgeBasePromptTemplateProperty Struct ​

Defines a custom prompt template for orchestrating the retrieval and generation process.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const knowledgeBasePromptTemplateProperty: bedrock.CfnFlowVersion.KnowledgeBasePromptTemplateProperty = {
  textPromptTemplate: 'textPromptTemplate',
};

Properties ​

textPromptTemplatestringtext_prompt_templatestrtextPromptTemplateStringTextPromptTemplatestringTextPromptTemplate*stringrequired#
The text of the prompt template.