AS AgentScopeAPI 手册 / API Reference

PromotionResult

public record PromotionResult( Status status, String message, List<String> environments, String reviewerId, SkillSecurityScanner.ScanResult scan)
源码Source io/agentscope/harness/agent/skill/curator/SkillPromoter.java:288–326

承载 Promotion 结果数据的记录类型。位于 io.agentscope.harness.agent.skill.curator 包。核心成员包括 status、message、environments、reviewerId、scan、approved。

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.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
statusStatus
执行状态相关操作。
Performs the status operation.
messageString
执行消息相关操作。
Performs the message operation.
environmentsList<String>
执行环境相关操作。
Performs the environments operation.
reviewerIdString
执行 `reviewerId` 方法。
Performs the reviewer id operation.
scanSkillSecurityScanner.ScanResult
执行 `scan` 方法。
Performs the scan operation.

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
Status枚举enum
定义状态的枚举。
A enum in io.agentscope.harness.agent.skill.curator that defines enum values used when components lets agents invoke external capabilities under control.

方法摘要Method Summary

方法Method说明Description
public static PromotionResult approved(String reviewerId, List<String> environments, SkillSecurityScanner.ScanResult scan)
static
执行 `approved` 方法。
Performs the approved operation.
public static PromotionResult deferred(String reason, java.time.Duration retryAfter)
static
执行 `deferred` 方法。
Performs the deferred operation.
public static PromotionResult rejected(String reason, SkillSecurityScanner.ScanResult scan)
static
执行已拒绝相关操作。
Performs the rejected operation.
public static PromotionResult invalid(String reason)
static
设置无效。
Performs the invalid operation.

记录组件详情Record Component Detail

status

Status status

执行状态相关操作。

Performs the status operation.

源码Source io/agentscope/harness/agent/skill/curator/SkillPromoter.java:288–326

message

String message

执行消息相关操作。

Performs the message operation.

源码Source io/agentscope/harness/agent/skill/curator/SkillPromoter.java:288–326

environments

List<String> environments

执行环境相关操作。

Performs the environments operation.

源码Source io/agentscope/harness/agent/skill/curator/SkillPromoter.java:288–326

reviewerId

String reviewerId

执行 reviewerId 方法。

Performs the reviewer id operation.

源码Source io/agentscope/harness/agent/skill/curator/SkillPromoter.java:288–326

scan

SkillSecurityScanner.ScanResult scan

执行 scan 方法。

Performs the scan operation.

源码Source io/agentscope/harness/agent/skill/curator/SkillPromoter.java:288–326

方法详情Method Detail

approved

public static PromotionResult approved(String reviewerId, List<String> environments, SkillSecurityScanner.ScanResult scan)
static

执行 approved 方法。

Performs the approved operation.

参数Parameters
名称Name类型Type说明Description
reviewerIdStringreviewer 标识(类型 `String`)。The reviewer id.
environmentsList<String>环境(类型 `List`)。The environments.
scanSkillSecurityScanner.ScanResultscan(类型 `SkillSecurityScanner.ScanResult`)。The scan.
返回Returns PromotionResult
返回PromotionResult。Returns promotion result.
源码Source io/agentscope/harness/agent/skill/curator/SkillPromoter.java:302–307

deferred

public static PromotionResult deferred(String reason, java.time.Duration retryAfter)
static

执行 deferred 方法。

Performs the deferred operation.

参数Parameters
名称Name类型Type说明Description
reasonString原因(类型 `String`)。The reason.
retryAfterjava.time.Duration重试之后(类型 `java.time.Duration`)。The retry after.
返回Returns PromotionResult
返回PromotionResult。Returns promotion result.
源码Source io/agentscope/harness/agent/skill/curator/SkillPromoter.java:309–316

rejected

public static PromotionResult rejected(String reason, SkillSecurityScanner.ScanResult scan)
static

执行已拒绝相关操作。

Performs the rejected operation.

参数Parameters
名称Name类型Type说明Description
reasonString原因(类型 `String`)。The reason.
scanSkillSecurityScanner.ScanResultscan(类型 `SkillSecurityScanner.ScanResult`)。The scan.
返回Returns PromotionResult
返回PromotionResult。Returns promotion result.
源码Source io/agentscope/harness/agent/skill/curator/SkillPromoter.java:318–321

invalid

public static PromotionResult invalid(String reason)
static

设置无效。

Performs the invalid operation.

参数Parameters
名称Name类型Type说明Description
reasonString原因(类型 `String`)。The reason.
返回Returns PromotionResult
返回PromotionResult。Returns promotion result.
源码Source io/agentscope/harness/agent/skill/curator/SkillPromoter.java:323–325

嵌套类详情Nested Class Detail

Status

public enum Status

定义状态的枚举。位于 io.agentscope.harness.agent.skill.curator 包。核心成员包括 APPROVED、DEFERRED、REJECTED、INVALID。

A enum in io.agentscope.harness.agent.skill.curator that defines enum values 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.