Class AgentScopeA2aNacosProperties
java.lang.Object
io.agentscope.spring.boot.nacos.properties.BaseNacosProperties
io.agentscope.spring.boot.nacos.properties.a2a.AgentScopeA2aNacosProperties
@ConfigurationProperties(prefix="agentscope.a2a.nacos")
public class AgentScopeA2aNacosProperties
extends BaseNacosProperties
Spring Boot configuration properties for AgentScope A2A Nacos integration.
This class extends BaseNacosProperties to provide Nacos configuration
properties specifically for AgentScope applications. It uses the Nacos prefix from
NacosConstants.A2A_NACOS_PREFIX for property binding.
Example with yaml following:
agentscope:
a2a:
nacos:
server-addr: 127.0.0.1:8848
namespace: public
username: nacos
password: nacos
properties:
logAllProperties: true
The priority of this class is higher than AgentScopeNacosProperties for these
properties defined in BaseNacosProperties. For example, configuration like following:
agentscope:
nacos:
server-addr: nacos.a.host:8848
username: nacos
password: nacos
a2a:
nacos:
server-addr: nacos.b.host:8848
password: nacos@b
The actual server address of connecting Nacos will be nacos.b.host:8848 with username nacos and
password nacos@b.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetDiscovery(NacosA2aDiscoveryProperties discovery) voidsetRegistry(NacosA2aRegistryProperties registry) Methods inherited from class io.agentscope.spring.boot.nacos.properties.BaseNacosProperties
getAccessKey, getExplicitNacosProperties, getNacosProperties, getNamespace, getPassword, getProperties, getSecretKey, getServerAddr, getUsername, setAccessKey, setNamespace, setPassword, setProperties, setSecretKey, setServerAddr, setUsername
-
Constructor Details
-
AgentScopeA2aNacosProperties
public AgentScopeA2aNacosProperties()
-
-
Method Details
-
getRegistry
-
setRegistry
-
getDiscovery
-
setDiscovery
-