AS AgentScopeAPI 手册 / API Reference

NacosA2aRegistryProperties

public record NacosA2aRegistryProperties(boolean isSetAsLatest, boolean enabledRegisterEndpoint, String overwritePreferredTransport, Map<String, NacosA2aRegistryTransportProperties> transportProperties)
源码Source io/agentscope/extensions/nacos/a2a/registry/NacosA2aRegistryProperties.java:29–80

承载 Nacos A 2 a 注册表属性数据的记录类型。位于 io.agentscope.extensions.nacos.a2a.registry 包。核心成员包括 isSetAsLatest、enabledRegisterEndpoint、overwritePreferredTransport、transportProperties、addTransport、builder。

Properties for A2A AgentCard and Endpoint registry to Nacos.

TODO extract transportProperties out from NacosA2aRegistryProperties.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
isSetAsLatestboolean
判断是否 `isSetAsLatest`。
Returns whether the set as latest.
enabledRegisterEndpointboolean
执行已启用注册端点相关操作。
Performs the enabled register endpoint operation.
overwritePreferredTransportString
执行 `overwritePreferredTransport` 方法。
Performs the overwrite preferred transport operation.
transportPropertiesMap<String, NacosA2aRegistryTransportProperties>
执行传输层属性相关操作。
Performs the transport properties operation.

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
Builder类class
构建器,用于构建并配置目标实例。
A class in io.agentscope.extensions.nacos.a2a.registry that supports discovery, delegation and collaboration between agents.

方法摘要Method Summary

方法Method说明Description
public void addTransport(NacosA2aRegistryTransportProperties transport)
添加传输层。
Adds the transport.
public static Builder builder()
static
返回构建器实例。
Returns the builder.

记录组件详情Record Component Detail

isSetAsLatest

boolean isSetAsLatest

判断是否 isSetAsLatest。

Returns whether the set as latest.

源码Source io/agentscope/extensions/nacos/a2a/registry/NacosA2aRegistryProperties.java:29–80

enabledRegisterEndpoint

boolean enabledRegisterEndpoint

执行已启用注册端点相关操作。

Performs the enabled register endpoint operation.

源码Source io/agentscope/extensions/nacos/a2a/registry/NacosA2aRegistryProperties.java:29–80

overwritePreferredTransport

String overwritePreferredTransport

执行 overwritePreferredTransport 方法。

Performs the overwrite preferred transport operation.

源码Source io/agentscope/extensions/nacos/a2a/registry/NacosA2aRegistryProperties.java:29–80

transportProperties

Map<String, NacosA2aRegistryTransportProperties> transportProperties

执行传输层属性相关操作。

Performs the transport properties operation.

源码Source io/agentscope/extensions/nacos/a2a/registry/NacosA2aRegistryProperties.java:29–80

方法详情Method Detail

addTransport

public void addTransport(NacosA2aRegistryTransportProperties transport)

添加传输层。

Adds the transport.

参数Parameters
名称Name类型Type说明Description
transportNacosA2aRegistryTransportProperties传输层(类型 `NacosA2aRegistryTransportProperties`)。The transport.
源码Source io/agentscope/extensions/nacos/a2a/registry/NacosA2aRegistryProperties.java:32–34

builder

public static Builder builder()
static

返回构建器实例。

Returns the builder.

返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/extensions/nacos/a2a/registry/NacosA2aRegistryProperties.java:36–38

嵌套类详情Nested Class Detail

Builder

public static class Builder

构建器,用于构建并配置目标实例。位于 io.agentscope.extensions.nacos.a2a.registry 包。核心成员包括 setAsLatest、enabledRegisterEndpoint、overwritePreferredTransport、addTransport、build。

A class in io.agentscope.extensions.nacos.a2a.registry that supports discovery, delegation and collaboration between agents. Declared in io.agentscope.extensions.nacos.a2a.registry.

基于官方固定版本源码静态生成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.