OverrideConfig Struct
Configuration for overriding model and prompt template.
| Source | lib/memory/strategies/managed-strategy.ts |
|---|
Example
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
# 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
// 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();
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
};
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
appendToPromptstringappend_to_promptstrappendToPromptStringAppendToPromptstringAppendToPrompt*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.
modelIBedrockInvokablemodelIBedrockInvokablemodelIBedrockInvokableModelIBedrockInvokableModelIBedrockInvokable required #The model to use for consolidation/extraction.