Class ManagedStrategyProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.ManagedStrategyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ManagedStrategyProps>
- Enclosing interface:
ManagedStrategyProps
@Stability(Stable)
public static final class ManagedStrategyProps.Builder
extends Object
implements software.amazon.jsii.Builder<ManagedStrategyProps>
A builder for
ManagedStrategyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.customConsolidation(OverrideConfig customConsolidation) Sets the value ofManagedStrategyProps.getCustomConsolidation()customExtraction(OverrideConfig customExtraction) Sets the value ofManagedStrategyProps.getCustomExtraction()description(String description) Sets the value ofMemoryStrategyCommonProps.getDescription()namespaces(List<String> namespaces) Sets the value ofManagedStrategyProps.getNamespaces()reflectionConfiguration(EpisodicReflectionConfiguration reflectionConfiguration) Sets the value ofManagedStrategyProps.getReflectionConfiguration()strategyName(String strategyName) Sets the value ofMemoryStrategyCommonProps.getStrategyName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
namespaces
Sets the value ofManagedStrategyProps.getNamespaces()- 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. 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
- Returns:
this
-
customConsolidation
@Stability(Stable) public ManagedStrategyProps.Builder customConsolidation(OverrideConfig customConsolidation) Sets the value ofManagedStrategyProps.getCustomConsolidation()- Parameters:
customConsolidation- The configuration for the custom consolidation. This configuration provides customization to how the model identifies and extracts relevant information for memory storage.- Returns:
this
-
customExtraction
@Stability(Stable) public ManagedStrategyProps.Builder customExtraction(OverrideConfig customExtraction) Sets the value ofManagedStrategyProps.getCustomExtraction()- Parameters:
customExtraction- The configuration for the custom extraction. This configuration provides customization to how the model identifies and extracts relevant information for memory storage.- Returns:
this
-
reflectionConfiguration
@Stability(Stable) public ManagedStrategyProps.Builder reflectionConfiguration(EpisodicReflectionConfiguration reflectionConfiguration) Sets the value ofManagedStrategyProps.getReflectionConfiguration()- Parameters:
reflectionConfiguration- Configuration for episodic memory reflection (only applicable for EPISODIC strategy type) Defines additional namespaces for reflection-based episodic recall.- Returns:
this
-
strategyName
Sets the value ofMemoryStrategyCommonProps.getStrategyName()- Parameters:
strategyName- The name for the strategy. This parameter is required.- Returns:
this
-
description
Sets the value ofMemoryStrategyCommonProps.getDescription()- Parameters:
description- The description of the strategy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ManagedStrategyProps>- Returns:
- a new instance of
ManagedStrategyProps - Throws:
NullPointerException- if any required attribute was not provided
-