interface TextPromptTemplateConfigurationProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.aws_bedrock.CfnFlow.TextPromptTemplateConfigurationProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrock#CfnFlow_TextPromptTemplateConfigurationProperty |
![]() | software.amazon.awscdk.services.bedrock.CfnFlow.TextPromptTemplateConfigurationProperty |
![]() | aws_cdk.aws_bedrock.CfnFlow.TextPromptTemplateConfigurationProperty |
![]() | aws-cdk-lib » aws_bedrock » CfnFlow » TextPromptTemplateConfigurationProperty |
Contains configurations for a text prompt template.
To include a variable, enclose a word in double curly braces as in {{variable}}
.
Example
// 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 textPromptTemplateConfigurationProperty: bedrock.CfnFlow.TextPromptTemplateConfigurationProperty = {
text: 'text',
// the properties below are optional
inputVariables: [{
name: 'name',
}],
};
Properties
Name | Type | Description |
---|---|---|
text | string | The message for the prompt. |
input | IResolvable | IResolvable | Prompt [] | An array of the variables in the prompt template. |
text
Type:
string
The message for the prompt.
inputVariables?
Type:
IResolvable
|
IResolvable
|
Prompt
[]
(optional)
An array of the variables in the prompt template.