interface ManagedStrategyProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.ManagedStrategyProps |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#ManagedStrategyProps |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.ManagedStrategyProps |
Python | aws_cdk.aws_bedrock_agentcore_alpha.ManagedStrategyProps |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป ManagedStrategyProps |
Implements
Memory
Configuration parameters for a memory strategy that can override existing built-in default prompts/models.
Example
// 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 managedStrategyProps: bedrock_agentcore_alpha.ManagedStrategyProps = {
name: 'name',
namespaces: ['namespaces'],
// the properties below are optional
customConsolidation: {
appendToPrompt: 'appendToPrompt',
model: bedrockInvokable,
},
customExtraction: {
appendToPrompt: 'appendToPrompt',
model: bedrockInvokable,
},
description: 'description',
reflectionConfiguration: {
namespaces: ['namespaces'],
},
};
Properties
| Name | Type | Description |
|---|---|---|
| name | string | The name for the strategy. |
| namespaces | string[] | The namespaces for the strategy Represents a namespace for organizing memory data Use a hierarchical format separated by forward slashes (/). |
| custom | Override | The configuration for the custom consolidation. |
| custom | Override | The configuration for the custom extraction. |
| description? | string | The description of the strategy. |
| reflection | Episodic | Configuration for episodic memory reflection (only applicable for EPISODIC strategy type) Defines additional namespaces for reflection-based episodic recall. |
name
Type:
string
The name for the strategy.
namespaces
Type:
string[]
The namespaces for the strategy Represents a namespace for organizing memory data Use a hierarchical format separated by forward slashes (/).
Use a hierarchical format separated by forward slashes (/) to organize namespaces logically. You can include these defined variables:
- {sessionId} - the user identifier to be created in the CreateEvent API
- {memoryStrategyId} - an identifier for an extraction strategy
- {sessionId} - an identifier for each session
Example namespace path: /strategies/{memoryStrategyId}/actions/{actionId}/sessions/{sessionId}
After memory creation, this namespace might look like: /actor/actor-3afc5aa8fef9/strategy/summarization-fy5c5fwc7/session/session-qj7tpd1kvr8
customConsolidation?
Type:
Override
(optional, default: No custom extraction)
The configuration for the custom consolidation.
This configuration provides customization to how the model identifies and extracts relevant information for memory storage.
customExtraction?
Type:
Override
(optional, default: No custom extraction)
The configuration for the custom extraction.
This configuration provides customization to how the model identifies and extracts relevant information for memory storage.
description?
Type:
string
(optional, default: No description)
The description of the strategy.
reflectionConfiguration?
Type:
Episodic
(optional, default: No reflection configuration)
Configuration for episodic memory reflection (only applicable for EPISODIC strategy type) Defines additional namespaces for reflection-based episodic recall.

.NET
Go
Java
Python
TypeScript (