interface ChatTemplateConfigurationProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Bedrock.Alpha.ChatTemplateConfigurationProps |
![]() | github.com/aws/aws-cdk-go/awsbedrockalpha/v2#ChatTemplateConfigurationProps |
![]() | software.amazon.awscdk.services.bedrock.alpha.ChatTemplateConfigurationProps |
![]() | aws_cdk.aws_bedrock_alpha.ChatTemplateConfigurationProps |
![]() | @aws-cdk/aws-bedrock-alpha ยป ChatTemplateConfigurationProps |
Properties for creating a chat template configuration.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_alpha from '@aws-cdk/aws-bedrock-alpha';
declare const chatMessage: bedrock_alpha.ChatMessage;
declare const tool: bedrock_alpha.Tool;
declare const toolChoice: bedrock_alpha.ToolChoice;
const chatTemplateConfigurationProps: bedrock_alpha.ChatTemplateConfigurationProps = {
messages: [chatMessage],
// the properties below are optional
inputVariables: ['inputVariables'],
system: 'system',
toolConfiguration: {
toolChoice: toolChoice,
tools: [tool],
},
};
Properties
Name | Type | Description |
---|---|---|
messages | Chat [] | The messages in the chat template. |
input | string[] | The input variables for the template. |
system? | string | The system message for the chat template. |
tool | Tool | The tool configuration for the chat template. |
messages
Type:
Chat
[]
The messages in the chat template.
inputVariables?
Type:
string[]
(optional, default: No input variables)
The input variables for the template.
system?
Type:
string
(optional, default: No system message)
The system message for the chat template.
toolConfiguration?
Type:
Tool
(optional, default: No tool configuration)
The tool configuration for the chat template.