Skip to content

Feat: Add support for Redis memory#66

Open
micmancini16 wants to merge 5 commits intodatapizza-labs:mainfrom
micmancini16:feat/redis-memory
Open

Feat: Add support for Redis memory#66
micmancini16 wants to merge 5 commits intodatapizza-labs:mainfrom
micmancini16:feat/redis-memory

Conversation

@micmancini16
Copy link
Contributor

@micmancini16 micmancini16 commented Oct 27, 2025

This PR adds a submodule datapizza-ai-memory-redis, a Redis-based memory to be used for persistent, long-term
applications.

Installation

# Install the core framework
pip install datapizza-ai
# Install the Redis Memory
pip install datapizza-ai-memory-redis

Usage

from datapizza.memory.redis import RedisMemory

# Initialize RedisMemory with user_id and session_id
memory = RedisMemory(user_id="unique_id_for_user", session_id="unique_id_for_chat_session")

# Can be used as other memories
agent = Agent(
    name="my_agent", client=client, tools=[], memory=memory
)

# Fetch all session messages
messages = memory.memory

# Print messages
for message in messages:
    print(message)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant