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 Details

    • Builder

      public Builder()
  • Method Details

    • namespaces

      @Stability(Stable) public ManagedStrategyProps.Builder namespaces(List<String> namespaces)
      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)
      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)
      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)
      Parameters:
      reflectionConfiguration - Configuration for episodic memory reflection (only applicable for EPISODIC strategy type) Defines additional namespaces for reflection-based episodic recall.
      Returns:
      this
    • strategyName

      @Stability(Stable) public ManagedStrategyProps.Builder strategyName(String strategyName)
      Parameters:
      strategyName - The name for the strategy. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public ManagedStrategyProps.Builder description(String description)
      Parameters:
      description - The description of the strategy.
      Returns:
      this
    • build

      @Stability(Stable) public ManagedStrategyProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<ManagedStrategyProps>
      Returns:
      a new instance of ManagedStrategyProps
      Throws:
      NullPointerException - if any required attribute was not provided