Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
RedisStorage
docker run --name my-redis -p 6379:6379 -d redis
from agno.agent import Agent from agno.storage.redis import RedisStorage from agno.tools.duckduckgo import DuckDuckGoTools # 初始化 Redis 存储,使用默认的本地连接 storage = RedisStorage( # 用于 Redis 键的前缀,为会话提供命名空间 prefix="agno_test", # Redis 主机地址 host="localhost", # Redis 端口号 port=6379, ) # 使用 Redis 存储创建 Agent agent = Agent( storage=storage, )
prefix
str
host
"localhost"
port
int
6379
db
0
password
Optional[str]
None
mode
Optional[Literal["agent", "team", "workflow"]]
"agent"