AS AgentScopeAPI 手册 / API Reference

AgentScopeA2aNacosProperties

@ConfigurationProperties(prefix = NacosConstants.A2A_NACOS_PREFIX) public class AgentScopeA2aNacosProperties extends BaseNacosProperties
源码Source io/agentscope/spring/boot/nacos/properties/a2a/AgentScopeA2aNacosProperties.java:60–94

AgentScope 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说明Description
public NacosA2aRegistryProperties getRegistry()
获取注册表。
Returns the registry.
public void setRegistry(NacosA2aRegistryProperties registry)
设置注册表。
Sets the registry.
public NacosA2aDiscoveryProperties getDiscovery()
获取 `getDiscovery`。
Returns the discovery.
public void setDiscovery(NacosA2aDiscoveryProperties discovery)
设置 `setDiscovery`。
Sets the discovery.

方法详情Method Detail

getRegistry

public NacosA2aRegistryProperties getRegistry()

获取注册表。

Returns the registry.

返回Returns NacosA2aRegistryProperties
返回NacosA2aRegistryProperties。Returns nacos a 2 a registry properties.
源码Source io/agentscope/spring/boot/nacos/properties/a2a/AgentScopeA2aNacosProperties.java:79–81

setRegistry

public void setRegistry(NacosA2aRegistryProperties registry)

设置注册表。

Sets the registry.

参数Parameters
名称Name类型Type说明Description
registryNacosA2aRegistryProperties注册表(类型 `NacosA2aRegistryProperties`)。The registry.
源码Source io/agentscope/spring/boot/nacos/properties/a2a/AgentScopeA2aNacosProperties.java:83–85

getDiscovery

public NacosA2aDiscoveryProperties getDiscovery()

获取 getDiscovery。

Returns the discovery.

返回Returns NacosA2aDiscoveryProperties
返回NacosA2aDiscoveryProperties。Returns nacos a 2 a discovery properties.
源码Source io/agentscope/spring/boot/nacos/properties/a2a/AgentScopeA2aNacosProperties.java:87–89

setDiscovery

public void setDiscovery(NacosA2aDiscoveryProperties discovery)

设置 setDiscovery。

Sets the discovery.

参数Parameters
名称Name类型Type说明Description
discoveryNacosA2aDiscoveryPropertiesdiscovery(类型 `NacosA2aDiscoveryProperties`)。The discovery.
源码Source io/agentscope/spring/boot/nacos/properties/a2a/AgentScopeA2aNacosProperties.java:91–93

继承成员Inherited Members

基于官方固定版本源码静态生成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.