Builder
public static class Builder
源码Source
io/agentscope/core/nacos/a2a/registry/NacosAgentRegistry.java:268–308NacosAgentRegistry的构建器。位于 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 |
|---|---|---|
nacosA2aProperties | NacosA2aRegistryProperties | Nacos A 2 a 属性(类型 `NacosA2aRegistryProperties`)。properties for nacos a2a registry |
Builder返回当前实例,以支持链式调用。this `Builder` instance for method chaining
源码Source
io/agentscope/core/nacos/a2a/registry/NacosAgentRegistry.java:284–287build
public NacosAgentRegistry build()
构建并返回最终实例。
Build a new instance of NacosAgentRegistry from current nacos client and properties.
NacosAgentRegistry`NacosAgentRegistry`的新的实例。new instance of `NacosAgentRegistry`
源码Source
io/agentscope/core/nacos/a2a/registry/NacosAgentRegistry.java:298–307