AS AgentScopeAPI 手册 / API Reference

SkillManageConfig

public final class SkillManageConfig
源码Source io/agentscope/harness/agent/tool/SkillManageConfig.java:29–113

用于SkillManageTool的配置。位于 io.agentscope.harness.agent.tool 包。核心成员包括 autoPromote、securityScan、draftsDir、mainDir、defaults、builder。

Configuration for SkillManageTool.

Default values are tuned for enterprise production deployment: new skills land in a draft subdirectory (not the live skills root), static security scanning is on, and the agent cannot silently overwrite an existing skill via create.

For personal-assistant / experimental use the recommended override is SkillManageConfig.builder().autoPromote(true).build() — agent writes go straight to the live skills root, becoming visible on the next reasoning turn.

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
Builder类class
构建器,用于构建并配置目标实例。
A class in io.agentscope.harness.agent.tool that lets agents invoke external capabilities under control.

字段摘要Field Summary

字段Field类型Type说明Description
DEFAULT_DRAFTS_DIR
staticfinal
String
默认 DRAFTS 目录字段。
Default subdirectory under workspace for staging drafts.
DEFAULT_MAIN_DIR
staticfinal
String
默认主目录字段。
Default subdirectory under workspace for promoted skills.

方法摘要Method Summary

方法Method说明Description
public boolean autoPromote()
返回 `autoPromote` 结果。
Skip the draft staging path and write directly to the live skills root.
public boolean securityScan()
返回 `securityScan` 结果。
Run `SkillSecurityScanner` after every write.
public String draftsDir()
返回 `draftsDir` 结果。
Workspace-relative directory where drafts land.
public String mainDir()
返回主目录。
Workspace-relative directory where promoted skills live.
public static SkillManageConfig defaults()
static
返回 `defaults` 结果。
Returns the defaults.
public static Builder builder()
static
返回构建器实例。
Returns the builder.

字段详情Field Detail

DEFAULT_DRAFTS_DIR

public static final String DEFAULT_DRAFTS_DIR
staticfinal

默认 DRAFTS 目录字段。声明为 public static final String DEFAULT_DRAFTS_DIR。

Default subdirectory under workspace for staging drafts.

源码Source io/agentscope/harness/agent/tool/SkillManageConfig.java:32

DEFAULT_MAIN_DIR

public static final String DEFAULT_MAIN_DIR
staticfinal

默认主目录字段。声明为 public static final String DEFAULT_MAIN_DIR。

Default subdirectory under workspace for promoted skills.

源码Source io/agentscope/harness/agent/tool/SkillManageConfig.java:35

方法详情Method Detail

autoPromote

public boolean autoPromote()

返回 autoPromote 结果。

Skip the draft staging path and write directly to the live skills root.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/harness/agent/tool/SkillManageConfig.java:50–52

securityScan

public boolean securityScan()

返回 securityScan 结果。

Run SkillSecurityScanner after every write.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/harness/agent/tool/SkillManageConfig.java:55–57

draftsDir

public String draftsDir()

返回 draftsDir 结果。

Workspace-relative directory where drafts land.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/agent/tool/SkillManageConfig.java:60–62

mainDir

public String mainDir()

返回主目录。

Workspace-relative directory where promoted skills live.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/agent/tool/SkillManageConfig.java:65–67

defaults

public static SkillManageConfig defaults()
static

返回 defaults 结果。

Returns the defaults.

返回Returns SkillManageConfig
返回SkillManageConfig。Returns skill manage config.
源码Source io/agentscope/harness/agent/tool/SkillManageConfig.java:69–71

builder

public static Builder builder()
static

返回构建器实例。

Returns the builder.

返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/harness/agent/tool/SkillManageConfig.java:73–75

嵌套类详情Nested Class Detail

Builder

public static final class Builder

构建器,用于构建并配置目标实例。位于 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.

基于官方固定版本源码静态生成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.