AgentScopeA2aNacosProperties
@ConfigurationProperties(prefix = NacosConstants.A2A_NACOS_PREFIX) public class AgentScopeA2aNacosProperties extends BaseNacosProperties
io/agentscope/spring/boot/nacos/properties/a2a/AgentScopeA2aNacosProperties.java:60–94AgentScope A 2 a Nacos 属性,支持智能体之间的发现、委派与协作。位于 io.agentscope.spring.boot.nacos.properties.a2a 包,继承自 BaseNacosProperties。核心成员包括 getRegistry、setRegistry、getDiscovery、setDiscovery。
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.
方法摘要Method Summary
方法详情Method Detail
getRegistry
public NacosA2aRegistryProperties getRegistry()
获取注册表。
Returns the registry.
NacosA2aRegistryPropertiesio/agentscope/spring/boot/nacos/properties/a2a/AgentScopeA2aNacosProperties.java:79–81setRegistry
public void setRegistry(NacosA2aRegistryProperties registry)
设置注册表。
Sets the registry.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
registry | NacosA2aRegistryProperties | 注册表(类型 `NacosA2aRegistryProperties`)。The registry. |
io/agentscope/spring/boot/nacos/properties/a2a/AgentScopeA2aNacosProperties.java:83–85getDiscovery
public NacosA2aDiscoveryProperties getDiscovery()
获取 getDiscovery。
Returns the discovery.
NacosA2aDiscoveryPropertiesio/agentscope/spring/boot/nacos/properties/a2a/AgentScopeA2aNacosProperties.java:87–89setDiscovery
public void setDiscovery(NacosA2aDiscoveryProperties discovery)
设置 setDiscovery。
Sets the discovery.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
discovery | NacosA2aDiscoveryProperties | discovery(类型 `NacosA2aDiscoveryProperties`)。The discovery. |
io/agentscope/spring/boot/nacos/properties/a2a/AgentScopeA2aNacosProperties.java:91–93