> **Experimental**
>
> `@aws-cdk/aws-bedrock-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# ChatTemplateConfigurationProps

Properties for creating a chat template configuration.

Used as argument in: [PromptTemplateConfiguration.chat](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.PromptTemplateConfiguration.html#chat)

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`bedrock/prompts/prompt-template-configuration.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-bedrock-alpha/bedrock/prompts/prompt-template-configuration.ts#L25)

## Example

TypeScript:

```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],
  },
};
```

Python:

```python
# 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]
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.alpha.*;

ChatMessage chatMessage;
Tool tool;
ToolChoice toolChoice;

ChatTemplateConfigurationProps chatTemplateConfigurationProps = ChatTemplateConfigurationProps.builder()
        .messages(List.of(chatMessage))

        // the properties below are optional
        .inputVariables(List.of("inputVariables"))
        .system("system")
        .toolConfiguration(ToolConfiguration.builder()
                .toolChoice(toolChoice)
                .tools(List.of(tool))
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock.Alpha;

ChatMessage chatMessage;
Tool tool;
ToolChoice toolChoice;

var chatTemplateConfigurationProps = new ChatTemplateConfigurationProps {
    Messages = new [] { chatMessage },

    // the properties below are optional
    InputVariables = new [] { "inputVariables" },
    System = "system",
    ToolConfiguration = new ToolConfiguration {
        ToolChoice = toolChoice,
        Tools = new [] { tool }
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import bedrock_alpha "github.com/aws/aws-cdk-go/awsbedrockalpha"

var chatMessage ChatMessage
var tool Tool
var toolChoice ToolChoice

chatTemplateConfigurationProps := &ChatTemplateConfigurationProps{
	Messages: []ChatMessage{
		chatMessage,
	},

	// the properties below are optional
	InputVariables: []*string{
		jsii.String("inputVariables"),
	},
	System: jsii.String("system"),
	ToolConfiguration: &ToolConfiguration{
		ToolChoice: toolChoice,
		Tools: []Tool{
			tool,
		},
	},
}
```

## Properties

- `inputVariables`: string[] — The input variables for the template.

  **Default:** No input variables

- `messages`: [ChatMessage](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.ChatMessage.html)[] (required) — The messages in the chat template.

- `system`: string — The system message for the chat template.

  **Default:** No system message

- `toolConfiguration`: [ToolConfiguration](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.ToolConfiguration.html) — The tool configuration for the chat template.

  **Default:** No tool configuration
