Class MemoryStrategy
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MemoryStrategy.Builder,MemoryStrategy>
A memory strategy: how a space extracts one kind of memory from its events.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryStrategy.Builderbuilder()Settings for the strategy.final StringA description of the strategy.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringname()A name for the strategy, unique within the space.static Class<? extends MemoryStrategy.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final MemoryStrategyTypetype()The type of memory the strategy extracts.final StringThe type of memory the strategy extracts.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
type
The type of memory the strategy extracts.
If the service returns an enum value that is not available in the current SDK version,
typewill returnMemoryStrategyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of memory the strategy extracts.
- See Also:
-
typeAsString
The type of memory the strategy extracts.
If the service returns an enum value that is not available in the current SDK version,
typewill returnMemoryStrategyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of memory the strategy extracts.
- 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.- Returns:
- 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.
-
description
A description of the strategy.
- Returns:
- A description of the strategy.
-
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:
- Settings for the strategy. When you create a strategy, omit it to use the defaults for the strategy's
type.
A
CUSTOMstrategy must setextractionPrompt.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<MemoryStrategy.Builder,MemoryStrategy> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-