InMemorySubagentRegistry
public final class InMemorySubagentRegistry implements SubagentRegistry
源码Source
io/agentscope/harness/agent/gateway/InMemorySubagentRegistry.java:26–68In 记忆子智能体注册表,承载智能体的部署、调度与服务化运行。位于 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 |
|---|---|---|
record | SubagentRecord | 记录(类型 `SubagentRecord`)。The record. |
源码Source
io/agentscope/harness/agent/gateway/InMemorySubagentRegistry.java:30–36find
public Optional<SubagentRecord> find(String subagentId)
设置查找。
Performs the find operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
subagentId | String | 子智能体标识(类型 `String`)。The subagent id. |
Optional<SubagentRecord>返回可选。Returns optional.
源码Source
io/agentscope/harness/agent/gateway/InMemorySubagentRegistry.java:38–52revoke
public void revoke(String subagentId)
设置该参数。
Performs the revoke operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
subagentId | String | 子智能体标识(类型 `String`)。The subagent id. |
源码Source
io/agentscope/harness/agent/gateway/InMemorySubagentRegistry.java:54–59revokeByParentSession
public void revokeByParentSession(String parentSessionId)
设置该参数。
Performs the revoke by parent session operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
parentSessionId | String | 父级会话标识(类型 `String`)。The parent session id. |
源码Source
io/agentscope/harness/agent/gateway/InMemorySubagentRegistry.java:61–67