SkillPromotionGate
public interface SkillPromotionGate
源码Source
io/agentscope/harness/agent/skill/curator/SkillPromotionGate.java:40–59定义技能 Promotion Gate契约的接口。位于 io.agentscope.harness.agent.skill.curator 包。核心成员包括 review。
Decides whether a draft skill is allowed to be promoted into the live skills directory.
Implementations:
-
RejectAllGate— defers everything; only programmaticHarnessAgent.promoteSkill(...)can move drafts forward (enterprise default) -
LocalApprovalGate— single-replica HITL via the host shell / CLI prompt -
NotifyAndWaitGate— multi-replica: writes a.review_request.jsonfile next to the draft and notifies one or moreNotificationSinks; waits for an external system to callpromoteSkillagain
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
PromotionDecision | 接口interface | 定义 Promotion 决策契约的接口。 Final outcome of a gate review. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Mono<PromotionDecision> review(SkillCandidate candidate, RuntimeContext ctx) | 执行 `review` 方法。 Review a draft. |
方法详情Method Detail
review
public Mono<PromotionDecision> review(SkillCandidate candidate, RuntimeContext ctx)
执行 review 方法。
Review a draft.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
candidate | SkillCandidate | candidate(类型 `SkillCandidate`)。The candidate. |
ctx | RuntimeContext | 运行时上下文(类型 `RuntimeContext`)。The ctx. |
Mono<PromotionDecision>返回Mono。Returns mono.
源码Source
io/agentscope/harness/agent/skill/curator/SkillPromotionGate.java:46嵌套类详情Nested Class Detail
PromotionDecision
sealed interface PromotionDecision permits PromotionDecision.Approve, PromotionDecision.Reject, PromotionDecision.Defer定义 Promotion 决策契约的接口。位于 io.agentscope.harness.agent.skill.curator 包。
Final outcome of a gate review.