AS AgentScopeAPI 手册 / API Reference

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.

返回Returns String
返回字符串结果。registry name
源码Source io/agentscope/extensions/runtime/a2a/registry/AgentRegistry.java:34

register

public void register(AgentCard agentCard, DeployProperties deployProperties)

执行注册相关操作。

Do registry operation by AgentCard and deployProperties.

参数Parameters
名称Name类型Type说明Description
agentCardAgentCard此智能体的智能体卡片。agent card of this agent
deployPropertiesDeployProperties部署属性(类型 `DeployProperties`)。deploy properties include interface information such as address, port and etc.
源码Source io/agentscope/extensions/runtime/a2a/registry/AgentRegistry.java:42
基于官方固定版本源码静态生成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.