AS AgentScopeAPI 手册 / API Reference

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–53

Nacos 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
nacosServerPropertiesNacosServerPropertiesNacos 服务端属性(类型 `NacosServerProperties`)。The nacos server properties.
返回Returns A2aService
返回A2aService。Returns a 2 a service.
抛出Throws
  • NacosException 可能抛出 `NacosException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/extensions/runtime/a2a/nacos/autoconfigure/NacosA2aPropertiesAutoConfiguration.java:47–51
基于官方固定版本源码静态生成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.