nat.plugins.redis.memory#

Classes#

RedisMemoryClientConfig

The base level config object for a memory object. Memories provide an interface for storing and retrieving.

Functions#

redis_memory_client(config, builder)

Module Contents#

class RedisMemoryClientConfig(/, **data: Any)#

Bases: nat.data_models.memory.MemoryBaseConfig

The base level config object for a memory object. Memories provide an interface for storing and retrieving.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

host: str = None#
db: int = None#
port: int = None#
key_prefix: str = None#
embedder: nat.data_models.component_ref.EmbedderRef = None#
async redis_memory_client(
config: RedisMemoryClientConfig,
builder: nat.builder.builder.Builder,
)#