AS AgentScopeAPI 手册 / API Reference

AdminProperties

@ConfigurationProperties(prefix = "agentscope.admin") public class AdminProperties
源码Source 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.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/spring/boot/admin/properties/AdminProperties.java:55–57

setEnabled

public void setEnabled(boolean enabled)

设置已启用。

Sets the enabled.

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

isWriteEnabled

public boolean isWriteEnabled()

判断是否写入已启用。

Returns whether the write enabled.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/spring/boot/admin/properties/AdminProperties.java:63–65

setWriteEnabled

public void setWriteEnabled(boolean writeEnabled)

设置写入已启用。

Sets the write enabled.

参数Parameters
名称Name类型Type说明Description
writeEnabledboolean写入已启用(类型 `boolean`)。The write enabled.
源码Source io/agentscope/spring/boot/admin/properties/AdminProperties.java:67–69

getBasePath

public String getBasePath()

获取基类路径。

Returns the base path.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/spring/boot/admin/properties/AdminProperties.java:71–77

setBasePath

public void setBasePath(String basePath)

设置基类路径。

Sets the base path.

参数Parameters
名称Name类型Type说明Description
basePathString基类路径(类型 `String`)。The base path.
源码Source io/agentscope/spring/boot/admin/properties/AdminProperties.java:79–81

getWriteToken

public String getWriteToken()

获取写入令牌。

Returns the write token.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/spring/boot/admin/properties/AdminProperties.java:83–85

setWriteToken

public void setWriteToken(String writeToken)

设置写入令牌。

Sets the write token.

参数Parameters
名称Name类型Type说明Description
writeTokenString写入令牌(类型 `String`)。The write token.
源码Source io/agentscope/spring/boot/admin/properties/AdminProperties.java:87–89

getCompactKeepLastMessages

public int getCompactKeepLastMessages()

获取 getCompactKeepLastMessages。

Returns the compact keep last messages.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/spring/boot/admin/properties/AdminProperties.java:91–93

setCompactKeepLastMessages

public void setCompactKeepLastMessages(int compactKeepLastMessages)

设置 setCompactKeepLastMessages。

Sets the compact keep last messages.

参数Parameters
名称Name类型Type说明Description
compactKeepLastMessagesintcompact Keep 最后消息(类型 `int`)。The compact keep last messages.
源码Source io/agentscope/spring/boot/admin/properties/AdminProperties.java:95–97

isPublishAuditEvents

public boolean isPublishAuditEvents()

判断是否 isPublishAuditEvents。

Returns whether the publish audit events.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/spring/boot/admin/properties/AdminProperties.java:99–101

setPublishAuditEvents

public void setPublishAuditEvents(boolean publishAuditEvents)

设置 setPublishAuditEvents。

Sets the publish audit events.

参数Parameters
名称Name类型Type说明Description
publishAuditEventsboolean发布 Audit 事件(类型 `boolean`)。The publish audit events.
源码Source io/agentscope/spring/boot/admin/properties/AdminProperties.java:103–105
基于官方固定版本源码静态生成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.