ChatTemplateConfigurationProps
- class aws_cdk.aws_bedrock_alpha.ChatTemplateConfigurationProps(*, messages, input_variables=None, system=None, tool_configuration=None)
Bases:
object
(experimental) Properties for creating a chat template configuration.
- Parameters:
messages (
Sequence
[ChatMessage
]) – (experimental) The messages in the chat template.input_variables (
Optional
[Sequence
[str
]]) – (experimental) The input variables for the template. Default: - No input variablessystem (
Optional
[str
]) – (experimental) The system message for the chat template. Default: - No system messagetool_configuration (
Union
[ToolConfiguration
,Dict
[str
,Any
],None
]) – (experimental) The tool configuration for the chat template. Default: - No tool configuration
- Stability:
experimental
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_bedrock_alpha as bedrock_alpha # chat_message: bedrock_alpha.ChatMessage # tool: bedrock_alpha.Tool # tool_choice: bedrock_alpha.ToolChoice chat_template_configuration_props = bedrock_alpha.ChatTemplateConfigurationProps( messages=[chat_message], # the properties below are optional input_variables=["inputVariables"], system="system", tool_configuration=bedrock_alpha.ToolConfiguration( tool_choice=tool_choice, tools=[tool] ) )
Attributes
- input_variables
(experimental) The input variables for the template.
- Default:
No input variables
- Stability:
experimental
- messages
(experimental) The messages in the chat template.
- Stability:
experimental
- system
(experimental) The system message for the chat template.
- Default:
No system message
- Stability:
experimental
- tool_configuration
(experimental) The tool configuration for the chat template.
- Default:
No tool configuration
- Stability:
experimental