Builder
public static final class Builder
源码Source
io/agentscope/harness/agent/skill/curator/SkillCuratorConfig.java:74–111构建器,用于构建并配置目标实例。位于 io.agentscope.harness.agent.skill.curator 包。核心成员包括 enabled、intervalHours、staleAfterDays、archiveAfterDays、umbrellaPassMode、build。
A class in io.agentscope.harness.agent.skill.curator that lets agents invoke external capabilities under control. Declared in io.agentscope.harness.agent.skill.curator.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Builder enabled(boolean v) | 启用d。 Performs the enabled operation. |
public Builder intervalHours(int v) | 设置该配置项。 Performs the interval hours operation. |
public Builder staleAfterDays(int v) | 设置该配置项。 Performs the stale after days operation. |
public Builder archiveAfterDays(int v) | 设置该配置项。 Performs the archive after days operation. |
public Builder umbrellaPassMode(UmbrellaPassMode mode) | 设置该配置项。 Performs the umbrella pass mode operation. |
public SkillCuratorConfig build() | 构建并返回最终实例。 Creates and returns an instance. |
方法详情Method Detail
enabled
public Builder enabled(boolean v)
启用d。
Performs the enabled operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
v | boolean | v(类型 `boolean`)。The v. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/harness/agent/skill/curator/SkillCuratorConfig.java:83–86intervalHours
public Builder intervalHours(int v)
设置该配置项。
Performs the interval hours operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
v | int | v(类型 `int`)。The v. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/harness/agent/skill/curator/SkillCuratorConfig.java:88–91staleAfterDays
public Builder staleAfterDays(int v)
设置该配置项。
Performs the stale after days operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
v | int | v(类型 `int`)。The v. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/harness/agent/skill/curator/SkillCuratorConfig.java:93–96archiveAfterDays
public Builder archiveAfterDays(int v)
设置该配置项。
Performs the archive after days operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
v | int | v(类型 `int`)。The v. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/harness/agent/skill/curator/SkillCuratorConfig.java:98–101umbrellaPassMode
public Builder umbrellaPassMode(UmbrellaPassMode mode)
设置该配置项。
Performs the umbrella pass mode operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
mode | UmbrellaPassMode | 模式(类型 `UmbrellaPassMode`)。The mode. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/harness/agent/skill/curator/SkillCuratorConfig.java:103–106build
public SkillCuratorConfig build()
构建并返回最终实例。
Creates and returns an instance.
SkillCuratorConfig返回SkillCuratorConfig。Returns skill curator config.
源码Source
io/agentscope/harness/agent/skill/curator/SkillCuratorConfig.java:108–110