AS AgentScopeAPI 手册 / API Reference

Builder

public static final class Builder
源码Source io/agentscope/extensions/postgresql/state/PostgresAgentStateStore.java:794–826

PostgresAgentStateStore的构建器。位于 io.agentscope.extensions.postgresql.state 包。核心成员包括 schemaName、tableName、createIfNotExist、build。

Builder for PostgresAgentStateStore.

方法摘要Method Summary

方法Method说明Description
public Builder schemaName(String schemaName)
设置模式名称。
Performs the schema name operation.
public Builder tableName(String tableName)
设置该配置项。
Performs the table name operation.
public Builder createIfNotExist(boolean createIfNotExist)
创建 `createIfNotExist`。
Creates the if not exist.
public PostgresAgentStateStore build()
构建并返回最终实例。
Creates and returns an instance.

方法详情Method Detail

schemaName

public Builder schemaName(String schemaName)

设置模式名称。

Performs the schema name operation.

参数Parameters
名称Name类型Type说明Description
schemaNameString模式名称(类型 `String`)。The schema name.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/extensions/postgresql/state/PostgresAgentStateStore.java:808–811

tableName

public Builder tableName(String tableName)

设置该配置项。

Performs the table name operation.

参数Parameters
名称Name类型Type说明Description
tableNameStringtable 名称(类型 `String`)。The table name.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/extensions/postgresql/state/PostgresAgentStateStore.java:813–816

createIfNotExist

public Builder createIfNotExist(boolean createIfNotExist)

创建 createIfNotExist。

Creates the if not exist.

参数Parameters
名称Name类型Type说明Description
createIfNotExistboolean创建 If 不 Exist(类型 `boolean`)。The create if not exist.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/extensions/postgresql/state/PostgresAgentStateStore.java:818–821

build

public PostgresAgentStateStore build()

构建并返回最终实例。

Creates and returns an instance.

返回Returns PostgresAgentStateStore
返回PostgresAgentStateStore。Returns postgres agent state store.
源码Source io/agentscope/extensions/postgresql/state/PostgresAgentStateStore.java:823–825
基于官方固定版本源码静态生成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.