Interface AgenticRetrieveMemoryRetrievalConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AgenticRetrieveMemoryRetrievalConfig.Builder,,AgenticRetrieveMemoryRetrievalConfig> SdkBuilder<AgenticRetrieveMemoryRetrievalConfig.Builder,,AgenticRetrieveMemoryRetrievalConfig> SdkPojo
- Enclosing class:
AgenticRetrieveMemoryRetrievalConfig
-
Method Summary
Modifier and TypeMethodDescriptionmetadataFilters(Collection<AgenticRetrieveMemoryMetadataFilter> metadataFilters) The metadata filter expressions that restrict retrieval to matching memory records.metadataFilters(Consumer<AgenticRetrieveMemoryMetadataFilter.Builder>... metadataFilters) The metadata filter expressions that restrict retrieval to matching memory records.metadataFilters(AgenticRetrieveMemoryMetadataFilter... metadataFilters) The metadata filter expressions that restrict retrieval to matching memory records.The namespace prefix to filter memory records by.namespacePath(String namespacePath) The parent namespace to use for hierarchical retrievals.strategyId(String strategyId) The extraction strategy ID that restricts retrieval to memory records produced by a single strategy.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
-
metadataFilters
AgenticRetrieveMemoryRetrievalConfig.Builder metadataFilters(Collection<AgenticRetrieveMemoryMetadataFilter> metadataFilters) The metadata filter expressions that restrict retrieval to matching memory records. You can specify a maximum of 5 expressions.
- Parameters:
metadataFilters- The metadata filter expressions that restrict retrieval to matching memory records. You can specify a maximum of 5 expressions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadataFilters
AgenticRetrieveMemoryRetrievalConfig.Builder metadataFilters(AgenticRetrieveMemoryMetadataFilter... metadataFilters) The metadata filter expressions that restrict retrieval to matching memory records. You can specify a maximum of 5 expressions.
- Parameters:
metadataFilters- The metadata filter expressions that restrict retrieval to matching memory records. You can specify a maximum of 5 expressions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadataFilters
AgenticRetrieveMemoryRetrievalConfig.Builder metadataFilters(Consumer<AgenticRetrieveMemoryMetadataFilter.Builder>... metadataFilters) The metadata filter expressions that restrict retrieval to matching memory records. You can specify a maximum of 5 expressions.
This is a convenience method that creates an instance of theAgenticRetrieveMemoryMetadataFilter.Builderavoiding the need to create one manually viaAgenticRetrieveMemoryMetadataFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometadataFilters(List<AgenticRetrieveMemoryMetadataFilter>).- Parameters:
metadataFilters- a consumer that will call methods onAgenticRetrieveMemoryMetadataFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
namespace
The namespace prefix to filter memory records by. The agent retrieves memory records in namespaces that start with the provided prefix. You must specify either namespace or namespacePath.
- Parameters:
namespace- The namespace prefix to filter memory records by. The agent retrieves memory records in namespaces that start with the provided prefix. You must specify either namespace or namespacePath.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespacePath
The parent namespace to use for hierarchical retrievals. The agent retrieves all memory records whose namespace falls under the same parent hierarchy. You must specify either namespace or namespacePath.
- Parameters:
namespacePath- The parent namespace to use for hierarchical retrievals. The agent retrieves all memory records whose namespace falls under the same parent hierarchy. You must specify either namespace or namespacePath.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
strategyId
The extraction strategy ID that restricts retrieval to memory records produced by a single strategy. Omit this parameter to retrieve records from every strategy on the memory resource.
- Parameters:
strategyId- The extraction strategy ID that restricts retrieval to memory records produced by a single strategy. Omit this parameter to retrieve records from every strategy on the memory resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-