AS AgentScopeAPI 手册 / API Reference

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
源码Source 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

方法Method说明Description
public Long getRowId()
获取 `getRowId`。
Returns the row id.
public void setRowId(Long rowId)
设置 `setRowId`。
Sets the row id.
public String getSessionId()
获取会话标识。
Returns the session id.
public void setSessionId(String sessionId)
设置会话标识。
Sets the session id.
public String getOwnerId()
获取所有者标识。
Returns the owner id.
public void setOwnerId(String ownerId)
设置所有者标识。
Sets the owner id.
public String getAgentId()
获取智能体标识。
Returns the agent id.
public void setAgentId(String agentId)
设置智能体标识。
Sets the agent id.
public String getAgentOwnerId()
获取智能体所有者标识。
Returns the agent owner id.
public void setAgentOwnerId(String agentOwnerId)
设置智能体所有者标识。
Sets the agent owner id.
public Integer getAgentVersion()
获取智能体版本。
Returns the agent version.
public void setAgentVersion(Integer agentVersion)
设置智能体版本。
Sets the agent version.
public String getAgentRefType()
获取智能体引用类型。
Returns the agent ref type.
public void setAgentRefType(String agentRefType)
设置智能体引用类型。
Sets the agent ref type.
public String getAgentOverridesJson()
获取 `getAgentOverridesJson`。
Returns the agent overrides json.
public void setAgentOverridesJson(String agentOverridesJson)
设置 `setAgentOverridesJson`。
Sets the agent overrides json.
public String getEnvironmentId()
获取环境标识。
Returns the environment id.
public void setEnvironmentId(String environmentId)
设置环境标识。
Sets the environment id.
public String getExternalKey()
获取外部键。
Returns the external key.
public void setExternalKey(String externalKey)
设置外部键。
Sets the external key.
public String getMemoryStoreIdsJson()
获取 `getMemoryStoreIdsJson`。
Returns the memory store ids json.
public void setMemoryStoreIdsJson(String memoryStoreIdsJson)
设置 `setMemoryStoreIdsJson`。
Sets the memory store ids json.
public String getVaultIdsJson()
获取 `getVaultIdsJson`。
Returns the vault ids json.
public void setVaultIdsJson(String vaultIdsJson)
设置 `setVaultIdsJson`。
Sets the vault ids json.
public String getResourcesJson()
获取 `getResourcesJson`。
Returns the resources json.
public void setResourcesJson(String resourcesJson)
设置 `setResourcesJson`。
Sets the resources json.
public String getStatus()
获取状态。
Returns the status.
public void setStatus(String status)
设置状态。
Sets the status.
public String getStopReasonJson()
获取停止推理 JSON。
Returns the stop reason json.
public void setStopReasonJson(String stopReasonJson)
设置停止推理 JSON。
Sets the stop reason json.
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 Long getArchivedAt()
获取 `getArchivedAt`。
Returns the archived at.
public void setArchivedAt(Long archivedAt)
设置 `setArchivedAt`。
Sets the archived at.
public Long getVersion()
获取版本。
Returns the version.
public void setVersion(Long version)
设置版本。
Sets the version.

构造器详情Constructor Detail

ManagedSessionEntity

public ManagedSessionEntity()

初始化 ManagedSessionEntity 实例。

Creates a new instance.

源码Source io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:133

方法详情Method Detail

getRowId

public Long getRowId()

获取 getRowId。

Returns the row id.

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

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/ManagedSessionEntity.java:139–141

getSessionId

public String getSessionId()

获取会话标识。

Returns the session id.

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

setSessionId

public void setSessionId(String sessionId)

设置会话标识。

Sets the session id.

参数Parameters
名称Name类型Type说明Description
sessionIdString会话标识(类型 `String`)。The session id.
源码Source io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:147–149

getOwnerId

public String getOwnerId()

获取所有者标识。

Returns the owner id.

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

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/ManagedSessionEntity.java:155–157

getAgentId

public String getAgentId()

获取智能体标识。

Returns the agent id.

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

setAgentId

public void setAgentId(String agentId)

设置智能体标识。

Sets the agent id.

参数Parameters
名称Name类型Type说明Description
agentIdString智能体标识(类型 `String`)。The agent id.
源码Source io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:163–165

getAgentOwnerId

public String getAgentOwnerId()

获取智能体所有者标识。

Returns the agent owner id.

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

setAgentOwnerId

public void setAgentOwnerId(String agentOwnerId)

设置智能体所有者标识。

Sets the agent owner id.

参数Parameters
名称Name类型Type说明Description
agentOwnerIdString智能体所有者标识(类型 `String`)。The agent owner id.
源码Source io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:171–173

