Class SelfManagedStrategyProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.SelfManagedStrategyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SelfManagedStrategyProps>
- Enclosing interface:
SelfManagedStrategyProps
@Stability(Stable)
public static final class SelfManagedStrategyProps.Builder
extends Object
implements software.amazon.jsii.Builder<SelfManagedStrategyProps>
A builder for
SelfManagedStrategyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofMemoryStrategyCommonProps.getDescription()historicalContextWindowSize(Number historicalContextWindowSize) Sets the value ofSelfManagedStrategyProps.getHistoricalContextWindowSize()invocationConfiguration(InvocationConfiguration invocationConfiguration) Sets the value ofSelfManagedStrategyProps.getInvocationConfiguration()strategyName(String strategyName) Sets the value ofMemoryStrategyCommonProps.getStrategyName()triggerConditions(TriggerConditions triggerConditions) Sets the value ofSelfManagedStrategyProps.getTriggerConditions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
invocationConfiguration
@Stability(Stable) public SelfManagedStrategyProps.Builder invocationConfiguration(InvocationConfiguration invocationConfiguration) Sets the value ofSelfManagedStrategyProps.getInvocationConfiguration()- Parameters:
invocationConfiguration- Invocation configuration for self managed memory strategy. This parameter is required.- Returns:
this
-
historicalContextWindowSize
@Stability(Stable) public SelfManagedStrategyProps.Builder historicalContextWindowSize(Number historicalContextWindowSize) Sets the value ofSelfManagedStrategyProps.getHistoricalContextWindowSize()- Parameters:
historicalContextWindowSize- Define the number of previous events to be included when processing memory. A larger history window provides more context from past conversations.- Returns:
this
-
triggerConditions
@Stability(Stable) public SelfManagedStrategyProps.Builder triggerConditions(TriggerConditions triggerConditions) Sets the value ofSelfManagedStrategyProps.getTriggerConditions()- Parameters:
triggerConditions- Trigger conditions for self managed memory strategy.- 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<SelfManagedStrategyProps>- Returns:
- a new instance of
SelfManagedStrategyProps - Throws:
NullPointerException- if any required attribute was not provided
-