Class SelfManagedMemoryStrategy.Builder

java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.SelfManagedMemoryStrategy.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<SelfManagedMemoryStrategy>
Enclosing class:
SelfManagedMemoryStrategy

@Stability(Stable) public static final class SelfManagedMemoryStrategy.Builder extends Object implements software.amazon.jsii.Builder<SelfManagedMemoryStrategy>
A fluent builder for SelfManagedMemoryStrategy.
  • Method Details

    • create

      @Stability(Stable) public static SelfManagedMemoryStrategy.Builder create(MemoryStrategyType strategyType)
      Parameters:
      strategyType - The type of memory strategy. This parameter is required.
      Returns:
      a new instance of SelfManagedMemoryStrategy.Builder.
    • strategyName

      @Stability(Stable) public SelfManagedMemoryStrategy.Builder strategyName(String strategyName)
      The name for the strategy.

      Parameters:
      strategyName - The name for the strategy. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public SelfManagedMemoryStrategy.Builder description(String description)
      The description of the strategy.

      Default: - No description

      Parameters:
      description - The description of the strategy. This parameter is required.
      Returns:
      this
    • invocationConfiguration

      @Stability(Stable) public SelfManagedMemoryStrategy.Builder invocationConfiguration(InvocationConfiguration invocationConfiguration)
      Invocation configuration for self managed memory strategy.

      Parameters:
      invocationConfiguration - Invocation configuration for self managed memory strategy. This parameter is required.
      Returns:
      this
    • historicalContextWindowSize

      @Stability(Stable) public SelfManagedMemoryStrategy.Builder historicalContextWindowSize(Number historicalContextWindowSize)
      Define the number of previous events to be included when processing memory.

      A larger history window provides more context from past conversations.

      Default: 4

      Parameters:
      historicalContextWindowSize - Define the number of previous events to be included when processing memory. This parameter is required.
      Returns:
      this
    • triggerConditions

      @Stability(Stable) public SelfManagedMemoryStrategy.Builder triggerConditions(TriggerConditions triggerConditions)
      Trigger conditions for self managed memory strategy.

      Default: - undefined

      Parameters:
      triggerConditions - Trigger conditions for self managed memory strategy. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public SelfManagedMemoryStrategy build()
      Specified by:
      build in interface software.amazon.jsii.Builder<SelfManagedMemoryStrategy>
      Returns:
      a newly built instance of SelfManagedMemoryStrategy.