RedisStorage class.
Usage
Run Redis
Install docker desktop and run Redis on port 6379 using:redis_storage_for_agent.py
Params
| Parameter | Type | Description | Default | 
|---|---|---|---|
| prefix | str | Prefix for Redis keys to namespace the sessions | Required | 
| host | str | Redis host address | "localhost" | 
| port | int | Redis port number | 6379 | 
| db | int | Redis database number | 0 | 
| password | Optional[str] | Redis password if authentication is required | None | 
| mode | Optional[Literal["agent", "team", "workflow"]] | Storage mode | "agent" | 
Developer Resources
- View Cookbook