interface PromptTemplateConfigurationProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.aws_bedrock.CfnPrompt.PromptTemplateConfigurationProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrock#CfnPrompt_PromptTemplateConfigurationProperty |
![]() | software.amazon.awscdk.services.bedrock.CfnPrompt.PromptTemplateConfigurationProperty |
![]() | aws_cdk.aws_bedrock.CfnPrompt.PromptTemplateConfigurationProperty |
![]() | aws-cdk-lib » aws_bedrock » CfnPrompt » PromptTemplateConfigurationProperty |
Contains the message for a prompt.
For more information, see Construct and store reusable prompts with Prompt management in Amazon Bedrock .
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';
declare const any: any;
declare const auto: any;
declare const json: any;
const promptTemplateConfigurationProperty: bedrock.CfnPrompt.PromptTemplateConfigurationProperty = {
chat: {
messages: [{
content: [{
text: 'text',
}],
role: 'role',
}],
// the properties below are optional
inputVariables: [{
name: 'name',
}],
system: [{
text: 'text',
}],
toolConfiguration: {
tools: [{
toolSpec: {
inputSchema: {
json: json,
},
name: 'name',
// the properties below are optional
description: 'description',
},
}],
// the properties below are optional
toolChoice: {
any: any,
auto: auto,
tool: {
name: 'name',
},
},
},
},
text: {
inputVariables: [{
name: 'name',
}],
text: 'text',
textS3Location: {
bucket: 'bucket',
key: 'key',
// the properties below are optional
version: 'version',
},
},
};
Properties
Name | Type | Description |
---|---|---|
chat? | IResolvable | Chat | Contains configurations to use the prompt in a conversational format. |
text? | IResolvable | Text | Contains configurations for the text in a message for a prompt. |
chat?
Type:
IResolvable
|
Chat
(optional)
Contains configurations to use the prompt in a conversational format.
text?
Type:
IResolvable
|
Text
(optional)
Contains configurations for the text in a message for a prompt.