NacosA2aDiscoveryProperties
public class NacosA2aDiscoveryProperties
源码Source
io/agentscope/spring/boot/nacos/properties/a2a/NacosA2aDiscoveryProperties.java:36–53Nacos 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.
boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/spring/boot/nacos/properties/a2a/NacosA2aDiscoveryProperties.java:46–48setEnabled
public void setEnabled(boolean enabled)
设置已启用。
Sets the enabled.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
enabled | boolean | 已启用(类型 `boolean`)。The enabled. |
源码Source
io/agentscope/spring/boot/nacos/properties/a2a/NacosA2aDiscoveryProperties.java:50–52