AS AgentScopeAPI 手册 / API Reference

Builder

public static class Builder
源码Source io/agentscope/core/nacos/a2a/registry/NacosAgentRegistry.java:268–308

NacosAgentRegistry的构建器。位于 io.agentscope.core.nacos.a2a.registry 包。核心成员包括 nacosA2aProperties、build。

Builder for NacosAgentRegistry.

方法摘要Method Summary

方法Method说明Description
public Builder nacosA2aProperties(NacosA2aRegistryProperties nacosA2aProperties)
设置该配置项。
Adds `NacosA2aRegistryProperties` instance to the builder.
public NacosAgentRegistry build()
构建并返回最终实例。
Build a new instance of `NacosAgentRegistry` from current nacos client and properties.

方法详情Method Detail

nacosA2aProperties

public Builder nacosA2aProperties(NacosA2aRegistryProperties nacosA2aProperties)

设置该配置项。

Adds NacosA2aRegistryProperties instance to the builder.

参数Parameters
名称Name类型Type说明Description
nacosA2aPropertiesNacosA2aRegistryPropertiesNacos A 2 a 属性(类型 `NacosA2aRegistryProperties`)。properties for nacos a2a registry
返回Returns Builder
返回当前实例,以支持链式调用。this `Builder` instance for method chaining
源码Source io/agentscope/core/nacos/a2a/registry/NacosAgentRegistry.java:284–287

build

public NacosAgentRegistry build()

构建并返回最终实例。

Build a new instance of NacosAgentRegistry from current nacos client and properties.

返回Returns NacosAgentRegistry
`NacosAgentRegistry`的新的实例。new instance of `NacosAgentRegistry`
源码Source io/agentscope/core/nacos/a2a/registry/NacosAgentRegistry.java:298–307
基于官方固定版本源码静态生成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.