AS AgentScopeAPI 手册 / API Reference

CustomTransportProperties

public interface CustomTransportProperties
源码Source io/agentscope/core/a2a/server/transport/CustomTransportProperties.java:21–40

定义自定义传输层属性契约的接口。位于 io.agentscope.core.a2a.server.transport 包。核心成员包括 toTransportProperties、setDeploymentProperties、isEnabled。

Interface for custom transport properties that can be converted to standard TransportProperties.

方法摘要Method Summary

方法Method说明Description
public TransportProperties toTransportProperties()
返回到传输层属性。
Converts this custom properties object to standard TransportProperties.
public void setDeploymentProperties(DeploymentProperties deploymentProperties)
设置部署属性。
Sets the deployment properties.
public boolean isEnabled()
判断是否此传输层是已启用。
Whether this transport is enabled.

方法详情Method Detail

toTransportProperties

public TransportProperties toTransportProperties()

返回到传输层属性。

Converts this custom properties object to standard TransportProperties.

返回Returns TransportProperties
返回TransportProperties。the TransportProperties representation of this custom properties.
源码Source io/agentscope/core/a2a/server/transport/CustomTransportProperties.java:27

setDeploymentProperties

public void setDeploymentProperties(DeploymentProperties deploymentProperties)

设置部署属性。

Sets the deployment properties.

参数Parameters
名称Name类型Type说明Description
deploymentPropertiesDeploymentProperties部署属性。the deployment properties.
源码Source io/agentscope/core/a2a/server/transport/CustomTransportProperties.java:33

isEnabled

public boolean isEnabled()

判断是否此传输层是已启用。

Whether this transport is enabled.

返回Returns boolean
返回布尔值,表示判断结果。true if enabled, false otherwise.
源码Source io/agentscope/core/a2a/server/transport/CustomTransportProperties.java:39
基于官方固定版本源码静态生成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.