Back to Agno

Redis Integration

cookbook/06_storage/redis/README.md

2.6.4661 B
Original Source

Redis Integration

Examples demonstrating Redis integration with Agno agents, teams, and workflows.

Setup

shell
uv pip install redis

# Start Redis container
docker run --name my-redis -p 6379:6379 -d redis

Configuration

python
from agno.agent import Agent
from agno.db.redis import RedisDb

db = RedisDb(db_url="redis://localhost:6379")

agent = Agent(
    db=db,
    add_history_to_context=True,
)

Examples