# ChatPromptTemplateConfigurationProperty

Contains configurations to use a prompt in a conversational format.

For more information, see [Create a prompt using Prompt management](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html) .

- Source: Generated code
- Type last changed: v2.174.0 · 4 Jan 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';

declare const any: any;
declare const auto: any;
declare const json: any;
const chatPromptTemplateConfigurationProperty: bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty = {
  messages: [{
    content: [{
      cachePoint: {
        type: 'type',
      },
      text: 'text',
    }],
    role: 'role',
  }],

  // the properties below are optional
  inputVariables: [{
    name: 'name',
  }],
  system: [{
    cachePoint: {
      type: 'type',
    },
    text: 'text',
  }],
  toolConfiguration: {
    tools: [{
      cachePoint: {
        type: 'type',
      },
      toolSpec: {
        inputSchema: {
          json: json,
        },
        name: 'name',

        // the properties below are optional
        description: 'description',
      },
    }],

    // the properties below are optional
    toolChoice: {
      any: any,
      auto: auto,
      tool: {
        name: 'name',
      },
    },
  },
};
```

## Properties

- `inputVariables`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPrompt.PromptInputVariableProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnPrompt.PromptInputVariableProperty.html)[] — An array of the variables in the prompt template.

- `messages`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPrompt.MessageProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnPrompt.MessageProperty.html)[] (required) — Contains messages in the chat for the prompt.

- `system`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPrompt.SystemContentBlockProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnPrompt.SystemContentBlockProperty.html)[] — Contains system prompts to provide context to the model or to describe how it should behave.

- `toolConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPrompt.ToolConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnPrompt.ToolConfigurationProperty.html) — Configuration information for the tools that the model can use when generating a response.
