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.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/runtime/config/SessionLifecycleConfig.java:130–132setMode
public void setMode(String mode)
设置模式。
Sets the mode.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
mode | String | 模式(类型 `String`)。The mode. |
源码Source
io/agentscope/builder/runtime/config/SessionLifecycleConfig.java:134–136getPruneAfter
public String getPruneAfter()
获取修剪之后。
Returns the prune after.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/runtime/config/SessionLifecycleConfig.java:138–140setPruneAfter
public void setPruneAfter(String pruneAfter)
设置修剪之后。
Sets the prune after.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
pruneAfter | String | 修剪之后(类型 `String`)。The prune after. |
源码Source
io/agentscope/builder/runtime/config/SessionLifecycleConfig.java:142–144getMaxEntries
public Integer getMaxEntries()
获取最大条目。
Returns the max entries.
Integer返回数值结果。Returns a numeric result.
源码Source
io/agentscope/builder/runtime/config/SessionLifecycleConfig.java:146–148setMaxEntries
public void setMaxEntries(Integer maxEntries)
设置最大条目。
Sets the max entries.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
maxEntries | Integer | 最大条目(类型 `Integer`)。The max entries. |
源码Source
io/agentscope/builder/runtime/config/SessionLifecycleConfig.java:150–152pruneAfterMs
public long pruneAfterMs()
返回修剪之后 Ms。
Parse a duration string like "7d" or "60m" to milliseconds.
long返回数值结果。Returns a numeric result.
源码Source
io/agentscope/builder/runtime/config/SessionLifecycleConfig.java:155–176