AS AgentScopeAPI 手册 / API Reference

MongoSnapshotSpec

public class MongoSnapshotSpec extends RemoteSnapshotSpec
源码Source io/agentscope/extensions/mongodb/snapshot/MongoSnapshotSpec.java:28–37

Mongo 快照规格,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.extensions.mongodb.snapshot 包,继承自 RemoteSnapshotSpec。核心成员包括 MongoSnapshotSpec。

Convenience io.agentscope.harness.agent.sandbox.snapshot.SandboxSnapshotSpec for MongoDB-backed snapshot storage.

Stores sandbox workspace tar archives in MongoDB GridFS, which transparently chunks data into 255 KB segments and supports files up to 16 GB.

构造器摘要Constructor Summary

构造器Constructor说明Description
public MongoSnapshotSpec(MongoClient mongoClient, String databaseName)
初始化 `MongoSnapshotSpec` 实例。
Creates a new instance.
public MongoSnapshotSpec(MongoClient mongoClient, String databaseName, String collectionName)
初始化 `MongoSnapshotSpec` 实例。
Creates a new instance.

构造器详情Constructor Detail

MongoSnapshotSpec

public MongoSnapshotSpec(MongoClient mongoClient, String databaseName)

初始化 MongoSnapshotSpec 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
mongoClientMongoClientmongo 客户端(类型 `MongoClient`)。The mongo client.
databaseNameString数据库名称(类型 `String`)。The database name.
源码Source io/agentscope/extensions/mongodb/snapshot/MongoSnapshotSpec.java:30–32

MongoSnapshotSpec

public MongoSnapshotSpec(MongoClient mongoClient, String databaseName, String collectionName)

初始化 MongoSnapshotSpec 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
mongoClientMongoClientmongo 客户端(类型 `MongoClient`)。The mongo client.
databaseNameString数据库名称(类型 `String`)。The database name.
collectionNameString集合名称(类型 `String`)。The collection name.
源码Source io/agentscope/extensions/mongodb/snapshot/MongoSnapshotSpec.java:34–36

继承成员Inherited Members

继承自Methods inherited from RemoteSnapshotSpec
基于官方固定版本源码静态生成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.