Builder
public static final class Builder
源码Source
io/agentscope/harness/agent/tool/SkillManageConfig.java:77–112构建器,用于构建并配置目标实例。位于 io.agentscope.harness.agent.tool 包。核心成员包括 autoPromote、securityScan、draftsDir、mainDir、build。
A class in io.agentscope.harness.agent.tool that lets agents invoke external capabilities under control. Declared in io.agentscope.harness.agent.tool.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Builder autoPromote(boolean autoPromote) | 设置该配置项。 Performs the auto promote operation. |
public Builder securityScan(boolean securityScan) | 设置该配置项。 Performs the security scan operation. |
public Builder draftsDir(String draftsDir) | 设置该配置项。 Performs the drafts dir operation. |
public Builder mainDir(String mainDir) | 设置主目录。 Performs the main dir operation. |
public SkillManageConfig build() | 构建并返回最终实例。 Creates and returns an instance. |
方法详情Method Detail
autoPromote
public Builder autoPromote(boolean autoPromote)
设置该配置项。
Performs the auto promote operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
autoPromote | boolean | auto Promote(类型 `boolean`)。The auto promote. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/harness/agent/tool/SkillManageConfig.java:85–88securityScan
public Builder securityScan(boolean securityScan)
设置该配置项。
Performs the security scan operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
securityScan | boolean | security Scan(类型 `boolean`)。The security scan. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/harness/agent/tool/SkillManageConfig.java:90–93draftsDir
public Builder draftsDir(String draftsDir)
设置该配置项。
Performs the drafts dir operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
draftsDir | String | drafts 目录(类型 `String`)。The drafts dir. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/harness/agent/tool/SkillManageConfig.java:95–100mainDir
public Builder mainDir(String mainDir)
设置主目录。
Performs the main dir operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
mainDir | String | 主目录(类型 `String`)。The main dir. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/harness/agent/tool/SkillManageConfig.java:102–107build
public SkillManageConfig build()
构建并返回最终实例。
Creates and returns an instance.
SkillManageConfig返回SkillManageConfig。Returns skill manage config.
源码Source
io/agentscope/harness/agent/tool/SkillManageConfig.java:109–111