Cache LLM results using Redis.
A cache that uses Momento as the backing store. See https://gomomento.com.
A cache that uses Upstash as the backing store. See https://docs.upstash.com/redis.
A cache that uses Vercel KV as the backing store.
Abstract class that provides a base for implementing different types of memory systems. It is designed to maintain the state of an application, specifically the history of a conversation. This class i
Class used to manage the memory of a chat session using the Mem0 service. It handles loading and saving chat history, and provides methods to format the memory content for use in chat models.
Class for managing chat message memory using the Motorhead service. It extends BaseChatMemory and includes methods for initializing the memory, loading memory variables, and saving the context.
Class used to manage the memory of a chat session, including loading and saving the chat history, and clearing the memory when needed. It uses the ZepClient to interact with the Zep service for managi
Class used to manage the memory of a chat session, including loading and saving the chat history, and clearing the memory when needed. It uses the ZepClient to interact with the Zep service for managi
A concrete implementation of BaseStore for interacting with a Cassandra database. It provides methods to get, set, delete, and yield keys based on specified criteria.
Class that extends the BaseStore class to interact with a Convex database. It provides methods for getting, setting, and deleting key value pairs, as well as yielding keys from the database.
Class that extends the BaseStore class to interact with a Redis database. It provides methods for getting, setting, and deleting data, as well as yielding keys from the database.
Class that extends the BaseStore class to interact with an Upstash Redis database. It provides methods for getting, setting, and deleting data, as well as yielding keys from the database.
Class that extends the BaseStore class to interact with a Vercel KV database. It provides methods for getting, setting, and deleting data, as well as yielding keys from the database.
Abstract class for a document store. All document stores should extend this class.
Class that provides an interface for interacting with Google Cloud Storage (GCS) as a document store. It extends the Docstore class and implements methods to search, add, and add a document to the GCS
Class for storing and retrieving documents in memory asynchronously. Extends the Docstore class.
Class for storing and retrieving documents in memory synchronously.
Class for storing chat message history with Astra DB. It extends the BaseListChatMessageHistory class and provides methods to get, add, and clear messages.
Class for managing chat message history using a Amazon Aurora DSQL Database as a storage backend. Extends the BaseListChatMessageHistory class.
Class for storing chat message history within Cassandra. It extends the BaseListChatMessageHistory class and provides methods to get, add, and clear messages.
Class providing methods to interact with a DynamoDB table to store and
retrieve chat messages. It extends the BaseListChatMessageHistory
class.
Store chat message history using a local JSON file. For demo and development purposes only.
Class for managing chat message history using Google's Firestore as a storage backend. Extends the BaseListChatMessageHistory class.
Class for storing chat message history in-memory. It extends the BaseListChatMessageHistory class and provides methods to get, add, and clear messages.
Class used to store chat message history in Redis. It provides methods to add, retrieve, and clear messages from the chat history.
A class that stores chat message history using Momento Cache. It interacts with a Momento cache client to perform operations like fetching, adding, and deleting messages.
Class for storing and retrieving chat message history from a PlanetScale database. Extends the BaseListChatMessageHistory class.
Class for managing chat message history using a Postgres Database as a storage backend. Extends the BaseListChatMessageHistory class.
Class used to store chat message history in Redis. It provides methods to add, get, and clear messages.
A class for managing chat message history using Xata.io client. It extends the BaseListChatMessageHistory class and provides methods to get, add, and clear messages. It also ensures the existence of a
Class used to manage the memory of a chat session, including loading and saving the chat history, and clearing the memory when needed. It uses the ZepClient to interact with the Zep service for managi
Condenses memory content into a single HumanMessage with context
Extracts and formats memory content into a system prompt
Converts Mem0 memories to a list of BaseMessages
Condenses Zep memory context into a single HumanMessage. This is particularly useful for models like Claude that have limitations with system messages (e.g., Anthropic's Claude only supports one syste
Extracts summary from Zep memory and composes a system prompt.
Converts Zep Memory to a list of BaseMessages, preserving the structure. Creates a SystemMessage from summary and facts, and converts the rest of the messages to their corresponding message types.
The settings to instantiate the Momento standard cache.
Interface for the input parameters of the BaseChatMemory class.
Interface defining the structure of the input data for the Mem0Client
Interface defining the structure of the input data for the Mem0Memory class. It includes properties like memoryKey, sessionId, and apiKey.
Interface for the structure of a memory message in the Motorhead service. It includes the role and content of the message.
Interface defining the structure of the input data for the ZepMemory class. It includes properties like humanPrefix, aiPrefix, memoryKey, baseURL, sessionId, apiKey, and separateMessages.
Interface defining the structure of the input data for the ZepMemory class. It includes properties like humanPrefix, aiPrefix, memoryKey, memoryType sessionId, and apiKey.
Configuration options for initializing a CassandraKVStore. These options extend generic Cassandra client arguments with specific settings for key-value store operations.
CassandraKVOptions
Type definition for the input parameters required to initialize an instance of the UpstashStoreInput class.
Interface that defines the configuration for the GoogleCloudStorageDocstore. It includes the bucket name and an optional prefix.
Extends the DataStax driver's client options with additional configurations for service providers, enabling the customization of Cassandra client instances based on specific service requirements. This
Interface defining the fields required to create an instance of
DynamoDBChatMessageHistory. It includes the DynamoDB table name,
session ID, partition key, sort key, message attribute name, and
Dyna
Type for the input to the FileSystemChatMessageHistory constructor.
Interface for FirestoreDBChatMessageHistory. It includes the collection name, session ID, user ID, and optionally, the app index and configuration for the Firebase app.
The settings to instantiate the Momento chat message history.