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

Abstract base class for prompt template configurations.

This provides a high-level abstraction over the underlying CloudFormation
template configuration properties, offering a more developer-friendly interface
while maintaining full compatibility with the underlying AWS Bedrock service.

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

## 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 promptTemplateConfiguration = bedrock_alpha.PromptTemplateConfiguration.chat({
  messages: [chatMessage],

  // the properties below are optional
  inputVariables: ['inputVariables'],
  system: 'system',
  toolConfiguration: {
    toolChoice: toolChoice,
    tools: [tool],
  },
});
```

## Initializer

```ts
new PromptTemplateConfiguration()
```

## Methods

- `chat(props: ChatTemplateConfigurationProps): PromptTemplateConfiguration // chainable` (static) — Creates a chat template configuration.

- `text(props: TextTemplateConfigurationProps): PromptTemplateConfiguration // chainable` (static) — Creates a text template configuration.
