AS AgentScopeAPI 手册 / API Reference

A2aCommonProperties

@ConfigurationProperties(Constants.A2A_SERVER_PREFIX) public class A2aCommonProperties
源码Source io/agentscope/spring/boot/a2a/properties/A2aCommonProperties.java:24–91

用于部署的A2A 服务端配置。位于 io.agentscope.spring.boot.a2a.properties 包。核心成员包括 isEnabled、setEnabled、getAgentCompletionTimeoutSeconds、setAgentCompletionTimeoutSeconds、getConsumptionCompletionTimeoutSeconds、setConsumptionCompletionTimeoutSeconds。

A2A Server configuration for deployment.

构造器摘要Constructor Summary

构造器Constructor说明Description
public A2aCommonProperties()
初始化 `A2aCommonProperties` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public boolean isEnabled()
判断是否已启用。
Returns whether the enabled.
public void setEnabled(boolean enabled)
设置已启用。
Sets the enabled.
public Integer getAgentCompletionTimeoutSeconds()
获取智能体补全超时秒。
Returns the agent completion timeout seconds.
public void setAgentCompletionTimeoutSeconds(Integer agentCompletionTimeoutSeconds)
设置智能体补全超时秒。
Sets the agent completion timeout seconds.
public Integer getConsumptionCompletionTimeoutSeconds()
获取 `getConsumptionCompletionTimeoutSeconds`。
Returns the consumption completion timeout seconds.
public void setConsumptionCompletionTimeoutSeconds(Integer consumptionCompletionTimeoutSeconds)
设置 `setConsumptionCompletionTimeoutSeconds`。
Sets the consumption completion timeout seconds.
public boolean isCompleteWithMessage()
判断是否 `isCompleteWithMessage`。
Returns whether the complete with message.
public void setCompleteWithMessage(boolean completeWithMessage)
设置 `setCompleteWithMessage`。
Sets the complete with message.
public boolean isRequireInnerMessage()
判断是否 `isRequireInnerMessage`。
Returns whether the require inner message.
public void setRequireInnerMessage(boolean requireInnerMessage)
设置 `setRequireInnerMessage`。
Sets the require inner message.

构造器详情Constructor Detail

A2aCommonProperties

public A2aCommonProperties()

初始化 A2aCommonProperties 实例。

Creates a new instance.

源码Source io/agentscope/spring/boot/a2a/properties/A2aCommonProperties.java:49

方法详情Method Detail

isEnabled

public boolean isEnabled()

判断是否已启用。

Returns whether the enabled.

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

setEnabled

public void setEnabled(boolean enabled)

设置已启用。

Sets the enabled.

参数Parameters
名称Name类型Type说明Description
enabledboolean已启用(类型 `boolean`)。The enabled.
源码Source io/agentscope/spring/boot/a2a/properties/A2aCommonProperties.java:55–57

getAgentCompletionTimeoutSeconds

public Integer getAgentCompletionTimeoutSeconds()

获取智能体补全超时秒。

Returns the agent completion timeout seconds.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/spring/boot/a2a/properties/A2aCommonProperties.java:59–61

setAgentCompletionTimeoutSeconds

public void setAgentCompletionTimeoutSeconds(Integer agentCompletionTimeoutSeconds)

设置智能体补全超时秒。

Sets the agent completion timeout seconds.

参数Parameters
名称Name类型Type说明Description
agentCompletionTimeoutSecondsInteger智能体补全超时秒(类型 `Integer`)。The agent completion timeout seconds.
源码Source io/agentscope/spring/boot/a2a/properties/A2aCommonProperties.java:63–65

getConsumptionCompletionTimeoutSeconds

public Integer getConsumptionCompletionTimeoutSeconds()

获取 getConsumptionCompletionTimeoutSeconds。

Returns the consumption completion timeout seconds.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/spring/boot/a2a/properties/A2aCommonProperties.java:67–69

setConsumptionCompletionTimeoutSeconds

public void setConsumptionCompletionTimeoutSeconds(Integer consumptionCompletionTimeoutSeconds)

设置 setConsumptionCompletionTimeoutSeconds。

Sets the consumption completion timeout seconds.

参数Parameters
名称Name类型Type说明Description
consumptionCompletionTimeoutSecondsIntegerconsumption 补全超时秒(类型 `Integer`)。The consumption completion timeout seconds.
源码Source io/agentscope/spring/boot/a2a/properties/A2aCommonProperties.java:71–74

isCompleteWithMessage

public boolean isCompleteWithMessage()

判断是否 isCompleteWithMessage。

Returns whether the complete with message.

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

setCompleteWithMessage

public void setCompleteWithMessage(boolean completeWithMessage)

设置 setCompleteWithMessage。

Sets the complete with message.

参数Parameters
名称Name类型Type说明Description
completeWithMessagebooleancomplete 使用消息(类型 `boolean`)。The complete with message.
源码Source io/agentscope/spring/boot/a2a/properties/A2aCommonProperties.java:80–82

isRequireInnerMessage

public boolean isRequireInnerMessage()

判断是否 isRequireInnerMessage。

Returns whether the require inner message.

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

setRequireInnerMessage

public void setRequireInnerMessage(boolean requireInnerMessage)

设置 setRequireInnerMessage。

Sets the require inner message.

参数Parameters
名称Name类型Type说明Description
requireInnerMessagebooleanrequire Inner 消息(类型 `boolean`)。The require inner message.
源码Source io/agentscope/spring/boot/a2a/properties/A2aCommonProperties.java:88–90
基于官方固定版本源码静态生成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.