AS AgentScopeAPI 手册 / API Reference

NacosAgentRegistry

public class NacosAgentRegistry implements AgentRegistry
源码Source io/agentscope/extensions/nacos/a2a/registry/NacosAgentRegistry.java:45–231

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

The Agent registry for Nacos.

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
Builder类class
构建器,用于构建并配置目标实例。
A class in io.agentscope.extensions.nacos.a2a.registry that supports discovery, delegation and collaboration between agents.

方法摘要Method Summary

方法Method说明Description
public String registryName()
返回注册表名称。
Returns the registry name.
public void register(AgentCard agentCard, List<TransportProperties> transportProperties)
执行注册相关操作。
Performs the register operation.
public static Builder builder(AiService aiService)
static
返回构建器实例。
Performs the builder operation.
public static Builder builder(Properties nacosServerProperties) throws NacosException
static
返回构建器实例。
Performs the builder operation.

方法详情Method Detail

registryName

public String registryName()

返回注册表名称。

Returns the registry name.

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

register

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

执行注册相关操作。

Performs the register operation.

参数Parameters
名称Name类型Type说明Description
agentCardAgentCard智能体卡片(类型 `AgentCard`)。The agent card.
transportPropertiesList<TransportProperties>传输层属性(类型 `List`)。The transport properties.
源码Source io/agentscope/extensions/nacos/a2a/registry/NacosAgentRegistry.java:65–70

builder

public static Builder builder(AiService aiService)
static

返回构建器实例。

Performs the builder operation.

参数Parameters
名称Name类型Type说明Description
aiServiceAiServiceai 服务(类型 `AiService`)。The ai service.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/extensions/nacos/a2a/registry/NacosAgentRegistry.java:197–199

builder

public static Builder builder(Properties nacosServerProperties) throws NacosException
static

返回构建器实例。

Performs the builder operation.

参数Parameters
名称Name类型Type说明Description
nacosServerPropertiesPropertiesNacos 服务端属性(类型 `Properties`)。The nacos server properties.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
抛出Throws
  • NacosException 可能抛出 `NacosException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/extensions/nacos/a2a/registry/NacosAgentRegistry.java:201–203

嵌套类详情Nested Class Detail

Builder

public static class Builder

构建器,用于构建并配置目标实例。位于 io.agentscope.extensions.nacos.a2a.registry 包。核心成员包括 nacosA2aProperties、build。

A class in io.agentscope.extensions.nacos.a2a.registry that supports discovery, delegation and collaboration between agents. Declared in io.agentscope.extensions.nacos.a2a.registry.

基于官方固定版本源码静态生成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.