Conversation Memory

Overview

You can persist and load memory by using Conversation Memory Drivers. You can build drivers for your own data stores by extending BaseConversationMemoryDriver.

Conversation Memory Drivers

Gen AI Builder

The GriptapeCloudConversationMemoryDriver allows you to persist Conversation Memory in Gen AI Builder. It provides seamless integration with Gen AI Builder's cloud-based Threads and Messages resources.

Local

The LocalConversationMemoryDriver allows you to persist Conversation Memory in a local JSON file.

Amazon DynamoDb

Info

This driver requires the drivers-memory-conversation-amazon-dynamodb extra.

The AmazonDynamoDbConversationMemoryDriver allows you to persist Conversation Memory in Amazon DynamoDb.

Optional parameters sort_key and sort_key_value can be supplied for tables with a composite primary key.

Redis

Info

This driver requires the drivers-memory-conversation-redis extra.

The RedisConversationMemoryDriver allows you to persist Conversation Memory in Redis.


Could this page be better? Report a problem or suggest an addition!