AS AgentScopeAPI 手册 / API Reference

MaintenanceConfig

@JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonIgnoreProperties(ignoreUnknown = true) public static class MaintenanceConfig
源码Source io/agentscope/builder/runtime/config/SessionLifecycleConfig.java:111–177

维护配置,保存相关配置项。位于 io.agentscope.builder.runtime.config 包。核心成员包括 getMode、setMode、getPruneAfter、setPruneAfter、getMaxEntries、setMaxEntries。

A class in io.agentscope.builder.runtime.config that deploys, schedules and serves agents. Declared in io.agentscope.builder.runtime.config.

方法摘要Method Summary

方法Method说明Description
public String getMode()
获取模式。
Returns the mode.
public void setMode(String mode)
设置模式。
Sets the mode.
public String getPruneAfter()
获取修剪之后。
Returns the prune after.
public void setPruneAfter(String pruneAfter)
设置修剪之后。
Sets the prune after.
public Integer getMaxEntries()
获取最大条目。
Returns the max entries.
public void setMaxEntries(Integer maxEntries)
设置最大条目。
Sets the max entries.
public long pruneAfterMs()
返回修剪之后 Ms。
Parse a duration string like `"7d"` or `"60m"` to milliseconds.

方法详情Method Detail

getMode

public String getMode()

获取模式。

Returns the mode.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/runtime/config/SessionLifecycleConfig.java:130–132

setMode

public void setMode(String mode)

设置模式。

Sets the mode.

参数Parameters
名称Name类型Type说明Description
modeString模式(类型 `String`)。The mode.
源码Source io/agentscope/builder/runtime/config/SessionLifecycleConfig.java:134–136

getPruneAfter

public String getPruneAfter()

获取修剪之后。

Returns the prune after.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/runtime/config/SessionLifecycleConfig.java:138–140

setPruneAfter

public void setPruneAfter(String pruneAfter)

设置修剪之后。

Sets the prune after.

参数Parameters
名称Name类型Type说明Description
pruneAfterString修剪之后(类型 `String`)。The prune after.
源码Source io/agentscope/builder/runtime/config/SessionLifecycleConfig.java:142–144

getMaxEntries

public Integer getMaxEntries()

获取最大条目。

Returns the max entries.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/runtime/config/SessionLifecycleConfig.java:146–148

setMaxEntries

public void setMaxEntries(Integer maxEntries)

设置最大条目。

Sets the max entries.

参数Parameters
名称Name类型Type说明Description
maxEntriesInteger最大条目(类型 `Integer`)。The max entries.
源码Source io/agentscope/builder/runtime/config/SessionLifecycleConfig.java:150–152

pruneAfterMs

public long pruneAfterMs()

返回修剪之后 Ms。

Parse a duration string like "7d" or "60m" to milliseconds.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/runtime/config/SessionLifecycleConfig.java:155–176
基于官方固定版本源码静态生成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.