StoredEntry
@JsonIgnoreProperties(ignoreUnknown = true) public record StoredEntry( String sessionKey, String agentId, String sessionId, String label, String kind, String spawnedBy, int spawnDepth, long createdAtMs, long lastActivityMs, String sessionFilePath, String spawnRunId, String gateKey, String userId)
io/agentscope/harness/coding/session/SessionStore.java:62–112承载已存储条目数据的记录类型。位于 io.agentscope.harness.coding.session 包。核心成员包括 sessionKey、agentId、sessionId、label、kind、spawnedBy。
JSON-serializable subset of SessionEntry for disk persistence. Uses
@JsonIgnoreProperties(ignoreUnknown = true) for forward compatibility when new
fields are added.
记录组件摘要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. |
userId | String | 执行用户标识相关操作。 Performs the user id operation. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static StoredEntry from(SessionEntry e)static | 创建并返回实例。 Creates and returns an instance. |
public SessionEntry toSessionEntry() | 返回到会话条目。 Returns the to session entry. |
记录组件详情Record Component Detail
sessionKey
String sessionKey执行会话键相关操作。
Performs the session key operation.
io/agentscope/harness/coding/session/SessionStore.java:62–112agentId
String agentId执行智能体标识相关操作。
Performs the agent id operation.
io/agentscope/harness/coding/session/SessionStore.java:62–112sessionId
String sessionId执行会话标识相关操作。
Performs the session id operation.
io/agentscope/harness/coding/session/SessionStore.java:62–112label
String label执行标签相关操作。
Performs the label operation.
io/agentscope/harness/coding/session/SessionStore.java:62–112kind
String kind执行种类相关操作。
Performs the kind operation.
io/agentscope/harness/coding/session/SessionStore.java:62–112spawnedBy
String spawnedBy执行 spawnedBy 方法。
Performs the spawned by operation.
io/agentscope/harness/coding/session/SessionStore.java:62–112spawnDepth
int spawnDepth执行 spawnDepth 方法。
Performs the spawn depth operation.
io/agentscope/harness/coding/session/SessionStore.java:62–112createdAtMs
long createdAtMs执行已创建 At Ms相关操作。
Performs the created at ms operation.
io/agentscope/harness/coding/session/SessionStore.java:62–112lastActivityMs
long lastActivityMs执行 lastActivityMs 方法。
Performs the last activity ms operation.
io/agentscope/harness/coding/session/SessionStore.java:62–112sessionFilePath
String sessionFilePath执行会话文件路径相关操作。
Performs the session file path operation.
io/agentscope/harness/coding/session/SessionStore.java:62–112spawnRunId
String spawnRunId执行 spawnRunId 方法。
Performs the spawn run id operation.
io/agentscope/harness/coding/session/SessionStore.java:62–112gateKey
String gateKey执行 gateKey 方法。
Performs the gate key operation.
io/agentscope/harness/coding/session/SessionStore.java:62–112userId
String userId执行用户标识相关操作。
Performs the user id operation.
io/agentscope/harness/coding/session/SessionStore.java:62–112方法详情Method Detail
from
public static StoredEntry from(SessionEntry e)
创建并返回实例。
Creates and returns an instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
e | SessionEntry | e(类型 `SessionEntry`)。The e. |
StoredEntryio/agentscope/harness/coding/session/SessionStore.java:78–93toSessionEntry
public SessionEntry toSessionEntry()
返回到会话条目。
Returns the to session entry.
SessionEntryio/agentscope/harness/coding/session/SessionStore.java:95–111