Class NacosAgentRegistry.Builder
java.lang.Object
io.agentscope.core.nacos.a2a.registry.NacosAgentRegistry.Builder
- Enclosing class:
- NacosAgentRegistry
Builder for
NacosAgentRegistry.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a new instance ofNacosAgentRegistryfrom current nacos client and properties.nacosA2aProperties(NacosA2aRegistryProperties nacosA2aProperties) AddsNacosA2aRegistryPropertiesinstance to the builder.
-
Method Details
-
nacosA2aProperties
AddsNacosA2aRegistryPropertiesinstance to the builder.- Parameters:
nacosA2aProperties- properties for nacos a2a registry- Returns:
- this
NacosAgentRegistry.Builderinstance for method chaining
-
build
Build a new instance ofNacosAgentRegistryfrom current nacos client and properties.Nacos client is required to build
NacosAgentRegistry. So if nacos client is null, will throwIllegalArgumentException.nacosA2aPropertiesis optional. If it is null, will use default properties.- Returns:
- new instance of
NacosAgentRegistry
-