AS AgentScopeAPI 手册 / API Reference

InMemorySubagentRegistry

public final class InMemorySubagentRegistry implements SubagentRegistry
源码Source io/agentscope/harness/agent/gateway/InMemorySubagentRegistry.java:26–68

In 记忆子智能体注册表,承载智能体的部署、调度与服务化运行。位于 io.agentscope.harness.agent.gateway 包,实现 SubagentRegistry。核心成员包括 register、find、revoke、revokeByParentSession。

Default single-process SubagentRegistry. Records live only for the JVM's lifetime; this preserves the legacy in-memory exposure behaviour when no distributed store is configured.

方法摘要Method Summary

方法Method说明Description
public void register(SubagentRecord record)
设置注册。
Performs the register operation.
public Optional<SubagentRecord> find(String subagentId)
设置查找。
Performs the find operation.
public void revoke(String subagentId)
设置该参数。
Performs the revoke operation.
public void revokeByParentSession(String parentSessionId)
设置该参数。
Performs the revoke by parent session operation.

方法详情Method Detail

register

public void register(SubagentRecord record)

设置注册。

Performs the register operation.

参数Parameters
名称Name类型Type说明Description
recordSubagentRecord记录(类型 `SubagentRecord`)。The record.
源码Source io/agentscope/harness/agent/gateway/InMemorySubagentRegistry.java:30–36

find

public Optional<SubagentRecord> find(String subagentId)

设置查找。

Performs the find operation.

参数Parameters
名称Name类型Type说明Description
subagentIdString子智能体标识(类型 `String`)。The subagent id.
返回Returns Optional<SubagentRecord>
返回可选。Returns optional.
源码Source io/agentscope/harness/agent/gateway/InMemorySubagentRegistry.java:38–52

revoke

public void revoke(String subagentId)

设置该参数。

Performs the revoke operation.

参数Parameters
名称Name类型Type说明Description
subagentIdString子智能体标识(类型 `String`)。The subagent id.
源码Source io/agentscope/harness/agent/gateway/InMemorySubagentRegistry.java:54–59

revokeByParentSession

public void revokeByParentSession(String parentSessionId)

设置该参数。

Performs the revoke by parent session operation.

参数Parameters
名称Name类型Type说明Description
parentSessionIdString父级会话标识(类型 `String`)。The parent session id.
源码Source io/agentscope/harness/agent/gateway/InMemorySubagentRegistry.java:61–67
基于官方固定版本源码静态生成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.