interface MemoryStrategyProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.BedrockAgentCore.CfnMemory.MemoryStrategyProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrockagentcore#CfnMemory_MemoryStrategyProperty |
Java | software.amazon.awscdk.services.bedrockagentcore.CfnMemory.MemoryStrategyProperty |
Python | aws_cdk.aws_bedrockagentcore.CfnMemory.MemoryStrategyProperty |
TypeScript | aws-cdk-lib » aws_bedrockagentcore » CfnMemory » MemoryStrategyProperty |
Obtainable from
Managed.render(), Self.render()
The memory strategy.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const memoryStrategyProperty: bedrockagentcore.CfnMemory.MemoryStrategyProperty = {
customMemoryStrategy: {
name: 'name',
// the properties below are optional
configuration: {
selfManagedConfiguration: {
historicalContextWindowSize: 123,
invocationConfiguration: {
payloadDeliveryBucketName: 'payloadDeliveryBucketName',
topicArn: 'topicArn',
},
triggerConditions: [{
messageBasedTrigger: {
messageCount: 123,
},
timeBasedTrigger: {
idleSessionTimeout: 123,
},
tokenBasedTrigger: {
tokenCount: 123,
},
}],
},
semanticOverride: {
consolidation: {
appendToPrompt: 'appendToPrompt',
modelId: 'modelId',
},
extraction: {
appendToPrompt: 'appendToPrompt',
modelId: 'modelId',
},
},
summaryOverride: {
consolidation: {
appendToPrompt: 'appendToPrompt',
modelId: 'modelId',
},
},
userPreferenceOverride: {
consolidation: {
appendToPrompt: 'appendToPrompt',
modelId: 'modelId',
},
extraction: {
appendToPrompt: 'appendToPrompt',
modelId: 'modelId',
},
},
},
createdAt: 'createdAt',
description: 'description',
namespaces: ['namespaces'],
status: 'status',
strategyId: 'strategyId',
type: 'type',
updatedAt: 'updatedAt',
},
semanticMemoryStrategy: {
name: 'name',
// the properties below are optional
createdAt: 'createdAt',
description: 'description',
namespaces: ['namespaces'],
status: 'status',
strategyId: 'strategyId',
type: 'type',
updatedAt: 'updatedAt',
},
summaryMemoryStrategy: {
name: 'name',
// the properties below are optional
createdAt: 'createdAt',
description: 'description',
namespaces: ['namespaces'],
status: 'status',
strategyId: 'strategyId',
type: 'type',
updatedAt: 'updatedAt',
},
userPreferenceMemoryStrategy: {
name: 'name',
// the properties below are optional
createdAt: 'createdAt',
description: 'description',
namespaces: ['namespaces'],
status: 'status',
strategyId: 'strategyId',
type: 'type',
updatedAt: 'updatedAt',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| custom | IResolvable | Custom | The memory strategy. |
| semantic | IResolvable | Semantic | The memory strategy. |
| summary | IResolvable | Summary | The memory strategy summary. |
| user | IResolvable | User | The memory strategy. |
customMemoryStrategy?
Type:
IResolvable | Custom
(optional)
The memory strategy.
semanticMemoryStrategy?
Type:
IResolvable | Semantic
(optional)
The memory strategy.
summaryMemoryStrategy?
Type:
IResolvable | Summary
(optional)
The memory strategy summary.
userPreferenceMemoryStrategy?
Type:
IResolvable | User
(optional)
The memory strategy.

.NET
Go
Java
Python
TypeScript