AS AgentScopeAPI 手册 / API Reference

TransportPropertiesAttribute

public enum TransportPropertiesAttribute
源码Source io/agentscope/extensions/runtime/a2a/nacos/constant/Constants.java:36–65

定义传输层属性属性相关取值的枚举。位于 io.agentscope.extensions.runtime.a2a.nacos.constant 包。核心成员包括 getPropertyKey、getByEnvKey、HOST、PORT、PATH、PROTOCOL。

A enum in io.agentscope.extensions.runtime.a2a.nacos.constant that defines enum values used when components supports discovery, delegation and collaboration between agents. Declared in io.agentscope.extensions.runtime.a2a.nacos.constant.

枚举常量摘要Enum Constant Summary

常量Constant说明Description
HOST
执行 `HOST` 方法。
Performs the HOST operation.
PORT
执行 `PORT` 方法。
Performs the PORT operation.
PATH
执行路径相关操作。
Performs the PATH operation.
PROTOCOL
执行协议相关操作。
Performs the PROTOCOL operation.
QUERY
执行查询相关操作。
Performs the QUERY operation.
SUPPORT_TLS
执行SUPPORT TLS相关操作。
Performs the SUPPORT TLS operation.

方法摘要Method Summary

方法Method说明Description
public String getPropertyKey()
获取属性键。
Returns the property key.
public static TransportPropertiesAttribute getByEnvKey(String envKey)
static
获取 `getByEnvKey`。
Returns the by env key.

枚举常量详情Enum Constant Detail

HOST

HOST("HOST", "host")
staticfinal

执行 HOST 方法。

Performs the HOST operation.

源码Source io/agentscope/extensions/runtime/a2a/nacos/constant/Constants.java:37

PORT

PORT("PORT", "port")
staticfinal

执行 PORT 方法。

Performs the PORT operation.

源码Source io/agentscope/extensions/runtime/a2a/nacos/constant/Constants.java:38

PATH

PATH("PATH", "path")
staticfinal

执行路径相关操作。

Performs the PATH operation.

源码Source io/agentscope/extensions/runtime/a2a/nacos/constant/Constants.java:39

PROTOCOL

PROTOCOL("PROTOCOL", "protocol")
staticfinal

执行协议相关操作。

Performs the PROTOCOL operation.

源码Source io/agentscope/extensions/runtime/a2a/nacos/constant/Constants.java:40

QUERY

QUERY("QUERY", "query")
staticfinal

执行查询相关操作。

Performs the QUERY operation.

源码Source io/agentscope/extensions/runtime/a2a/nacos/constant/Constants.java:41

SUPPORT_TLS

SUPPORT_TLS("SUPPORTTLS", "supportTls")
staticfinal

执行SUPPORT TLS相关操作。

Performs the SUPPORT TLS operation.

源码Source io/agentscope/extensions/runtime/a2a/nacos/constant/Constants.java:42

方法详情Method Detail

getPropertyKey

public String getPropertyKey()

获取属性键。

Returns the property key.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/runtime/a2a/nacos/constant/Constants.java:53–55

getByEnvKey

public static TransportPropertiesAttribute getByEnvKey(String envKey)
static

获取 getByEnvKey。

Returns the by env key.

参数Parameters
名称Name类型Type说明Description
envKeyStringenv 键(类型 `String`)。The env key.
返回Returns TransportPropertiesAttribute
返回TransportPropertiesAttribute。Returns transport properties attribute.
源码Source io/agentscope/extensions/runtime/a2a/nacos/constant/Constants.java:57–64
基于官方固定版本源码静态生成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.