Skip to content
v2.278.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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrock as bedrock

knowledge_base_prompt_template_property = bedrock.CfnFlowVersion.KnowledgeBasePromptTemplateProperty(
    text_prompt_template="textPromptTemplate"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.*;

KnowledgeBasePromptTemplateProperty knowledgeBasePromptTemplateProperty = KnowledgeBasePromptTemplateProperty.builder()
        .textPromptTemplate("textPromptTemplate")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;

var knowledgeBasePromptTemplateProperty = new KnowledgeBasePromptTemplateProperty {
    TextPromptTemplate = "textPromptTemplate"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

knowledgeBasePromptTemplateProperty := &KnowledgeBasePromptTemplateProperty{
	TextPromptTemplate: jsii.String("textPromptTemplate"),
}

Properties ​

textPromptTemplatestringtext_prompt_templatestrtextPromptTemplateStringTextPromptTemplatestringTextPromptTemplate*string required #
The text of the prompt template.