AS AgentScopeAPI 手册 / API Reference

SkillCandidate

public record SkillCandidate( String name, String description, String skillMdContent, List<String> supportFilePaths, SkillUsageRecord usage, SkillSecurityScanner.ScanResult securityScan, List<ScriptFilePreview> scriptFiles)
源码Source io/agentscope/harness/agent/skill/curator/SkillCandidate.java:29–40

承载技能 Candidate数据的记录类型。位于 io.agentscope.harness.agent.skill.curator 包。核心成员包括 name、description、skillMdContent、supportFilePaths、usage、securityScan。

Material handed to a SkillPromotionGate when a draft skill is being considered for promotion. Includes the skill body, support files, telemetry record, and the result of the pre-promote security scan.

scriptFiles is the sandbox-mode-relevant payload: under SkillBox .codeExecution() every scripts/* file gets uploaded into the sandbox and executed. Reviewers must see the head + sha256 of every script file before saying "approve".

记录组件摘要Record Component Summary

组件Component类型Type说明Description
nameString
执行名称相关操作。
Performs the name operation.
descriptionString
执行 `description` 方法。
Performs the description operation.
skillMdContentString
执行技能 Md 内容相关操作。
Performs the skill md content operation.
supportFilePathsList<String>
执行 `supportFilePaths` 方法。
Performs the support file paths operation.
usageSkillUsageRecord
执行用量相关操作。
Performs the usage operation.
securityScanSkillSecurityScanner.ScanResult
执行 `securityScan` 方法。
Performs the security scan operation.
scriptFilesList<ScriptFilePreview>
执行 `scriptFiles` 方法。
Performs the script files operation.

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
ScriptFilePreview记录record
承载 Script 文件预览数据的记录类型。
A record in io.agentscope.harness.agent.skill.curator that carries data used when components lets agents invoke external capabilities under control.

记录组件详情Record Component Detail

name

String name

执行名称相关操作。

Performs the name operation.

源码Source io/agentscope/harness/agent/skill/curator/SkillCandidate.java:29–40

description

String description

执行 description 方法。

Performs the description operation.

源码Source io/agentscope/harness/agent/skill/curator/SkillCandidate.java:29–40

skillMdContent

String skillMdContent

执行技能 Md 内容相关操作。

Performs the skill md content operation.

源码Source io/agentscope/harness/agent/skill/curator/SkillCandidate.java:29–40

supportFilePaths

List<String> supportFilePaths

执行 supportFilePaths 方法。

Performs the support file paths operation.

源码Source io/agentscope/harness/agent/skill/curator/SkillCandidate.java:29–40

usage

SkillUsageRecord usage

执行用量相关操作。

Performs the usage operation.

源码Source io/agentscope/harness/agent/skill/curator/SkillCandidate.java:29–40

securityScan

SkillSecurityScanner.ScanResult securityScan

执行 securityScan 方法。

Performs the security scan operation.

源码Source io/agentscope/harness/agent/skill/curator/SkillCandidate.java:29–40

scriptFiles

List<ScriptFilePreview> scriptFiles

执行 scriptFiles 方法。

Performs the script files operation.

源码Source io/agentscope/harness/agent/skill/curator/SkillCandidate.java:29–40

嵌套类详情Nested Class Detail

ScriptFilePreview

public record ScriptFilePreview( String relPath, String headPreview, int totalLines, String sha256)

承载 Script 文件预览数据的记录类型。位于 io.agentscope.harness.agent.skill.curator 包。核心成员包括 relPath、headPreview、totalLines、sha256。

A record in io.agentscope.harness.agent.skill.curator that carries data used when components lets agents invoke external capabilities under control. Declared in io.agentscope.harness.agent.skill.curator.

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