Interface MemoryStrategy.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MemoryStrategy.Builder,,MemoryStrategy> SdkBuilder<MemoryStrategy.Builder,,MemoryStrategy> SdkPojo
- Enclosing class:
MemoryStrategy
-
Method Summary
Modifier and TypeMethodDescriptiondefault MemoryStrategy.Builderconfiguration(Consumer<MemoryStrategyConfiguration.Builder> configuration) Settings for the strategy.configuration(MemoryStrategyConfiguration configuration) Settings for the strategy.description(String description) A description of the strategy.A name for the strategy, unique within the space.The type of memory the strategy extracts.type(MemoryStrategyType type) The type of memory the strategy extracts.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
type
The type of memory the strategy extracts.
- Parameters:
type- The type of memory the strategy extracts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of memory the strategy extracts.
- Parameters:
type- The type of memory the strategy extracts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
A name for the strategy, unique within the space. Omit it to have the service generate one from the type, for example
semantic_1. The name must be 1 to 64 characters: letters, digits, periods, hyphens, and underscores, starting with a letter or digit. A strategy's name can't be changed, and the strategy's memories are stored under it: a strategy added under a new name starts with no memories.- Parameters:
name- A name for the strategy, unique within the space. Omit it to have the service generate one from the type, for examplesemantic_1. The name must be 1 to 64 characters: letters, digits, periods, hyphens, and underscores, starting with a letter or digit. A strategy's name can't be changed, and the strategy's memories are stored under it: a strategy added under a new name starts with no memories.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the strategy.
- Parameters:
description- A description of the strategy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
Settings for the strategy. When you create a strategy, omit it to use the defaults for the strategy's type.
A
CUSTOMstrategy must setextractionPrompt.- Parameters:
configuration- Settings for the strategy. When you create a strategy, omit it to use the defaults for the strategy's type.A
CUSTOMstrategy must setextractionPrompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default MemoryStrategy.Builder configuration(Consumer<MemoryStrategyConfiguration.Builder> configuration) Settings for the strategy. When you create a strategy, omit it to use the defaults for the strategy's type.
A
This is a convenience method that creates an instance of theCUSTOMstrategy must setextractionPrompt.MemoryStrategyConfiguration.Builderavoiding the need to create one manually viaMemoryStrategyConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconfiguration(MemoryStrategyConfiguration).- Parameters:
configuration- a consumer that will call methods onMemoryStrategyConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-