Skip to content

memory ยค

Memory module for Declarai interactions that includes message history.

Modules:

Name Description
base

Base class for the memory module.

file

This module contains the FileMessageHistory class, which is used to store chat message history in a local file.

in_memory

This module contains the in-memory implementation of the chat message history.

mongodb

This module contains the MongoDBMessageHistory class, which is used to store chat message history in a MongoDB database.

postgres

This module contains the PostgresMessageHistory class, which is used to store chat message history in a PostgreSQL database.

redis

This module contains the RedisMessageHistory class, which is used to store chat message history in a Redis database.