Skip to content

Bedrock Agent Runtime  >  Structures  >  AgenticRetrieveMemoryRetrievalConfig

AgenticRetrieveMemoryRetrievalConfig

Structure Class

AgenticRetrieveMemoryRetrievalConfig dataclass

The long-term memory namespace that the agent might retrieve memory records from, and the filters applied to that retrieval. You must specify either namespace or namespacePath.

Attributes

metadata_filters class-attribute instance-attribute
metadata_filters: list[AgenticRetrieveMemoryMetadataFilter] | None = None

The metadata filter expressions that restrict retrieval to matching memory records. You can specify a maximum of 5 expressions.

namespace class-attribute instance-attribute
namespace: str | None = None

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.

namespace_path class-attribute instance-attribute
namespace_path: str | None = None

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.

strategy_id class-attribute instance-attribute
strategy_id: str | None = None

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.