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
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
构造器详情Constructor Detail
EnvironmentEntity
public EnvironmentEntity()
初始化 EnvironmentEntity 实例。
Creates a new instance.
io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:76方法详情Method Detail
getRowId
public Long getRowId()
获取 getRowId。
Returns the row id.
Longio/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:78–80setRowId
public void setRowId(Long rowId)
设置 setRowId。
Sets the row id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
rowId | Long | row 标识(类型 `Long`)。The row id. |
io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:82–84getEnvironmentId
public String getEnvironmentId()
获取环境标识。
Returns the environment id.
Stringio/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:86–88setEnvironmentId
public void setEnvironmentId(String environmentId)
设置环境标识。
Sets the environment id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
environmentId | String | 环境标识(类型 `String`)。The environment id. |
io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:90–92getOwnerId
public String getOwnerId()
获取所有者标识。
Returns the owner id.
Stringio/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:94–96setOwnerId
public void setOwnerId(String ownerId)
设置所有者标识。
Sets the owner id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
ownerId | String | 所有者标识(类型 `String`)。The owner id. |
io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:98–100getName
public String getName()
获取名称。
Returns the name.
Stringio/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:102–104setName
public void setName(String name)
设置名称。
Sets the name.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
name | String | 名称(类型 `String`)。The name. |
io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:106–108getType
public String getType()
获取类型。
Returns the type.
Stringio/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:110–112setType
public void setType(String type)
设置类型。
Sets the type.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
type | String | 类型(类型 `String`)。The type. |
io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:114–116getConfigJson
public String getConfigJson()
获取配置 JSON。
Returns the config json.
Stringio/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:118–120setConfigJson
public void setConfigJson(String configJson)
设置配置 JSON。
Sets the config json.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
configJson | String | 配置 JSON(类型 `String`)。The config json. |
io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:122–124getArchivedAt
public Long getArchivedAt()
获取 getArchivedAt。
Returns the archived at.
Longio/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:126–128setArchivedAt
public void setArchivedAt(Long archivedAt)
设置 setArchivedAt。
Sets the archived at.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
archivedAt | Long | archived At(类型 `Long`)。The archived at. |
io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:130–132getCreatedAt
public long getCreatedAt()
获取已创建 At。
Returns the created at.
longio/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:134–136setCreatedAt
public void setCreatedAt(long createdAt)
设置已创建 At。
Sets the created at.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
createdAt | long | 已创建 At(类型 `long`)。The created at. |
io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:138–140getUpdatedAt
public long getUpdatedAt()
获取已更新 At。
Returns the updated at.
longio/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:142–144setUpdatedAt
public void setUpdatedAt(long updatedAt)
设置已更新 At。
Sets the updated at.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
updatedAt | long | 已更新 At(类型 `long`)。The updated at. |
io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:146–148getApiKeyHash
public String getApiKeyHash()
获取 getApiKeyHash。
Returns the api key hash.
Stringio/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:150–152setApiKeyHash
public void setApiKeyHash(String apiKeyHash)
设置 setApiKeyHash。
Sets the api key hash.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
apiKeyHash | String | API 键 Hash(类型 `String`)。The api key hash. |
io/agentscope/builder/web/persistence/jpa/EnvironmentEntity.java:154–156