SessionView
public record SessionView( String sessionKey, String agentId, String sessionId, String label, String kind, String spawnedBy, int spawnDepth, long createdAtMs, long lastActivityMs, String sessionFilePath, String spawnRunId, String gateKey)
io/agentscope/harness/coding/session/SessionView.java:22–51承载会话 View数据的记录类型。位于 io.agentscope.harness.coding.session 包。核心成员包括 sessionKey、agentId、sessionId、label、kind、spawnedBy。
Public view of a managed session. Returned by SessionAgentManager#list and SessionAgentManager#viewSession to expose session information without internal mutable state.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
sessionKey | String | 执行会话键相关操作。 Performs the session key operation. |
agentId | String | 执行智能体标识相关操作。 Performs the agent id operation. |
sessionId | String | 执行会话标识相关操作。 Performs the session id operation. |
label | String | 执行标签相关操作。 Performs the label operation. |
kind | String | 执行种类相关操作。 Performs the kind operation. |
spawnedBy | String | 执行 `spawnedBy` 方法。 Performs the spawned by operation. |
spawnDepth | int | 执行 `spawnDepth` 方法。 Performs the spawn depth operation. |
createdAtMs | long | 执行已创建 At Ms相关操作。 Performs the created at ms operation. |
lastActivityMs | long | 执行 `lastActivityMs` 方法。 Performs the last activity ms operation. |
sessionFilePath | String | 执行会话文件路径相关操作。 Performs the session file path operation. |
spawnRunId | String | 执行 `spawnRunId` 方法。 Performs the spawn run id operation. |
gateKey | String | 执行 `gateKey` 方法。 Performs the gate key operation. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static SessionView from(SessionEntry e)static | 创建并返回实例。 Creates and returns an instance. |
记录组件详情Record Component Detail
sessionKey
String sessionKey执行会话键相关操作。
Performs the session key operation.
io/agentscope/harness/coding/session/SessionView.java:22–51agentId
String agentId执行智能体标识相关操作。
Performs the agent id operation.
io/agentscope/harness/coding/session/SessionView.java:22–51sessionId
String sessionId执行会话标识相关操作。
Performs the session id operation.
io/agentscope/harness/coding/session/SessionView.java:22–51label
String label执行标签相关操作。
Performs the label operation.
io/agentscope/harness/coding/session/SessionView.java:22–51kind
String kind执行种类相关操作。
Performs the kind operation.
io/agentscope/harness/coding/session/SessionView.java:22–51spawnedBy
String spawnedBy执行 spawnedBy 方法。
Performs the spawned by operation.
io/agentscope/harness/coding/session/SessionView.java:22–51spawnDepth
int spawnDepth执行 spawnDepth 方法。
Performs the spawn depth operation.
io/agentscope/harness/coding/session/SessionView.java:22–51createdAtMs
long createdAtMs执行已创建 At Ms相关操作。
Performs the created at ms operation.
io/agentscope/harness/coding/session/SessionView.java:22–51lastActivityMs
long lastActivityMs执行 lastActivityMs 方法。
Performs the last activity ms operation.
io/agentscope/harness/coding/session/SessionView.java:22–51sessionFilePath
String sessionFilePath执行会话文件路径相关操作。
Performs the session file path operation.
io/agentscope/harness/coding/session/SessionView.java:22–51spawnRunId
String spawnRunId执行 spawnRunId 方法。
Performs the spawn run id operation.
io/agentscope/harness/coding/session/SessionView.java:22–51gateKey
String gateKey执行 gateKey 方法。
Performs the gate key operation.
io/agentscope/harness/coding/session/SessionView.java:22–51方法详情Method Detail
from
public static SessionView from(SessionEntry e)
创建并返回实例。
Creates and returns an instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
e | SessionEntry | e(类型 `SessionEntry`)。The e. |
SessionViewio/agentscope/harness/coding/session/SessionView.java:36–50