AS AgentScopeAPI 手册 / API Reference

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.

返回Returns String
返回字符串结果。registry name
源码Source io/agentscope/core/a2a/server/registry/AgentRegistry.java:33

register

public void register(AgentCard agentCard, List<TransportProperties> transportProperties)

执行注册相关操作。

Do registry operation by AgentCard and deployProperties.

参数Parameters
名称Name类型Type说明Description
agentCardAgentCard此智能体的智能体卡片。agent card of this agent
transportPropertiesList<TransportProperties>传输层属性(类型 `List`)。transports properties
源码Source io/agentscope/core/a2a/server/registry/AgentRegistry.java:41
基于官方固定版本源码静态生成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.