AS AgentScopeAPI 手册 / API Reference

NacosA2aRegistryTransportProperties

public record NacosA2aRegistryTransportProperties(String transport, String host, int port, String path, boolean supportTls, String protocol, String query)
源码Source io/agentscope/extensions/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:31–133

承载 Nacos A 2 a 注册表传输层属性数据的记录类型。位于 io.agentscope.extensions.nacos.a2a.registry 包。核心成员包括 transport、host、port、path、supportTls、protocol。

Properties for A2A Transports Endpoint registry to Nacos.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
transportString
执行传输层相关操作。
Performs the transport operation.
hostString
执行 `host` 方法。
Performs the host operation.
portint
执行 `port` 方法。
Performs the port operation.
pathString
执行路径相关操作。
Performs the path operation.
supportTlsboolean
执行 `supportTls` 方法。
Performs the support tls operation.
protocolString
执行协议相关操作。
Performs the protocol operation.
queryString
执行查询相关操作。
Performs the query 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 static Builder builder()
static
返回构建器实例。
Returns the builder.
public static Builder from(AgentInterface agentInterface)
static
创建构建器实例来自 AgentInterface 对象。
Creates a Builder instance from an AgentInterface object.

记录组件详情Record Component Detail

transport

String transport

执行传输层相关操作。

Performs the transport operation.

源码Source io/agentscope/extensions/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:31–133

host

String host

执行 host 方法。

Performs the host operation.

源码Source io/agentscope/extensions/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:31–133

port

int port

执行 port 方法。

Performs the port operation.

源码Source io/agentscope/extensions/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:31–133

path

String path

执行路径相关操作。

Performs the path operation.

源码Source io/agentscope/extensions/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:31–133

supportTls

boolean supportTls

执行 supportTls 方法。

Performs the support tls operation.

源码Source io/agentscope/extensions/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:31–133

protocol

String protocol

执行协议相关操作。

Performs the protocol operation.

源码Source io/agentscope/extensions/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:31–133

query

String query

执行查询相关操作。

Performs the query operation.

源码Source io/agentscope/extensions/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:31–133

方法详情Method Detail

builder

public static Builder builder()
static

返回构建器实例。

Returns the builder.

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

from

public static Builder from(AgentInterface agentInterface)
static

创建构建器实例来自 AgentInterface 对象。

Creates a Builder instance from an AgentInterface object.

参数Parameters
名称Name类型Type说明Description
agentInterfaceAgentInterface智能体 Interface(类型 `AgentInterface`)。the AgentInterface to extract information from
返回Returns Builder
返回当前实例,以支持链式调用。a Builder instance populated with values from the AgentInterface
抛出Throws
  • NacosRuntimeException 当if URL in agentInterface是无效时抛出 `NacosRuntimeException`。if the URL in agentInterface is invalid
源码Source io/agentscope/extensions/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:54–70

嵌套类详情Nested Class Detail

Builder

public static class Builder

构建器,用于构建并配置目标实例。位于 io.agentscope.extensions.nacos.a2a.registry 包。核心成员包括 transport、host、port、path、supportTls、protocol。

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.