AgentRegistry
public interface AgentRegistry
源码Source
io/agentscope/core/a2a/server/registry/AgentRegistry.java:26–42定义智能体注册表契约的接口。位于 io.agentscope.core.a2a.server.registry 包。核心成员包括 registryName、register。
Agent Register Interface to Agent Registry.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String registryName() | 返回注册表名称。 Registry Name. |
public void register(AgentCard agentCard, List<TransportProperties> transportProperties) | 执行注册相关操作。 Do registry operation by AgentCard and deployProperties. |
方法详情Method Detail
registryName
public String registryName()
返回注册表名称。
Registry Name.
String返回字符串结果。registry name
源码Source
io/agentscope/core/a2a/server/registry/AgentRegistry.java:33register
public void register(AgentCard agentCard, List<TransportProperties> transportProperties)
执行注册相关操作。
Do registry operation by AgentCard and deployProperties.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentCard | AgentCard | 此智能体的智能体卡片。agent card of this agent |
transportProperties | List<TransportProperties> | 传输层属性(类型 `List`)。transports properties |
源码Source
io/agentscope/core/a2a/server/registry/AgentRegistry.java:41