MongoConstants
public final class MongoConstants
io/agentscope/extensions/mongodb/MongoConstants.java:24–45Mongo Constants,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.extensions.mongodb 包。核心成员包括 DEFAULT_DATABASE、SESSIONS_COLLECTION、BASE_STORE_COLLECTION、SNAPSHOTS_COLLECTION、SANDBOX_LOCKS_COLLECTION。
Default database and collection names for MongoDB distributed store components.
Centralised here so that all four component classes reference the same source of truth, preventing drift when the same collection name is referenced from multiple construction paths.
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
DEFAULT_DATABASEstaticfinal | String | 默认数据库字段。 Default database name used when no explicit name is supplied. |
SESSIONS_COLLECTIONstaticfinal | String | 会话集合字段。 Collection holding agent session state documents (`MongoAgentStateStore`). |
BASE_STORE_COLLECTIONstaticfinal | String | 基类存储集合字段。 Collection holding workspace filesystem key-value items (`MongoBaseStore`). |
SNAPSHOTS_COLLECTIONstaticfinal | String | SNAPSHOTS 集合字段。 GridFS bucket (and legacy single-document collection) holding sandbox snapshots
(`MongoRemoteSnapshotClient`). |
SANDBOX_LOCKS_COLLECTIONstaticfinal | String | 沙箱 LOCKS 集合字段。 Collection holding sandbox execution lease locks (`MongoSandboxExecutionGuard`). |
字段详情Field Detail
DEFAULT_DATABASE
public static final String DEFAULT_DATABASE
默认数据库字段。声明为 public static final String DEFAULT_DATABASE。
Default database name used when no explicit name is supplied.
io/agentscope/extensions/mongodb/MongoConstants.java:29SESSIONS_COLLECTION
public static final String SESSIONS_COLLECTION
会话集合字段。声明为 public static final String SESSIONS_COLLECTION。
Collection holding agent session state documents (MongoAgentStateStore).
io/agentscope/extensions/mongodb/MongoConstants.java:32BASE_STORE_COLLECTION
public static final String BASE_STORE_COLLECTION
基类存储集合字段。声明为 public static final String BASE_STORE_COLLECTION。
Collection holding workspace filesystem key-value items (MongoBaseStore).
io/agentscope/extensions/mongodb/MongoConstants.java:35SNAPSHOTS_COLLECTION
public static final String SNAPSHOTS_COLLECTION
SNAPSHOTS 集合字段。声明为 public static final String SNAPSHOTS_COLLECTION。
GridFS bucket (and legacy single-document collection) holding sandbox snapshots (MongoRemoteSnapshotClient).
io/agentscope/extensions/mongodb/MongoConstants.java:41SANDBOX_LOCKS_COLLECTION
public static final String SANDBOX_LOCKS_COLLECTION
沙箱 LOCKS 集合字段。声明为 public static final String SANDBOX_LOCKS_COLLECTION。
Collection holding sandbox execution lease locks (MongoSandboxExecutionGuard).
io/agentscope/extensions/mongodb/MongoConstants.java:44