getAgentVersion

public Integer getAgentVersion()

获取智能体版本。

Returns the agent version.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:175–177

setAgentVersion

public void setAgentVersion(Integer agentVersion)

设置智能体版本。

Sets the agent version.

参数Parameters
名称Name类型Type说明Description
agentVersionInteger智能体版本(类型 `Integer`)。The agent version.
源码Source io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:179–181

getAgentRefType

public String getAgentRefType()

获取智能体引用类型。

Returns the agent ref type.

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

setAgentRefType

public void setAgentRefType(String agentRefType)

设置智能体引用类型。

Sets the agent ref type.

参数Parameters
名称Name类型Type说明Description
agentRefTypeString智能体引用类型(类型 `String`)。The agent ref type.
源码Source io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:187–189

getAgentOverridesJson

public String getAgentOverridesJson()

获取 getAgentOverridesJson。

Returns the agent overrides json.

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

setAgentOverridesJson

public void setAgentOverridesJson(String agentOverridesJson)

设置 setAgentOverridesJson。

Sets the agent overrides json.

参数Parameters
名称Name类型Type说明Description
agentOverridesJsonString智能体 Overrides JSON(类型 `String`)。The agent overrides json.
源码Source io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:195–197

getEnvironmentId

public String getEnvironmentId()

获取环境标识。

Returns the environment id.

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

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/ManagedSessionEntity.java:203–205

getExternalKey

public String getExternalKey()

获取外部键。

Returns the external key.

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

setExternalKey

public void setExternalKey(String externalKey)

设置外部键。

Sets the external key.

参数Parameters
名称Name类型Type说明Description
externalKeyString外部键(类型 `String`)。The external key.
源码Source io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:211–213

getMemoryStoreIdsJson

public String getMemoryStoreIdsJson()

获取 getMemoryStoreIdsJson。

Returns the memory store ids json.

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

setMemoryStoreIdsJson

public void setMemoryStoreIdsJson(String memoryStoreIdsJson)

设置 setMemoryStoreIdsJson。

Sets the memory store ids json.

参数Parameters
名称Name类型Type说明Description
memoryStoreIdsJsonString记忆存储 Ids JSON(类型 `String`)。The memory store ids json.
源码Source io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:219–221

getVaultIdsJson

public String getVaultIdsJson()

获取 getVaultIdsJson。

Returns the vault ids json.

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

setVaultIdsJson

public void setVaultIdsJson(String vaultIdsJson)

设置 setVaultIdsJson。

Sets the vault ids json.

参数Parameters
名称Name类型Type说明Description
vaultIdsJsonStringvault Ids JSON(类型 `String`)。The vault ids json.
源码Source io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:227–229

getResourcesJson

public String getResourcesJson()

获取 getResourcesJson。

Returns the resources json.

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

setResourcesJson

public void setResourcesJson(String resourcesJson)

设置 setResourcesJson。

Sets the resources json.

参数Parameters
名称Name类型Type说明Description
resourcesJsonStringresources JSON(类型 `String`)。The resources json.
源码Source io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:235–237

getStatus

public String getStatus()

获取状态。

Returns the status.

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

setStatus

public void setStatus(String status)

设置状态。

Sets the status.

参数Parameters
名称Name类型Type说明Description
statusString状态(类型 `String`)。The status.
源码Source io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:243–245

getStopReasonJson

public String getStopReasonJson()

获取停止推理 JSON。

Returns the stop reason json.

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

setStopReasonJson

public void setStopReasonJson(String stopReasonJson)

设置停止推理 JSON。

Sets the stop reason json.

参数Parameters
名称Name类型Type说明Description
stopReasonJsonString停止推理 JSON(类型 `String`)。The stop reason json.
源码Source io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:251–253

getCreatedAt

public long getCreatedAt()

获取已创建 At。

Returns the created at.

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

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/ManagedSessionEntity.java:259–261

getUpdatedAt

public long getUpdatedAt()

获取已更新 At。

Returns the updated at.

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

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/ManagedSessionEntity.java:267–269

getArchivedAt

public Long getArchivedAt()

获取 getArchivedAt。

Returns the archived at.

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

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/ManagedSessionEntity.java:275–277

getVersion

public Long getVersion()

获取版本。

Returns the version.

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

setVersion

public void setVersion(Long version)

设置版本。

Sets the version.

参数Parameters
名称Name类型Type说明Description
versionLong版本(类型 `Long`)。The version.
源码Source io/agentscope/builder/web/persistence/jpa/ManagedSessionEntity.java:283–285
基于官方固定版本源码静态生成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.