ManagedSessionEntity
@Entity @Table( name = "builder_session", indexes = { @Index(name = "ix_builder_session_owner", columnList = "owner_id"), @Index(name = "ix_builder_session_agent", columnList = "agent_id"), @Index(name = "ix_builder_session_env", columnList = "environment_id"), @Index(name = "ix_builder_session_external_key", columnList = "external_key") }) public class ManagedSessionEntity
io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:32–286托管会话 Entity,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.builder.web.persistence.jpa 包。核心成员包括 getRowId、setRowId、getSessionId、setSessionId、getOwnerId、setOwnerId。
Managed-Agents-style session: pairs an agent reference with an environment and tracks status
via an append-only event log (SessionEventEntity).
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public ManagedSessionEntity() | 初始化 `ManagedSessionEntity` 实例。 Creates a new instance. |
方法摘要Method Summary
构造器详情Constructor Detail
ManagedSessionEntity
public ManagedSessionEntity()
初始化 ManagedSessionEntity 实例。
Creates a new instance.
io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:133方法详情Method Detail
getRowId
public Long getRowId()
获取 getRowId。
Returns the row id.
Longio/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:135–137setRowId
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/ManagedSessionEntity.java:139–141getSessionId
public String getSessionId()
获取会话标识。
Returns the session id.
Stringio/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:143–145setSessionId
public void setSessionId(String sessionId)
设置会话标识。
Sets the session id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:147–149getOwnerId
public String getOwnerId()
获取所有者标识。
Returns the owner id.
Stringio/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:151–153setOwnerId
public void setOwnerId(String ownerId)
设置所有者标识。
Sets the owner id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
ownerId | String | 所有者标识(类型 `String`)。The owner id. |
io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:155–157getAgentId
public String getAgentId()
获取智能体标识。
Returns the agent id.
Stringio/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:159–161setAgentId
public void setAgentId(String agentId)
设置智能体标识。
Sets the agent id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentId | String | 智能体标识(类型 `String`)。The agent id. |
io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:163–165getAgentOwnerId
public String getAgentOwnerId()
获取智能体所有者标识。
Returns the agent owner id.
Stringio/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:167–169setAgentOwnerId
public void setAgentOwnerId(String agentOwnerId)
设置智能体所有者标识。
Sets the agent owner id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentOwnerId | String | 智能体所有者标识(类型 `String`)。The agent owner id. |
io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:171–173getAgentVersion
public Integer getAgentVersion()
获取智能体版本。
Returns the agent version.
Integerio/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:175–177setAgentVersion
public void setAgentVersion(Integer agentVersion)
设置智能体版本。
Sets the agent version.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentVersion | Integer | 智能体版本(类型 `Integer`)。The agent version. |
io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:179–181getAgentRefType
public String getAgentRefType()
获取智能体引用类型。
Returns the agent ref type.
Stringio/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:183–185setAgentRefType
public void setAgentRefType(String agentRefType)
设置智能体引用类型。
Sets the agent ref type.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentRefType | String | 智能体引用类型(类型 `String`)。The agent ref type. |
io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:187–189getAgentOverridesJson
public String getAgentOverridesJson()
获取 getAgentOverridesJson。
Returns the agent overrides json.
Stringio/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:191–193setAgentOverridesJson
public void setAgentOverridesJson(String agentOverridesJson)
设置 setAgentOverridesJson。
Sets the agent overrides json.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentOverridesJson | String | 智能体 Overrides JSON(类型 `String`)。The agent overrides json. |
io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:195–197getEnvironmentId
public String getEnvironmentId()
获取环境标识。
Returns the environment id.
Stringio/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:199–201setEnvironmentId
public void setEnvironmentId(String environmentId)
设置环境标识。
Sets the environment id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
environmentId | String | 环境标识(类型 `String`)。The environment id. |
io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:203–205getExternalKey
public String getExternalKey()
获取外部键。
Returns the external key.
Stringio/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:207–209setExternalKey
public void setExternalKey(String externalKey)
设置外部键。
Sets the external key.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
externalKey | String | 外部键(类型 `String`)。The external key. |
io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:211–213getMemoryStoreIdsJson
public String getMemoryStoreIdsJson()
获取 getMemoryStoreIdsJson。
Returns the memory store ids json.
Stringio/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:215–217setMemoryStoreIdsJson
public void setMemoryStoreIdsJson(String memoryStoreIdsJson)
设置 setMemoryStoreIdsJson。
Sets the memory store ids json.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
memoryStoreIdsJson | String | 记忆存储 Ids JSON(类型 `String`)。The memory store ids json. |
io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:219–221getVaultIdsJson
public String getVaultIdsJson()
获取 getVaultIdsJson。
Returns the vault ids json.
Stringio/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:223–225setVaultIdsJson
public void setVaultIdsJson(String vaultIdsJson)
设置 setVaultIdsJson。
Sets the vault ids json.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
vaultIdsJson | String | vault Ids JSON(类型 `String`)。The vault ids json. |
io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:227–229getResourcesJson
public String getResourcesJson()
获取 getResourcesJson。
Returns the resources json.
Stringio/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:231–233setResourcesJson
public void setResourcesJson(String resourcesJson)
设置 setResourcesJson。
Sets the resources json.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
resourcesJson | String | resources JSON(类型 `String`)。The resources json. |
io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:235–237getStatus
public String getStatus()
获取状态。
Returns the status.
Stringio/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:239–241setStatus
public void setStatus(String status)
设置状态。
Sets the status.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
status | String | 状态(类型 `String`)。The status. |
io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:243–245getStopReasonJson
public String getStopReasonJson()
获取停止推理 JSON。
Returns the stop reason json.
Stringio/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:247–249setStopReasonJson
public void setStopReasonJson(String stopReasonJson)
设置停止推理 JSON。
Sets the stop reason json.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
stopReasonJson | String | 停止推理 JSON(类型 `String`)。The stop reason json. |
io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:251–253getCreatedAt
public long getCreatedAt()
获取已创建 At。
Returns the created at.
longio/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:255–257setCreatedAt
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/ManagedSessionEntity.java:259–261getUpdatedAt
public long getUpdatedAt()
获取已更新 At。
Returns the updated at.
longio/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:263–265setUpdatedAt
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/ManagedSessionEntity.java:267–269getArchivedAt
public Long getArchivedAt()
获取 getArchivedAt。
Returns the archived at.
Longio/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:271–273setArchivedAt
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/ManagedSessionEntity.java:275–277getVersion
public Long getVersion()
获取版本。
Returns the version.
Longio/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:279–281setVersion
public void setVersion(Long version)
设置版本。
Sets the version.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
version | Long | 版本(类型 `Long`)。The version. |
io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:283–285