AS AgentScopeAPI 手册 / API Reference

PostgresSnapshotSpec

public class PostgresSnapshotSpec extends RemoteSnapshotSpec
源码Source io/agentscope/extensions/postgresql/snapshot/PostgresSnapshotSpec.java:27–36

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

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

Stores sandbox workspace tar archives as BYTEAs in a database table.

构造器摘要Constructor Summary

构造器Constructor说明Description
public PostgresSnapshotSpec(DataSource dataSource)
初始化 `PostgresSnapshotSpec` 实例。
Creates a new instance.
public PostgresSnapshotSpec(DataSource dataSource, String tableName)
初始化 `PostgresSnapshotSpec` 实例。
Creates a new instance.

构造器详情Constructor Detail

PostgresSnapshotSpec

public PostgresSnapshotSpec(DataSource dataSource)

初始化 PostgresSnapshotSpec 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
dataSourceDataSource数据来源(类型 `DataSource`)。The data source.
源码Source io/agentscope/extensions/postgresql/snapshot/PostgresSnapshotSpec.java:29–31

PostgresSnapshotSpec

public PostgresSnapshotSpec(DataSource dataSource, String tableName)

初始化 PostgresSnapshotSpec 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
dataSourceDataSource数据来源(类型 `DataSource`)。The data source.
tableNameStringtable 名称(类型 `String`)。The table name.
源码Source io/agentscope/extensions/postgresql/snapshot/PostgresSnapshotSpec.java:33–35

继承成员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.