NacosA2aRegistryProperties
public record NacosA2aRegistryProperties( boolean isSetAsLatest, boolean enabledRegisterEndpoint, String overwritePreferredTransport, Map<String, NacosA2aRegistryTransportProperties> transportProperties)
io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryProperties.java:34–140承载 Nacos A 2 a 注册表属性数据的记录类型。位于 io.agentscope.core.nacos.a2a.registry 包。核心成员包括 isSetAsLatest、enabledRegisterEndpoint、overwritePreferredTransport、transportProperties、addTransport、builder。
Properties for A2A AgentCard and Endpoint registry to Nacos.
Property description:
-
isSetAsLatest: Always register the A2A service as the latest version, default isfalse. -
enabledRegisterEndpoint: Automatically register allTransportas Endpoints for this A2A service, default istrue. When set tofalse, only Agent Card will be published. -
overwritePreferredTransport: When registering A2A services, use thisTransportto override thepreferredTransportandurlin the Agent Card, default isnull.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
isSetAsLatest | boolean | 判断是否 `isSetAsLatest`。 Returns whether the set as latest. |
enabledRegisterEndpoint | boolean | 执行已启用注册端点相关操作。 Performs the enabled register endpoint operation. |
overwritePreferredTransport | String | 执行 `overwritePreferredTransport` 方法。 Performs the overwrite preferred transport operation. |
transportProperties | Map<String, NacosA2aRegistryTransportProperties> | 执行传输层属性相关操作。 Performs the transport properties operation. |
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Builder | 类class | 构建器用于`NacosA2aRegistryProperties`。 The Builder for `NacosA2aRegistryProperties`. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public void addTransport(NacosA2aRegistryTransportProperties transport) | 添加传输层。 Adds properties of transport to the registry. |
public static Builder builder()static | 创建新的构建器实例用于`NacosA2aRegistryProperties`。 Creates a new builder instance for `NacosA2aRegistryProperties`. |
public static Builder builder(NacosA2aRegistryProperties prototype)static | 返回构建器实例。 Creates a new builder instance for `NacosA2aRegistryProperties` from an existing prototype instance. |
记录组件详情Record Component Detail
isSetAsLatest
boolean isSetAsLatest判断是否 isSetAsLatest。
Returns whether the set as latest.
io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryProperties.java:34–140enabledRegisterEndpoint
boolean enabledRegisterEndpoint执行已启用注册端点相关操作。
Performs the enabled register endpoint operation.
io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryProperties.java:34–140overwritePreferredTransport
String overwritePreferredTransport执行 overwritePreferredTransport 方法。
Performs the overwrite preferred transport operation.
io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryProperties.java:34–140transportProperties
Map<String, NacosA2aRegistryTransportProperties> transportProperties执行传输层属性相关操作。
Performs the transport properties operation.
io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryProperties.java:34–140方法详情Method Detail
addTransport
public void addTransport(NacosA2aRegistryTransportProperties transport)
添加传输层。
Adds properties of transport to the registry.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
transport | NacosA2aRegistryTransportProperties | 传输层的属性。properties of transport |
io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryProperties.java:47–49builder
public static Builder builder()
创建新的构建器实例用于NacosA2aRegistryProperties。
Creates a new builder instance for NacosA2aRegistryProperties.
Builderio/agentscope/core/nacos/a2a/registry/NacosA2aRegistryProperties.java:56–58builder
public static Builder builder(NacosA2aRegistryProperties prototype)
返回构建器实例。
Creates a new builder instance for NacosA2aRegistryProperties from an existing prototype instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
prototype | NacosA2aRegistryProperties | prototype(类型 `NacosA2aRegistryProperties`)。the prototype instance to copy properties from |
Builderio/agentscope/core/nacos/a2a/registry/NacosA2aRegistryProperties.java:68–74嵌套类详情Nested Class Detail
Builder
public static class Builder构建器用于NacosA2aRegistryProperties。位于 io.agentscope.core.nacos.a2a.registry 包。核心成员包括 setAsLatest、enabledRegisterEndpoint、overwritePreferredTransport、build。
The Builder for NacosA2aRegistryProperties.