AS AgentScopeAPI 手册 / API Reference

NacosA2aTransportPropertiesEnvParser

public class NacosA2aTransportPropertiesEnvParser
源码Source io/agentscope/core/nacos/a2a/registry/NacosA2aTransportPropertiesEnvParser.java:41–135

用于NacosA2aRegistryTransportProperties来自环境的解析器。位于 io.agentscope.core.nacos.a2a.registry 包。核心成员包括 getTransportProperties。

Parser for NacosA2aRegistryTransportProperties from Environment.

The ENV of A2A transport properties is prefixed with Constants#PROPERTIES_ENV_PREFIX, and is appended with {TRANSPORT} and {ATTRIBUTE}. Such as NACOS_A2A_AGENT_JSONRPC_HOST=127.0.0.1.

This parser will parse the environment variables which are prefixed with Constants#PROPERTIES_ENV_PREFIX and convert them into NacosA2aRegistryTransportProperties. These variables will be split by _ excluding the prefix and the first part is the transport name, the second part is the attribute name. If there are duplicate keys in the environment variables, the last one will be used.

方法摘要Method Summary

方法Method说明Description
public Map<String, NacosA2aRegistryTransportProperties> getTransportProperties()
获取传输层属性。
Retrieves transport properties from environment variables and converts them to a map of `NacosA2aRegistryTransportProperties`.

方法详情Method Detail

getTransportProperties

public Map<String, NacosA2aRegistryTransportProperties> getTransportProperties()

获取传输层属性。

Retrieves transport properties from environment variables and converts them to a map of NacosA2aRegistryTransportProperties.

返回Returns Map<String, NacosA2aRegistryTransportProperties>
返回映射。a map where keys are transport names and values are corresponding NacosA2aRegistryTransportProperties objects
源码Source io/agentscope/core/nacos/a2a/registry/NacosA2aTransportPropertiesEnvParser.java:56–58
基于官方固定版本源码静态生成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.