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.
boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:47–49setEnabled
public void setEnabled(boolean enabled)
设置已启用。
Sets the enabled.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
enabled | boolean | 已启用(类型 `boolean`)。The enabled. |
源码Source
io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:51–53isStreamingEnabled
public boolean isStreamingEnabled()
判断是否流式已启用。
Returns whether the streaming enabled.
boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:55–57setStreamingEnabled
public void setStreamingEnabled(boolean streamingEnabled)
设置流式已启用。
Sets the streaming enabled.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
streamingEnabled | boolean | 流式已启用(类型 `boolean`)。The streaming enabled. |
源码Source
io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:59–61isHitlEnabled
public boolean isHitlEnabled()
判断是否 isHitlEnabled。
Returns whether the hitl enabled.
boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:63–65setHitlEnabled
public void setHitlEnabled(boolean hitlEnabled)
设置 setHitlEnabled。
Sets the hitl enabled.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
hitlEnabled | boolean | hitl 已启用(类型 `boolean`)。The hitl enabled. |
源码Source
io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:67–69getSseReplayBufferSize
public int getSseReplayBufferSize()
获取 getSseReplayBufferSize。
Returns the sse replay buffer size.
int返回数值结果。Returns a numeric result.
源码Source
io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:71–73setSseReplayBufferSize
public void setSseReplayBufferSize(int sseReplayBufferSize)
设置 setSseReplayBufferSize。
Sets the sse replay buffer size.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sseReplayBufferSize | int | SSE Replay Buffer 大小(类型 `int`)。The sse replay buffer size. |
源码Source
io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:75–77getSseTimeoutMs
public long getSseTimeoutMs()
获取SSE 超时 Ms。
Returns the sse timeout ms.
long返回数值结果。Returns a numeric result.
源码Source
io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:79–81setSseTimeoutMs
public void setSseTimeoutMs(long sseTimeoutMs)
设置SSE 超时 Ms。
Sets the sse timeout ms.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sseTimeoutMs | long | SSE 超时 Ms(类型 `long`)。The sse timeout ms. |
源码Source
io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:83–85getTaskStorePath
public String getTaskStorePath()
获取任务存储路径。
Resolved control-plane path.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:91–97setTaskStorePath
public void setTaskStorePath(String taskStorePath)
设置任务存储路径。
Sets the task store path.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
taskStorePath | String | 任务存储路径(类型 `String`)。The task store path. |
源码Source
io/agentscope/extensions/agentprotocol/AgentProtocolProperties.java:99–101