AS AgentScopeAPI 手册 / API Reference

MongoConstants

public final class MongoConstants
源码Source io/agentscope/extensions/mongodb/MongoConstants.java:24–45

Mongo 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_DATABASE
staticfinal
String
默认数据库字段。
Default database name used when no explicit name is supplied.
SESSIONS_COLLECTION
staticfinal
String
会话集合字段。
Collection holding agent session state documents (`MongoAgentStateStore`).
BASE_STORE_COLLECTION
staticfinal
String
基类存储集合字段。
Collection holding workspace filesystem key-value items (`MongoBaseStore`).
SNAPSHOTS_COLLECTION
staticfinal
String
SNAPSHOTS 集合字段。
GridFS bucket (and legacy single-document collection) holding sandbox snapshots (`MongoRemoteSnapshotClient`).
SANDBOX_LOCKS_COLLECTION
staticfinal
String
沙箱 LOCKS 集合字段。
Collection holding sandbox execution lease locks (`MongoSandboxExecutionGuard`).

字段详情Field Detail

DEFAULT_DATABASE

public static final String DEFAULT_DATABASE
staticfinal

默认数据库字段。声明为 public static final String DEFAULT_DATABASE。

Default database name used when no explicit name is supplied.

源码Source io/agentscope/extensions/mongodb/MongoConstants.java:29

SESSIONS_COLLECTION

public static final String SESSIONS_COLLECTION
staticfinal

会话集合字段。声明为 public static final String SESSIONS_COLLECTION。

Collection holding agent session state documents (MongoAgentStateStore).

源码Source io/agentscope/extensions/mongodb/MongoConstants.java:32

BASE_STORE_COLLECTION

public static final String BASE_STORE_COLLECTION
staticfinal

基类存储集合字段。声明为 public static final String BASE_STORE_COLLECTION。

Collection holding workspace filesystem key-value items (MongoBaseStore).

源码Source io/agentscope/extensions/mongodb/MongoConstants.java:35

SNAPSHOTS_COLLECTION

public static final String SNAPSHOTS_COLLECTION
staticfinal

SNAPSHOTS 集合字段。声明为 public static final String SNAPSHOTS_COLLECTION。

GridFS bucket (and legacy single-document collection) holding sandbox snapshots (MongoRemoteSnapshotClient).

源码Source io/agentscope/extensions/mongodb/MongoConstants.java:41

SANDBOX_LOCKS_COLLECTION

public static final String SANDBOX_LOCKS_COLLECTION
staticfinal

沙箱 LOCKS 集合字段。声明为 public static final String SANDBOX_LOCKS_COLLECTION。

Collection holding sandbox execution lease locks (MongoSandboxExecutionGuard).

源码Source io/agentscope/extensions/mongodb/MongoConstants.java:44
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.