PromotionResult
public record PromotionResult( Status status, String message, List<String> environments, String reviewerId, SkillSecurityScanner.ScanResult scan)
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 |
|---|---|---|
status | Status | 执行状态相关操作。 Performs the status operation. |
message | String | 执行消息相关操作。 Performs the message operation. |
environments | List<String> | 执行环境相关操作。 Performs the environments operation. |
reviewerId | String | 执行 `reviewerId` 方法。 Performs the reviewer id operation. |
scan | SkillSecurityScanner.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
记录组件详情Record Component Detail
status
Status status执行状态相关操作。
Performs the status operation.
io/agentscope/harness/agent/skill/curator/SkillPromoter.java:288–326message
String message执行消息相关操作。
Performs the message operation.
io/agentscope/harness/agent/skill/curator/SkillPromoter.java:288–326environments
List<String> environments执行环境相关操作。
Performs the environments operation.
io/agentscope/harness/agent/skill/curator/SkillPromoter.java:288–326reviewerId
String reviewerId执行 reviewerId 方法。
Performs the reviewer id operation.
io/agentscope/harness/agent/skill/curator/SkillPromoter.java:288–326scan
SkillSecurityScanner.ScanResult scan执行 scan 方法。
Performs the scan operation.
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)
执行 approved 方法。
Performs the approved operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
reviewerId | String | reviewer 标识(类型 `String`)。The reviewer id. |
environments | List<String> | 环境(类型 `List`)。The environments. |
scan | SkillSecurityScanner.ScanResult | scan(类型 `SkillSecurityScanner.ScanResult`)。The scan. |
PromotionResultio/agentscope/harness/agent/skill/curator/SkillPromoter.java:302–307deferred
public static PromotionResult deferred(String reason, java.time.Duration retryAfter)
执行 deferred 方法。
Performs the deferred operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
reason | String | 原因(类型 `String`)。The reason. |
retryAfter | java.time.Duration | 重试之后(类型 `java.time.Duration`)。The retry after. |
PromotionResultio/agentscope/harness/agent/skill/curator/SkillPromoter.java:309–316rejected
public static PromotionResult rejected(String reason, SkillSecurityScanner.ScanResult scan)
执行已拒绝相关操作。
Performs the rejected operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
reason | String | 原因(类型 `String`)。The reason. |
scan | SkillSecurityScanner.ScanResult | scan(类型 `SkillSecurityScanner.ScanResult`)。The scan. |
PromotionResultio/agentscope/harness/agent/skill/curator/SkillPromoter.java:318–321invalid
public static PromotionResult invalid(String reason)
设置无效。
Performs the invalid operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
reason | String | 原因(类型 `String`)。The reason. |
PromotionResultio/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.