SubagentRunRegistry
public final class SubagentRunRegistry
io/agentscope/harness/coding/session/SubagentRunRegistry.java:24–62子智能体运行注册表,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.harness.coding.session 包。核心成员包括 put、get、update、remove。
In-process registry for subagent spawn / run metadata (OpenClaw subagent-registry
analogue). Used for observability and correlation; not durable across JVM restarts.
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
RunStatus | 枚举enum | 定义运行状态的枚举。 A enum in io.agentscope.harness.coding.session that defines enum values used when components persists and restores session and memory data across calls. |
RunRecord | 记录record | 承载运行记录数据的记录类型。 A record in io.agentscope.harness.coding.session that carries data used when components persists and restores session and memory data across calls. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public void put(RunRecord record) | 设置该参数。 Performs the put operation. |
public RunRecord get(String runId) | 按条件读取数据。 Performs the get operation. |
public void update(String runId, RunRecord updated) | 执行更新相关操作。 Performs the update operation. |
public RunRecord remove(String runId) | 设置移除。 Performs the remove operation. |
方法详情Method Detail
put
public void put(RunRecord record)
设置该参数。
Performs the put operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
record | RunRecord | 记录(类型 `RunRecord`)。The record. |
io/agentscope/harness/coding/session/SubagentRunRegistry.java:47–49get
public RunRecord get(String runId)
按条件读取数据。
Performs the get operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
runId | String | 运行标识(类型 `String`)。The run id. |
RunRecordio/agentscope/harness/coding/session/SubagentRunRegistry.java:51–53update
public void update(String runId, RunRecord updated)
执行更新相关操作。
Performs the update operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
runId | String | 运行标识(类型 `String`)。The run id. |
updated | RunRecord | 已更新(类型 `RunRecord`)。The updated. |
io/agentscope/harness/coding/session/SubagentRunRegistry.java:55–57remove
public RunRecord remove(String runId)
设置移除。
Performs the remove operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
runId | String | 运行标识(类型 `String`)。The run id. |
RunRecordio/agentscope/harness/coding/session/SubagentRunRegistry.java:59–61嵌套类详情Nested Class Detail
RunStatus
public enum RunStatus定义运行状态的枚举。位于 io.agentscope.harness.coding.session 包。核心成员包括 PENDING、RUNNING、COMPLETED、FAILED。
A enum in io.agentscope.harness.coding.session that defines enum values used when components persists and restores session and memory data across calls. Declared in io.agentscope.harness.coding.session.
RunRecord
public record RunRecord( String runId, String childSessionKey, String requesterSessionKey, String agentId, RunStatus status, long createdAtMs, Long startedAtMs, Long completedAtMs, String resultSummary, String error)承载运行记录数据的记录类型。位于 io.agentscope.harness.coding.session 包。核心成员包括 runId、childSessionKey、requesterSessionKey、agentId、status、createdAtMs。
A record in io.agentscope.harness.coding.session that carries data used when components persists and restores session and memory data across calls. Declared in io.agentscope.harness.coding.session.