AS AgentScopeAPI 手册 / API Reference

JSONRPCProperties

@ConfigurationProperties(Constants.A2A_JSON_RPC_SERVER_PREFIX) public class JSONRPCProperties implements CustomTransportProperties
源码Source io/agentscope/spring/boot/a2a/properties/JSONRPCProperties.java:27–66

用于JSON-RPC 传输层的配置属性。位于 io.agentscope.spring.boot.a2a.properties 包,实现 CustomTransportProperties。核心成员包括 toTransportProperties、setDeploymentProperties、isEnabled、setEnabled。

Configuration properties for JSON-RPC transport.

方法摘要Method Summary

方法Method说明Description
public TransportProperties toTransportProperties()
转换到`TransportProperties`。
Converts to `TransportProperties`.
public void setDeploymentProperties(DeploymentProperties deploymentProperties)
设置部署属性。
Sets the deployment properties.
public boolean isEnabled()
判断是否已启用。
Returns whether the enabled.
public void setEnabled(boolean enabled)
设置已启用。
Sets the enabled.

方法详情Method Detail

toTransportProperties

public TransportProperties toTransportProperties()

转换到TransportProperties。

Converts to TransportProperties.

返回Returns TransportProperties
传输层属性。the transport properties
源码Source io/agentscope/spring/boot/a2a/properties/JSONRPCProperties.java:44–51

setDeploymentProperties

public void setDeploymentProperties(DeploymentProperties deploymentProperties)

设置部署属性。

Sets the deployment properties.

参数Parameters
名称Name类型Type说明Description
deploymentPropertiesDeploymentProperties部署属性(类型 `DeploymentProperties`)。The deployment properties.
源码Source io/agentscope/spring/boot/a2a/properties/JSONRPCProperties.java:53–56

isEnabled

public boolean isEnabled()

判断是否已启用。

Returns whether the enabled.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/spring/boot/a2a/properties/JSONRPCProperties.java:58–61

setEnabled

public void setEnabled(boolean enabled)

设置已启用。

Sets the enabled.

参数Parameters
名称Name类型Type说明Description
enabledboolean已启用(类型 `boolean`)。The enabled.
源码Source io/agentscope/spring/boot/a2a/properties/JSONRPCProperties.java:63–65
基于官方固定版本源码静态生成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.