AgentRegistry
public interface AgentRegistry
源码Source
io/agentscope/extensions/runtime/a2a/registry/AgentRegistry.java:27–44定义智能体注册表契约的接口。位于 io.agentscope.extensions.runtime.a2a.registry 包。核心成员包括 registryName、register。
Agent Register Interface to Agent Registry.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String registryName() | 返回注册表名称。 Registry Name. |
public void register(AgentCard agentCard, DeployProperties deployProperties) | 执行注册相关操作。 Do registry operation by AgentCard and deployProperties. |
方法详情Method Detail
registryName
public String registryName()
返回注册表名称。
Registry Name.
String返回字符串结果。registry name
源码Source
io/agentscope/extensions/runtime/a2a/registry/AgentRegistry.java:34register
public void register(AgentCard agentCard, DeployProperties deployProperties)
执行注册相关操作。
Do registry operation by AgentCard and deployProperties.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentCard | AgentCard | 此智能体的智能体卡片。agent card of this agent |
deployProperties | DeployProperties | 部署属性(类型 `DeployProperties`)。deploy properties include interface information such as address, port and etc. |
源码Source
io/agentscope/extensions/runtime/a2a/registry/AgentRegistry.java:42