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

Configuration for the memory summarization step.

Extends: [PromptStepConfigBase](/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.PromptStepConfigBase.html)

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`bedrock/agents/prompt-override.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/@aws-cdk/aws-bedrock-alpha/bedrock/agents/prompt-override.ts#L175)

## 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';
const promptMemorySummarizationConfigCustomParser: bedrock_alpha.PromptMemorySummarizationConfigCustomParser = {
  stepType: bedrock_alpha.AgentStepType.PRE_PROCESSING,

  // the properties below are optional
  customPromptTemplate: 'customPromptTemplate',
  inferenceConfig: {
    maximumLength: 123,
    stopSequences: ['stopSequences'],
    temperature: 123,
    topK: 123,
    topP: 123,
  },
  stepEnabled: false,
  useCustomParser: false,
};
```

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

prompt_memory_summarization_config_custom_parser = bedrock_alpha.PromptMemorySummarizationConfigCustomParser(
    step_type=bedrock_alpha.AgentStepType.PRE_PROCESSING,

    # the properties below are optional
    custom_prompt_template="customPromptTemplate",
    inference_config=bedrock_alpha.InferenceConfiguration(
        maximum_length=123,
        stop_sequences=["stopSequences"],
        temperature=123,
        top_k=123,
        top_p=123
    ),
    step_enabled=False,
    use_custom_parser=False
)
```

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.*;

PromptMemorySummarizationConfigCustomParser promptMemorySummarizationConfigCustomParser = PromptMemorySummarizationConfigCustomParser.builder()
        .stepType(AgentStepType.PRE_PROCESSING)

        // the properties below are optional
        .customPromptTemplate("customPromptTemplate")
        .inferenceConfig(InferenceConfiguration.builder()
                .maximumLength(123)
                .stopSequences(List.of("stopSequences"))
                .temperature(123)
                .topK(123)
                .topP(123)
                .build())
        .stepEnabled(false)
        .useCustomParser(false)
        .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;

var promptMemorySummarizationConfigCustomParser = new PromptMemorySummarizationConfigCustomParser {
    StepType = AgentStepType.PRE_PROCESSING,

    // the properties below are optional
    CustomPromptTemplate = "customPromptTemplate",
    InferenceConfig = new InferenceConfiguration {
        MaximumLength = 123,
        StopSequences = new [] { "stopSequences" },
        Temperature = 123,
        TopK = 123,
        TopP = 123
    },
    StepEnabled = false,
    UseCustomParser = false
};
```

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"

promptMemorySummarizationConfigCustomParser := &PromptMemorySummarizationConfigCustomParser{
	StepType: bedrock_alpha.AgentStepType_PRE_PROCESSING,

	// the properties below are optional
	CustomPromptTemplate: jsii.String("customPromptTemplate"),
	InferenceConfig: &InferenceConfiguration{
		MaximumLength: jsii.Number(123),
		StopSequences: []*string{
			jsii.String("stopSequences"),
		},
		Temperature: jsii.Number(123),
		TopK: jsii.Number(123),
		TopP: jsii.Number(123),
	},
	StepEnabled: jsii.Boolean(false),
	UseCustomParser: jsii.Boolean(false),
}
```

## Properties

- `customPromptTemplate`: string — The custom prompt template to be used.

  **Default:** The default prompt template will be used.

- `inferenceConfig`: [InferenceConfiguration](/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.InferenceConfiguration.html) — The inference configuration parameters to use.

  **Default:** undefined - Default inference configuration will be used

- `stepEnabled`: boolean — Whether to enable or skip this step in the agent sequence.

  **Default:** The default state for each step type is as follows. PRE_PROCESSING – ENABLED ORCHESTRATION – ENABLED KNOWLEDGE_BASE_RESPONSE_GENERATION – ENABLED POST_PROCESSING – DISABLED

- `stepType`: [AgentStepType](/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.AgentStepType.html) (required) — The type of step this configuration applies to.

- `useCustomParser`: boolean = false — Whether to use the custom Lambda parser defined for the sequence.
