AS AgentScopeAPI 手册 / API Reference

AgentProtocolProperties

@ConfigurationProperties(prefix = "agentscope.agent-protocol") public class AgentProtocolProperties
源码Source io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:22–102

智能体协议属性,为框架提供通用类型与基础能力。位于 io.agentscope.extensions.agentprotocol 包。核心成员包括 isEnabled、setEnabled、isStreamingEnabled、setStreamingEnabled、isHitlEnabled、setHitlEnabled。

Configuration for the AgentScope task HTTP protocol endpoints.

方法摘要Method Summary

方法Method说明Description
public boolean isEnabled()
判断是否已启用。
Returns whether the enabled.
public void setEnabled(boolean enabled)
设置已启用。
Sets the enabled.
public boolean isStreamingEnabled()
判断是否流式已启用。
Returns whether the streaming enabled.
public void setStreamingEnabled(boolean streamingEnabled)
设置流式已启用。
Sets the streaming enabled.
public boolean isHitlEnabled()
判断是否 `isHitlEnabled`。
Returns whether the hitl enabled.
public void setHitlEnabled(boolean hitlEnabled)
设置 `setHitlEnabled`。
Sets the hitl enabled.
public int getSseReplayBufferSize()
获取 `getSseReplayBufferSize`。
Returns the sse replay buffer size.
public void setSseReplayBufferSize(int sseReplayBufferSize)
设置 `setSseReplayBufferSize`。
Sets the sse replay buffer size.
public long getSseTimeoutMs()
获取SSE 超时 Ms。
Returns the sse timeout ms.
public void setSseTimeoutMs(long sseTimeoutMs)
设置SSE 超时 Ms。
Sets the sse timeout ms.
public String getTaskStorePath()
获取任务存储路径。
Resolved control-plane path.
public void setTaskStorePath(String taskStorePath)
设置任务存储路径。
Sets the task store path.

方法详情Method Detail

isEnabled

public boolean isEnabled()

判断是否已启用。

Returns whether the enabled.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:47–49

setEnabled

public void setEnabled(boolean enabled)

设置已启用。

Sets the enabled.

参数Parameters
名称Name类型Type说明Description
enabledboolean已启用(类型 `boolean`)。The enabled.
源码Source io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:51–53

isStreamingEnabled

public boolean isStreamingEnabled()

判断是否流式已启用。

Returns whether the streaming enabled.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:55–57

setStreamingEnabled

public void setStreamingEnabled(boolean streamingEnabled)

设置流式已启用。

Sets the streaming enabled.

参数Parameters
名称Name类型Type说明Description
streamingEnabledboolean流式已启用(类型 `boolean`)。The streaming enabled.
源码Source io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:59–61

isHitlEnabled

public boolean isHitlEnabled()

判断是否 isHitlEnabled。

Returns whether the hitl enabled.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:63–65

setHitlEnabled

public void setHitlEnabled(boolean hitlEnabled)

设置 setHitlEnabled。

Sets the hitl enabled.

参数Parameters
名称Name类型Type说明Description
hitlEnabledbooleanhitl 已启用(类型 `boolean`)。The hitl enabled.
源码Source io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:67–69

getSseReplayBufferSize

public int getSseReplayBufferSize()

获取 getSseReplayBufferSize。

Returns the sse replay buffer size.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:71–73

setSseReplayBufferSize

public void setSseReplayBufferSize(int sseReplayBufferSize)

设置 setSseReplayBufferSize。

Sets the sse replay buffer size.

参数Parameters
名称Name类型Type说明Description
sseReplayBufferSizeintSSE Replay Buffer 大小(类型 `int`)。The sse replay buffer size.
源码Source io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:75–77

getSseTimeoutMs

public long getSseTimeoutMs()

获取SSE 超时 Ms。

Returns the sse timeout ms.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:79–81

setSseTimeoutMs

public void setSseTimeoutMs(long sseTimeoutMs)

设置SSE 超时 Ms。

Sets the sse timeout ms.

参数Parameters
名称Name类型Type说明Description
sseTimeoutMslongSSE 超时 Ms(类型 `long`)。The sse timeout ms.
源码Source io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:83–85

getTaskStorePath

public String getTaskStorePath()

获取任务存储路径。

Resolved control-plane path.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:91–97

setTaskStorePath

public void setTaskStorePath(String taskStorePath)

设置任务存储路径。

Sets the task store path.

参数Parameters
名称Name类型Type说明Description
taskStorePathString任务存储路径(类型 `String`)。The task store path.
源码Source io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:99–101
基于官方固定版本源码静态生成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.