Back to Agno

Valkey Integration

cookbook/06_storage/valkey/README.md

2.7.3700 B
Original Source

Valkey Integration

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

Setup

shell
uv pip install valkey-glide-sync

# Start Valkey container
docker run --name my-valkey -p 6379:6379 -d valkey/valkey-bundle

Configuration

python
from agno.agent import Agent
from agno.db.valkey import ValkeyDb

db = ValkeyDb(host="localhost", port=6379)

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

Examples