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.
TransportProperties返回TransportProperties。the TransportProperties representation of this custom properties.
源码Source
io/agentscope/core/a2a/server/transport/CustomTransportProperties.java:27setDeploymentProperties
public void setDeploymentProperties(DeploymentProperties deploymentProperties)
设置部署属性。
Sets the deployment properties.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
deploymentProperties | DeploymentProperties | 部署属性。the deployment properties. |
源码Source
io/agentscope/core/a2a/server/transport/CustomTransportProperties.java:33isEnabled
public boolean isEnabled()
判断是否此传输层是已启用。
Whether this transport is enabled.
boolean返回布尔值,表示判断结果。true if enabled, false otherwise.
源码Source
io/agentscope/core/a2a/server/transport/CustomTransportProperties.java:39