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.
MongoDbStorage
db_url
client
from agno.storage.mongodb import MongoDbStorage db_url = "mongodb://ai:ai@localhost:27017/agno" # 使用 Mongo 数据库创建存储后端 storage = MongoDbStorage( # 将会话存储在 agent_sessions 集合中 collection_name="agent_sessions", db_url=db_url, ) # 向 Agent 添加存储 agent = Agent(storage=storage)
collection_name
str
Optional[str]
None
db_name
"agno"
Optional[MongoClient]