Class ManagedMemoryStrategy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ManagedMemoryStrategy>
- Enclosing class:
ManagedMemoryStrategy
ManagedMemoryStrategy.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create(MemoryStrategyType strategyType) customConsolidation(OverrideConfig customConsolidation) The configuration for the custom consolidation.customExtraction(OverrideConfig customExtraction) The configuration for the custom extraction.description(String description) The description of the strategy.namespaces(List<String> namespaces) The namespaces for the strategy Represents a namespace for organizing memory data Use a hierarchical format separated by forward slashes (/).reflectionConfiguration(EpisodicReflectionConfiguration reflectionConfiguration) Configuration for episodic memory reflection (only applicable for EPISODIC strategy type) Defines additional namespaces for reflection-based episodic recall.strategyName(String strategyName) The name for the strategy.
-
Method Details
-
create
@Stability(Stable) public static ManagedMemoryStrategy.Builder create(MemoryStrategyType strategyType) - Parameters:
strategyType- the strategy type. This parameter is required.- Returns:
- a new instance of
ManagedMemoryStrategy.Builder.
-
strategyName
The name for the strategy.- Parameters:
strategyName- The name for the strategy. This parameter is required.- Returns:
this
-
description
The description of the strategy.Default: - No description
- Parameters:
description- The description of the strategy. This parameter is required.- Returns:
this
-
namespaces
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
- Parameters:
namespaces- The namespaces for the strategy Represents a namespace for organizing memory data Use a hierarchical format separated by forward slashes (/). This parameter is required.- Returns:
this
-
customConsolidation
@Stability(Stable) public ManagedMemoryStrategy.Builder customConsolidation(OverrideConfig customConsolidation) The configuration for the custom consolidation.This configuration provides customization to how the model identifies and extracts relevant information for memory storage.
Default: - No custom extraction
- Parameters:
customConsolidation- The configuration for the custom consolidation. This parameter is required.- Returns:
this
-
customExtraction
@Stability(Stable) public ManagedMemoryStrategy.Builder customExtraction(OverrideConfig customExtraction) The configuration for the custom extraction.This configuration provides customization to how the model identifies and extracts relevant information for memory storage.
Default: - No custom extraction
- Parameters:
customExtraction- The configuration for the custom extraction. This parameter is required.- Returns:
this
-
reflectionConfiguration
@Stability(Stable) public ManagedMemoryStrategy.Builder reflectionConfiguration(EpisodicReflectionConfiguration reflectionConfiguration) Configuration for episodic memory reflection (only applicable for EPISODIC strategy type) Defines additional namespaces for reflection-based episodic recall.Default: - No reflection configuration
- Parameters:
reflectionConfiguration- Configuration for episodic memory reflection (only applicable for EPISODIC strategy type) Defines additional namespaces for reflection-based episodic recall. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ManagedMemoryStrategy>- Returns:
- a newly built instance of
ManagedMemoryStrategy.
-