AS AgentScopeAPI 手册 / API Reference

SubagentRunRegistry

public final class SubagentRunRegistry
源码Source 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.

参数Parameters
名称Name类型Type说明Description
recordRunRecord记录(类型 `RunRecord`)。The record.
源码Source io/agentscope/harness/coding/session/SubagentRunRegistry.java:47–49

get

public RunRecord get(String runId)

按条件读取数据。

Performs the get operation.

参数Parameters
名称Name类型Type说明Description
runIdString运行标识(类型 `String`)。The run id.
返回Returns RunRecord
返回RunRecord。Returns run record.
源码Source io/agentscope/harness/coding/session/SubagentRunRegistry.java:51–53

update

public void update(String runId, RunRecord updated)

执行更新相关操作。

Performs the update operation.

参数Parameters
名称Name类型Type说明Description
runIdString运行标识(类型 `String`)。The run id.
updatedRunRecord已更新(类型 `RunRecord`)。The updated.
源码Source io/agentscope/harness/coding/session/SubagentRunRegistry.java:55–57

remove

public RunRecord remove(String runId)

设置移除。

Performs the remove operation.

参数Parameters
名称Name类型Type说明Description
runIdString运行标识(类型 `String`)。The run id.
返回Returns RunRecord
返回RunRecord。Returns run record.
源码Source io/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.

基于官方固定版本源码静态生成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.