AgentcoreMemoryStrategyArgs class
The set of arguments for AgentcoreMemoryStrategy. The set of arguments for AgentcoreMemoryStrategy.
Constructors
-
AgentcoreMemoryStrategyArgs({Input<
AgentcoreMemoryStrategyConfiguration?> ? configuration, Input<String?> ? description, Input<String?> ? memoryExecutionRoleArn, required Input<String> memoryId, Input<AgentcoreMemoryStrategyMemoryRecordSchema?> ? memoryRecordSchema, Input<String?> ? name, Input<List< ? namespaceTemplates, Input<String> ?>List< ? namespaces, Input<String> ?>AgentcoreMemoryStrategyReflectionConfiguration?> ? reflectionConfiguration, Input<String?> ? region, Input<AgentcoreMemoryStrategyTimeouts?> ? timeouts, required Input<String> type}) -
Creates a new AgentcoreMemoryStrategyArgs.
configurationCustom configuration block. Required whentypeisCUSTOM, must be omitted for other types. SeeconfigurationBlock below.descriptionDescription of the memory strategy. Once set, a description cannot be removed via update because the service API ignores a null description and retains the previously stored value.memoryExecutionRoleArnARN of the IAM role that the memory service assumes to perform operations.memoryIdID of the memory to associate with this strategy. Changing this forces a new resource.memoryRecordSchemaSchema for metadata fields on records generated by this strategy. Valid for all strategy types. SeememoryRecordSchemaBlock below.nameName of the memory strategy. Changing this forces a new resource, because the service API does not support renaming a strategy.namespaceTemplatesSet containing exactly one namespace template where this strategy applies (for example/strategies/{memoryStrategyId}/actors/{actorId}/sessions/{sessionId}). Namespace templates help organize and scope memory content. Exactly one ofnamespaceTemplatesornamespacesmust be configured for all strategies exceptCUSTOMstrategies usingSELF_MANAGEDconfiguration.namespacesSet of namespace identifiers where this strategy applies. Exactly one ofnamespacesornamespaceTemplatesmust be configured. The API treats this as a legacy parameter; prefernamespaceTemplates. Since the API mirrors the two fields, switching an existing configuration fromnamespacestonamespaceTemplateswith the same value is an in-place no-op.reflectionConfigurationConfiguration for the reflections created with the episodic memory strategy. Valid whentypeisEPISODIC, must be omitted for other types. SeereflectionConfigurationBlock below.regionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.timeoutsOptional.typeType of memory strategy. Valid values:SEMANTIC,SUMMARIZATION,USER_PREFERENCE,EPISODIC,CUSTOM. Changing this forces a new resource. Note that only one strategy of each built-in type (SEMANTIC,SUMMARIZATION,USER_PREFERENCE,EPISODIC) can exist per memory.const -
AgentcoreMemoryStrategyArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
configuration
→ Input<
AgentcoreMemoryStrategyConfiguration?> ? -
Custom configuration block. Required when
typeisCUSTOM, must be omitted for other types. SeeconfigurationBlock below.final -
description
→ Input<
String?> ? -
Description of the memory strategy. Once set, a description cannot be removed via update because the service API ignores a null description and retains the previously stored value.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
memoryExecutionRoleArn
→ Input<
String?> ? -
ARN of the IAM role that the memory service assumes to perform operations.
final
-
memoryId
→ Input<
String> -
ID of the memory to associate with this strategy. Changing this forces a new resource.
final
-
memoryRecordSchema
→ Input<
AgentcoreMemoryStrategyMemoryRecordSchema?> ? -
Schema for metadata fields on records generated by this strategy. Valid for all strategy types. See
memoryRecordSchemaBlock below.final -
name
→ Input<
String?> ? -
Name of the memory strategy. Changing this forces a new resource, because the service API does not support renaming a strategy.
final
-
namespaces
→ Input<
List< ?String> ?> -
Set of namespace identifiers where this strategy applies. Exactly one of
namespacesornamespaceTemplatesmust be configured. The API treats this as a legacy parameter; prefernamespaceTemplates. Since the API mirrors the two fields, switching an existing configuration fromnamespacestonamespaceTemplateswith the same value is an in-place no-op.final -
namespaceTemplates
→ Input<
List< ?String> ?> -
Set containing exactly one namespace template where this strategy applies (for example
/strategies/{memoryStrategyId}/actors/{actorId}/sessions/{sessionId}). Namespace templates help organize and scope memory content. Exactly one ofnamespaceTemplatesornamespacesmust be configured for all strategies exceptCUSTOMstrategies usingSELF_MANAGEDconfiguration.final -
reflectionConfiguration
→ Input<
AgentcoreMemoryStrategyReflectionConfiguration?> ? -
Configuration for the reflections created with the episodic memory strategy. Valid when
typeisEPISODIC, must be omitted for other types. SeereflectionConfigurationBlock below.final -
region
→ Input<
String?> ? -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
timeouts
→ Input<
AgentcoreMemoryStrategyTimeouts?> ? -
final
-
type
→ Input<
String> -
Type of memory strategy. Valid values:
SEMANTIC,SUMMARIZATION,USER_PREFERENCE,EPISODIC,CUSTOM. Changing this forces a new resource. Note that only one strategy of each built-in type (SEMANTIC,SUMMARIZATION,USER_PREFERENCE,EPISODIC) can exist per memory.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited