Skip to content
v2.275.0

CustomMemoryStrategyProperty Struct ​

The memory strategy.

Example ​

ts
// 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 customMemoryStrategyProperty: bedrockagentcore.CfnMemory.CustomMemoryStrategyProperty = {
  name: 'name',

  // the properties below are optional
  configuration: {
    episodicOverride: {
      consolidation: {
        appendToPrompt: 'appendToPrompt',
        modelId: 'modelId',
      },
      extraction: {
        appendToPrompt: 'appendToPrompt',
        modelId: 'modelId',
      },
      reflection: {
        appendToPrompt: 'appendToPrompt',
        modelId: 'modelId',

        // the properties below are optional
        memoryRecordSchema: {
          metadataSchema: [{
            key: 'key',

            // the properties below are optional
            extractionConfig: {
              llmExtractionConfig: {
                definition: 'definition',

                // the properties below are optional
                llmExtractionInstruction: 'llmExtractionInstruction',
                validation: {
                  numberValidation: {
                    maxValue: 123,
                    minValue: 123,
                  },
                  stringListValidation: {
                    allowedValues: ['allowedValues'],
                    maxItems: 123,
                  },
                  stringValidation: {
                    allowedValues: ['allowedValues'],
                  },
                },
              },
            },
            extractionType: 'extractionType',
            type: 'type',
          }],
        },
        namespaces: ['namespaces'],
        namespaceTemplates: ['namespaceTemplates'],
      },
    },
    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',
  memoryRecordSchema: {
    metadataSchema: [{
      key: 'key',

      // the properties below are optional
      extractionConfig: {
        llmExtractionConfig: {
          definition: 'definition',

          // the properties below are optional
          llmExtractionInstruction: 'llmExtractionInstruction',
          validation: {
            numberValidation: {
              maxValue: 123,
              minValue: 123,
            },
            stringListValidation: {
              allowedValues: ['allowedValues'],
              maxItems: 123,
            },
            stringValidation: {
              allowedValues: ['allowedValues'],
            },
          },
        },
      },
      extractionType: 'extractionType',
      type: 'type',
    }],
  },
  namespaces: ['namespaces'],
  namespaceTemplates: ['namespaceTemplates'],
  status: 'status',
  strategyId: 'strategyId',
  type: 'type',
  updatedAt: 'updatedAt',
};

Properties ​

configurationoptionalIResolvable | CfnMemory.CustomConfigurationInputPropertyconfigurationoptionaltyping.Union[IResolvable, CustomConfigurationInputProperty]configurationoptionalIResolvableConfigurationoptionalIResolvableConfigurationoptionalinterface{}#
The memory strategy configuration.
createdAtoptionalstringcreated_atoptionalstrcreatedAtoptionalStringCreatedAtoptionalstringCreatedAtoptional*string#
Creation timestamp of the memory strategy.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#
The memory strategy description.
memoryRecordSchemaoptionalIResolvable | CfnMemory.MemoryRecordSchemaPropertymemory_record_schemaoptionaltyping.Union[IResolvable, MemoryRecordSchemaProperty]memoryRecordSchemaoptionalIResolvableMemoryRecordSchemaoptionalIResolvableMemoryRecordSchemaoptionalinterface{}#
namestringnamestrnameStringNamestringName*stringrequired#
The memory strategy name.
namespacesoptionalstring[]namespacesoptionaltyping.List[str]namespacesoptionalList<String>Namespacesoptionalstring[]Namespacesoptional*[]*string#
The memory strategy namespaces.
namespaceTemplatesoptionalstring[]namespace_templatesoptionaltyping.List[str]namespaceTemplatesoptionalList<String>NamespaceTemplatesoptionalstring[]NamespaceTemplatesoptional*[]*string#
List of namespaces for memory strategy.
statusoptionalstringstatusoptionalstrstatusoptionalStringStatusoptionalstringStatusoptional*string#
The memory strategy status.
strategyIdoptionalstringstrategy_idoptionalstrstrategyIdoptionalStringStrategyIdoptionalstringStrategyIdoptional*string#
The memory strategy ID.
typeoptionalstringtypeoptionalstrtypeoptionalStringTypeoptionalstringTypeoptional*string#
The memory strategy type.
updatedAtoptionalstringupdated_atoptionalstrupdatedAtoptionalStringUpdatedAtoptionalstringUpdatedAtoptional*string#
The memory strategy update date and time.