AS AgentScopeAPI 手册 / API Reference

EnvironmentEntity

@Entity @Table( name = "builder_environment", uniqueConstraints = @UniqueConstraint( name = "ux_builder_environment_owner_name", columnNames = {"owner_id", "name"}), indexes = {@Index(name = "ix_builder_environment_owner", columnList = "owner_id")}) public class EnvironmentEntity
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:32–157

环境 Entity,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.builder.web.persistence.jpa 包。核心成员包括 getRowId、setRowId、getEnvironmentId、setEnvironmentId、getOwnerId、setOwnerId。

Execution-environment template (local / sandbox / remote). Sessions reference an environment by id; each session still gets its own isolated sandbox instance when type is sandbox.

构造器摘要Constructor Summary

构造器Constructor说明Description
public EnvironmentEntity()
初始化 `EnvironmentEntity` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public Long getRowId()
获取 `getRowId`。
Returns the row id.
public void setRowId(Long rowId)
设置 `setRowId`。
Sets the row id.
public String getEnvironmentId()
获取环境标识。
Returns the environment id.
public void setEnvironmentId(String environmentId)
设置环境标识。
Sets the environment id.
public String getOwnerId()
获取所有者标识。
Returns the owner id.
public void setOwnerId(String ownerId)
设置所有者标识。
Sets the owner id.
public String getName()
获取名称。
Returns the name.
public void setName(String name)
设置名称。
Sets the name.
public String getType()
获取类型。
Returns the type.
public void setType(String type)
设置类型。
Sets the type.
public String getConfigJson()
获取配置 JSON。
Returns the config json.
public void setConfigJson(String configJson)
设置配置 JSON。
Sets the config json.
public Long getArchivedAt()
获取 `getArchivedAt`。
Returns the archived at.
public void setArchivedAt(Long archivedAt)
设置 `setArchivedAt`。
Sets the archived at.
public long getCreatedAt()
获取已创建 At。
Returns the created at.
public void setCreatedAt(long createdAt)
设置已创建 At。
Sets the created at.
public long getUpdatedAt()
获取已更新 At。
Returns the updated at.
public void setUpdatedAt(long updatedAt)
设置已更新 At。
Sets the updated at.
public String getApiKeyHash()
获取 `getApiKeyHash`。
Returns the api key hash.
public void setApiKeyHash(String apiKeyHash)
设置 `setApiKeyHash`。
Sets the api key hash.

构造器详情Constructor Detail

EnvironmentEntity

public EnvironmentEntity()

初始化 EnvironmentEntity 实例。

Creates a new instance.

源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:76

方法详情Method Detail

getRowId

public Long getRowId()

获取 getRowId。

Returns the row id.

返回Returns Long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:78–80

setRowId

public void setRowId(Long rowId)

设置 setRowId。

Sets the row id.

参数Parameters
名称Name类型Type说明Description
rowIdLongrow 标识(类型 `Long`)。The row id.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:82–84

getEnvironmentId

public String getEnvironmentId()

获取环境标识。

Returns the environment id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:86–88

setEnvironmentId

public void setEnvironmentId(String environmentId)

设置环境标识。

Sets the environment id.

参数Parameters
名称Name类型Type说明Description
environmentIdString环境标识(类型 `String`)。The environment id.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:90–92

getOwnerId

public String getOwnerId()

获取所有者标识。

Returns the owner id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:94–96

setOwnerId

public void setOwnerId(String ownerId)

设置所有者标识。

Sets the owner id.

参数Parameters
名称Name类型Type说明Description
ownerIdString所有者标识(类型 `String`)。The owner id.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:98–100

getName

public String getName()

获取名称。

Returns the name.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:102–104

setName

public void setName(String name)

设置名称。

Sets the name.

参数Parameters
名称Name类型Type说明Description
nameString名称(类型 `String`)。The name.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:106–108

getType

public String getType()

获取类型。

Returns the type.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:110–112

setType

public void setType(String type)

设置类型。

Sets the type.

参数Parameters
名称Name类型Type说明Description
typeString类型(类型 `String`)。The type.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:114–116

getConfigJson

public String getConfigJson()

获取配置 JSON。

Returns the config json.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:118–120

setConfigJson

public void setConfigJson(String configJson)

设置配置 JSON。

Sets the config json.

参数Parameters
名称Name类型Type说明Description
configJsonString配置 JSON(类型 `String`)。The config json.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:122–124

getArchivedAt

public Long getArchivedAt()

获取 getArchivedAt。

Returns the archived at.

返回Returns Long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:126–128

setArchivedAt

public void setArchivedAt(Long archivedAt)

设置 setArchivedAt。

Sets the archived at.

参数Parameters
名称Name类型Type说明Description
archivedAtLongarchived At(类型 `Long`)。The archived at.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:130–132

getCreatedAt

public long getCreatedAt()

获取已创建 At。

Returns the created at.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:134–136

setCreatedAt

public void setCreatedAt(long createdAt)

设置已创建 At。

Sets the created at.

参数Parameters
名称Name类型Type说明Description
createdAtlong已创建 At(类型 `long`)。The created at.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:138–140

getUpdatedAt

public long getUpdatedAt()

获取已更新 At。

Returns the updated at.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:142–144

setUpdatedAt

public void setUpdatedAt(long updatedAt)

设置已更新 At。

Sets the updated at.

参数Parameters
名称Name类型Type说明Description
updatedAtlong已更新 At(类型 `long`)。The updated at.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:146–148

getApiKeyHash

public String getApiKeyHash()

获取 getApiKeyHash。

Returns the api key hash.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:150–152

setApiKeyHash

public void setApiKeyHash(String apiKeyHash)

设置 setApiKeyHash。

Sets the api key hash.

参数Parameters
名称Name类型Type说明Description
apiKeyHashStringAPI 键 Hash(类型 `String`)。The api key hash.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:154–156
基于官方固定版本源码静态生成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.