AS AgentScopeAPI 手册 / API Reference

NacosAgentRegistry

public class NacosAgentRegistry implements AgentRegistry
源码Source io/agentscope/extensions/runtime/a2a/nacos/registry/NacosAgentRegistry.java:48–215

Nacos 智能体注册表,支持智能体之间的发现、委派与协作。位于 io.agentscope.extensions.runtime.a2a.nacos.registry 包,实现 AgentRegistry。核心成员包括 registryName、register、NacosAgentRegistry。

The Agent registry for Nacos.

构造器摘要Constructor Summary

构造器Constructor说明Description
public NacosAgentRegistry(NacosA2aRegistry nacosA2aRegistry, NacosA2aProperties nacosA2aProperties)
初始化 `NacosAgentRegistry` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public String registryName()
返回注册表名称。
Returns the registry name.
public void register(AgentCard agentCard, DeployProperties deployProperties)
执行注册相关操作。
Performs the register operation.

构造器详情Constructor Detail

NacosAgentRegistry

public NacosAgentRegistry(NacosA2aRegistry nacosA2aRegistry, NacosA2aProperties nacosA2aProperties)

初始化 NacosAgentRegistry 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
nacosA2aRegistryNacosA2aRegistryNacos A 2 a 注册表(类型 `NacosA2aRegistry`)。The nacos a 2 a registry.
nacosA2aPropertiesNacosA2aPropertiesNacos A 2 a 属性(类型 `NacosA2aProperties`)。The nacos a 2 a properties.
源码Source io/agentscope/extensions/runtime/a2a/nacos/registry/NacosAgentRegistry.java:63–66

方法详情Method Detail

registryName

public String registryName()

返回注册表名称。

Returns the registry name.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/runtime/a2a/nacos/registry/NacosAgentRegistry.java:68–71

register

public void register(AgentCard agentCard, DeployProperties deployProperties)

执行注册相关操作。

Performs the register operation.

参数Parameters
名称Name类型Type说明Description
agentCardAgentCard智能体卡片(类型 `AgentCard`)。The agent card.
deployPropertiesDeployProperties部署属性(类型 `DeployProperties`)。The deploy properties.
源码Source io/agentscope/extensions/runtime/a2a/nacos/registry/NacosAgentRegistry.java:73–81
基于官方固定版本源码静态生成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.