interface ChatPromptTemplateConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Bedrock.Mixins.CfnPromptPropsMixin.ChatPromptTemplateConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsbedrock/mixins#CfnPromptPropsMixin_ChatPromptTemplateConfigurationProperty |
Java | software.amazon.awscdk.mixins.preview.services.bedrock.mixins.CfnPromptPropsMixin.ChatPromptTemplateConfigurationProperty |
Python | aws_cdk.mixins_preview.aws_bedrock.mixins.CfnPromptPropsMixin.ChatPromptTemplateConfigurationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_bedrock » mixins » CfnPromptPropsMixin » ChatPromptTemplateConfigurationProperty |
Contains configurations to use a prompt in a conversational format.
For more information, see Create a prompt using Prompt management .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as bedrock_mixins } from '@aws-cdk/mixins-preview/aws-bedrock';
declare const any: any;
declare const auto: any;
declare const json: any;
const chatPromptTemplateConfigurationProperty: bedrock_mixins.CfnPromptPropsMixin.ChatPromptTemplateConfigurationProperty = {
inputVariables: [{
name: 'name',
}],
messages: [{
content: [{
cachePoint: {
type: 'type',
},
text: 'text',
}],
role: 'role',
}],
system: [{
cachePoint: {
type: 'type',
},
text: 'text',
}],
toolConfiguration: {
toolChoice: {
any: any,
auto: auto,
tool: {
name: 'name',
},
},
tools: [{
cachePoint: {
type: 'type',
},
toolSpec: {
description: 'description',
inputSchema: {
json: json,
},
name: 'name',
},
}],
},
};
Properties
| Name | Type | Description |
|---|---|---|
| input | IResolvable | (IResolvable | Prompt)[] | An array of the variables in the prompt template. |
| messages? | IResolvable | (IResolvable | Message)[] | Contains messages in the chat for the prompt. |
| system? | IResolvable | (IResolvable | System)[] | Contains system prompts to provide context to the model or to describe how it should behave. |
| tool | IResolvable | Tool | Configuration information for the tools that the model can use when generating a response. |
inputVariables?
Type:
IResolvable | (IResolvable | Prompt)[]
(optional)
An array of the variables in the prompt template.
messages?
Type:
IResolvable | (IResolvable | Message)[]
(optional)
Contains messages in the chat for the prompt.
system?
Type:
IResolvable | (IResolvable | System)[]
(optional)
Contains system prompts to provide context to the model or to describe how it should behave.
toolConfiguration?
Type:
IResolvable | Tool
(optional)
Configuration information for the tools that the model can use when generating a response.

.NET
Go
Java
Python
TypeScript