AdminProperties
@ConfigurationProperties(prefix = "agentscope.admin") public class AdminProperties
io/agentscope/spring/boot/admin/properties/AdminProperties.java:27–106管理台属性,承载智能体的部署、调度与服务化运行。位于 io.agentscope.spring.boot.admin.properties 包。核心成员包括 isEnabled、setEnabled、isWriteEnabled、setWriteEnabled、getBasePath、setBasePath。
Configuration properties for the AgentScope admin/ops starter.
The starter is opt-in. Set agentscope.admin.enabled=true to activate. Write operations
are additionally gated on agentscope.admin.write-enabled to keep production deployments
safe by default.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public boolean isEnabled() | 判断是否已启用。 Returns whether the enabled. |
public void setEnabled(boolean enabled) | 设置已启用。 Sets the enabled. |
public boolean isWriteEnabled() | 判断是否写入已启用。 Returns whether the write enabled. |
public void setWriteEnabled(boolean writeEnabled) | 设置写入已启用。 Sets the write enabled. |
public String getBasePath() | 获取基类路径。 Returns the base path. |
public void setBasePath(String basePath) | 设置基类路径。 Sets the base path. |
public String getWriteToken() | 获取写入令牌。 Returns the write token. |
public void setWriteToken(String writeToken) | 设置写入令牌。 Sets the write token. |
public int getCompactKeepLastMessages() | 获取 `getCompactKeepLastMessages`。 Returns the compact keep last messages. |
public void setCompactKeepLastMessages(int compactKeepLastMessages) | 设置 `setCompactKeepLastMessages`。 Sets the compact keep last messages. |
public boolean isPublishAuditEvents() | 判断是否 `isPublishAuditEvents`。 Returns whether the publish audit events. |
public void setPublishAuditEvents(boolean publishAuditEvents) | 设置 `setPublishAuditEvents`。 Sets the publish audit events. |
方法详情Method Detail
isEnabled
public boolean isEnabled()
判断是否已启用。
Returns whether the enabled.
booleanio/agentscope/spring/boot/admin/properties/AdminProperties.java:55–57setEnabled
public void setEnabled(boolean enabled)
设置已启用。
Sets the enabled.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
enabled | boolean | 已启用(类型 `boolean`)。The enabled. |
io/agentscope/spring/boot/admin/properties/AdminProperties.java:59–61isWriteEnabled
public boolean isWriteEnabled()
判断是否写入已启用。
Returns whether the write enabled.
booleanio/agentscope/spring/boot/admin/properties/AdminProperties.java:63–65setWriteEnabled
public void setWriteEnabled(boolean writeEnabled)
设置写入已启用。
Sets the write enabled.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
writeEnabled | boolean | 写入已启用(类型 `boolean`)。The write enabled. |
io/agentscope/spring/boot/admin/properties/AdminProperties.java:67–69getBasePath
public String getBasePath()
获取基类路径。
Returns the base path.
Stringio/agentscope/spring/boot/admin/properties/AdminProperties.java:71–77setBasePath
public void setBasePath(String basePath)
设置基类路径。
Sets the base path.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
basePath | String | 基类路径(类型 `String`)。The base path. |
io/agentscope/spring/boot/admin/properties/AdminProperties.java:79–81getWriteToken
public String getWriteToken()
获取写入令牌。
Returns the write token.
Stringio/agentscope/spring/boot/admin/properties/AdminProperties.java:83–85setWriteToken
public void setWriteToken(String writeToken)
设置写入令牌。
Sets the write token.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
writeToken | String | 写入令牌(类型 `String`)。The write token. |
io/agentscope/spring/boot/admin/properties/AdminProperties.java:87–89getCompactKeepLastMessages
public int getCompactKeepLastMessages()
获取 getCompactKeepLastMessages。
Returns the compact keep last messages.
intio/agentscope/spring/boot/admin/properties/AdminProperties.java:91–93setCompactKeepLastMessages
public void setCompactKeepLastMessages(int compactKeepLastMessages)
设置 setCompactKeepLastMessages。
Sets the compact keep last messages.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
compactKeepLastMessages | int | compact Keep 最后消息(类型 `int`)。The compact keep last messages. |
io/agentscope/spring/boot/admin/properties/AdminProperties.java:95–97isPublishAuditEvents
public boolean isPublishAuditEvents()
判断是否 isPublishAuditEvents。
Returns whether the publish audit events.
booleanio/agentscope/spring/boot/admin/properties/AdminProperties.java:99–101setPublishAuditEvents
public void setPublishAuditEvents(boolean publishAuditEvents)
设置 setPublishAuditEvents。
Sets the publish audit events.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
publishAuditEvents | boolean | 发布 Audit 事件(类型 `boolean`)。The publish audit events. |
io/agentscope/spring/boot/admin/properties/AdminProperties.java:103–105