MongoDB Agent Storage 是一个使用 MongoDB 作为后端存储系统实现的 AgentStorage 类。它为代理会话提供了可扩展的、基于文档的存储,并支持索引和高效的查询。
参数 | 类型 | 描述 | 默认值 |
---|---|---|---|
collection_name | str | MongoDB collection 的名称 | Required |
db_url | Optional[str] | MongoDB connection URL | None |
db_name | str | database 的名称 | "agno" |
client | Optional[MongoClient] | 预配置的 MongoDB client | None |