# OverrideConfig

Configuration for overriding model and prompt template.

- Source: [`lib/memory/strategies/managed-strategy.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-bedrock-agentcore-alpha/lib/memory/strategies/managed-strategy.ts#L41)

## 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_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
import * as bedrock_alpha from '@aws-cdk/aws-bedrock-alpha';

declare const bedrockInvokable: bedrock_alpha.IBedrockInvokable;
const overrideConfig: bedrock_agentcore_alpha.OverrideConfig = {
  appendToPrompt: 'appendToPrompt',
  model: bedrockInvokable,
};
```

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_agentcore_alpha as bedrock_agentcore_alpha
import aws_cdk.aws_bedrock_alpha as bedrock_alpha

# bedrock_invokable: bedrock_alpha.IBedrockInvokable

override_config = bedrock_agentcore_alpha.OverrideConfig(
    append_to_prompt="appendToPrompt",
    model=bedrock_invokable
)
```

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.agentcore.alpha.*;
import software.amazon.awscdk.services.bedrock.alpha.*;

IBedrockInvokable bedrockInvokable;

OverrideConfig overrideConfig = OverrideConfig.builder()
        .appendToPrompt("appendToPrompt")
        .model(bedrockInvokable)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Agentcore.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.Agentcore.Alpha;
using Amazon.CDK.AWS.Bedrock.Alpha;

IBedrockInvokable bedrockInvokable;

var overrideConfig = new OverrideConfig {
    AppendToPrompt = "appendToPrompt",
    Model = bedrockInvokable
};
```

Golang:

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

var bedrockInvokable IBedrockInvokable

overrideConfig := &OverrideConfig{
	AppendToPrompt: jsii.String("appendToPrompt"),
	Model: bedrockInvokable,
}
```

## Properties

- `appendToPrompt`: string (required) — The prompt that will be appended to the system prompt to define the model's memory consolidation/extraction strategy.

  This configuration provides customization to how the model identifies and extracts
  relevant information for memory storage. You can use the default user prompt or create a customized one.

- `model`: [IBedrockInvokable](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.IBedrockInvokable.html) (required) — The model to use for consolidation/extraction.
