Experimental
@aws-cdk/aws-bedrock-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
ChatTemplateConfigurationProps Struct
Properties for creating a chat template configuration.
Example
ts
// 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
inputVariablesoptionalstring[]input_variablesoptionaltyping.List[str]inputVariablesoptionalList<String>InputVariablesoptionalstring[]InputVariablesoptional*[]*string#The input variables for the template.
Default: No input variables
messagesChatMessage[]messagestyping.List[ChatMessage]messagesList<ChatMessage>MessagesChatMessage[]Messages*[]ChatMessagerequired#The messages in the chat template.
The system message for the chat template.
Default: No system message
toolConfigurationoptionalToolConfigurationtool_configurationoptionalToolConfigurationtoolConfigurationoptionalToolConfigurationToolConfigurationoptionalToolConfigurationToolConfigurationoptionalToolConfiguration#The tool configuration for the chat template.
Default: No tool configuration