AS AgentScopeAPI 手册 / API Reference

NacosA2aDiscoveryProperties

public class NacosA2aDiscoveryProperties
源码Source io/agentscope/spring/boot/nacos/properties/a2a/NacosA2aDiscoveryProperties.java:36–53

Nacos A 2 a Discovery 属性,支持智能体之间的发现、委派与协作。位于 io.agentscope.spring.boot.nacos.properties.a2a 包。核心成员包括 isEnabled、setEnabled。

A2a properties for discovering from Nacos A2A Discovery.

This class contains the sub properties for discovering Agents from Nacos A2A Registry. To help developers and users control the discover behaviors according to their requests.

Example with yaml:

`agentscope:
a2a:
nacos:
discovery:
enabled: true
`

The registry properties see NacosA2aRegistryProperties.

方法摘要Method Summary

方法Method说明Description
public boolean isEnabled()
判断是否已启用。
Returns whether the enabled.
public void setEnabled(boolean enabled)
设置已启用。
Sets the enabled.

方法详情Method Detail

isEnabled

public boolean isEnabled()

判断是否已启用。

Returns whether the enabled.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/spring/boot/nacos/properties/a2a/NacosA2aDiscoveryProperties.java:46–48

setEnabled

public void setEnabled(boolean enabled)

设置已启用。

Sets the enabled.

参数Parameters
名称Name类型Type说明Description
enabledboolean已启用(类型 `boolean`)。The enabled.
源码Source io/agentscope/spring/boot/nacos/properties/a2a/NacosA2aDiscoveryProperties.java:50–52
基于官方固定版本源码静态生成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.