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

Properties for creating a prompt inference configuration.

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

## Example

```ts
const cmk = new kms.Key(this, 'cmk', {});
const claudeModel = bedrock.BedrockFoundationModel.ANTHROPIC_CLAUDE_SONNET_V1_0;

const variant1 = bedrock.PromptVariant.text({
  variantName: 'variant1',
  model: claudeModel,
  promptVariables: ['topic'],
  promptText: 'This is my first text prompt. Please summarize our conversation on: {{topic}}.',
  inferenceConfiguration: bedrock.PromptInferenceConfiguration.text({
    temperature: 1.0,
    topP: 0.999,
    maxTokens: 2000,
  }),
});

const prompt1 = new bedrock.Prompt(this, 'prompt1', {
  promptName: 'prompt1',
  description: 'my first prompt',
  defaultVariant: variant1,
  variants: [variant1],
  kmsKey: cmk,
});
```

## Properties

- `maxTokens`: number — The maximum number of tokens to return in the response.

  **Default:** No limit specified

- `stopSequences`: string[] — A list of strings that define sequences after which the model will stop generating.

  **Default:** No stop sequences

- `temperature`: number — Controls the randomness of the response.

  **Default:** Model default temperature

  Higher values make output more random, lower values more deterministic.
  Valid range is 0.0 to 1.0.

- `topP`: number — The percentage of most-likely candidates that the model considers for the next token.

  **Default:** Model default topP

  Valid range is 0.0 to 1.0.
