NacosA2aPropertiesAutoConfiguration
@AutoConfiguration(before = NacosA2aRegistryAutoConfiguration.class) @EnableConfigurationProperties({NacosA2aProperties.class, NacosServerProperties.class}) @ConditionalOnProperty(prefix = Constants.NACOS_PREFIX, value = ".enabled", havingValue = "true", matchIfMissing = true) @Conditional(NacosA2aProtocolConfigNonExistCondition.class) public class NacosA2aPropertiesAutoConfiguration
源码Source
io/agentscope/extensions/runtime/a2a/nacos/autoconfigure/NacosA2aPropertiesAutoConfiguration.java:41–53Nacos A 2 a 属性 Auto 配置,保存相关配置项。位于 io.agentscope.extensions.runtime.a2a.nacos.autoconfigure 包。核心成员包括 a2aService。
The AutoConfiguration for A2A Nacos Client.
Mutual exclusion with NacosA2aProtocolConfigAutoConfiguration, used by start runtime with
sprint-boot-starter-runtime-a2a.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public A2aService a2aService(NacosServerProperties nacosServerProperties) throws NacosException | 设置a 2 a 服务。 Performs the a 2 a service operation. |
方法详情Method Detail
a2aService
public A2aService a2aService(NacosServerProperties nacosServerProperties) throws NacosException
设置a 2 a 服务。
Performs the a 2 a service operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
nacosServerProperties | NacosServerProperties | Nacos 服务端属性(类型 `NacosServerProperties`)。The nacos server properties. |
A2aService返回A2aService。Returns a 2 a service.
NacosException可能抛出 `NacosException`。Thrown when the operation cannot be completed.
源码Source
io/agentscope/extensions/runtime/a2a/nacos/autoconfigure/NacosA2aPropertiesAutoConfiguration.java:47–51